我正试图获得幕后工作。 我已经按照手册页 ,它已经正确运行smtp。
但它也想用它作为smtps(在master.cf添加与smtp相同的行,但使用smtps ),我在syslog中收到失败消息,如:
postfix/postscreen[8851]: fatal: btree:/var/lib/postfix/postscreen_cache: unable to get exclusive lock: Resource temporarily unavailable
有人说,邮政屏幕只能运行一次; 没关系。 但是,我可以使用smtp和smtps相同的postscreen会话吗? 如果没有,如何启用邮政的屏幕为好?
任何帮助将会是明智的!
configuration的部分:
main.cf postscreen_access_list = permit_mynetworks,cidr:/etc/postfix/postscreen_access.cidr
postscreen_dnsbl_threshold = 8 postscreen_dnsbl_sites = dnsbl.ahbl.org*3 dnsbl.njabl.org*3 dnsbl.sorbs.net*3 pbl.spamhaus.org*3 cbl.abuseat.org*3 bl.spamcannibal.org*3 nsbl.inps.de*3 spamrbl.imp.ch*3 postscreen_dnsbl_action = enforce postscreen_greet_action = enforce
master.cf (全)
smtpd pass - - n - - smtpd smtp inet n - n - 1 postscreen tlsproxy unix - - n - 0 tlsproxy dnsblog unix - - n - 0 dnsblog ### the problematic line ### smtps inet n - - - - smtpd pickup fifo n - - 60 1 pickup cleanup unix n - - - 0 cleanup qmgr fifo n - n 300 1 qmgr tlsmgr unix - - - 1000? 1 tlsmgr rewrite unix - - - - - trivial-rewrite bounce unix - - - - 0 bounce defer unix - - - - 0 bounce trace unix - - - - 0 bounce verify unix - - - - 1 verify flush unix n - - 1000? 0 flush proxymap unix - - n - - proxymap proxywrite unix - - n - 1 proxymap smtp unix - - - - - smtp relay unix - - - - - smtp showq unix n - - - - showq error unix - - - - - error retry unix - - - - - error discard unix - - - - - discard local unix - nn - - local virtual unix - nn - - virtual lmtp unix - - - - - lmtp anvil unix - - - - 1 anvil scache unix - - - - 1 scache dovecot unix - nn - - pipe flags=DRhu user=virtuser:virtuser argv=/usr/bin/spamc -e /usr/lib/dovecot/deliver -d ${recipient} -f {sender}
为SMTPS启用postscreen是没有意义的。
Postscreen被发明来阻止垃圾邮件攻击真正的SMTP服务器。 但是我从来没有见过使用SMTPS的垃圾邮件。 只有真正的服务器使用SMTPS也绕过屏幕后防线。 所以你的方法是无用的。