On Sun 24 Apr 2022 at 16:02:31 (-0400), Haines Brown wrote: > I use mutt to send messages through exim4. Some messages lack a > sender. Here is a log emtry showing that from: address is blank: > > Apr 24 11:11:29 tev-mail-relay1 postfix/smtpd[510179]: connect from > unknown[32.210.108.191] > Apr 24 11:11:30 tev-mail-relay1 postfix/smtpd[510179]: Anonymous TLS > connection > established from unknown[32.210.108.191]: TLSv1.3 with cipher > TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) > server-signature RSA-PSS (2048 bits) server-digest SHA256 > Apr 24 11:11:30 tev-mail-relay1 postfix/smtpd[510179]: NOQUEUE: milter-reject: > MAIL from unknown[32.210.108.191]: 554 5.7.1 Empty Sender Address > is prohibited through this server; from=<> > proto=ESMTP helo=<lenin.histomat.net> > sasl_username=<bro...@historicalmaterialism.info> > Apr 24 11:11:30 tev-mail-relay1 postfix/smtpd[510179]: disconnect from > unknown[32.210.108.191] ehlo=2 starttls=1 auth=1 mail=0/1 rcpt=0/1 > bdat=0/1 quit=1 commands=5/8 > > 521 5.5.1 Protocol error (154.24 ms) > Unverified address > > I reconfigured exim4 and it has no problem.
It looks to me as if you have no /envelope/ sender on some messages. I don't know whether that's caused by exim, say, failing to rewrite an address properly, but it seems unlikely that you're going to compose an email without a From: at the top. (I can't be sure: it might be possible to compose without showing headers, and there's also the possibility of sending emails from the command line.) You can make mutt ensure that there's an envelope address by setting either (or both, they interact) of envelope_from_address or use_envelope_from. AIUI, exim can still select what actually gets used. ↓↓↓↓↓↓↓↓↓ ie the envelope sender … > MAIL from unknown[32.210.108.191]: 554 5.7.1 Empty Sender Address > is prohibited through this server; from=<> … would be here ↑ > ehlo=2 starttls=1 auth=1 mail=0/1 rcpt=0/1 bdat=0/1 quit=1 commands=5/8 ehlo worked (russian leader) starttls worked ehlo worked again authentication worked mail from (empty) failed rcpt to not reached data not reached quit on their side worked makes 5 out of 8. Cheers, David.