1855623 Members
9429 Online
104112 Solutions
New Discussion

SENDMAIL - 8.9.3

 
Faizer Jameel
Frequent Advisor

SENDMAIL - 8.9.3

Dear All
Introduction: Sendmail is used only for the purpose of sending Oracle alerts from the hp box running Oracle ERP to exchange users. This is working fine. The sender of the mail from the hp box is user@server.ram.com. [eg applmgr@test.ram.com,root@test.ram.com]ram.com is the domain name.

Requirement:
I need the sender to be user@ram.com
How do I do this and what files should I change?
Thanks
Faizer
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: SENDMAIL - 8.9.3

Shalom,

Change the Dj directive in sendmail.cf

Djram.com

Sendmail should not be running to accept connections.

vi /etc/rc.config.d/mailsvrs

Make sure the variable is set to 0.

/sbin/init.d/sendmail stop

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Faizer Jameel
Frequent Advisor

Re: SENDMAIL - 8.9.3

Hi Steven
This solution was there in one of the thereads that you had answered. This does not work. When I do this I do not get the mail to my exchange server.
------------------------------
The mail.log file:
Oct 30 15:46:40 rtest sendmail[8707]: PAA08707: from=root, size=801, class=0, pri=30801, nrcpts=1, msgid=<200610301246.PAA08707@ram.com>, relay=root@local
host
Oct 30 15:46:40 rtest sendmail[8709]: PAA08707: to=user@ram.com, ctladdr=root (0/3), delay=00:00:00, xdelay=00:00:00, mailer=local, stat=Sent
Oct 30 15:46:40 rtest sendmail[8709]: PAA08707: done

Thanks
Steven E. Protter
Exalted Contributor

Re: SENDMAIL - 8.9.3

Ah,

My own past work used against me.

You need to configure the exchange server your HP-UX sendmail machine connects to to explicitly permit relay by IP address.

Exchange be default for very good reasons denies relay and generates this exact error message.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
spex
Honored Contributor

Re: SENDMAIL - 8.9.3

Hi,

If mailx is the underlying agent for sending the alerts, the '-r
' option allows '
' to be passed directly to the network delivery software.

For example:

echo "see subject line" | mailx -m -r user1@ram.com -s "alert on $(hostname) at $(date)" user2@ram.com

Otherwise, I'm sure you could rewrite the sender's address in Exchange.

PCS
Faizer Jameel
Frequent Advisor

Re: SENDMAIL - 8.9.3

Stephen
When I sned a message to the user on exchange I get the message user unknown on my server.
When I use my account [ I have a user account on the hp box] then it goes to the my user account n hp and not to the exchange.
thanks
Steven E. Protter
Exalted Contributor

Re: SENDMAIL - 8.9.3

Shalom,

Yet another issue.

There needs to be a user in exchange. Normally this is set up on the Windows Primary Domain Controller.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Faizer Jameel
Frequent Advisor

Re: SENDMAIL - 8.9.3

Hi Stephen
The exchange server has all thye users accounts including the ones I am testing with.
# Would MASQUERADE_AS(my.dom.ain)help.
Where should we set this Masquerade up.
where I set MASQUERADE_AS(ram.com)
The .cf file be kept as DJ$wram.com.
Thanks