I'm trying to build out a new mail setup that takes more advantage of
the LDAP capabilities of Postfix so we have fewer scripts, cron jobs,
etc to worry about.

We're also splitting the current server that handles both IMAP/SMTP
into two different hosts so we can place the SMTP service out on the
edge of our network.

I'm using relay_recipient_maps on the SMTP host with an LDAP lookup as
well as transport_maps to tell it to route that email to the internal
IMAP server.  That all works wonderfully.

The issue is that we have some aliases that need to be created that I
need to implement.

And example is we have a 'mail' attribute in LDAP that says:

mail: fred.flintst...@domain1.foo.com

but I need to have the following aliases all go to that address as well:

dr.fred.flintst...@domain1.foo.com
dr.fred.flintst...@domain2.bar.com
fred.flintst...@domain2.bar.com
f...@domain1.foo.com
f...@domain1.foo.com

I couldn't see where we could assemble those using the ldap
capabilities, but we already have a script that can generate an alias
file in the format of:

dr.fred.flintst...@domain1.foo.com: fred.flintst...@domain1.foo.com
...

but putting that in virtual_alias_maps ignores the transport_maps.

In the old setup, everything was a 'local' user so we just used the
alias_maps to send everything to the username (e.g. fred), so I'm
missing the "right" way to do this with relay_recipient_maps involved.
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to