I don't know where the ^M comes from. I did a "cat -e /etc/mail/smtpd.conf" and for all other files in that directory. Same thing for dovecot config files. All line endings are showing $ which is UNIX.
On Mon, Jan 14, 2019, 09:36 Gilles Chehade <[email protected] wrote: > On Fri, Jan 11, 2019 at 11:27:53PM +0100, Farid Joubbi wrote: > > Hello fellow opensmtpd admins! > > > > Hello, > > > I have been running smtpd on OpenBSD for several years without problems. > > Now after upgrading to release 6.4 I have an issue with local system > > e-mails not coming through. > > > > My hostname is nuc.example.com. > > My normal e-mail address is [email protected]. > > All system generated e-mails sent to root go to [email protected], > which > > was properly translated to [email protected] in 6.3, but not anymore. > > I can't figure out how to fix this. > > > > This is from the log: > > Jan 11 22:45:02 nuc smtpd[32222]: e5cfc1fdf14d2d33 smtp connected > > address=local host=nuc.example.com > > Jan 11 22:45:02 nuc smtpd[32222]: e5cfc1fdf14d2d33 smtp message > > address=local host=nuc.example.com msgid=4d7fc17d from=<> to=< > > [email protected]> size=1991 ndest=1 proto=ESMTP > > Jan 11 22:45:02 nuc smtpd[32222]: e5cfc1fdf14d2d33 smtp disconnected > > address=local host=nuc.example.com reason=quit > > Jan 11 22:45:02 nuc dovecot: lmtp(72696): Connect from local > > Jan 11 22:45:02 nuc dovecot: lmtp(72696): Disconnect from local: > Connection > > closed (in RCPT TO) > > Jan 11 22:45:02 nuc smtpd[32222]: 0000000000000000 mda delivery > > evpid=4d7fc17d08076b4e from=<> to=<[email protected]> rcpt=< > > [email protected]> user=farid delay=0s result=PermFail stat=Error > > ("mail.lmtp: LMTP server error: 550 5.1.1 <[email protected]> User > > doesn't exist: [email protected]\^M") > > That ^M is very likely a cause of error. > > > > Jan 11 22:45:02 nuc smtpd[43925]: warn: queue: no return path! > > > > /etc/mail/aliases is configured to translate root to farid and farid to > > [email protected]. > > This worked in 6.3. > > > > Surely that ^M wasn't there because I don't see how it could work. > > > > > > nuc# cat /etc/mail/smtpd.conf > > > > > > > > # pki setup > > pki mail.example.com cert "/etc/ssl/mail.example.com.fullchain.pem" > > pki mail.example.com key "/etc/ssl/private/mail.example.com.key" > > > > # tables setup > > table aliases db:/etc/mail/aliases.db > > #table aliases file:/etc/mail/aliases > > table domains file:/etc/mail/domains > > table passwd passwd:/etc/mail/passwd > > table virtuals file:/etc/mail/virtuals > > table secrets file:/etc/mail/secrets > > > > # listen ports setup > > listen on lo0 > > listen on lo0 port 10026 tag DKIM_CHECKED > > listen on lo0 port 10028 tag DKIM > > listen on egress port 25 tls pki mail.example.com > > listen on egress port 587 tls-require pki mail.example.com auth <passwd> > > > > action lmtp-local lmtp "/var/dovecot/lmtp" rcpt-to > > #action lmtp-local lmtp "/var/dovecot/lmtp" rcpt-to alias <aliases> > > action "relay" relay host smtp+tls://[email protected]:2525 auth > > <secrets> > > action "relay_dkim" relay host smtp://127.0.0.1:10027 > > action "relay_incoming" relay host smtp://127.0.0.1:10025 > > > > match for local action "lmtp-local" > > match tag DKIM_CHECKED from any for domain <domains> action "lmtp-local" > > match tag DKIM for any action "relay" > > match from any for domain <domains> action "relay_incoming" > > match from local for any action "relay_dkim" > > match auth from any for any action "relay_dkim" > > > > (My real domain name is censored to protect the innocent). > > > > Any help is greatly appreciated. > > > > I'm 99% positive the issue is unrelated to your config but related to a > table content containing the \^M control character. > > > -- > Gilles Chehade @poolpOrg > > https://www.poolp.org tip me: https://paypal.me/poolpOrg >
