Does E-MailRelay accept NDR?
Config:
start "emailrelay" D:\E-MailRelay\emailrelay.exe --client-tls --close-stderr --forward-on-disconnect --forward-to 127.0.0.1:2525 --log --log-address --log-file D:\E-MailRelay\emailrelay-log-%%d.txt --log-time --pid-file D:\E-MailRelay\emailrelay.pid --remote-clients --server-tls --server-tls-certificate D:\EmrCert\sendmail.pem --spool-dir D:\E-MailRelay\spool --verbose
Log:
emailrelay: 20250601.205956.819: info: 10.58.12.123; rx<<: "MAIL From:<>"
emailrelay: 20250601.205956.819: info: 10.58.12.123; tx>>: "250 sender <> OK"
emailrelay: 20250601.205956.819: warning: 10.58.12.123; empty MAIL-FROM return path
emailrelay: 20250601.205956.819: info: 10.58.12.123; new content file [emailrelay.4400.1748836796.362492.content]
emailrelay: 20250601.205956.846: info: 10.58.12.123; rx<<: "RCPT To:xxxx@yyy.com"
emailrelay: 20250601.205956.846: info: 10.58.12.123; tx>>: "250 recipient xxxx@yyy.com OK"
emailrelay: 20250601.205956.847: info: 10.58.12.123; rx<<: "DATA"
emailrelay: 20250601.205956.847: info: 10.58.12.123; tx>>: "354 start mail input -- end with <crlf>.<crlf>"
emailrelay: 20250601.205956.942: info: 10.58.12.123; smtp connection closed: peer shutdown: 10.58.12.123:60430
emailrelay: 20250601.205956.942: info: forwarding: [client disconnect]</crlf></crlf>
Yes, an empty MAIL-FROM address will be accepted with just a warning in versions up 2.5.2, although version 2.6 has a bug where empty MAIL-FROM addresses will be rejected. If you want to reject NDRs you should use an address verifier that checks whether the second command-line parameter is empty or use a filter that examines the envelope file's "From" field.
The version I use is 2.5.2
But I was rejected, I hope he can accept it
The log file shows that the remote client disconnected unexpectedly when sending the NDR message content. The message was not rejected by emailrelay; the sender failed to send it.
Thank you very much for your explanation. Now I understand. I was not wrong before. It should be that something else interrupted the connection.