- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: sendmail - who am I really ?
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-20-2002 04:14 PM
11-20-2002 04:14 PM
sendmail - who am I really ?
Using my own account, then sudo to root, I am attempting to send myself an email from one server to my exchange email. When it arrives in my inbox it says, it is from a different user. If I login again on the same server using the same method, the problem cannot be reproduced.
env HPUX 11i March 2002 patch release.
Nothing has been changed in sendmail.
No new patches have placed recently.
# what /usr/bin/sendmail
/usr/sbin/sendmail:
$Revision: vw: -RW selectors: 'ic27d' -proj integ -- ph_ic27d_i80 'cupi80_ic27dbase_pb(08-Nov-00.16:48:14)' 'BE11.11_IC27A'
Wed Nov 8 18:39:25 PST 2000 $
Copyright (c) 1998 HEWLETT PACKARD COMPANY and its licensors,
including Sendmail, Inc., and the Regents of the
University of California. All rights reserved.
version.c 8.9.3.1 (Berkeley) 10/01/2000
The user id of the user (sender) is not the same as mine. The /var/adm/syslog/mail.log states the mail is from this user (indicating the problem is not in exchange)
Suggestions.... Or should I be calling a lady with a deck of tarot cards.
Cheers
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2002 04:59 PM
11-20-2002 04:59 PM
Re: sendmail - who am I really ?
I'd be tempted to try mailing yourself on the unix box to see the results.
Try from an su
then try from an sudo.
It's always possible that sudo is not playing fair.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2002 05:14 PM
11-20-2002 05:14 PM
Re: sendmail - who am I really ?
Thanks for suggestion, still the same unfortunately from that session.
This is what I did:
su -
elm
sent an email to myself on the same server. It posted to my elm mail as the mysterious user.
As 'sudo', the same result....
Michael
PS As I said it is really weird and cannot be reproduced on a new session.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2002 05:44 PM
11-20-2002 05:44 PM
Re: sendmail - who am I really ?
Do the
whoami
and
who am i
commands output the correct names after su and sudo?
Is there a possibility of duplicate UIDs on this system?
NIS involved here?
.forward files in use by either user?
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2002 05:51 PM
11-20-2002 05:51 PM
Re: sendmail - who am I really ?
# whoami
root
# who am i
results in my own userid
The same in sudo as root
There are no duplicate user id's (checked already)
Wouldn't go near NIS
No .forward files.
What's that lady's phone number?
Cheers
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2002 06:28 PM
11-20-2002 06:28 PM
Re: sendmail - who am I really ?
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2002 06:46 PM
11-20-2002 06:46 PM
Re: sendmail - who am I really ?
mailx and sendmail give the same result. I am very sure the problem starts before the message actually gets to sendmail for sending. Why my userid converts to someones elses is the mystery....As I mentioned in my original post the mystery userid is embedded in the mail.log instead of mine....
Those tarot cards are looking better :^))
Cheers
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2002 08:46 PM
11-20-2002 08:46 PM
Re: sendmail - who am I really ?
I'm really interested to kow what this is about now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2002 08:55 PM
11-20-2002 08:55 PM
Re: sendmail - who am I really ?
It's gotta boil down to basics.
Have you run the *ck series...pw, grp & auth?
Have you examined an env output...carefully...checked your .profile line-by-line?
Any ~rc files hiding out there? Checked the shell binary? Come in as another user & su - to you?
This is quite the puzzler.....
Cheers,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2002 10:23 PM
11-20-2002 10:23 PM
Re: sendmail - who am I really ?
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2002 10:33 PM
11-20-2002 10:33 PM
Re: sendmail - who am I really ?
I've already run the *ck progs, and we don't have a trusted system. It is not good opening another session, as the problem does not get reproduced.
no env changes, no strange su's....
no wtmp/utmp corruption
the tusc output.... Well that didn't really show anything...
knock yourself out.....
Its actually beer time, I'm outta here, I check a bit later.
Cheers
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2002 11:58 PM
11-20-2002 11:58 PM
Re: sendmail - who am I really ?
I've got the same problem on sun/solaris after implementing logical connection security, root can only login to system on local console, su works fine but mail will be sent with original login id.
Called Sun's crc, but they could not give me an answer ?
If you get any answers from your lady's cards PLEASE let me know.
I'll start looking in to a crystal bowl for the mean time.
Kind regards,
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2002 01:37 AM
11-21-2002 01:37 AM
Re: sendmail - who am I really ?
I think you've mis-understood the question....
The output from tusc, doesn't look like it made it, so I'll re-post it tomorrow AM my time. I'm certainly all for more suggestions....
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2002 02:00 AM
11-21-2002 02:00 AM
Re: sendmail - who am I really ?
I had the same effect on some machines and I answered to thread
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x2d9f93e260b0d611abdb0090277a778c,00.html
In our case it's a problem with utmp/wtmp files and login via ssh:
whoami --> root
who am i --> root
id --> uid=0(root) gid=...
logname -->
Solution:
empty /etc/utmp /etc/utmpx /var/adm/wtmpx /var/adm/wtmp
and reboot the machine
Chris
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2002 01:34 PM
11-21-2002 01:34 PM
Re: sendmail - who am I really ?
Unfortunately we do not use 'ssh' for some of our systems, this is one. None of the Xtmp file are corrupted.
That lady with the deck of cards is lokking better all the time.....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2002 02:52 PM
11-21-2002 02:52 PM
Re: sendmail - who am I really ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2002 10:33 PM
11-21-2002 10:33 PM
Re: sendmail - who am I really ?
Nethertheless
what's the output from 'logname'?
logname uses the same routine to show the user as sendmail.
Chris
My grandma is very familiar with cards ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2002 10:39 PM
11-21-2002 10:39 PM
Re: sendmail - who am I really ?
netherless, what's the output from 'logname' ?
logname uses the same routines as sendmail to fetch the user.
Chris
My grandma is very familiar with cards ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2002 01:43 AM
11-22-2002 01:43 AM
Re: sendmail - who am I really ?
do a backup of the files, then
cp /dev/null /etc/utmp
...
logoutand then login again,if you use "logname" ,it will now give the correct user
Attention: Your current logon-information will be lost (so it would be the best that all users logout from the system)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-22-2002 02:08 PM
11-22-2002 02:08 PM
Re: sendmail - who am I really ?
There is no problem with either my logname or the Xtmp files (mentioned previously)
Thanks for the assistance, but this system will reboot tomorrow when everyone is asleep. (meaning the session I had will terminate) I'll keep an eye on it and see what happens next week. Unless somebody has something new to add, I'll consider this thread closed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-19-2002 11:13 AM
12-19-2002 11:13 AM
Re: sendmail - who am I really ?
in /etc/aliases you can have an entry like....
steve@schmobagel.com steve
All mail coming into to that goes to the steve account on the local box, whether its HP-UX or Linix, or whatever.
But to do this, you need a good m4 script to build the binary databses. If this is of use to you(helps with your issue) pop a point or two, reply to this post and I'll upload you a script.
There may already be a script in the itrc forums called buildmail, because I think I already posted it.
Steve
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com