Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

From address in sendmail without /etc/passwd Gecos field

sabinkarvijay
Frequent Advisor

From address in sendmail without /etc/passwd Gecos field

Hi,
Please advice me on how to send mails without the Gecos field in the from address. I cannot modify the entries in /etc/passwd as they are used for some auditing purposes.

I have tried uncommenting the "MatchGECOS" field in sendmail.cf and restarted sendmail. But it did not work.

I have tried userdb entries. The Gecos field in the from address was the same.

Thanks in Advance
4 REPLIES
Matti_Kurkela
Honored Contributor

Re: From address in sendmail without /etc/passwd Gecos field

Sendmail does not add the Gecos information to mails' From: and To: headers. The mail client that is used to write the message does that.

Which program or command is used to send the mail messages?

MK
MK
sabinkarvijay
Frequent Advisor

Re: From address in sendmail without /etc/passwd Gecos field

I am using the "mailx -s " command to send mails.
TTr
Honored Contributor

Re: From address in sendmail without /etc/passwd Gecos field

"man mailx". Consider the -r option.
sabinkarvijay
Frequent Advisor

Re: From address in sendmail without /etc/passwd Gecos field

I have given a flag entry "F=c" in the "sendmail.cf" for all the smtp mail agents.

Now the issue is resolved. User's will not get mails with their comments field.