- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Sendmail not populating from: header as current lo...
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
11-12-2003 07:53 AM
11-12-2003 07:53 AM
Sendmail not populating from: header as current logged-on user after an SU
Any help would be greatly appreciated!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2003 07:57 AM
11-12-2003 07:57 AM
Re: Sendmail not populating from: header as current logged-on user after an SU
sendmail -v -d8.99 -d38.99 someuser@mydomain.com
post the output
-Vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2003 08:00 AM
11-12-2003 08:00 AM
Re: Sendmail not populating from: header as current logged-on user after an SU
su - username
The latter gets the target users environment.
Note this:
whoami
who am i
These two commands will show different results if you are su - user
Try this diagnostic, it might get you a bit of data.
sendmail -v -8.99 -d38.99 someone@some.net
type some text
.
You'll see how sendmail builds the mail. Then you decide how to make things work the way you want.
Also note:
/etc/mail/virtusertable
/etc/mail/genericstable
These two files can set up inbound and outbound mail lookup to hanldle issues such as multiple mail domains on the same server.
Entries in these two files could get the smtp names to start building the way you want.
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
11-12-2003 08:22 AM
11-12-2003 08:22 AM
Re: Sendmail not populating from: header as current logged-on user after an SU
When was the last time you cleared out /etc/utmp and /etc/wtmp? Test for corruption with 'last'
# last root
To clear out corruption:
# /dev/null > /etc/wtmp
# /dev/null > /etc/utmp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-13-2003 12:27 AM
11-13-2003 12:27 AM
Re: Sendmail not populating from: header as current logged-on user after an SU
This has to do with the login uid.
If you want the sending to be really perfomred by root, you should consider to perform an
exec login
see
man login
for details. This way, your original login uid will be replaced by root's login uid. The drawback is, that you completely lose the session you were in.
Something to think about too, is there are exceptions in sendmail.cf for masquerading when sending from root.
HTH
Kasper Haitsma
HP support engineer for sendmail