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 2nd January 2010, 10:30
marmellata marmellata is offline
Junior Member
 
Join Date: Jul 2009
Posts: 29
Thanks: 1
Thanked 0 Times in 0 Posts
Default Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 9.10)

Hello, following the above HowTo I was able to set up a postfix mail server. However I have some doubts about spam filtering (amavisd-new, SpamAssassin and ClamAVis) is actually working. Is there a way to be sure they are working? do I also have to port forwarding some other ports on my router in addition to port 25 ?
The last question is.. do you have an idea why other mail servers always put mail coming from my server in spam folder ?

Thanks in advance forr your support
Reply With Quote
Sponsored Links
  #2  
Old 3rd January 2010, 17:36
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Quote:
Originally Posted by marmellata View Post
Hello, following the above HowTo I was able to set up a postfix mail server. However I have some doubts about spam filtering (amavisd-new, SpamAssassin and ClamAVis) is actually working. Is there a way to be sure they are working?
You should check your mail log and the email headers.

Quote:
Originally Posted by marmellata View Post
do I also have to port forwarding some other ports on my router in addition to port 25 ?
Port 110 for POP3, port 143 for IMAP, port 993 for IMAPS and port 995 for POP3S.

Quote:
Originally Posted by marmellata View Post
The last question is.. do you have an idea why other mail servers always put mail coming from my server in spam folder ?
Please check if your server is blacklisted: http://mxtoolbox.com/blacklists.aspx
__________________
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 3rd January 2010, 19:33
marmellata marmellata is offline
Junior Member
 
Join Date: Jul 2009
Posts: 29
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thanks for your answer as always.
Quote:
You should check your mail log and the email headers.
In squirrelmail looking at email headers it seems to be amavisd is working:
...
X-Virus-Scanned: Debian amavisd-new at mx2.sialpe.com
Received: from mx2.sialpe.com ([127.0.0.1])
by localhost (mx.sialpe.com [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id kKkDY7h55hi5 for <g.parlato@sialpe.com>;
Sun, 3 Jan 2010 19:12:40 +0100 (CET)
...
in mail log what should I see? cause I cant see anything about spam filtering process

Quote:
Port 110 for POP3, port 143 for IMAP, port 993 for IMAPS and port 995 for POP3S.
amavisd 10024 port?
Reply With Quote
  #4  
Old 3rd January 2010, 20:33
marmellata marmellata is offline
Junior Member
 
Join Date: Jul 2009
Posts: 29
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Sorry but sending from a different mail (baboda@cheapnet.it) to my inside mail (g.parlato@sialpe.com) actually I've found amavisd works:

Jan 3 20:13:58 mx postfix/smtpd[4661]: connect from cluster-dns2.cwnet.it[87.238.28.102]
Jan 3 20:14:01 mx postfix/smtpd[4661]: B4BC722F37: client=cluster-dns2.cwnet.it[87.238.28.102]
Jan 3 20:14:04 mx postfix/cleanup[4666]: B4BC722F37: message-id=<99A8F300EA854206A2A7B92DEABADF4C@marmellataLap t>
Jan 3 20:14:04 mx postfix/qmgr[1508]: B4BC722F37: from=<baboda@cheapnet.it>, size=1572, nrcpt=1 (queue active)
Jan 3 20:14:05 mx postfix/smtpd[4661]: disconnect from cluster-dns2.cwnet.it[87.238.28.102]
Jan 3 20:14:11 mx postfix/smtpd[4672]: connect from localhost[127.0.0.1]
Jan 3 20:14:11 mx postfix/smtpd[4672]: A5A31235CD: client=localhost[127.0.0.1]
Jan 3 20:14:11 mx postfix/cleanup[4666]: A5A31235CD: message-id=<99A8F300EA854206A2A7B92DEABADF4C@marmellataLap t>
Jan 3 20:14:11 mx postfix/qmgr[1508]: A5A31235CD: from=<baboda@cheapnet.it>, size=2011, nrcpt=1 (queue active)
Jan 3 20:14:11 mx postfix/smtpd[4672]: disconnect from localhost[127.0.0.1]
Jan 3 20:14:11 mx amavis[1428]: (01428-04) Passed CLEAN, [87.238.28.102] [80.67.127.56] <baboda@cheapnet.it> -> <g.parlato@sialpe.com>, Message-ID: <99A8F300EA854206A2A7B92DEABADF4C@marmellataLapt >, mail_id: Znynqx7wTHmW, Hits: 3.384, size: 1572, queued_as: A5A31235CD, 7143 ms
Jan 3 20:14:11 mx postfix/smtp[4667]: B4BC722F37: to=<g.parlato@sialpe.com>, relay=127.0.0.1[127.0.0.1]:10024, delay=11, delays=3.8/0.02/0.01/7.2, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=01428-04, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as A5A31235CD)
Jan 3 20:14:11 mx postfix/qmgr[1508]: B4BC722F37: removed
Jan 3 20:14:11 mx postfix/virtual[4676]: A5A31235CD: to=<g.parlato@sialpe.com>, relay=virtual, delay=0.11, delays=0.04/0.05/0/0.02, dsn=2.0.0, status=sent (delivered to maildir)
Jan 3 20:14:11 mx postfix/qmgr[1508]: A5A31235CD: removed


.. shouldnt I also see spamassasin and clamav working in mail.log?
Reply With Quote
  #5  
Old 4th January 2010, 15:05
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
 
Default

Quote:
Originally Posted by marmellata View Post
amavisd 10024 port?
No, you don't need to open that port as it is accessed only from localhost.

Quote:
.. shouldnt I also see spamassasin and clamav working in mail.log?
The logging is done by amavisd:

Quote:
Jan 3 20:14:11 mx amavis[1428]: (01428-04) Passed CLEAN, [87.238.28.102] [80.67.127.56] <baboda@cheapnet.it> -> <g.parlato@sialpe.com>, Message-ID: <99A8F300EA854206A2A7B92DEABADF4C@marmellataLapt >, mail_id: Znynqx7wTHmW, Hits: 3.384, size: 1572, queued_as: A5A31235CD, 7143 ms
__________________
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
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 9.10) keyslapper HOWTO-Related Questions 4 20th April 2010 15:46
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 9.10) mickey78 HOWTO-Related Questions 1 1st January 2010 12:11
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 9.10) flying_horse HOWTO-Related Questions 5 24th December 2009 18:09
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 9.04) Master One HOWTO-Related Questions 4 1st July 2009 15:38
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 8.10) VTCop HOWTO-Related Questions 9 9th April 2009 16:17


All times are GMT +2. The time now is 21:14.


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