Solved

Sendmail virtusertable file and SpamProbe?

Posted on 2003-10-24
5
580 Views
Last Modified: 2013-12-17
I am currently using spamprobe (spamprobe.sf.net) with great success for users that have an account on my machine running sendmail.  However, in the virtusertable file, I have instances where I simply forward that mail to another address, which I do not control.  Something like this:

@foodomain    bob # local user
sales@foodomain.com  betty@someisp.com # just gets forwarded to account

For the local user, I have a procmail file that calls spamprobe to score the message

Is there any way I can get this to happen for the forwarded mail accounts?  Perhaps pipe it to spamprobe somehow?

Thanks for the help, folks!

Tom
0
Comment
Question by:tom419
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 350 total points
ID: 9619338
There is a way to do this but it is somewhat of a kludge. Each off-site virtusers target must point to a Linux account that has a procmail filter set up to run spamprobe and then forward the result off-site.

The cleaner solution to spam control is to use an anti-spam package that operates on the mail stream before alias or virtuser expansion, like MailScanner (http://www.sng.ecs.soton.ac.uk/mailscanner/index.html) or AMaViS (http://www.amavis.org/)
0
 
LVL 15

Expert Comment

by:periwinkle
ID: 9675488
jlevie -

(thinking out loud - always dangerous) While I agree with you in general (I'm a big fan of MailScanner and SpamAssassin myself), couldn't he just set up a general procmail recipe to filter all the email, or set up a local alias in the /etc/mail/aliases file that pipes the content into procmail?
0
 
LVL 40

Expert Comment

by:jlevie
ID: 9675552
I don't think that would work (I could be wrong) because I believe that procmail is invoked by sendmail as a delivery agent. That would mean that messages forwarded as a result of an alias or virtusertable expansion would never reach the procmail filter.
0
 
LVL 15

Expert Comment

by:periwinkle
ID: 9675578
I think you're right - see, it *is* dangerous to think out loud<G>
0
 
LVL 1

Expert Comment

by:gsiebrecht
ID: 9957986
add this to the bottom of your .procmailrc file, it will forward the mail after the message is scanned by amavis and spamassassin

#forward mail
:0
!someaddresss@somewhre.com
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Utilizing an array to gracefully append to a list of EmailAddresses
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
In this video we show how to create a Contact in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >> Contact ta…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question