View previous topic :: View next topic |
Author |
Message |
Vermyndax Apprentice
Joined: 13 Dec 2003 Posts: 208
|
Posted: Mon Feb 02, 2004 1:11 am Post subject: Postfix/IMAP/SpamAssassin - lost in the HOWTOs |
|
|
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 |
|
|
Chris W l33t
Joined: 25 Jun 2002 Posts: 972 Location: Brisbane, Australia
|
Posted: Mon Feb 02, 2004 6:46 am Post subject: |
|
|
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 |
|
|
georwell Guru
Joined: 25 Jun 2003 Posts: 430 Location: Uppsala, Sweden
|
Posted: Mon Feb 02, 2004 10:25 am Post subject: |
|
|
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 |
|
|
roland_ke n00b
Joined: 28 Sep 2003 Posts: 21 Location: Vienna / Austria
|
Posted: Mon Feb 02, 2004 10:41 am Post subject: |
|
|
where to find this 'mailscanner' ? _________________ don't blame me, it's a hardware problem! |
|
Back to top |
|
|
georwell Guru
Joined: 25 Jun 2003 Posts: 430 Location: Uppsala, Sweden
|
|
Back to top |
|
|
scchu n00b
Joined: 20 May 2004 Posts: 1
|
Posted: Thu May 20, 2004 12:02 am Post subject: |
|
|
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 |
|
|
georwell Guru
Joined: 25 Jun 2003 Posts: 430 Location: Uppsala, Sweden
|
Posted: Thu May 20, 2004 8:19 am Post subject: |
|
|
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 |
|
|
|