大网数据广告活动
服务器运维问答

default value for auto-whitelist-clients in postgrey dangerous

· 52CE 我爱测

The postgrey manual sais: --auto-whitelist-clients=N whitelist host after first successful delivery N is the minimal count of mails before a client is whitelisted (turned on by default with value 5) specify N=0 to disable. As I u…

问题原文

原帖链接 · rubo77 · CC BY-SA 3.0

The postgrey manual sais:

--auto-whitelist-clients=N whitelist host after first successful delivery N is the minimal count of mails before a client is whitelisted (turned on by default with value 5) specify N=0 to disable.

As I understand, this would for example automatically whitelist gmail.com completely, whenever I get 5 emails from different gmail users. Isn't that dangerous?, because there are a lot of spammers sending from that host.

已采纳解答

原帖链接 · Alexis Wilke · CC BY-SA 3.0

No. This is not a problem.

Actually, all large entities could just be in your /etc/postgrey/whitelist_clients because you do not have a choice. Their mail server will anyway re-send emails and thus it won't make any difference. You will always receive those emails.

Where Postgrey is useful is with stupid mail server created by spammers. Those mail server will get a 450 and abandon the feat completely (more and more they do it right, though, and try again just like normal mail servers...)

Any mail server that is capable of registering the 450 reply and re-send the email a few minutes later (or 12 hours later... it will depend on the sender's server setup!) can 100% safely be white listed forever. It will make no difference (except that you will reply with a 450 once in a while when your server should already know that it won't be necessary to do that, so it's actually a waste if you do the 450 against servers that do not require it!)

Additionally one reason to have a temporary whitelist is to make sure that if a server changes hands and is now owned by a spammer, Postgrey can reacted accordingly. For systems like gmail, hotmail, yahoo, that won't ever happen.


I actually find it annoying that Postgrey forgets hosts all the time... because my same customers have to go through Postgrey again each time they send me a new email a few months later. So I use this option to limit the amount of time that postgrey will remember that host:

--max-age=N delete entries older than N days since the last time that they have been seen (default: 35)

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-02-21)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。