Menu

#115 about NDR

v1.0 (example)
open
nobody
None
5
2025-07-07
2025-06-24
No

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>

Discussion

  • Graeme Walker

    Graeme Walker - 2025-06-24

    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.

     
  • Jih Sheng Tai

    Jih Sheng Tai - 2025-06-25

    The version I use is 2.5.2
    But I was rejected, I hope he can accept it

     
  • Graeme Walker

    Graeme Walker - 2025-06-25

    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.

     
  • Jih Sheng Tai

    Jih Sheng Tai - 2025-07-07

    Thank you very much for your explanation. Now I understand. I was not wrong before. It should be that something else interrupted the connection.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.