[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [msmtp-users] AWS SES 554 Transaction failed: Missing final '@domain'



Kai Hendry wrote:
> http://dabase.com/blog/Mail_from_a_VPS/
> 
> How do I get msmtp to rewrite the To: address to a static email
> address?
> 
> Many thanks,

Just make /usr/sbin/sendmail a shell script instead of a symlink:

#!/bin/sh
sed '0,/^\r\?$/ { s/^To:.*/To: foo@...45.../ }' | /usr/bin/msmtp "$@"


Best