On 6/7/2017 6:36 AM, Hugh Bragg wrote:
> I'm treating the email addresses my isp has given me as virtual
> addresses.
> 
> I also have $mydestination $virtual_mailbox_domains.
> 
> Eg: Presently, when a local machine wants to send mail
> us...@myisp.com to us...@myisp.com, the mail is sent to the $relayhost.
> 
> This scenario is good when us...@myisp.com is not one of my addresses.
> 
> However if us...@myisp.com is also one of my addresses, I want the
> mail to be delivered by the same dovecot lda that is used for my
> $virtual_mailbox_domains.
> 
> This reduces load on both our systems and stops internal mails
> leaking unnecessarily.
> 
> If an email address is not in $mydestination or
> $virtual_mailbox_domains, I'm trying to get postfix to attempt
> lookup of the user from a file or sql and if it's found then it use
> the lda, otherwise use $relayhost.
> 
> 
> Is there a way to accomplish this setup?


Use transport_maps to tell postfix where to deliver a specific
address, or to override the default delivery destination for a
specific address



Reply via email to