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 28th December 2006, 22:39
mjd_tech mjd_tech is offline
Junior Member
 
Join Date: Dec 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Virtual Users and Domains With Postfix...forwarded messages and spam filtering

Hi,

I've set up a Debian Sarge server using the famous how-to. It works correctly.

I have some users that want their mail forwarded to another address, like comcast or aol or verizon.
So, I would just put the needed info into the MySQL forward table.

For example:
joeshmoe@domain_I_am_hosting gets forwarded to joeshmoe@comcast.net

Question:
When mail is sent to joeshmoe@domain_I_am_hosting
will it be processed by spamassassin? Or will it be immediately forwarded?

My guess is it will be immediately forwarded.
The spam gets forwarded as well and comcast will blacklist my server because it looks like my server is sending spam.

If this is the case, it looks like I may need to do the Mailfilter how-to:
http://www.howtoforge.com/postfix_mailfilter

But I'm not sure how to force forwarded emails to be processed by spamassassin.
I'm totally unfamiliar with MailDrop.

I currently run an Ensim server with about 50 domains and 400 users and I really want to get away from Ensim. I want to have email and web hosting on separate servers. I got blacklisted twice this month by comcast, because many users forward their email to their comcast accounts. I was able to work around this by modifying .procmailrc files, to force spamassassin to process the emails before being forwarded.

Thanks,
Mike Donovan
Reply With Quote
Sponsored Links
  #2  
Old 29th December 2006, 17:02
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
Originally Posted by mjd_tech
My guess is it will be immediately forwarded.
The spam gets forwarded as well and comcast will blacklist my server because it looks like my server is sending spam.
To be honest, I'm not sure right now...
You can run
Code:
tail -f /var/log/mail.log
and then send an email to an account on the server that forwards the mail to another email address. From the action in the mail log you can see if the mail is scanned for spam.
__________________
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 30th December 2006, 05:00
mjd_tech mjd_tech is offline
Junior Member
 
Join Date: Dec 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

OK I tested it today.

Summary:
  • Forwarded email IS processed by amavis/spamassassin.
  • Ham is forwarded unchanged.
  • Spam is forwarded with ***SPAM*** added to subject line.
I'd like:
  • Ham forwarded
  • Spam to /dev/null
  • Option to put spam in user's spam folder.
It looks like I need to use Maildrop.
http://www.howtoforge.com/postfix_mailfilter
There's an example of a Maildrop filter near the end.
I think I can tweak this filter to suit my needs.
Anyone disagree?

Now I just need scripts to easily setup + remove users...

-Mike
Reply With Quote
  #4  
Old 30th December 2006, 11:59
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

I think you can configure this in the amavisd.conf file and dont have to switch to maildrop.

Have a look here for example:
http://www.howtoforge.com/forums/sho...03&postcount=5
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 30th December 2006, 21:16
mjd_tech mjd_tech is offline
Junior Member
 
Join Date: Dec 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Till,
Thanks,
I think amavisd.conf operates globally.
I need to do this only for a few users.

For other reasons, I think I need MailDrop.

1. Spam settings on a per user basis. Some users do better with a spamassassin score of 3.0 versus the default 5.0.

2. Some users want spam to go to /dev/null and not clutter their inbox.

3. But others want it the way it works by default:
* Deliver everything to the inbox
* Mark spam with ***SPAM***
* Spamassassin at default 5.0

4. Users can manage their own spam settings, with SquirrelMail plugins.

So I think I need to go with maildrop unless there is a way to configure the postfix virtual delivery transport to do this.

-Mike
Reply With Quote
  #6  
Old 31st December 2006, 19:57
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
 
Default

Take a look here: http://www.howtoforge.com/postfix_mailfilter
__________________
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 + Domains With Postfix, Courier + MySQL (+SMTP-AUTH, SpamA, ClamAV) savkar HOWTO-Related Questions 30 22nd March 2006 13:47


All times are GMT +2. The time now is 19:48.


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