我对plesk和postfix相当新,所以请耐心等待。我在一个服务器上设置了plesk,多个域已经存在并且呼吸,包括所有工作正常的电子邮件。我的问题来自我添加的新域名,即使用电子邮件的交换而不是本地postfix。所以我为此" newdomin.tld"停用了后缀。在plesk,但任何时候网站尝试发送电子邮件(PHP联系表格)我从来没有收到测试电子邮件(尽管表格报告成功)。
以下是我在 maillog 中出现的错误:
Jul 30 08:00:19 mydomain postfix/qmgr[22665]: 15F972500E30: from=<phpform@newdomin.tld>, size=836, nrcpt=1 (queue active)
Jul 30 08:00:19 mydomain postfix/smtp[22852]: 15F972500E30: to=<validuser@newdomin.tld>, relay=none, delay=0.09, delays=0.08/0.01/0/0, dsn=5.4.6, status=bounced (mail for XXX.XXX.XXX.XXX loops back to myself)
Jul 30 08:00:19 mydomain postfix/cleanup[22750]: 2EB332500EEF: message-id=<20150730150019.2EB332500EEF@mydomain.com>
Jul 30 08:00:19 mydomain postfix/bounce[22853]: 15F972500E30: sender non-delivery notification: 2EB332500EEF
Jul 30 08:00:19 mydomain postfix/qmgr[22665]: 2EB332500EEF: from=<>, size=2630, nrcpt=1 (queue active)
Jul 30 08:00:19 mydomain postfix/qmgr[22665]: 15F972500E30: removed
Jul 30 08:00:19 mydomain postfix/smtp[22852]: 2EB332500EEF: to=<validuser@newdomin.tld>, relay=none, delay=0.03, delays=0.03/0/0/0, dsn=5.4.6, status=bounced (mail for XXX.XXX.XXX.XXX loops back to myself)
Jul 30 08:00:19 mydomain postfix/qmgr[22665]: 2EB332500EEF: removed
Jul 30 08:00:19 mydomain plesk_saslauthd[22790]: activity on 0 channel(s)
Jul 30 08:00:19 mydomain plesk_saslauthd[22790]: select timeout, exiting
这是我的 main.cf
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
inet_interfaces = all
inet_protocols = all
#mydestination = localhost.$mydomain, localhost, localhost.localdomain
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
mail.$mydomain, www.$mydomain, ftp.$mydomain
unknown_local_recipient_reject_code = 550
alias_maps = hash:/etc/aliases, hash:/var/spool/postfix/plesk/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.8.17/samples
readme_directory = /usr/share/doc/postfix-2.8.17/README_FILES
virtual_mailbox_domains = $virtual_mailbox_maps, hash:/var/spool/postfix/plesk/virtual_domains
virtual_alias_maps = $virtual_maps, hash:/var/spool/postfix/plesk/virtual, hash:/etc/postfix/virtual_mailbox_maps
virtual_mailbox_maps = , hash:/var/spool/postfix/plesk/vmailbox
transport_maps = hash:/etc/postfix/transport, hash:/var/spool/postfix/plesk/transport
smtpd_tls_cert_file = /etc/postfix/postfix_default.pem
smtpd_tls_key_file = $smtpd_tls_cert_file
smtpd_tls_security_level = may
smtpd_use_tls = yes
smtp_tls_security_level = may
smtp_use_tls = no
smtpd_timeout = 3600s
smtpd_proxy_timeout = 3600s
disable_vrfy_command = yes
mynetworks =
smtpd_sender_restrictions = check_sender_access hash:/var/spool/postfix/plesk/blacklists, permit_sasl_authenticated
smtpd_client_restrictions = reject_invalid_hostname,
reject_unknown_recipient_domain,
reject_unauth_pipelining,
reject_unauth_destination,
permit_mynetworks,
permit_sasl_authenticated,
reject_unauth_destination,
reject_rbl_client dsn.rfc-ignorant.org,
reject_rbl_client dul.dnsbl.sorbs.net,
reject_rbl_client list.dsbl.org,
reject_rbl_client sbl-xbl.spamhaus.org,
reject_rbl_client bl.spamcop.net,
reject_rbl_client dnsbl.sorbs.net,
reject_rbl_client cbl.abuseat.org,
reject_rbl_client ix.dnsbl.manitu.net,
reject_rbl_client cbl.abuseat.org,
reject_rbl_client ix.dnsbl.manitu.net,
reject_rbl_client combined.rbl.msrbl.net,
reject_rbl_client rabl.nuclearelephant.com,
permit
smtp_send_xforward_command = yes
smtpd_authorized_xforward_hosts = 127.0.0.0/8 [::1]/128
smtpd_sasl_auth_enable = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
virtual_mailbox_base = /var/qmail/mailnames
virtual_uid_maps = static:30
virtual_gid_maps = static:31
smtpd_milters = , inet:127.0.0.1:12768
sender_dependent_default_transport_maps = hash:/var/spool/postfix/plesk/sdd_transport_maps
virtual_transport = plesk_virtual
plesk_virtual_destination_recipient_limit = 1
mailman_destination_recipient_limit = 1
mailbox_size_limit = 0
virtual_mailbox_limit = 0
myhostname = mycustomdomain.com
message_size_limit = 31457280
任何帮助将不胜感激,这是在CentOS 6.6上运行的默认plesk设置(12.0.18 Update#57)。所有其他电子邮件,webmail,smtp设置似乎适用于所有其他服务器,它就是这个拥有Exchange的服务器。我确实通过codero托管确保我的所有DNS设置在plesk以及我的服务器门户中都是正确的。我知道交换设置正在运行,因为每个人都收到他们的电子邮件我只是无法从域中发送电子邮件到交换服务器。
谢谢!
答案 0 :(得分:0)
似乎我在/ etc / postfix / transport和/ var / spool / postfix / plesk / transport文件中有gencom.us smtp:206.225.87.101。一旦被移除的东西再次开始工作。