
hugo.monteiro at fct
May 5, 2008, 4:19 PM
Post #2 of 11
(676 views)
Permalink
|
|
Re: mailfront / qmail-qfilter / vmailmgr "spring'08 cleanup" required...
[In reply to]
|
|
Olivier Mueller wrote: > Hello, > > Since a few years, I've been using this basic qmail-smtpd / cvm > validation setup on some servers based on qmail + vmailmgr: > http://qmail.omnis.ch/om/current_setup_20080505/ > Then I added some basic antispam stuff (ospam, based on .qmail files), > and everything was fine. > > But now since a few weeks/months, it seems it is not enough anymore > (cf. my mail with subject 'issues because of forwarded mails : "550 Too > many errors from your IP"') : even without local problems > (scripts/customers sending spams), servers are getting blacklisted from > time to time, and I would like to prevent that... > > Now, I'm thinking about adding: > - spam check on smtp level as well (to prevent problems with spams > sent to local users with forwarding addresses), and reporting status > like this mail server for example (not just "message refused"): > > @40000000481f7eaf0a90cfa4 starting delivery 10823: msg 940105 to remote > om1234[at]example.com > @40000000481f7eaf0a90e32c status: local 12/100 remote 2/120 > @40000000481f7eb81ef77f74 delivery 10823: failure: > 213.160.40.17_failed_after_I_sent_the_message./Remote_host_said:_554_5.7.1_Spamassassin-Score:_18.1 > 01_>=_7_:_Content_indicates_spam:_BAYES_50,DCC_CHECK,DIGEST_MULTIPLE,DNS_FROM_RFC_DSN,GIF_IMAGE_EXTRA_3,HTML_MESSAGE,IMPPYZOR_CHECK,LONGWORD,MIME_HTML > _ONLY,RAZOR2_CF_RANGE_51_100,RAZOR2_CF_RANGE_E4_51_100,RAZOR2_CHECK,RBL_COMBO_A_2,RBL_COMBO_PS_2,RCVD_IN_CBL_SPAM,RCVD_IN_UCE_SPAM,SPAMPIC_SUSPECT,SPA > MTRAP_COMBO_2,TDE_RO_BV_GRATIS,TDE_WS_BV_PREIS1/ > @40000000481f7eb81ef7a684 status: local 3/100 remote 3/120 > @40000000481f7eb8309412c4 bounce msg 940105 qp 25730 > > - greylisting in some cases (spamdyke looks promising?) > - better use of rbl's (with possibility for the users to turn this > on/off depending on the user preferences) > - stuff to detect expired mail forwarders (the one from Jeremy is good, > but maybe "too" strong for sensitive servers, for example with a > server sending a 554 like the one a few lines up) > > So I just would like to know: how are you handling all that on your > servers? If you have some sample setup / scripts, that would be > nice... :) And it shouldn't if possible be based on qmail patches > (beside QMAILQUEUE). I spent a moment browsing & searching for > solutions this afternoon, but all I could find were old / outdated > scripts, and I'd be glad not having to reinvent the wheel again. The > solution may also cost a little bit if really necessary... > > Thanks & regards from Zürich, > Olivier > > > Hello Olivier, i have never used vmailmgr, but from what i remember from the documentation i once read, it lives along with a vanilla qmail install. In that case, and although you've mentioned that you would prefer approaches that wouldn't involve patching qmail, i'd like to share two possibilities that have been of extreme benefit to me. Greylisting(++) and Greeting Delay. Apparently spamdyke allows similar features, although apparently they announce greeting delay as being able to "stop earlytalkers", without patching qmail but i find extra handy the additional goodies. Those are provided by the not so new envelope scanning patch for qmail, in which i altered the scanner call to allow passing the HELO from the connecting server. This way, and making use of a scanner that connects to a policyd server i have a centralized way to control greylisting, whitelisting and blacklisting by IP address/netblock, dns name, sender and recipient with wildcard support, preform HELO/EHLO checking with automatic blacklisting, sender and recipient throttling in terms of message count and preform automatic spamtrapping. About the greeting delay patch, i'm using John Simpson's patch, with a small change to allow automatic disabling in the case RELAYCLIENT is set and/or the user has successfully authenticated himself (i also use the smtpauth-tls patch that is part of netqmail). You can read more and peek the code in the following links respectivelly, http://hmonteiro.net/patches:qmail_envelope_scan and http://hmonteiro.net/patches:qmail_greetdelay Best regards, Hugo Monteiro. -- ci.fct.unl.pt:~# cat .signature Hugo Monteiro Email : hugo.monteiro[at]fct.unl.pt Telefone : +351 212948300 Ext.15307 Centro de Informática Faculdade de Ciências e Tecnologia da Universidade Nova de Lisboa Quinta da Torre 2829-516 Caparica Portugal Telefone: +351 212948596 Fax: +351 212948548 www.ci.fct.unl.pt apoio[at]fct.unl.pt ci.fct.unl.pt:~# _
|