Jeff, > I have just started using Postfix along with Amavis and everything > appears to be running pretty well. I do have one question, and I am > not sure if it relates to Amavis or to Postfix. I was running > Sendmail with MIMEDefang. I had my filter in MIMEDefang configured so > any e-mail that was received for user1 it would add an e-mail header > called "X-Forward: Yes" and I send the e-mail to user1 and user2. > User2 has a Sieve script configured that any e-mail with that header > would automatically save to a particular folder. > > Now, with Postfix, I have it set using recipient_bcc to automatically > copy any e-mail from user1 to user2. But, there is no longer that > header added and I don't know how to automatically filter those > messages into a particular folder. Can I add an e-mail header with > Amavis so I can filter the message? Or is there something I can do in > Postfix that will allow me to automatically copy the message and file > in a particular folder. > > I am using Dovecot's Deliver as the LDA.
I'd use 'plus addressing', i.e. adding an extension to a recipient address after a delimiter (usually a '+'), then the LDA can save a message to a dedicated folder based on that extra string in a recipient's address. Something like: main.cf: recipient_delimiter = + the in alias or .forward or virtual aliases maps: user1 user1, user2+us...@example.com or in recipient_bcc_maps: user1 user2+us...@example.com so a copy of a mail for user1 will also be delivered to user2, with the envelope recipient address saying 'user2+user1'. The it us up to a LDA to decide what to do with a '+user1' extension - by default it is ignored, but can be used to specify a folder name for example. I know cyrus can do it, I'm sure Dovecot can do it too. Mark ------------------------------------------------------------------------------ Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/