On 13 March 2002, Mark Goodge said:
> Is there any easy way of simply piping mail through SA via an entry in 
> /etc/aliases so that it can be a link in a mail forwarding chain? For 
> example, where I currently have an entry like:
> 
> user:  [EMAIL PROTECTED]
> 
> I want to be able to replace it with something like this:
> 
> user:     "|spamassassin user-out"
> user-out: [EMAIL PROTECTED]

Try this:

  user:     "|spamassassin -P | sendmail -oi user-out"
  user-out: [EMAIL PROTECTED]

(Assuming that your MTA runs pipes in /etc/aliases through /bin/sh,
that is.)

> I've tried various settings of SA in the aliases file, but none of them 
> seem to work - they either generate an error or the mail silently 
> disappears.

Right -- SA is just a filter; it reads a message on stdin and writes it
(modified) on stdout.  What you do with that stdout is up to you and
your MTA configuration to decide.

        Greg
-- 
Greg Ward - software developer                [EMAIL PROTECTED]
MEMS Exchange                            http://www.mems-exchange.org

_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to