Я следил Flurdy's postfix настроен, однако у меня, похоже, есть проблема с пересылкой писем. Например, в моей базе данных maildb - у меня есть таблица Alias
который сопоставляет почту с местом назначения. Например: mail =user@mymail.com
в пункт назначения =user@gmail.com
.
При просмотре mail.logs я вижу>
postfix/smtpd[10912]: connect from mail-wi0-f170.google.com[209.85.212.170] postfix/smtpd[10912]: Anonymous TLS connection established from mail-wi0-f170.google.com[209.85.212.170]: TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits) postgrey[29500]: action=pass, reason=client whitelist, client_name=mail-wi0-f170.google.com, client_address=209.85.212.170, sender=user@gmail.com, recipient=user@mymail.com postgrey[29500]: cleaning up old logs... postfix/smtpd[10912]: D5B6D6025: client=mail-wi0-f170.google.com[209.85.212.170] postfix/cleanup[10927]: D5B6D6025: message-id=CA+fyp4yUhz=bYtUDns132ZWSo_A+nZasEDdPNdJFxiOdLPH-LQ@mail.gmail.com postfix/qmgr[10881]: D5B6D6025: from=user@gmail.com, size=1913, nrcpt=1 (queue active) postfix/smtpd[10912]: disconnect from mail-wi0-f170.google.com[209.85.212.170] postfix/smtp[10929]: D5B6D6025: to=user@gmail.com, orig_to=user@mymail.com, relay=ASPMX.L.GOOGLE.com[173.194.66.26]:25, delay=0.62, delays=0.21/0.02/0.17/0.22, dsn=2.0.0, status=sent (250 2.0.0 OK 1359385356 f5si212603wja.5 - gsmtp) postfix/qmgr[10881]: D5B6D6025: removed
Однако user@gmail.com ничего не получает. У меня установлен следующий постфикс.
alias_database = hash:/etc/postfix/aliases alias_maps = hash:/etc/postfix/aliases append_dot_mydomain = no biff = no broken_sasl_auth_clients = no config_directory = /etc/postfix delay_warning_time = 4h disable_vrfy_command = yes inet_interfaces = all inet_protocols = ipv4 local_recipient_maps = mailbox_size_limit = 10737418240 maximal_backoff_time = 8000s maximal_queue_lifetime = 7d minimal_backoff_time = 1000s mydestination = mail.mymail.com, localhost, localhost.mymail.com mynetworks = 127.0.0.0/8, 192.168.1.0/24 mynetworks_style = host myorigin = mymail.com readme_directory = no recipient_delimiter = + relayhost = smtp_helo_timeout = 60s smtp_sasl_type = cyrus smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt smtp_tls_note_starttls_offer = yes smtp_tls_security_level = may smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) smtpd_client_restrictions = reject_rbl_client sbl.spamhaus.org, reject_rbl_client blackholes.easynet.nl, reject_rbl_client dnsbl.njabl.org smtpd_data_restrictions = reject_unauth_pipelining smtpd_delay_reject = yes smtpd_hard_error_limit = 12 smtpd_helo_required = yes smtpd_helo_restrictions = permit_mynetworks, warn_if_reject reject_non_fqdn_hostname, reject_invalid_hostname, permit smtpd_recipient_limit = 16 smtpd_recipient_restrictions = reject_unauth_pipelining, permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_unauth_destination, check_policy_service inet:127.0.0.1:10023, permit smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = smtpd_sasl_security_options = noanonymous smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks, warn_if_reject reject_non_fqdn_sender, reject_unknown_sender_domain, reject_unauth_pipelining, permit smtpd_soft_error_limit = 3 smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key smtpd_tls_loglevel = 1 smtpd_tls_received_header = yes smtpd_tls_security_level = may smtpd_tls_session_cache_timeout = 3600s tls_random_source = dev:/dev/urandom unknown_local_recipient_reject_code = 450 virtual_alias_maps = mysql:/etc/postfix/mysql_alias.cf virtual_gid_maps = static:5000 virtual_mailbox_base = /var/spool/mail/virtual virtual_mailbox_domains = mysql:/etc/postfix/mysql_domains.cf virtual_mailbox_maps = mysql:/etc/postfix/mysql_mailbox.cf virtual_transport = virtual virtual_uid_maps = static:5000
Может ли кто-нибудь помочь мне указать правильное направление? Полностью потеряно.
Ура
postfix / smtp [10929]: D5B6D6025: to=user@gmail.com, orig_to=user@mymail.com, relay = ASPMX.L.GOOGLE.com [173.194.66.26]: 25, delay = 0.62, delay = 0.21 / 0,02 / 0,17 / 0,22, dsn = 2.0.0, статус = отправлено (250 2.0.0 OK 1359385356 f5si212603wja.5 - gsmtp)
Это сообщение было принято Gmail; это не в руках postfix.
Вам придется спросить Gmail или, возможно, заглянуть в папку со спамом.