Friday, March 18, 2022

[SOLVED] Mail sender address is not getting updated in Debian

Issue

I'm trying to send email, but I constantly get wrong sender email address.

From address supposed to be "[email protected]" but it is coming as "xyz@guid"

enter image description here

OS details:

enter image description here

The command tried so far:

echo "Hello there" | mail -s "Test Mail" -r [email protected] mail-to@[email protected]

echo "Hello there" | mail -s "Test Mail" -r mail-from@[email protected] mail-to@[email protected]

echo "Hello there" | mail -s "Test Mail" -r 'First Last [email protected]' [email protected]

echo "Hello there" | mail -s "Test Mail" -aFrom:'First Last [email protected]' [email protected]

echo "Hello there" | mail -s "Test Mail" [email protected] -aFrom:[email protected]

echo "Hello there" | mail -s "Test Mail" -aFrom:IROL-Admin<[email protected]> [email protected]


Solution

I got it working with the below SSMTP.Conf

[email protected]
mailhub=mailhost.company.com:25
FromLineOverride=YES


Answered By - Mugil Karthikeyan
Answer Checked By - Mildred Charles (WPSolving Admin)