Hi everyone, Just wanted to confirm that I also encounter the same issue with bounces from the MAILER-DAEMON now that I upgraded to OpenBSD 6.4 to 6.5 with the latest OpenSMTPD 6.5 as you can see below:
May 26 12:20:17 mx1 smtpd[85131]: 0c12bdb4202bd21a mda delivery evpid=8a9f8ff1c2320d8c from=<> to=<m...@mydomain.tld> rcpt=<m...@mydomain.tld> user=vmail delay=0s result=PermFail stat=Error ("mail.lmtp: LMTP server error: 501 5.5.4 Invalid FROM: Missing domain") May 26 12:20:17 mx1 smtpd[33901]: warn: queue: no return path! Gilles, I was wondering if your patch for this issue will make it into the official OpenBSD 6.5 errata/patches (https://www.openbsd.org/errata65.html)? Best regards, Mabi ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Saturday, May 18, 2019 2:55 PM, David Flatz <da...@upcs.at> wrote: > Hello everybody > > Thanks for opensmtpd! > > I have following config (opensmtpd is compiled with --sysconfdir=/etc/smtpd): > > pki "email.com" cert "/etc/ssl/acme/fullchain.pem" > pki "email.com" key "/etc/ssl/acme/private/privkey.pem" > table aliases file:/etc/smtpd/aliases > table virtuals file:/etc/smtpd/virtuals > table "senders" file:/etc/smtpd/senders > table domains {"email.com", "email2.com", "email3.com"} > listen on localhost > listen on localhost port 10028 tag DKIM > listen on <<IP4>> hostname "email.com" pki "email.com" tls-require > listen on <<IP6>> hostname "email.com" pki "email.com" tls-require > listen on <<IP4>> port 587 hostname "email.com" pki "email.com" tls-require > auth mask-src senders <"senders"> > listen on <<IP6>> port 587 hostname "email.com" pki "email.com" tls-require > auth mask-src senders <"senders"> > action "local" lmtp "/var/run/dovecot/lmtp" alias <aliases> > action "remote" lmtp "/var/run/dovecot/lmtp" virtual <virtuals> > action "relay_dkim" relay host smtp://127.0.0.1:10027 > action "relay" relay > match from local for local action "local" > match from any for domain <domains> action "remote" > match from local for any tag DKIM action "relay" > match from local for any action "relay_dkim" > match auth from any for any action "relay_dkim" > > "email.com" in /etc/smtpd/mailname > > Delivery to dovecot works pretty good for normal mails locally with > sendmail and from remote. However, when opensmtpd generates a bounce dovecot > won't accept it and returns following error message "501 5.5.4 > Invalid FROM: Missing domain". > > Here's a short example from my mail log: > > 2019-05-16T16:53:44.74235 mail.info: smtpd[14556]: 0426c5ebb3512dbf smtp > message address=127.0.0.1 host=localhost msgid=46af690e from=m...@email.com > to=inva...@example.com size=1655 ndest=1 proto=ESMTP > 2019-05-16T16:53:44.74285 mail.info: smtpd[14556]: 0426c5ea6f7e8493 mta > delivery evpid=ed61bbacc8e998ab from=m...@email.com to=inva...@example.com > rcpt=<-> source="127.0.0.1" relay="127.0.0.1 (localhost)" delay=0s > result="Ok" stat="250 2.0.0: 46af690e Message accepted for delivery" > 2019-05-16T16:53:44.74850 mail.info: smtpd[14556]: 0426c5ee42eb86d0 mta > connecting address=smtp://xxx.xxx.xxx.xxx:25 host=example.com > 2019-05-16T16:53:44.75871 mail.info: smtpd[14556]: 0426c5ee42eb86d0 mta > connected > 2019-05-16T16:53:45.02044 mail.info: smtpd[14556]: 0426c5ee42eb86d0 mta > starttls ciphers=version=TLSv1.2, cipher=DHE-RSA-AES256-GCM-SHA384, bits=256 > 2019-05-16T16:53:45.12104 mail.info: smtpd[14556]: smtp-out: Server > certificate verification succeeded on session 0426c5ee42eb86d0 > 2019-05-16T16:53:45.19820 mail.info: smtpd[14556]: 0426c5ee42eb86d0 mta > delivery evpid=46af690e499ada02 from=m...@email.com to=inva...@example.com > rcpt=<-> source="xxx.xxx.xxx.xxx" relay="xxx.xxx.xxx.xxx (example.com)" > delay=1s result="PermFail" stat="553 5.3.0 inva...@example.com... No such > user here" > 2019-05-16T16:53:46.20569 mail.info: smtpd[14556]: 0426c5eff2dc9818 smtp > connected address=local host=email.com > 2019-05-16T16:53:46.21778 mail.info: smtpd[14556]: 0426c5eff2dc9818 smtp > message address=local host=email.com msgid=7f01bbab from=<> to=m...@email.com > size=2954 ndest=1 proto=ESMTP > 2019-05-16T16:53:46.22076 mail.info: smtpd[14556]: 0426c5eff2dc9818 smtp > disconnected address=local host=email.com reason=quit > 2019-05-16T16:53:46.26239 mail.info: dovecot: lmtp(14699): Connect from local > 2019-05-16T16:53:46.26408 mail.info: dovecot: lmtp(14699): Disconnect from > local: Remote closed connection (state=READY) > 2019-05-16T16:53:46.26517 mail.info: smtpd[14556]: 0000000000000000 mda > delivery evpid=7f01bbab6d3d0835 from=<> to=m...@email.com rcpt=m...@email.com > user=username delay=0s result=PermFail stat=Error ("mail.lmtp: LMTP server > err"): 501 5.5.4 Invalid FROM: Missing domain > 2019-05-16T16:53:46.26585 mail.err: smtpd[14557]: warn: queue: no return path! > > I did a peek at my lmtp socket and saw the following transaction: > > 220 email.com Dovecot ready > LHLO localhost > 250-email.com > 250-8BITMIME > 250-CHUNKING > 250-ENHANCEDSTATUSCODES > 250-PIPELINING > 250-STARTTLS > 250 VRFY > MAIL FROM:<MAILER-DAEMON> > 501 5.5.4 Invalid FROM: Missing domain > > It seems like opensmtpd uses an envelope from for the bounces that > dovecot doesn't like. Is there a way to make opensmtpd to either use an > empty envelope from (since those seem fine to dovecot) or add a domain? > > Thanks again and have a great weekend! > > - David > > -- > You received this mail because you are subscribed to misc@opensmtpd.org > To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org > -- You received this mail because you are subscribed to misc@opensmtpd.org To unsubscribe, send a mail to: misc+unsubscr...@opensmtpd.org