Postfix Spam Filter using Ubuntu Dapper, MailScanner, SpamAssassin, Razor, Pyzor, DCC

Discussion in 'HOWTO-Related Questions' started by rapidos, Sep 16, 2008.

  1. rapidos

    rapidos New Member

    Hello I followed this howto:
    Postfix Spam Filter using Ubuntu Dapper, MailScanner, SpamAssassin, Razor, Pyzor, DCC and ClamAV

    Everything worked fine but since I got mailscanner on board mails dont get delivered anymore ...

    Code:
    Sep 16 17:17:20 gate postfix/smtpd[3997]: connect from mail-gx0-f19.google.com[209.85.217.19]
    Sep 16 17:17:20 gate postfix/smtpd[3997]: BBAB9B7DBF: client=mail-gx0-f19.google.com[209.85.217.19]
    Sep 16 17:17:21 gate postfix/cleanup[3999]: BBAB9B7DBF: hold: header Received: from mail-gx0-f19.google.com (mail-gx0-f19.google.com [209.85.217.19])??by gate.myhome.fr (Postfix) with ESMTP id BBAB9B7DBF??for <[email protected]>; Tue, 16 Sep 2008 17:17:20 +0200 (CE from mail-gx0-f19.google.com[209.85.217.19]; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail-gx0-f19.google.com>
    Sep 16 17:17:21 gate postfix/cleanup[3999]: BBAB9B7DBF: message-id=<[email protected]>
    Sep 16 17:17:21 gate MailScanner[2211]: New Batch: Scanning 1 messages, 3869 bytes
    Sep 16 17:17:26 gate MailScanner[2211]: Virus and Content Scanning: Starting
    
    but nothing more... It looks like the mail scanner starts but never ends ..

    Has anyone an idea about this issue ?

    Thank you for your help

    Julien
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Do the other logs contain any errors?
     
  3. rapidos

    rapidos New Member

    Hi falko,
    I just figured out that the system was trying to acces to the mount point /var/spool

    so i added a new partition and mounted it properly on /var/spool

    I ran the LINUX2 command again, set right permissions according to the "postfix check" command and now I'm in another trap:

    Code:
    Sep 18 10:52:48 gate postfix/master[2643]: warning: master_wakeup_timer_event: service qmgr(public/qmgr): Permission denied
    Sep 18 10:52:48 gate postfix/master[2643]: warning: master_wakeup_timer_event: service pickup(public/pickup): Permission denied
    Sep 18 10:53:48 gate postfix/master[2643]: warning: master_wakeup_timer_event: service pickup(public/pickup): Permission denied
    Sep 18 10:54:48 gate postfix/master[2643]: warning: master_wakeup_timer_event: service pickup(public/pickup): Permission denied
    Sep 18 10:55:48 gate postfix/master[2643]: warning: master_wakeup_timer_event: service pickup(public/pickup): Permission denied
    Sep 18 10:56:48 gate postfix/master[2643]: warning: master_wakeup_timer_event: service pickup(public/pickup): Permission denied
    Sep 18 10:57:49 gate postfix/master[2643]: warning: master_wakeup_timer_event: service qmgr(public/qmgr): Permission denied
    Sep 18 10:57:49 gate postfix/master[2643]: warning: master_wakeup_timer_event: service pickup(public/pickup): Permission denied
    Sep 18 10:58:49 gate postfix/master[2643]: warning: master_wakeup_timer_event: service pickup(public/pickup): Permission denied
    Sep 18 10:59:49 gate postfix/master[2643]: warning: master_wakeup_timer_event: service pickup(public/pickup): Permission denied
    Sep 18 11:00:49 gate postfix/master[2643]: warning: master_wakeup_timer_event: service pickup(public/pickup): Permission denied
    
    I'll go through the howto once again and recheck everything, but if you have any idea, please let me know !

    Cheers,
    Julien

    Ps: thanks for your time ;-)
     
    Last edited: Sep 18, 2008
  4. rapidos

    rapidos New Member

    I also tried to run

    postfix set-permissions

    but It always asks me for files that doesn't exist on my system.

    I tried to download many of them, but I just not stop to ask me more and more files ...
     
  5. rapidos

    rapidos New Member

    Ok,
    never mind !

    I reverted to an eralier snapshot (thanks vmware)

    I moved everything from /var/spool to a backup dir

    and then mounted /var/spool

    and removed everything into the proper directory.

    Now I'm still running in the trap that I encountered at the beggining of the post :'(

    Thanks for everything
     
    Last edited: Sep 18, 2008
  6. falko

    falko Super Moderator Howtoforge Staff

    I'm sorry, but I don't know where this problem comes from. :(
     
  7. rapidos

    rapidos New Member

    Hey falko,
    I tried to run freshclam and the update failed, so I tried to upgrade it but it didn't work.

    So I uninstalled clamav and now emails are getting delivered.

    The only problem is that an email containing words such as viagra is not detected as spam .... How could I be sure that spamassassin, pyzor, and dcc are really working ? Is there a delay before spamassassin starts to notify an email as spam ?

    Thanks a lot for your help
     
  8. falko

    falko Super Moderator Howtoforge Staff

    No, but SpamAssassin is learning from your emails, so it will become better over time.
     
  9. rapidos

    rapidos New Member

    Ok,
    so, just to be sure, it is normal that spamassassin doesn't mark one single e-mail that contains the word viagra because it just doesn't know what it is (yet) ?


    I thought that some basic rules would have been implemented to prevent from such e-mail that just can't be false positive ...

    Thanks for your help falko
     
  10. falko

    falko Super Moderator Howtoforge Staff

    If you simply write an email with the word viagra in it, it would hardly count as spam. SpamAssassin runs hundreds of tests to find out if an email is spam or not. The existence of a single word is not enough.
     
  11. rapidos

    rapidos New Member

    All right,
    I'll let it do for a while and see how all this thing works :)

    Just one more question:
    I configured the reject_rbl_client param and now everytime that an email is being rejected my gateway is sending an email to the sender. And I'm (postmaster) receiving a response from the server that says that the mail could not be delivered ...

    I checked on google but I didn't found any parameter to tell postfix to not send failure notice e-mails ...

    Thanks a lot
     

Share This Page