我发现我的服务器是一个开放的中继。 我问了这个问题,并尝试了所有的答案在我的后缀已疯了,是妥协,但仍然其行事。 每次我运行#postsuper -d ALL我得到数以千计的电子邮件被删除。
#postqueue -p输出#postqueue -p
[email protected] 76F99164161 6273 8月19日星期五00:59:30 MAILER-DAEMON (主机d.mx.mail.yahoo.com [209.191.88.254]拒绝和我说话:421 4.7.0 [TS01]来自50.57.111.177的邮件由于用户投诉而暂时被延期 - 4.16.55.1;请参见http:// postmaster.yahoo.com/421-ts01.html) [email protected] 7A99B1640ED 2181 8月19日星期五00:58:59 [email protected] (主机mx1.hotmail.com [65.55.37.88]说:421 RP-001(COL0-MC2-F4)不幸的是,一些来自50.57.111.177的消息没有发送,请再试一次。每小时发送一次,也可以参考http://mail.live.com/mail/troubleshooting.aspx#errors。(回复MAIL FROM命令)) [email protected] [email protected] 7FAF7164140 1304 8月19日星期五00:59:25 [email protected] (主机mx1.hotmail.com [65.55.92.184]说:421 RP-001(SNT0-MC4-F33)不幸的是,一些来自50.57.111.177的消息没有发送,请重试。每小时发送一次,也可以参考http://mail.live.com/mail/troubleshooting.aspx#errors。(在MAIL FROM命令中回复)) [email protected] [email protected] [email protected] [email protected] [email protected] (交付暂时中止:在发送RCPT TO时与mx2.hotmail.com [65.55.37.72]失去连接) [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] 7C5BF1640DE 2021 8月19日星期五00:58:55 [email protected] (主机mx1.mail.tw.yahoo.com [203.188.197.119]拒绝跟我说话:421 4.7.0 [TS01]来自50.57.111.177的邮件由于用户投诉而暂时被延期 - 4.16.55.1;请参见http:// postmaster.yahoo.com/421-ts01.html) [email protected] (主机h.mx.mail.yahoo.com [66.94.236.34]拒绝跟我说话:421 4.7.0 [TS01]来自50.57.111.177的邮件由于用户投诉而暂时被推迟 - 4.16.55.1;参见http:// postmaster.yahoo.com/421-ts01.html) [email protected] (主机mx4.hotmail.com [65.55.37.120]说:421 RP-001(COL0-MC4-F3)不幸的是,一些来自50.57.111.177的消息没有发送,请重试。每小时发送一次,也可以参考http://mail.live.com/mail/troubleshooting.aspx#errors。(回复MAIL FROM命令)) [email protected] [email protected] [email protected] 7BCB31641CA 2000年8月19日星期五00:59:46 [email protected] (交付暂时中止:在发送RCPT TO时与mx2.hotmail.com [65.55.37.72]失去连接) [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] (主机mx3.hotmail.com [65.54.188.94]说:421 RP-001(BAY0-MC2-F9)不幸的是,一些来自50.57.111.177的消息没有发送,请再试一次。每小时发送一次,也可以参考http://mail.live.com/mail/troubleshooting.aspx#errors。(回复MAIL FROM命令)) [email protected] [email protected] [email protected] [email protected] 751AF16418F 1823 8月19日星期五00:59:33 [email protected] (交付暂时中止:在发送RCPT TO时与mx2.hotmail.com [65.55.37.72]失去连接) [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [root @ veepiz〜]#postsuper -d ALL 后缀:删除:386消息 [root @ veepiz〜]#postsuper -d ALL postsuper:删除:2条消息 [root @ veepiz〜]# 这里是邮件日志中的最后200个条目 Aug 19 01:13:11 veepiz opendkim [28080]:OpenDKIMfilter:无法在conn inet上创build监听套接字:20209 @ localhost 8月19日01:13:11 veepiz opendkim [28080]:smfi_opensocket()失败 8月19日01:13:11 veepiz opendkim [28081]:OpenDKIM筛选器:无法绑定到端口inet:20209 @ localhost:地址已在使用中 Aug 19 01:13:11 veepiz opendkim [28081]:OpenDKIMfilter:无法创build监听套接字conn inet:20209 @ localhost 8月19日01:13:11 veepiz opendkim [19570]:退出状态69,重新启动 8月19日01:13:11 veepiz opendkim [28081]:smfi_opensocket()失败 8月19日01:13:11 veepiz opendkim [28082]:OpenDKIM筛选器:无法绑定到端口inet:20209 @ localhost:地址已在使用中 Aug 19 01:13:11 veepiz opendkim [28082]:OpenDKIMfilter:无法创build监听套接字conn inet:20209 @ localhost 8月19日01:13:11 veepiz opendkim [28082]:smfi_opensocket()失败 8月19日01:13:11 veepiz opendkim [6273]:退出状态69,重新启动 8月19日01:13:11 veepiz opendkim [19570]:退出状态69,重新启动 Aug 19 01:13:11 veepiz opendkim [28083]:OpenDKIM筛选器:无法绑定到端口inet:20209 @ localhost:地址已在使用中 Aug 19 01:13:11 veepiz opendkim [28084]:OpenDKIM筛选器:无法绑定到端口inet:20209 @ localhost:地址已在使用中 8月19日01:13:11 veepiz postfix / smtpd [28332]:NOQUEUE:拒绝:来自未知的RCPT [220.227.90.238]:554 5.7.1:中继访问被拒绝; 从=到=原= SMTP helo = 8月19日01:13:11 veepiz postfix / smtpd [29849]:478C31642C2:拒绝:来自未知的RCPT [46.191.138.61]:554 5.7.1:中继访问被拒绝; 从=到=原= SMTP helo = Aug 19 01:13:11 veepiz opendkim [28083]:OpenDKIMfilter:无法创build监听套接字conn inet:20209 @ localhost 8月19日01:13:11 veepiz postfix / smtpd [25922]:AD8671642EA:拒绝:来自未知的RCPT [195.239.156.234]:554 5.7.1:中继访问被拒绝; 从=到=原= SMTP helo = Aug 19 01:13:11 veepiz postfix / smtp [6799]:69DB816427F:to =,relay = g.mx.mail.yahoo.com [98.137.54.238]:25,delay = 51,delay = 50 / 0.01 / 0.55 / 0,dsn = 4.7.0,status = deferred(主机g.mx.mail.yahoo.com [98.137.54.238]拒绝跟我说话:421 4.7.0 [TS01]来自50.57.111.177的消息暂时由于用户投诉 - 4.16.55.1;见http://postmaster.yahoo.com/421-ts01.html) Aug 19 01:13:11 veepiz opendkim [28084]:OpenDKIMfilter:无法创build监听套接字conn inet:20209 @ localhost 8月19日01:13:11 veepiz opendkim [28083]:smfi_opensocket()失败 8月19日01:13:11 veepiz后缀/ smtp [31828]:64D901642DD:主机mx1.hotmail.com [65.55.92.184]说:421 RP-001(SNT0-MC4-F29)不幸的是,一些来自50.57.111.177的消息aren不发送。 请再试一次。 我们限制每小时和每天发送多less条消息。 你也可以参考http://mail.live.com/mail/troubleshooting.aspx#errors。 (回复MAIL FROM命令) 8月19日01:13:11 veepiz postfix / smtpd [27099]:229DD1642DB:拒绝:来自未知的RCPT [218.2.81.49]:554 5.7.1:中继访问被拒绝; 从=到=原= SMTP helo = 8月19日01:13:11 veepiz opendkim [6273]:退出状态69,重新启动 Aug 19 01:13:11 veepiz opendkim [28091]:OpenDKIMfilter:无法创build监听套接字conn inet:20209 @ localhost 8月19日01:13:11 veepiz postfix / smtpd [30005]:9703B1642E0:拒绝:来自li371-14.members.linode.com的RCPT [96.126.122.14]:554 5.7.1:中继访问被拒绝; 从=到=原= SMTP helo = Aug 19 01:13:11 veepiz postfix / smtp [31828]:64D901642DD:与mx1.hotmail.com丢失连接[65.55.92.184],同时发送RCPT TO Aug 19 01:13:11 veepiz postfix / smtp [2802]:69DB816427F:to =,relay = alt1.gmail-smtp-in.l.google.com [74.125.113.27]:25,delay = 51,delay = 50 /0/0.41/0.24,dsn = 2.0.0,status = sent(250 2.0.0 OK 1313705613 ck9si6068954vdc.130) Aug 19 01:13:11 veepiz opendkim [28092]:OpenDKIMfilter:无法绑定到端口inet:20209 @ localhost:地址已在使用中 8月19日01:13:11 veepiz postfix / smtpd [28266]:NOQUEUE:拒绝:来自未知的RCPT [200.11.138.106]:554 5.7.1:中继访问被拒绝; 从=到=原= SMTP helo = 8月19日01:13:11 veepiz postfix / smtpd [29703]:58A181642AD:拒绝:来自未知的RCPT [91.212.182.135]:554 5.7.1:中继访问被拒绝; 从=到=原= SMTP helo = 8月19日01:13:11 veepiz postfix / smtpd [29969]:断开与未知[190.110.86.206] 8月19日01:13:11 veepiz postfix / smtpd [29580]:784071642DC:拒绝:来自未知的RCPT [187.2.153.162]:554 5.7.1:中继访问被拒绝; 从=到=原= SMTP helo = 8月19日01:13:11 veepiz postfix / smtpd [28444]:NOQUEUE:拒绝:来自未知的RCPT [200.11.138.106]:554 5.7.1:中继访问被拒绝; 从=到=原= SMTP helo = Aug 19 01:13:11 veepiz postfix / smtpd [29995]:NOQUEUE:reject:来自LAubervilliers的RCPT-151-11-6-238.w193-251.abo.wanadoo.fr [193.251.53.238]:554 5.7.1 : 中继访问被拒绝; 从=到=原= SMTP helo = 8月19日01:13:11 veepiz opendkim [28091]:smfi_opensocket()失败 8月19日01:13:11 veepiz postfix / smtpd [29648]:31044164282:拒绝:来自未知的RCPT [189.208.110.210]:554 5.7.1:中继访问被拒绝; 从=到=原= SMTP helo = 8月19日01:13:11 veepiz后缀/ smtp [31818]:64D901642DD:主机mx3.hotmail.com [65.54.188.126]说:421 RP-001(BAY0-MC4-F44)不幸的是,一些来自50.57.111.177的消息aren不发送。 请再试一次。 我们限制每小时和每天发送多less条消息。 你也可以参考http://mail.live.com/mail/troubleshooting.aspx#errors。 (回复MAIL FROM命令) 8月19日01:13:11 veepiz postfix / smtpd [27350]:NOQUEUE:拒绝:来自li371-14.members.linode.com的RCPT [96.126.122.14]:554 5.7.1:中继访问被拒绝; 从=到=原= SMTP helo = Aug 19 01:13:11 veepiz opendkim [28092]:OpenDKIMfilter:无法在conn inet上创build侦听套接字:20209 @ localhost 8月19日01:13:11 veepiz opendkim [19570]:退出状态69,重新启动 Aug 19 01:13:11 veepiz postfix / smtp [31818]:64D901642DD:与mx3.hotmail.com丢失连接[65.54.188.126],同时发送RCPT TO 8月19日01:13:11 veepiz opendkim [28092]:smfi_opensocket()失败 Aug 19 01:13:11 veepiz opendkim [28093]:OpenDKIM筛选器:无法绑定到端口inet:20209 @ localhost:地址已在使用中 8月19日01:13:11 veepiz postfix / smtpd [28818]:DCE801642D2:拒绝:来自未知的RCPT [201.90.70.99]:554 5.7.1:中继访问被拒绝; 从=到=原= SMTP helo = 8月19日01:13:11 veepiz postfix / smtpd [25126]:NOQUEUE:拒绝:来自未知的RCPT [208.87.240.34]:554 5.7.1:中继访问被拒绝; 从=到=原= SMTP helo = Aug 19 01:13:11 veepiz opendkim [28111]:OpenDKIMfilter:无法创build监听套接字conn inet:20209 @ localhost 8月19日01:13:11 veepiz opendkim [6273]:退出状态69,重新启动 8月19日01:13:11 veepiz postfix / smtpd [29057]:54C2C1642CC:拒绝来自未知[208.87.240.34]的RCPT:554 5.7.1:中继访问被拒绝; 从=到=原= SMTP helo = Aug 19 01:13:11 veepiz postfix / cleanup [29438]:940B01642E5:message-id = 8月19日01:13:11 veepiz opendkim [19570]:退出状态69,重新启动 Aug 19 01:13:11 veepiz opendkim [28117]:OpenDKIMfilter:无法绑定到端口inet:20209 @ localhost:地址已在使用中 Aug 19 01:13:11 veepiz postfix / smtp [31828]:64D901642DD:to =,relay = mx2.hotmail.com [65.55.92.184]:25,delay = 14,delay = 14 / 0.02 / 0.34 / 0.04,dsn = 4.0.0,status = deferred(主机mx2.hotmail.com [65.55.92.184]说:421 RP-001(SNT0-MC4-F26)不幸的是,一些来自50.57.111.177的消息没有被发送,请重试。我们限制每小时和每天发送多less条消息,也可以参考http://mail.live.com/mail/troubleshooting.aspx#errors(在回复MAIL FROM命令中)) 8月19日01:13:11 veepiz postfix / smtpd [28988]:NOQUEUE:拒绝:来自ns353096.ovh.net的RCPT [91.121.90.130]:554 5.7.1:中继访问被拒绝; 从=到=原= SMTP helo = Aug 19 01:13:11 veepiz opendkim [1533]:940B01642E5:proxy.ezaya.fr [94.23.180.150] not internal 8月19日01:13:11 veepiz opendkim [28117]:OpenDKIM筛选器:无法创build侦听套接字conn inet:20209 @ localhost 8月19日01:13:11 veepiz opendkim [1533]:940B01642E5:未validation 8月19日01:13:11 veepiz opendkim [28117]:smfi_opensocket()失败 Aug 19 01:13:11 veepiz postfix / smtp [31828]:64D901642DD:to =,relay = mx2.hotmail.com [65.55.92.184]:25,delay = 14,delay = 14 / 0.02 / 0.34 / 0.04,dsn = 4.0.0,status = deferred(主机mx2.hotmail.com [65.55.92.184]说:421 RP-001(SNT0-MC4-F26)不幸的是,一些来自50.57.111.177的消息没有被发送,请重试。我们限制每小时和每天发送多less条消息,也可以参考http://mail.live.com/mail/troubleshooting.aspx#errors(在回复MAIL FROM命令中)) 8月19日01:13:11 veepiz opendkim [28118]:OpenDKIM筛选器:无法绑定到端口inet:20209 @ localhost:地址已在使用中 Aug 19 01:13:11 veepiz opendkim [28118]:OpenDKIMfilter:无法在conn inet上创build监听套接字:20209 @ localhost Aug 19 01:13:11 veepiz postfix / smtp [31828]:64D901642DD:to =,relay = mx2.hotmail.com [65.55.92.184]:25,delay = 14,delay = 14 / 0.02 / 0.34 / 0.04,dsn = 4.0.0,status = deferred(主机mx2.hotmail.com [65.55.92.184]说:421 RP-001(SNT0-MC4-F26)不幸的是,一些来自50.57.111.177的消息没有被发送,请重试。我们限制每小时和每天发送多less条消息,也可以参考http://mail.live.com/mail/troubleshooting.aspx#errors(在回复MAIL FROM命令中)) 8月19日01:13:11 veepiz opendkim [28118]:smfi_opensocket()失败 8月19日01:13:11 veepiz opendkim [6273]:退出状态69,重新启动 Aug 19 01:13:11 veepiz postfix / smtp [31828]:64D901642DD:to =,relay = mx2.hotmail.com [65.55.92.184]:25,delay = 14,delay = 14 / 0.02 / 0.34 / 0.04,dsn = 4.0.0,status = deferred(主机mx2.hotmail.com [65.55.92.184]说:421 RP-001(SNT0-MC4-F26)不幸的是,一些来自50.57.111.177的消息没有被发送,请重试。我们限制每小时和每天发送多less条消息,也可以参考http://mail.live.com/mail/troubleshooting.aspx#errors(在回复MAIL FROM命令中)) relay = mx2.hotmail.com [65.55.92.184]:25,delay = 14,delay = 14 / 0.02 / 0.34 / 0.04,dsn = 4.0.0,status = deferred(host mx2.hotmail.com [65.55.92.184]说:421 RP-001(SNT0-MC4-F26)遗憾的是,一些来自50.57.111.177的消息没有被发送,请重试,我们对每小时和每天发送的消息数量有限制。到http://mail.live.com/mail/troubleshooting.aspx#errors。(回复MAIL FROM命令)) 8月19日01:13:11 veepiz postfix / smtpd [26516]:NOQUEUE:拒绝:来自未知的RCPT [201.236.80.197]:554 5.7.1:中继访问被拒绝; 从=到=原= SMTP helo = 8月19日01:13:11 veepiz opendkim [28120]:OpenDKIM筛选器:无法绑定到端口inet:20209 @ localhost:地址已在使用中 Aug 19 01:13:11 veepiz opendkim [28120]:OpenDKIMfilter:无法在conn inet上创build监听套接字:20209 @ localhost Aug 19 01:13:11 veepiz postfix / smtp [31828]:64D901642DD:to =,relay = mx2.hotmail.com [65.55.92.184]:25,delay = 14,delay = 14 / 0.02 / 0.34 / 0.04,dsn = 4.0.0,status = deferred(主机mx2.hotmail.com [65.55.92.184]说:421 RP-001(SNT0-MC4-F26)不幸的是,一些来自50.57.111.177的消息没有被发送,请重试。我们限制每小时和每天发送多less条消息,也可以参考http://mail.live.com/mail/troubleshooting.aspx#errors(在回复MAIL FROM命令中)) 8月19日01:13:11 veepiz opendkim [6273]:退出状态69,重新启动 8月19日01:13:11 veepiz opendkim [28120]:smfi_opensocket()失败 8月19日01:13:11 veepiz postfix / smtpd [29969]:连接来自未知[121.129.73.163] Aug 19 01:13:11 veepiz postfix / smtp [31818]:64D901642DD:to =,relay = mx2.hotmail.com [65.55.92.136]:25,delay = 14,delay = 14 / 0.02 / 0.39 / 0.04,dsn = 4.0.0,status = deferred(主机mx2.hotmail.com [65.55.92.136]说:421 RP-001(SNT0-MC1-F22)不幸的是,一些来自50.57.111.177的消息没有被发送,请重试。我们限制每小时和每天发送多less条消息,也可以参考http://mail.live.com/mail/troubleshooting.aspx#errors(在回复MAIL FROM命令中)) 8月19日01:13:11 veepiz postfix / smtpd [26719]:NOQUEUE:拒绝来自未知[221.235.190.176]的RCPT:554 5.7.1:中继访问被拒绝; 从=到=原= SMTP helo =
main.cf
#全局Postfixconfiguration文件。 该文件只列出一个子集
command_directory = / usr / sbin
daemon_directory = / usr / libexec / postfix
#myhostname = mail.veepiz.com
#myhostname = virtual.domain.tld
#myorigin = $ myhostname
myorigin = veepiz.com
mydestination = $ myhostname,localhost。$ mydomain,$ mydomain
#mydestination = $ myhostname,localhost。$ mydomain,localhost,$ mydomain
#mydestination = $ myhostname,localhost。$ mydomain,localhost,$ mydomain,
#mail。$ mydomain,www。$ mydomain,ftp。$ mydomain
#mynetworks_style = class
#mynetworks_style =子网
mynetworks_style = host
mynetworks = 127.0.0.1
#mynetworks = $ config_directory / mynetworks
#mynetworks = hash:/ etc / postfix / network_table
#relay_domains = veepiz.com
#relayhost = $ mydomain
#relayhost = [gateway.my.domain]
#relayhost = [mailserver.isp.tld]
#relayhost = uucphost
#relayhost = [an.ip.add.ress]
#alias_maps = dbm:/ etc / aliases
alias_maps = hash:/ etc / aliases
#alias_maps = hash:/ etc / aliases,nis:mail.aliases
#alias_maps = netinfo:/别名
#alias_database = dbm:/ etc / aliases
#alias_database = dbm:/ etc / mail / aliases
alias_database = hash:/ etc / aliases
#alias_database = hash:/ etc / aliases,hash:/ opt / majordomo / aliases
home_mailbox = Maildir /
#mail_spool_directory = / var / mail
#mail_spool_directory = / var / spool / mail
#mailbox_command = / some / where / procmail
#mailbox_command = / some / where / procmail -a“$ EXTENSION”
#mailbox_transport = lmtp:unix:/ var / lib / imap / socket / lmtp
#luser_relay = $ [email protected]
#luser_relay = $ [email protected]
#luser_relay = admin + $ local
#
#header_checks = regexp:/ etc / postfix / header_checks
#local_destination_concurrency_limit = 2
#default_destination_concurrency_limit = 20
#debug_peer_level = 2
debugger_command =
PATH = / bin中:在/ usr / bin中:在/ usr / local / bin目录:在/ usr / X11R6 / bin中
xxgdb $ 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
irectory = /usr/share/doc/postfix-2.3.3/samples
#readme_directory:Postfix README文件的位置。
#
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
smtpd_milters = inet:127.0.0.1:20209
non_smtpd_milters = inet:127.0.0.1:20209
milter_protocol = 2
milter_default_action =接受
smtpd_timeout = 30000s
smtpd_recipient_limit = 10000
default_destination_recipient_limit = 50000
initial_destination_concurrency = 50
default_destination_concurrency_limit = 200
max_use = 2000
hopcount_limit = 5000
minimal_backoff_time = 100s
smtpd_hard_error_limit = 2000
/etc/postfix/master.cf
#
smtp inet n - n - - smtpd
皮卡fifo n - n 60 1皮卡
清理unix n - n - 0清理
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - n 300 1 oqmgr
tlsmgr unix - - 1000? 1 tlsmgr
重写unix - - n - - 平凡重写
反弹unix - - n - 0反弹
推迟unix - - n - 0反弹
跟踪unix - - n - 0反弹
validationunix - n - 1validation
flush unix n - n 1000? 0冲水
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp
#将邮件转发为备份MX时,禁用fallback_relay以避免MX循环
中继unix - - n - - smtp
-o fallback_relay =
#-o smtp_helo_timeout = 5 -o smtp_connect_timeout = 5
showq unix n - n - - showq
错误unix - - n - - 错误
丢弃unix - - n - - 丢弃
本地unix - nn - - 本地
虚拟的unix - nn - - 虚拟的
lmtp unix - - n - - lmtp
铁砧unix - - n - 1铁砧
scache unix - - n - 1 scache
maildrop unix - nn - - pipe道
flags = DRhu user = vmail argv = / usr / local / bin / maildrop -d $ {recipient}
老塞鲁斯unix - nn - - pipe道
flags = R user = cyrus argv = / usr / lib / cyrus-imapd / deliver -e -m $ {extension} $ {user}
cyrus unix - nn - - pipe道
user = cyrus argv = / usr / lib / cyrus-imapd / deliver -e -r $ {sender} -m $ {extension} $ {user}
uucp unix - nn - - pipe道
flags = Fqhu user = uucp argv = uux -r -n -z -a $ sender - $ nexthop!rmail($ recipient)
ifmail unix - nn - - pipe道
flags = F user = ftn argv = / usr / lib / ifmail / ifmail -r $ nexthop($ recipient)
bsmtp unix - nn - - pipe道
标志= Fq中。 user = foo argv = / usr / local / sbin / bsmtp -f $ sender $ nexthop $收件人
我刚刚从http://www.abuse.net/relay.html运行了一个开放的中继testing,你的服务器通过了所有的17个中继testing? 可能是本地用户本人正在使用您的服务器进行滥用。
– $