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
[email protected] example.com/user1
[email protected] 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/[email protected]
/etc/postfix/virtual_alias_maps/[email protected]
where, e.g.,
/etc/postfix/virtual_alias_maps/[email protected]
[email protected] JUNKTEXT
[email protected] JUNKTEXT
/etc/postfix/virtual_alias_maps/[email protected]
[email protected] JUNKTEXT
[email protected] JUNKTEXT
, with JUNKTEXT ignored, and the redirect_to replaced by the filename -- in
this case, "[email protected]" & "[email protected]", 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?