Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Postfix/IMAP/SpamAssassin - lost in the HOWTOs
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Vermyndax
Apprentice
Apprentice


Joined: 13 Dec 2003
Posts: 208

PostPosted: Mon Feb 02, 2004 1:11 am    Post subject: Postfix/IMAP/SpamAssassin - lost in the HOWTOs Reply with quote

Currently I'm using Postfix as a gateway to Exchange. I'm wanting to get rid of the Exchange server and use the Gentoo server to host/serve all mail traffic with SpamAssassin.

While the HOWTOs available all over the place are very good, I find that they are not targeted toward my specific needs. I've spent the better part of this weekend working through all of them to try to get a good solution but so far... nothing.

What I need to do:

Run Postfix and POP3/IMAP servers to serve mail for local users. I will have the users set up on the server as users, each with a /home directory. I would like a systemwide /etc/procmailrc to handle filtering for everyone before delivering to local mail directories, then .procmailrc in everyone's home directories to be executed.

Client access through POP3/IMAP.

This is probably the simplest to set up of all scenarios, but I'm lost. Can anyone give me good advice and pointers?

Thanks!
Back to top
View user's profile Send private message
Chris W
l33t
l33t


Joined: 25 Jun 2002
Posts: 972
Location: Brisbane, Australia

PostPosted: Mon Feb 02, 2004 6:46 am    Post subject: Reply with quote

OK. To get Postfix to use procmail to deliver all mail you want to modify the following option in /etc/postfix/main.cf :
Code:
# IF YOU USE THIS TO DELIVER MAIL SYSTEM-WIDE, YOU MUST SET UP AN
# ALIAS THAT FORWARDS MAIL FOR ROOT TO A REAL USER.
#
#mailbox_command = /some/where/procmail
#mailbox_command = /some/where/procmail -a "$EXTENSION"
to run /usr/bin/procmail.

The second and subsequent posts in this thread deal with making SpamAssassin filter every incoming mail item. You're not after virtual mailboxes but this solution works for 'real' mailboxes too. Alternatively, you could possibly get the central procmailrc file to feed this through SpamAssassin rather than playing with Postfix's config files.

Courier IMAP should 'just work' in the setup you describe. Start courier-imapd and/or courier-pop3d as well as authdaemon.
_________________
Cheers,
Chris W
"Common sense: The collection of prejudices acquired by age 18." -- Einstein
Back to top
View user's profile Send private message
georwell
Guru
Guru


Joined: 25 Jun 2003
Posts: 430
Location: Uppsala, Sweden

PostPosted: Mon Feb 02, 2004 10:25 am    Post subject: Reply with quote

Checkout Cyrus-imap and MailScanner. MailScanner which uses spamassassin to give each email a spam score. (And it does a crapload more then that!) It can use users settings and many other very nice things that spamassassin has. You could even put in front of your exchange server if you wanted. Since you are using imap, cyrus supports sieve which allows your uesrs to filter email on the imap server.

This setup works extremely well.

[EDIT] I forgot to mention that you do NOT have to modify any of MTA config files to get MailScanner to work with your system. [/EDIT]
Back to top
View user's profile Send private message
roland_ke
n00b
n00b


Joined: 28 Sep 2003
Posts: 21
Location: Vienna / Austria

PostPosted: Mon Feb 02, 2004 10:41 am    Post subject: Reply with quote

where to find this 'mailscanner' ?
_________________
don't blame me, it's a hardware problem!
Back to top
View user's profile Send private message
georwell
Guru
Guru


Joined: 25 Jun 2003
Posts: 430
Location: Uppsala, Sweden

PostPosted: Mon Feb 02, 2004 10:46 am    Post subject: Reply with quote

there isn't an official ebuild yet. But it is very easy to maintain. Config file is a bit on the long side though...

Checkout bugs.gentoo.org for the ebuild

https://bugs.gentoo.org/show_bug.cgi?id=36060

http://www.mailscanner.info

If you have a virus scanner for linux it will support that too.
Back to top
View user's profile Send private message
scchu
n00b
n00b


Joined: 20 May 2004
Posts: 1

PostPosted: Thu May 20, 2004 12:02 am    Post subject: Reply with quote

georwell wrote:
Checkout Cyrus-imap and MailScanner. MailScanner which uses spamassassin to give each email a spam score. (And it does a crapload more then that!) It can use users settings and many other very nice things that spamassassin has. You could even put in front of your exchange server if you wanted. Since you are using imap, cyrus supports sieve which allows your uesrs to filter email on the imap server.

This setup works extremely well.

[EDIT] I forgot to mention that you do NOT have to modify any of MTA config files to get MailScanner to work with your system. [/EDIT]

Speaking of postfix + cyrus-imap + sasl + mysql + vhost + ssl.... I haven't been able to find a decent HOWTO to walk through the process of making all the pieces work on Gentoo for semi beginners... For one reason or another, they all seem to deal with courier-imap more than cyrus-imap! Any pointers would be greatly appreciated...
Back to top
View user's profile Send private message
georwell
Guru
Guru


Joined: 25 Jun 2003
Posts: 430
Location: Uppsala, Sweden

PostPosted: Thu May 20, 2004 8:19 am    Post subject: Reply with quote

I have never integrated postfix with cyrus or mysql. You would better off (IMHO) with using LDAP over mysql. LDAP is better suited for what you want and it is very easy to add global address books with it. :)

Check out this link and adapt it to fit your needs. Once you have everything working THEN install mailscanner. That is the beauty of it, you don't need to change a thing to your setup. :)

http://www.bayour.com/LDAPv3-HOWTO.html

[EDIT] fixed link [/EDIT]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum