Date: Sun, 30 Nov 2025 20:30:06 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 291310] /usr/libexec/dma breaks messages formatted with cr+lf lines Message-ID: <bug-291310-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=291310 Bug ID: 291310 Summary: /usr/libexec/dma breaks messages formatted with cr+lf lines Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: titus@edc.ro Created attachment 265740 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=265740&action=edit patch to fix the above When piping a message thru dma -t and the message has cr+lf at the end of lines it will break when forwarding it to a smtp host the reason is that dma will remove \n at the end of the line and append \r\n however when the original message already has \r\n it will end with \r\r\n at the end of every line more info at https://forums.freebsd.org/threads/sending-email-using-php-mail-function-fails-via-dma-8.100466/ sendmail (receiving smpt) will complain as follows Nov 30 22:12:44 ns sm-mta[91531]: 5AUHLtwN039474: to=xxx@xxx.xx, delay=02:50:49, xdelay=00:00:00, mailer=esmtp, pri=1140782, relay=xxxx.xx.xx [xx.xx.x.xxx], dsn=4.0.0, reply=421 4.5.0 Bare carriage return (CR) not allowed, stat=Deferred: 421 4.5.0 Bare carriage return (CR) not allowed proposed patch in the attachment -- You are receiving this mail because: You are the assignee for the bug.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-291310-227>
