Operating System - HP-UX
1850495 Members
2611 Online
104054 Solutions
New Discussion

SENDMAIL sends as wrong User

 
Elif Gius
Valued Contributor

SENDMAIL sends as wrong User

Hi
I have following strange situation.
On my system I want send an email to the root-User. In his .forward-file an alias for the resipients is defined.
When I do this as root-User , I get the Email as oracle8-User from the system ???
I have checked, and I am the root-User!!!
Strange, isn't it?
Does anyone have an idea why this happend and how I can change this ?
Thanks in forward.
7 REPLIES 7
someone_4
Honored Contributor

Re: SENDMAIL sends as wrong User

Are you su as oracle to root?
Try this .. I am logged in as rleon su to to root and run the following.

# whoami
root
# who am i
rleon pts/ta Mar 26 09:03

When I send mail it comes as rleon even though I am root.

Richard
someone_4
Honored Contributor

Re: SENDMAIL sends as wrong User

I dont know if there is a fix but there is a trick you can use to get around this. Here is one way.

#sendmail rleon
From: whatever@wherever.com
test
.

You can even do Subject:

Richard

Anu Mathew
Valued Contributor

Re: SENDMAIL sends as wrong User

Hi there,

Greetings.

Could you post the headers that accompany your incoming email? Based on this we can find what is actually wrong.

In the case One of our systems here, the headers are:

Received: from data.domain.com (data [172.22.1.2]) by exchange.domain.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13)
id GT08M11H; Tue, 26 Mar 2002 11:00:06 -0600
Received: (from root@localhost) by data.domain.com (8.8.6 (PHNE_14041)/8.7.1) id LAA17343 for unixsupport@domain.com; Tue, 26 Mar 2002 11:00:01 -0600 (CST)
From: Data
Message-Id: <200203261700.LAA17343@data.domain.com>
Subject: Maestro zombies that are killed
To: unixsupport@domain.com
Date: Tue, 26 Mar 2002 11:00:01 CST
X-Mailer: Elm [revision: 212.4]

Please note the line "From: Data " .

root@data.domain.com is aliased as DATA by our mail relay, and it adds that name there. In your case too, there may be an header imposed by your Mail Server or, Mail Agent.

Thanks,

Anu Mathew
Elif Gius
Valued Contributor

Re: SENDMAIL sends as wrong User

but how can we solve the problem ???
Elif Gius
Valued Contributor

Re: SENDMAIL sends as wrong User

I tried following. Login as root and send a mail to me.

The header of the mail looks like this:
Received: from master.xyz.de by exxxxx1.abc.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21)
id QMB3GT7K; Fri, 30 Aug 2002 10:34:22 +0200
Received: from server.xyz.de by master.xyz.de (Lotus SMTP MTA v4.6.7 (934.1 12-30-1999)) with SMTP id 41256C25.0034972E; Fri, 30 Aug 2002 10:34:25 +0100
Received: (from root@localhost) by server.xyz.de (8.8.6 (PHNE_17190)/8.7.3) id KAA13361 for elif.gius@itellium.com; Fri, 30 Aug 2002 10:34:26 +0200 (METDST)
Date: Fri, 30 Aug 2002 10:34:26 +0200 (METDST)
From: Ladeuser
Message-Id: <200208300834.KAA13361@gaia.quelle.de>
To: elif.gius@itellium.com
Subject: TEST
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


Pete Randall
Outstanding Contributor

Re: SENDMAIL sends as wrong User

I wonder if you might be in a similar situation to this:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x2d9f93e260b0d611abdb0090277a778c,00.html

Granted, there's no answer there, yet, but you might be able to add something to the investigation.

Pete

Pete
Timo Ruiter
Advisor

Re: SENDMAIL sends as wrong User

Hi,

Have you tried to define the alias for root in the aliases database for semdmail (/etc/aliases). We have this working without problems.
If you do this is there still an error with the sender-ID?

Timo
Confucius say: he who runs through forrest in straight line will hit tree