Try the version below:
sendmail_path = /usr/sbin/sendmail -t -i -F"Full Name" -f'emailaddress@example.com'
WARNINGS
- It will work with "real sendmail" (sendmail provided by sendmail.org).
- It may not work with some "sendmail look alike" provided by other MTAs e.g. postfix, exim, ...
- "Sendmail by sendmail.org" by default adds "warning headers" when
-f
command line option is used.