Solved

Sendmail virtusertable file and SpamProbe?

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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Suggested Solutions

MS outlook is a premier email client that enable you to send and receive the e-mails with various file formats of attachments such as document files, media file, and many others formats. There is some scenario occurs when a receiver of an e-mail mes…
Import PST to Exchange using Power Shell new-mailboximportrequest command, you can simply import the PST file into Exchange mailbox or archived. To know How to import PST into Exchange  2013 read the complete article.
Familiarize people with the process of utilizing SQL Server functions 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 Microsoft Ac…
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…

734 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