I'm using msmtp to deliver system email from an Ubuntu server via an SMTP account.
Can I somehow configure this setup to rewrite all emails to one specific recipient address? If so, how?
Or put differently, I don't want any arbitrary PHP script or otherwise to be able to send email to anybody that is not me. I should be the only person that receives any email generated by any script on the server. All while only using msmtp (not using postfix or some other server).
set_from_header on: “‘on’ always sets a From header and overrides any existing one.” marlam.de/msmtp/msmtp.htmltoheaders?To:headers is not the default behaviour anyway. Just don't pass-t(--read-recipients) when invokingmsmtp.