Hello,
I am writing a plugin for SA which needs to treat outbound and incoming
emails differently. So ideally if the message is outbound I call one
subroutine in my plugin, if not I call another.
So is there any way to check what type of email it is in SA? I couldn't find
any.
Someone said that it is possible to run two copies of Postfix MTA - one for
incoming, other for outgoing messages. And I guess then it would run two
copies of SA with two different plugins that I write. But there has to be an
easier way to do this.
When the Postfix receives an outgoing message it stores it in the
".../Mail/send" right? So if it stores it before it calls SA my plugin could
search in that file by message-ID. Thank God string searching is easy in
Perl. 
I could also hardcode the email addresses of the users behind the server
with SA, but then it would not be safe nor would it scale with high amount
of users in the network.
Any suggestions?
Cheers
-- 
View this message in context: 
http://www.nabble.com/Processing-Outbound-Emails-Differently-tp19944816p19944816.html
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.

Reply via email to