| Author |
Message |
bezerker
Joined: 27 Jun 2005
Posts: 26
|
| Posted: Tue Apr 17, 2007 4:01 pm Post subject: Looking for a decent postifx + spam filtering debian guide. |
|
|
I used to use an exim system with spamassassin on this machine. I had since then moved my mail elsehwere, but now will be moving it back.
While I enjoy exim, I'd rather use postfix for various reasons.
Does anyone have a decent debian based howto for postfix + spam filtering with maildir format that they could recommend?
Thanks in advance. |
|
| Back to top |
|
Internat
Joined: 17 Aug 2004
Posts: 174
Location: Brisbane, Australia
|
| Posted: Tue Apr 17, 2007 9:07 pm Post subject: |
|
|
http://workaround.org/articles/ispmail-sarge/
That one is what i used to set up my virtual hosting setup
It is a bit out of date, being sarge and not etch.. but most things are pretty simple to figure out :)
The hardest part was amavisd config.. but i came to realise that putting everything in 50-user under the /etc/amavisd/ section is pretty much what is needed :)
If you want anymore assistance feel free to let me know |
|
| Back to top |
|
c1i77
Joined: 23 Sep 2004
Posts: 70
Location: Delft, Netherlands
|
| Posted: Wed Apr 18, 2007 2:10 am Post subject: Re: Looking for a decent postifx + spam filtering debian gui |
|
|
bezerker wrote: ... Does anyone have a decent debian based howto for postfix + spam filtering with maildir format that they could recommend?
Appended is my anti-spam config from main.cf. It is based on http://jimsun.linxnet.com/misc/postfix-anti-UCE.txt and trial and error. Even though it doesn't include any post-filtering measures (like SA), it is good enough in my case to keep my mailboxes largely spam-free.
Spamhaus provides a nice overview of "Effective Spam Filtering" at http://www.spamhaus.org/effective_filtering.html . The following config corresponds to 1st stage filtering.
Cliff
Code:
## ------------------------------------------------------------- ##
# UCE measures
# See: http://jimsun.linxnet.com/misc/postfix-anti-UCE.txt
# and Postfix docs for explanation of configuration options.
## ------------------------------------------------------------- ##
#
# Uncomment when testing!
#soft_bounce = yes
# Stops a bundle of spam
smtpd_helo_required = yes
# Prevents addr harvesting
disable_vrfy_command = yes
#
# Prefix a new rule with 'warn_if_reject' to prevent real rejects.
#
smtpd_recipient_restrictions =
## Whitelists
check_recipient_access hash:/etc/postfix/recipient_checks,
check_client_access hash:/etc/postfix/clients,
## Stop bad clients
reject_invalid_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_non_fqdn_hostname,
permit_mynetworks,
reject_unauth_destination,
## Extra checks
check_helo_access hash:/etc/postfix/helo_checks,
check_sender_access hash:/etc/postfix/sender_checks,
## DNSBL // http://www.spamhaus.org/zen/
reject_rbl_client zen.spamhaus.org,
permit
# Reject the (pre-)sending of SMTP commands.
smtpd_data_restrictions = reject_unauth_pipelining, permit
## ------------------------------------------------------------- ##
|
|
| Back to top |
|
bezerker
Joined: 27 Jun 2005
Posts: 26
|
| Posted: Wed Apr 18, 2007 9:32 am Post subject: |
|
|
Internat wrote: http://workaround.org/articles/ispmail-sarge/
That one is what i used to set up my virtual hosting setup
It is a bit out of date, being sarge and not etch.. but most things are pretty simple to figure out :)
The hardest part was amavisd config.. but i came to realise that putting everything in 50-user under the /etc/amavisd/ section is pretty much what is needed :)
If you want anymore assistance feel free to let me know
Hrm. Seems a bit too bulky for my needs.
Also, I don't suppose you or anyone else might have any idea how easy it would be to import my current Maildir into the mysql database for my user if I did decide to switch to this?
Mail is something I've never been too keen on playing with. It's been a set and forget thing for me. :) |
|
| Back to top |
|
TehDan
Joined: 25 Nov 2004
Posts: 40
|
| Posted: Wed Apr 18, 2007 11:51 am Post subject: |
|
|
What did you find bulky about the workaround tutorial? I used basically that setup on a linode 64 for a long time without any resource issues.
What /would/ be bulky is having all your mail in an SQL database... stick to maildir. Putting your /user account information/ in a database, whilst adding a bit of bloat is very useful - it opens the door to a lot of useful stuff like per user spamassassin configs.
For postfix/spamassassin + clamav amavis (as described in the workaround tutorial) is about as lite as you can get, if you want to avoid amavis, just consult the reference documentation on either postifx.org or spamassassin.org - its pretty straight foward to modify your master.cf / main.cf to pass mail through spamassassin. Its well worth having virus scaning as well though. |
|
| Back to top |
|
Internat
Joined: 17 Aug 2004
Posts: 174
Location: Brisbane, Australia
|
| Posted: Wed Apr 18, 2007 3:57 pm Post subject: |
|
|
i think something in the work arround tutorial confused you..
it doesnt store its mail in there
it stores its user structure in there.. ie usernames passwords etc..
it allows u to have virtual users, so basicly users that dont have a shell login on ur computer |
|
| Back to top |
|
kangaby
Joined: 20 Oct 2004
Posts: 65
|
| Posted: Wed Apr 18, 2007 4:59 pm Post subject: |
|
|
Give this a go.
http://adminspotting.net/building-a-messaging-server |
|
| Back to top |
|
bezerker
Joined: 27 Jun 2005
Posts: 26
|
| Posted: Thu Apr 19, 2007 11:55 pm Post subject: |
|
|
Gotcha, you are correct I didn't look close enough and believe my mail was in the database.
Thanks guys! |
|
| Back to top |
|
bezerker
Joined: 27 Jun 2005
Posts: 26
|
| Posted: Fri Apr 20, 2007 2:59 am Post subject: |
|
|
Blast it, amavisd-new with etch is a split file config system. Not so big of a deal, however several of the things I'm supposed to change in it do not exist. :P
Time to play with it, but not at 4 am.
:P |
|
| Back to top |
|
| |