pegpe at irt
Mar 8, 2012, 11:31 AM
Post #5 of 5
I plan to do the following, only the first step is done at the moment.
Re: Mark message as spam from Postfix Queue
[In reply to]
1 Monitor the outgoing smtpservers for accounts that suddenly send
emails to many recipient that they usually don't send to and other odd
behavoures and report the queueID's. (account is hijacked and used for
spamming or a bot on the inside has found the smtpserver)
2 redirect emails from that sender to a holdqueue in postfix and with
postcat feed them to spamassassin to try to automatically make a
decision weather it is spam or not.
3 If it is spam without any doubts, thow it away, feed spamassassin and
have a chat with the user.
If it is ham release it from holdqueue and back off.
If in doubt call for manual intervention.
This is perhaps not exactly what you want to do but it needs
intervention between postfix and spamassassin.
On 03/08/2012 09:52 AM, Peter Tselios wrote:
> Is it possible to somehow instruct spamassassin to mark messages as
spam when those messages are in Postfix queue?
> The ideal in my mind is to get the queue id of the spam message and
somehow extract it from the queue and then use it to train spamassassin.
Is it possible?
> My setup is postfix, amavisd-new, spamassassin 3.3.1