Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to change the sender from in sendmail
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Majed17
Apprentice
Apprentice


Joined: 31 Aug 2011
Posts: 281
Location: Minsk, Belarus

PostPosted: Thu Nov 03, 2011 9:24 am    Post subject: how to change the sender from in sendmail Reply with quote

Hello, when i send emails from root to a global address on the internet i get an email from:
Code:
root [root@srvmon-Bellakt.Bellakt.com

i don't to change the domain or the root@...
what i am looking for is not masquerading but just to change the sent from name like so:
Code:
newname [root@srvmon-Bellakt.Bellakt.com

has anyone done this before or is it even possible?
i searched the internet but it seems there are no guides to this only to masquerading the domain.
thanks for any help.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 15969

PostPosted: Fri Nov 04, 2011 2:20 am    Post subject: Reply with quote

The "sent from" name is taken from GECOS in /etc/passwd. You could change that field instead of manipulating sendmail.
Back to top
View user's profile Send private message
Majed17
Apprentice
Apprentice


Joined: 31 Aug 2011
Posts: 281
Location: Minsk, Belarus

PostPosted: Fri Nov 04, 2011 6:18 am    Post subject: Reply with quote

well thanks a lot it worked i changed the nagios user to:

Code:
nagios:x:102:1002:Bellakt Monitoring:/var/nagios/home:/bin/bash


and now i get messages from Bellakt Monitoring [nagios@domain.com]
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum