On Sun, Aug 11, 2019 at 12:39:40PM -0400, Coy Hile wrote:

> canonical_maps = hash:/opt/local/etc/postfix/canonical

What does this do?

> recipient_canonical_maps = hash:/opt/local/etc/postfix/recipient_canonical
> sender_canonical_maps = hash:/opt/local/etc/postfix/sender_canonical

This is rarely what you want.  A sender address becomes a recipient address
when replying, why shouldn't both have the same canonical form?

> relayhost = 
> relay.svc.a4b01392-e48d-4cdf-cacf-f850d1800d45.basement.cns.coyhile.com

This will be used for all "remote" domains unless pre-empted by the
transport table.  Where "remote" means not "local" or "virtual
mailbox".

> virtual_mailbox_domains = 
> pgsql:/opt/local/etc/postfix/postfix_virtual_domains.cf

What domains does this match?  Post the output of:

        $ postmap -q gmail.com 
pgsql:/opt/local/etc/postfix/postfix_virtual_domains.cf

> virtual_transport = lmtp:unix:private/dovecot-lmtp

> 2019-08-11T15:38:40+00:00 81716ec5-bca4-6d53-ed81-bd1a55d46b4f 
> postfix/lmtp[56821]: [ID 197553 mail.info] 12327F13D: to=<coyh...@gmail.com>, 
> relay=81716ec5-bca4-6d53-ed81-bd1a55d46b4f.localdomain[private/dovecot-lmtp], 
> delay=55, delays=55/0.01/0/0.03, dsn=5.1.1, status=bounced (host 
> 81716ec5-bca4-6d53-ed81-bd1a55d46b4f.localdomain[private/dovecot-lmtp] said: 
> 550 5.1.1 <coyh...@gmail.com> User doesn't exist: coyh...@gmail.com (in reply 
> to RCPT TO command))
> 
> Shouldn’t the mail to gmail.com be punted off to the relay host, rather than 
> getting lost in the LMTP agent?

Not if gmail.com is a "virtual mailbox domain".

-- 
        Viktor.

Reply via email to