How would I go about setting up a Postfix configuration whereby
there is a separate alias file for each domain that I host mail
for? One where I can set permissions such that different users
have rights to edit different alias files?

In Exim, I do this by having a router which looks something like
this:

relay_local:
    driver         = redirect
    condition      = ${if exists{/virtual/$domain}}
    data           = 
${lookup{$local_part}nwildlsearch{/etc/exim4/virtual/$domain}}
    file_transport = address_file
    allow_fail
    allow_defer

Then I can add new domains to my system simply by creating files like:

  /virtual/example.com

And giving a user rights to edit it...

-- 
Mike Cardwell  https://grepular.com https://emailprivacytester.com
OpenPGP Key    35BC AF1D 3AA2 1F84 3DC3   B0CF 70A5 F512 0018 461F
XMPP OTR Key   8924 B06A 7917 AAF3 DBB1   BF1B 295C 3C78 3EF1 46B4

Attachment: signature.asc
Description: Digital signature

Reply via email to