On 03/06/2011 01:16 AM, Alan Fullmer wrote:
I have been trying to get this to work for a while now and have been
unsuccessful in my attempts. I can do each one individually, but when I try
to combine them, it doesn't work as I expected it to. And I imagine it's
something I am missing.
I am attempting to receive mail from one or many domains. I am then trying
to run a script that [essentially] archives all mail coming through.
Lastly, forwarding the messages onto another server.
I am able to run a script by using the filter on the smtp, similar to many
ways to invoke Spamassassin. The script parses some information out of the
mail file, writes (archives) it to a directory.
I separately know, by using the relayhost option to forward the mail to a
server, I can do this. Call it a relay, gateway, whatever.
When I try to combine the procedures, it either forwards all mail before
invoking the script, or it just dies(exits successfully) after running the
script--depending on the options I do.
I have looked into the bcc always option, but it seems to require it to
forward to an email address.
I am trying to basically "archive" all messages coming through without using
the bcc option.
I'm not hearing any cogent arguments why you would not use always_bcc or
recipient_bcc_maps.
--
J.