I'm exploring an all flat-file virtual-address-only postfix setup.  well, using 
lmdb -- NOT sql or ldap, to be accurate.

When it comes to alias management, I'm not convinced my approach is (easily) 
doable in flat-files.

For each virtual address defined in

        virtual_mailbox_maps    = lmdb:/etc/postfix/virtual_mailbox_maps

e.g.,

        cat virtual_mailbox_maps
                us...@example.com                 example.com/user1
                us...@example.com                 example.com/user2

rather than a single alias map file, I'd _like_ a separate virtual alias map 
per real address. i.e.,

        /etc/postfix/virtual_alias_maps/us...@example.com
        /etc/postfix/virtual_alias_maps/us...@example.com

where, e.g.,

        /etc/postfix/virtual_alias_maps/us...@example.com 
                ali...@example.com    JUNKTEXT
                ali...@example2.com   JUNKTEXT

        /etc/postfix/virtual_alias_maps/us...@example.com 
                ali...@example3.com   JUNKTEXT
                ali...@example4.com   JUNKTEXT


, with JUNKTEXT ignored, and the redirect_to replaced by the filename -- in 
this case, "us...@example.com" & "us...@example.com", respectively.

can that be managed with postfix out of the box?

if so, what would be the form of

        virtual_alias_maps = 

in postfix config?

And, does postifx do any checking to avoid multiple-instances of a single 
alias? I.e., preventing collisioin of the same alias redirecting to same target 
virtual address?

All of that^ is certainly doable with SQL/LDAP.

For this setup, If I _can_ avoid DB/LDAP, I'd like to ... just not convinced 
if/how I manage this^ without too much 'kludge'.


Thoughts/suggestions?

Reply via email to