当我从命令行发送邮件时,它应该在哪里结束? (我想从外面反弹所有无效的邮件,因为垃圾邮件。)有没有办法让它出现错误说用户不存在之前,甚至要求的主题?
[root@308321 postfix]# mail notthere Subject: should bounce hello? EOT
这是maillog
Oct 26 05:29:23 308321 postfix/pickup[6510]: 72F51D4775: uid=0 from=<root> Oct 26 05:29:23 308321 postfix/cleanup[6805]: 72F51D4775: message-id=<[email protected]> Oct 26 05:29:23 308321 postfix/qmgr[6511]: 72F51D4775: from=<[email protected]>, size=432, nrcpt=1 (queue active) Oct 26 05:29:23 308321 postfix/virtual[6808]: 72F51D4775: to=<[email protected]>, orig_to=<notthere>, relay=virtual, delay=0.74, delays=0.48/0.01/0/0.25, dsn=5.1.1, status=bounced (unknown user: "[email protected]") Oct 26 05:29:23 308321 postfix/cleanup[6805]: F277DD4776: message-id=<[email protected]> Oct 26 05:29:24 308321 postfix/qmgr[6511]: F277DD4776: from=<>, size=2225, nrcpt=1 (queue active) Oct 26 05:29:24 308321 postfix/bounce[6809]: 72F51D4775: sender non-delivery notification: F277DD4776 Oct 26 05:29:24 308321 postfix/qmgr[6511]: 72F51D4775: removed Oct 26 05:29:24 308321 postfix/virtual[6808]: F277DD4776: to=<[email protected]>, relay=virtual, delay=0.56, delays=0.22/0/0/0.35, dsn=5.1.1, status=bounced (unknown user: "[email protected]") Oct 26 05:29:24 308321 postfix/qmgr[6511]: F277DD4776: removed
一旦收件人被选中,邮件就会被拒绝。 如果你真的想看到什么时候服务器拒绝它尝试使用
telnet server 25
而不是邮件程序。
http://james.apache.org/server/rfclist/smtp/rfc0821.txt在这里你可以find如何做到这一点。
在这里( http://wiki.centos.org/HowTos/postfix_restrictions )你可以findpostfix检查你设置的不同限制。