因此,我已经设置了 postfix [email protected]
,然后我将发送到该地址的电子邮件转发到我的 gmail,因为我不想将它们存储在 vps 上。
我的 /etc/postfix/virtual 有等效项;
[email protected] [email protected]
主文件:
virtual_alias_domains = $mydomain
virtual_alias_maps = hash:/etc/postfix/virtual
检查日志时,我可以看到电子邮件被正确转发到我的 gmail,但随后也被转发到[email protected]
;
Jan 18 12:20:52 <username> postfix/smtp[21811]: 9917D5C3B: to=<[email protected]>, orig_to=<me@<example>.com>, relay=mail.user-mail.net[54.225.106.106]:25, delay=8.2, delays=0.77/0.01/6.9/0.56, dsn=2.0.0, status=sent (250 OK (1F88FAEC-4D54-4C95-8273-6D9281995827.1) (1F88FAEC-4D54-4C95-8273-6D9281995827.1))
我不想让这个地址收到我的邮件!我的配置哪里出错了?
编辑:
完整的 main.cf (减去注释):
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
myorigin = $mydomain
inet_interfaces = all
inet_protocols = all
mydestination = $mydomain, $myhostname, localhost.$mydomain, localhost
unknown_local_recipient_reject_code = 550
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.6.6/samples
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
local_recipient_maps = $virtual_alias_maps
virtual_alias_domains = $mydomain
virtual_alias_maps = hash:/etc/postfix/virtual
smtpd_recipient_restrictions =
reject_invalid_hostname,
reject_unknown_recipient_domain,
reject_unauth_pipelining,
permit_mynetworks,
reject_unauth_destination,
reject_rbl_client zen.spamhaus.org,
reject_rbl_client bl.spamcop.net,
reject_rbl_client dnsbl.sorbs.net,
reject_rbl_client cbl.abuseat.org,
reject_rbl_client b.barracudacentral.org,
reject_rbl_client dnsbl-1.uceprotect.net,
permit
smtpd_tls_security_level = may
smtpd_tls_key_file = /etc/sslmate/<example>.com.key
smtpd_tls_cert_file = /etc/sslmate/<example>.com.crt