#1  
Old 16th July 2006, 21:28
RicochetPeter RicochetPeter is offline
Member
 
Join Date: Apr 2006
Posts: 41
Thanks: 3
Thanked 1 Time in 1 Post
Default Spam scan for forwarded mail

Hi,

got another question:

What would I have to do to let forwarded mail be scanned for spam?
(With the standard setup, when a mail account is set to be forwarded to one or more external mail addresses, the mails aren't scanned for spam, only the ones that are to be put into a local mail box)
Reply With Quote
Sponsored Links
  #2  
Old 17th July 2006, 12:42
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,789
Thanks: 821
Thanked 5,337 Times in 4,187 Posts
Default

You will have to change the order of included procmail recipes in the file .procmailrc in the home directory of the mail user so the spam scanning script is in front of the redirection script.

If you want to change it globally for new users, you will have to modify the template file /root/ispconfig/isp/conf/procmailrc.master
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 19th July 2006, 20:08
RicochetPeter RicochetPeter is offline
Member
 
Join Date: Apr 2006
Posts: 41
Thanks: 3
Thanked 1 Time in 1 Post
Default

cool, thanks for the hint.

this is my .procmailrc:

Code:
MAILDIR=$HOME/Maildir/
DEFAULT=$MAILDIR
ORGMAIL=$MAILDIR

INCLUDERC=/var/www/web10/user/web10_peter/.mailsize.rc
## INCLUDERC=/var/www/web10/user/web10_peter/.quota.rc
## INCLUDERC=/var/www/web10/user/web10_peter/.antivirus.rc
## INCLUDERC=/var/www/web10/user/web10_peter/.local-rules.rc
## INCLUDERC=/var/www/web10/user/web10_peter/.html-trap.rc
INCLUDERC=/var/www/web10/user/web10_peter/.spamassassin.rc
## INCLUDERC=/var/www/web10/user/web10_peter/.autoresponder.rc
INCLUDERC=/var/www/web10/user/web10_peter/.custproc.rc
actually, in none of the included files (here: .mailsize.rc, .spamassassin.rc, .custproc.rc) there's a rule that forwards the mail ... so, where does the forwarding take place?

the .custproc.rc has all my self-made "put mail from xy to folder xy" rules...
Reply With Quote
  #4  
Old 19th July 2006, 22:13
RicochetPeter RicochetPeter is offline
Member
 
Join Date: Apr 2006
Posts: 41
Thanks: 3
Thanked 1 Time in 1 Post
Default

Ah, found it. It's the .forward file in the user's directory. Which process reads it and how do I make it come after the procmailrc? I seem to understand that postfix gives incoming mail to "objects" in the .forward file, which is a comma separated list.

So the forwarded mail is totally independant of the mail which will be spam scanned and delivered to a mailbox?

Ideas?

Last edited by RicochetPeter; 19th July 2006 at 22:31.
Reply With Quote
  #5  
Old 20th July 2006, 13:46
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

You'd have to rewrite the forwarding mechanism so that it uses a procmail recipe instead of the .forward file. In the .forward file you would invoke procmail which then reads the procmail recipes.
__________________
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
  #6  
Old 20th July 2006, 15:08
fobicodam fobicodam is offline
Senior Member
 
Join Date: Apr 2006
Location: Argentina
Posts: 346
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to fobicodam
Default

ok... how it would be in english? (or spanish.. je)
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
Not receiving any incoming mail. Jcorrea920 General 11 3rd April 2010 13:08
Filtering emails using Spamassassin and Clamav for Exchange 2000 Server Rocky Server Operation 19 11th March 2008 08:27
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs mholownych HOWTO-Related Questions 10 29th May 2006 03:39
This is the Postfix program <postmaster> edge Installation/Configuration 14 13th March 2006 15:50
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs ebbay Installation/Configuration 9 4th March 2006 11:47


All times are GMT +2. The time now is 16:49.


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