On 08/06/17 02:23, Noel Jones wrote:
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
[email protected] to [email protected], the mail is sent to the $relayhost.

This scenario is good when [email protected] is not one of my addresses.

However if [email protected] 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



Thanks,

I tried adding
[email protected] lda
to /etc/postfix/transport and running
postmap /etc/postfix/transport
but mail still goes out the relay.
Could you please explain how to configure it? The documentation is obscure about this and I have no experience.

Hugh

Reply via email to