Zitat von Reindl Harald <h.rei...@thelounge.net>:
Hm, OK, i will start my IDE and develop something nice local_recipient_maps = mysql:/etc/postfix/mysql-recipients.cf virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_alias.cf Can i use both as above because "mysql-recipients.cf" are from the dbmail-alias-table and i would like to implement a function that fills a additional table with the alias-mappings outside the scope of dbmail himself? What i would expect is that postfix will use both for verify and if receive a message to a virtual_alias it deliver the message to dbmail-lmtp with the "real address"
local_recipient_maps is used for recipients with domain part listed in mydestination (= local domain class) virtual_alias_maps is used for domains listed in virtual_alias_domains (= virtual alias domain class)
Virtual aliases are expected to rewrite the envelope address (routing information), local aliases don't alter the envelope address.
Don't list any domain in both virtual alias domains and local domains! One way to use *could* be the following- A "pseudo" domain matching myhostname as local domain with all login IDs listed as bare user in local_recipient_maps - Virtual alias domains for all hosted domains and a virtual alias map to rewrite real-mailaddress@virtual.domain --> user@myhostname
With this you can match any mailaddress to any user you like. You can also skip local at all and use a transport entry to route all @myhostname mail to "ltmp" or something like that.
Regards Andreas
smime.p7s
Description: S/MIME Cryptographic Signature