I have a lot of servers, let's say our company network is called
Loosers
, when using this command
echo "Subject: testmail $(hostname)" | sendmail -v 'myemail@mycompany.com'
I effectively receive an email after a few minutes, but the sender is like hostname@mail.loosers
instead of something like noreply.hostname@mail.mycompany.com
.
Since my predecessor stupidly set the domain to something specifically related to my company, I suppose it is possible to change this email. I browsed my server in /etc/mail/*
, then the manual of sendmail, then the Internet in the search of the configuration of sendmail
. Nowhere can be found the string looser
or mail
. I cannot grasp where my predecessor configurated this stupid default sender of sendmail
.
How can I configure the default sender used by the bash command sendmail
?
Asked by MUY Belgium
(1282 rep)
Mar 15, 2019, 08:59 AM
Last activity: May 1, 2025, 02:07 PM
Last activity: May 1, 2025, 02:07 PM