Aleš Krajník a écrit : > Hi guys, > > I have a problem setting up my postfix so it records all (virtual) aliases' > expansions into e-mail headers. > > I have a postfix 2.6.5, amavis 2.6.3 and (virtual) delivery to dovecot 1.2.6 > (on Gentoo which is probably not important). > > The thing is that I want e-mail headers to contain all aliases expansions, > for example: > * i have an alias my...@example.com redirected to ser...@example.com > * i have an alias ser...@example.com redirected to my personal > e-mail, a...@example.com > * i have a virtual mail box, in dovecot, a...@example.com > > These are only examples (of course) and there are more aliases than > my...@example.com (otherwise it would not make any sense). > > I would like to setup filtering rules in dovecot's sieve so it moves all > e-mails sent to ser...@example.com (and all aliases that expand to this one) > to some folder. >
if your goal is to ease sieve filtering, consider using extensions in your aliases. for example, redirect my...@example.com to server+my...@example.com, ... etc. > I searched through all the Postfix documentation but did not found how to > achieve this. My e-mail headers contain the "Delievered-To:" headers only > for the first and the last e-mail in the aliases' expansion cycle (that is > my...@example.com and a...@example.com). > > It seems that some daemon, that does the aliases' expansion (cleanup?), logs > only the first and the last e-mail address in the expansion cycle. So I > tried adding "frozen_delivered_to=no" to main.cf, local daemon in master.cf, > trivial-rewrite daemon in master.cf and some others but the result is always > the same. > > So... is there a way how to record all aliases' expansions in the e-mail > headers? Using directly the ser...@example.com e-mail address is an option > but not much good for me. > > Thanks for your advice! > Ales Krajnik >