What about using relay_domains and relay_recipient_maps. I am using this
to forward mail do an IMAP-server, but this doesn't matter.

Example modified from my config:

relay_domains =
   ${ldap}/relay_domains.cf

relay_recipient_maps =
   pcre:${map}/roleaccount.pcre,
   ${ldap}/relay_recipient_maps.cf

virtual_alias_maps =
   ${ldap}/relay_recipient_maps.cf

And do not add "it" to mydestination please.

Thanks Christian, using relay_domains and relay_recipient_maps seems to work perfectly without the need to use $mydestination. I just get a warning if I include virtual_alias_maps also, so have left it out.

Many thanks for your quick response!

Best wishes,
Duncan.

Reply via email to