我的 postfix 安装设置为将所有发往 的电子邮件转发example.com
到我的其他邮件服务器mail.example.net
。这对所有地址都有效,但[email protected]
服务器在日志和客户端中example.com
输出以下信息:Illegal address syntax from
501 5.1.3 Bad recipient address syntax
[email protected]
我怎样才能告诉 Postfix也进行转发?维基百科表示这!
对当地有效。
我的配置如下:
主配置文件
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
inet_interfaces = all
mailbox_size_limit = 0
mydestination = mail.example.com, localhost
relay_domains = example.com
myhostname = mail.example.com
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 10.10.10.10/32
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost =
smtp_header_checks = regexp:/etc/postfix/smtp_header_checks
smtp_tls_fingerprint_digest = sha1
smtp_tls_policy_maps = hash:/etc/postfix/tls_policy
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
transport_maps = hash:/etc/postfix/transport
/etc/别名
mailer-daemon: postmaster
postmaster: root
nobody: root
hostmaster: root
usenet: root
news: root
webmaster: root
www: root
ftp: root
abuse: root
noc: root
security: root
mime_header_checks
/^Received: (from|by) mail\.example\.net/ IGNORE
/^Message-ID:\s+<(.*?)@mail.example.net>/ REPLACE Message-ID: <[email protected]>
tls_策略
mail.example.net fingerprint
match=00:01:02:03:04:05:06:07:08:09:10:11:12:13:14:15:16:17:18:19:20
运输
example.com smtp:mail.example.net