- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to stop sendmail from reading comment field of...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2007 04:59 AM
02-21-2007 04:59 AM
How to stop sendmail from reading comment field of /etc/passwd
IE, I have a role account with the following in the comment field of /etc/passwd:
roleadm - John Smith
When email is sent out, it shows up as mail from:
roleadm - John Smith
reply to address is:
roleadm@mydomain.com
Joe doesn't like that - he wants it to be:
HisApplication EDI
I've been playing in the genericstable....but no luck so far.
I'm using /usr/newconfig/etc/mail/cf/cf/gen_cf to generate sendmail.cf file.
And no, I won't change the passwd file - as it is needed by SOX.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2007 05:06 AM
02-21-2007 05:06 AM
Re: How to stop sendmail from reading comment field of /etc/passwd
Ideas:
1)Change authentication to use ADS on a windows box, then sendmail might ignore the contents of /etc/passwd. NIS or LDAP might acheive the same effect.
2) Compile and use a client like squirrelmail which overrides the /etc/passwd contents.
3) Use DS directive and relay though a Linux or HP-UX box with a doctored /etc/passwd file.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2007 05:09 AM
02-21-2007 05:09 AM
Re: How to stop sendmail from reading comment field of /etc/passwd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2007 05:09 AM
02-21-2007 05:09 AM
Re: How to stop sendmail from reading comment field of /etc/passwd
From
http://www.unet.univie.ac.at/aix/files/aixfiles/sendmail.cf.htm
"The $x macro is set to the full name of the sender. This can be determined in several ways. It can be passed as flag to sendmail. It can be defined in the NAME environment variable. The third choice is the value of the "Full-Name:" line in the header if it exists, and the fourth choice is the comment field of a "From:" line. If all of these fail, and if the message is being originated locally, the full name is looked up in the /etc/passwd file."
I've tried the $NAME - but no luck...
Rgds...Geofff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2007 05:30 AM
02-21-2007 05:30 AM
Re: How to stop sendmail from reading comment field of /etc/passwd
So I get email from:
Roleadm - John Smith [HisApplication_EDI@mydomain.com]
It's still picking up from the /etc/passwd comment...
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2007 06:21 AM
02-21-2007 06:21 AM
Re: How to stop sendmail from reading comment field of /etc/passwd
Are you saying there is nothing in http://www.sendmail.org that helps.
Long shots:
http://www.sendmail.org/ftp/past-releases/sendmail.8.9.2.patch
Comment:
It Fl o Don't display the name of the mailer in the output.
http://www.sendmail.org/~ca/email/sm-X/design-2005-05-05/main.pdf.gz
Notes: This is going to be a PITA and you've kind of been painted into a corner. I don't know how to do it and don't expect any points for this. I will say that nearly anything is possible and the answer is probably buried somewhere in sendmail.org
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2007 08:24 AM
02-21-2007 08:24 AM
Re: How to stop sendmail from reading comment field of /etc/passwd
Have a look here:
http://www.unix.org.ua/orelly/networking/sendmail/ch30_08.htm
and then search for the string "30.8.43 F=w" and also "31.10.42 $x".
You may get some good ideas from those.
I hope this helps.
Patrick
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2007 08:43 AM
02-21-2007 08:43 AM
Re: How to stop sendmail from reading comment field of /etc/passwd
Note that unusual gecos fields in the password file can cause pre-V8 mail to fail. Consider the following passwd(5) entry:
happy:123:456:Happy Guy ;-),Ext 789,,:/u/happy:/bin/sh
The gecos field here will be parsed by all but V8 sendmail into a value for $x that can yield a faulty header - one with unbalanced parentheses:
From: happy@our.domain (Happy Guy ;-))
So, I changes the gecos field from:
Roleadm - John Smith
to:
Roleadm , John Smith
Thanks...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2007 11:34 AM
02-21-2007 11:34 AM