Solved

Sendmail virtusertable file and SpamProbe?

Posted on 2003-10-24
5
572 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
  • 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

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Suggested Solutions

Nearly six years ago I was hired by a company to be their senior server engineer. One of my first projects was to implement Exchange Server 2007 on a Windows Server 2008 Single Copy Cluster for high availability. That was the easy part; read on to l…
Granting full access permission allows users to access mailboxes present in their database. By giving full access permission one can open and read the content of any mailbox but cannot send emails from that mailbox.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In this video we show how to create a Shared Mailbox 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 >> Sha…

759 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now