Что бы работал greylisting в eximЧто бы это чудо заработало (а по умолчанию не включено) нужно скопировать /usr/ports/mail/exim/work/sa-exim-4.2/Greylisting.pm в /usr/local/lib/perl5/site_perl/5.6.2/Mail/SpamAssassin/Plugin и прописать в /usr/local/etc/mail/spamassassin/local.cf # Note the 'key' -> 'value'; syntax. It's a special hack to go through SA's# config parser. You need to keep that exact syntax # greylistsecs: how long you greylist a tuplet because whitelisting it # greylistnullfrom: set to 1 to also greylist mail with a null env from # greylistfourthbyte: keep the 4 bytes of the connecting host instead of 3 loadplugin Greylisting /usr/share/perl5/Mail/SpamAssassin/Plugin/Greylisting.pm header GREYLIST_ISWHITE eval:greylisting("( 'dir' => '/var/spool/sa-exim/tuplets'; 'method' => 'dir'; 'greylistsecs' => '1800'; 'dontgreylistthreshold' => 11; 'connectiphdr' => 'X-SA-Exim-Connect-IP'; 'envfromhdr' => 'X-SA-Exim-Mail-From'; 'rcpttohdr' => 'X-SA-Exim-Rcpt-To'; 'greylistnullfrom' => 1; 'greylistfourthbyte' => 0 )") describe GREYLIST_ISWHITE The incoming server has been whitelisted for this recipient and sender score GREYLIST_ISWHITE -1.5 # Run SpamAssassin last, after all other rules. # (lets us not greylist a host that is sending spam, otherwise this rule might # set a sufficiently negative score that the next spam would be allowed in) priority GREYLIST_ISWHITE 99999 Оставить комментарий |
© Максим Прокопов 2005-2024 | О сервере |