emersion / hydroxide

A third-party, open-source ProtonMail CardDAV, IMAP and SMTP bridge
MIT License
1.64k stars 126 forks source link

unknown sender address (in reply to end of DATA command)) whenever from address is blank #249

Closed JoshuaPettus closed 1 year ago

JoshuaPettus commented 1 year ago

I have been trying to get my linux system to send various emails to protonmail through hydroxide. And I am finding that it does work. But one issue I keep having to work around is that it really, really doesn't like the From: field to be blank. Looking though the mail logs I will get:

3CFA4183026: to=user@protonmail.com, relay=127.0.0.1[127.0.0.1]:1025, delay=1.3, delays=0.22/0.03/1.1/0, dsn=5.0.0, status=bounced (host 127.0.0.1[127.0.0.1] said: 554 5.0.0 Error: transaction failed, blame it on the weather: unknown sender address (in reply to end of DATA command))

Unfortunately this has to be done with every system that sends an email and not every system makes it easy to add a proper from field. PHP is being really annoying about it right now even though I'm providing sendmail the correct augments in the php.ini... Is there a way to fake it in general?

JoshuaPettus commented 1 year ago

Closing this.
I realized the best place to set this is on postfix itself. (Also word to wise make sure to use your actual proton email address) https://wiki.4psa.com/display/KB/How+to+change+the+From+header+for+messages+sent+by+Postfix

That certainly simplifies a lot!