我已经关注flurdy 的postfix 设置,但是我在转发电子邮件时似乎遇到了问题。例如,在我的 maildb 数据库中 - 我有一个Alias
将邮件映射到目的地的表。例如: mail= [email protected]
to destination= [email protected]
。
当我跟踪 mail.logs 时,我看到>
postfix/smtpd[10912]: 从 mail-wi0-f170.google.com[209.85.212.170] 连接 postfix/smtpd[10912]: 从 mail-wi0-f170.google.com[209.85.212.170] 建立匿名 TLS 连接:使用密码 ECDHE-RSA-RC4-SHA (128/128 位) 的 TLSv1 postgrey[29500]: action=pass,原因=客户端白名单,client_name=mail-wi0-f170.google.com,client_address=209.85.212.170,[电子邮件保护],[电子邮件保护] postgre[29500]: 正在清理旧日志... postfix/smtpd[10912]: D5B6D6025: 客户端=mail-wi0-f170.google.com[209.85.212.170] postfix/cleanup[10927]: D5B6D6025: 消息 ID=CA+fyp4yUhz=bYtUDns132ZWSo_A+nZasEDdPNdJFxiOdLPH-LQ@mail.gmail.com 后缀/qmgr[10881]: D5B6D6025:[电子邮件保护], size=1913, nrcpt=1 (队列活动) postfix/smtpd[10912]: 断开与 mail-wi0-f170.google.com[209.85.212.170] 的连接 后缀/smtp[10929]: D5B6D6025:[电子邮件保护],[电子邮件保护],中继=ASPMX.L.GOOGLE.com[173.194.66.26]:25,延迟=0.62,延迟=0.21/0.02/0.17/0.22,dsn=2.0.0,状态=已发送(250 2.0.0 OK 1359385356 f5si212603wja.5 - gsmtp) postfix/qmgr[10881]: D5B6D6025: 已删除
然而,[电子邮件保护]没有收到任何内容。我已设置以下后缀。
别名数据库 = 哈希:/etc/postfix/aliases alias_maps = hash:/etc/postfix/aliases append_dot_mydomain = no biff = 没有 broken_sasl_auth_clients = 否 配置目录 = /etc/postfix 延迟警告时间 = 4 小时 disable_vrfy_command = 是 inet_interfaces = 全部 inet_protocols = ipv4 本地收件人地图 = 邮箱大小限制 = 10737418240 最大退避时间 = 8000 秒 最大队列寿命 = 7d minimal_backoff_time = 1000s mydestination = mail.mymail.com,localhost,localhost.mymail.com 我的网络 = 127.0.0.0/8, 192.168.1.0/24 mynetworks_style = 主机 myorigin = mymail.com readme_directory = 否 收件人分隔符 = + 中继主机 = smtp_helo_timeout = 60 秒 smtp_sasl_type = cyrus smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt smtp_tls_note_starttls_offer = 是 smtp_tls_security_level = 可能 smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) smtpd_client_restrictions = rejection_rbl_client sbl.spamhaus.org,reject_rbl_client blackholes.easynet.nl,reject_rbl_client dnsbl.njabl.org smtpd_data_restrictions = rejection_unauth_pipelining smtpd_delay_reject = 是 smtpd_hard_error_limit = 12 smtpd_helo_required = 是 smtpd_helo_restrictions = permit_mynetworks,warn_if_reject rejection_non_fqdn_hostname,reject_invalid_hostname,允许 smtpd_recipient_limit = 16 smtpd_recipient_restrictions = rejection_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,允许 smtpd_sasl_auth_enable = 是 smtpd_sasl_本地域= 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、允许 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 = 是 smtpd_tls_security_level = 可能 smtpd_tls_session_cache_timeout = 3600s tls_random_source = dev:/dev/urandom 未知本地收件人拒绝代码 = 450 virtual_alias_maps = mysql:/etc/postfix/mysql_alias.cf virtual_gid_maps = 静态:5000 虚拟邮箱库 = /var/spool/mail/virtual 虚拟邮箱域 = mysql:/etc/postfix/mysql_domains.cf virtual_mailbox_maps = mysql:/etc/postfix/mysql_mailbox.cf virtual_transport = 虚拟 virtual_uid_maps = 静态:5000
有人能帮我指明正确的方向吗?完全迷路了。
干杯