Re: dovecot-lmtp and postfix

2019-08-11 Thread Coy Hile via dovecot

On 2019-08-11 18:40, Alexander Dalloz via dovecot wrote:

Am 11.08.2019 um 18:06 schrieb Coy Hile via dovecot:




Your Postfix configuration makes Postfix think gmail.com to be a
virtual(8) target domain. Thus it uses virtual_transport. So validate
your

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


definitions.



That was exactly it! I was missing a WHERE domain='%s' in that query, so 
it returned something
(which is effectively "I am handled here" apparently) regardless of the 
domain.


Thank you,

--
Coy Hile
coy.h...@coyhile.com


Re: dovecot-lmtp and postfix

2019-08-11 Thread Alexander Dalloz via dovecot

Am 11.08.2019 um 18:06 schrieb Coy Hile via dovecot:

And in syslog I see:

2019-08-11T15:37:57+00:00 81716ec5-bca4-6d53-ed81-bd1a55d46b4f 
postfix/smtpd[56103]: [ID 197553 mail.info] 12327F13D: 
client=ns1.coyhile.com[172.17.64.25]
2019-08-11T15:38:40+00:00 81716ec5-bca4-6d53-ed81-bd1a55d46b4f 
postfix/cleanup[56365]: [ID 197553 mail.info] 12327F13D: message-id=<>
2019-08-11T15:38:40+00:00 81716ec5-bca4-6d53-ed81-bd1a55d46b4f postfix/qmgr[56018]: 
[ID 197553 mail.info] 12327F13D: from=, size=354, nrcpt=1 
(queue active)
2019-08-11T15:38:40+00:00 81716ec5-bca4-6d53-ed81-bd1a55d46b4f dovecot: [ID 
702911 mail.info] lmtp(50179): Connect from local
2019-08-11T15:38:40+00:00 81716ec5-bca4-6d53-ed81-bd1a55d46b4f postfix/lmtp[56821]: [ID 
197553 mail.info] 12327F13D: to=, 
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  User doesn't exist:coyh...@gmail.com  (in reply to RCPT TO 
command))

Given both of those configurations, shouldn’t it see that gmail address and 
send it off to the relay host?


Your Postfix configuration makes Postfix think gmail.com to be a 
virtual(8) target domain. Thus it uses virtual_transport. So validate your


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


definitions.

Alexander