Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 16th September 2008, 17:24
rapidos rapidos is offline
Junior Member
 
Join Date: Aug 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Postfix Spam Filter using Ubuntu Dapper, MailScanner, SpamAssassin, Razor, Pyzor, DCC

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 <test@myhome.com>; Tue, 16 Sep 2008 17:17:20 +0200 (CE from mail-gx0-f19.google.com[209.85.217.19]; from=<me@gmail.com> to=<test@myhome.com> proto=ESMTP helo=<mail-gx0-f19.google.com>
Sep 16 17:17:21 gate postfix/cleanup[3999]: BBAB9B7DBF: message-id=<548d37030809160817s89973b6v9e8c619630378cd@mail.gmail.com>
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
Reply With Quote
Sponsored Links
  #2  
Old 17th September 2008, 17:44
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,727 Times in 2,565 Posts
Default

Do the other logs contain any errors?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 18th September 2008, 11:02
rapidos rapidos is offline
Junior Member
 
Join Date: Aug 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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 by rapidos; 18th September 2008 at 11:22.
Reply With Quote
  #4  
Old 18th September 2008, 12:05
rapidos rapidos is offline
Junior Member
 
Join Date: Aug 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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 ...
Reply With Quote
  #5  
Old 18th September 2008, 12:35
rapidos rapidos is offline
Junior Member
 
Join Date: Aug 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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 by rapidos; 18th September 2008 at 12:42.
Reply With Quote
  #6  
Old 19th September 2008, 18:05
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,727 Times in 2,565 Posts
Default

I'm sorry, but I don't know where this problem comes from.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 20th September 2008, 01:03
rapidos rapidos is offline
Junior Member
 
Join Date: Aug 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #8  
Old 20th September 2008, 13:39
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,727 Times in 2,565 Posts
Default

Quote:
Originally Posted by rapidos View Post
Is there a delay before spamassassin starts to notify an email as spam ?
No, but SpamAssassin is learning from your emails, so it will become better over time.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 20th September 2008, 14:13
rapidos rapidos is offline
Junior Member
 
Join Date: Aug 2008
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #10  
Old 21st September 2008, 19:20
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,727 Times in 2,565 Posts
 
Default

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.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 8.04 Spamsnake - all SA scores 0.00 Thomas_Powers HOWTO-Related Questions 23 24th June 2008 17:37
network issues now it says "401 The web site is blocked by administrator" Check General 3 26th February 2008 14:22
Apache2 Freezes celtic Server Operation 31 28th May 2007 17:18
Postfix Spam Filter using Ubuntu Dapper, MailScanner, SpamAssassin, Razor, Pyzor, DCC juro HOWTO-Related Questions 10 22nd March 2007 19:01
help with the Postfix Spam Filter using Ubuntu Dapper, MailScanner... tutorial the block Suggest HOWTO 1 8th November 2006 18:20


All times are GMT +2. The time now is 18:38.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.