Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Apr 17, 2007 5:01 pm 
Offline
Junior Member

Joined: Mon Jun 27, 2005 3:40 am
Posts: 48
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.


Top
   
 Post subject:
PostPosted: Tue Apr 17, 2007 10:07 pm 
Offline
Senior Member
User avatar

Joined: Tue Aug 17, 2004 11:37 pm
Posts: 262
Website: http://www.our-lan.com
WLM: nf@our-lan.com
Location: Brisbane, Australia
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

_________________
ServerAdmin - www.our-lan.com
"Diplomacy is the art of saying nice doggy whilst looking for a really big stick"
"In my experiece, any attempt to make any system idiot proof will only challenge God to make a better idiot"


Top
   
PostPosted: Wed Apr 18, 2007 3:10 am 
Offline
Senior Member

Joined: Thu Sep 23, 2004 8:35 pm
Posts: 73
Location: The Hague, Netherlands
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


## ------------------------------------------------------------- ##


Top
   
 Post subject:
PostPosted: Wed Apr 18, 2007 10:32 am 
Offline
Junior Member

Joined: Mon Jun 27, 2005 3:40 am
Posts: 48
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. :)


Top
   
 Post subject:
PostPosted: Wed Apr 18, 2007 12:51 pm 
Offline
Senior Member

Joined: Thu Nov 25, 2004 10:05 am
Posts: 52
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.


Top
   
 Post subject:
PostPosted: Wed Apr 18, 2007 4:57 pm 
Offline
Senior Member
User avatar

Joined: Tue Aug 17, 2004 11:37 pm
Posts: 262
Website: http://www.our-lan.com
WLM: nf@our-lan.com
Location: Brisbane, Australia
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

_________________
ServerAdmin - www.our-lan.com

"Diplomacy is the art of saying nice doggy whilst looking for a really big stick"

"In my experiece, any attempt to make any system idiot proof will only challenge God to make a better idiot"


Top
   
 Post subject:
PostPosted: Wed Apr 18, 2007 5:59 pm 
Offline
Senior Member

Joined: Wed Oct 20, 2004 8:55 am
Posts: 120
Give this a go.

http://adminspotting.net/building-a-messaging-server


Top
   
 Post subject:
PostPosted: Fri Apr 20, 2007 12:55 am 
Offline
Junior Member

Joined: Mon Jun 27, 2005 3:40 am
Posts: 48
Gotcha, you are correct I didn't look close enough and believe my mail was in the database.

Thanks guys!


Top
   
 Post subject:
PostPosted: Fri Apr 20, 2007 3:59 am 
Offline
Junior Member

Joined: Mon Jun 27, 2005 3:40 am
Posts: 48
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


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group