keep mail when directly connecting to spamd
SMTP email proxy and relay server
Brought to you by:
graeme_walker
I have a question:
Is it possible to keep a message when its detected as spam and only mark it (or send it to a special address)?
I'm using (to pass messages to spamassassin):
C:\SA\emailrelay\emailrelay --as-proxy 10.15.52.8:25 --port 10025 --spool-dir "c:/sa/spool" --filter spam:localhost:783 --no-daemon -v --log
Regards JCP
Sorry i'm using V1.9 under Windows
Try changing "--filter" to "--client-filter" so that the spam check runs when the message is forwarded rather than when it is first received. The message envelope should end up as a ".bad" file in the spool directory with an X-MailRelay-Reason field ending with "marked as spam".
The v2.0 release is better in this regard; you can use "--filter spam:..." or "--filter spam-edit:...".