I was receiving [email protected] as the sender of mails from my WordPress site hosted on Digital Ocean.

Check revealed:

/etc# grep -inr 'd1stkfactory'
mailname~:1:d1stkfactory
mail/sendmail.mc:107:MASQUERADE_AS(`d1stkfactory')dnl
mail/sendmail.cf:161:DMd1stkfactory
mail/sendmail.cf:1996:# MASQUERADE_AS(`d1stkfactory')dnl
exim4/update-exim4.conf.conf~:20:dc_other_hostnames='d1stkfactory'

Fix:

emacs mail/sendmail.cf
emacs mail/sendmail.mc

And changing:MASQUERADE_AS settings


You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.