Messaging
cancel
Showing results for 
Search instead for 
Did you mean: 

Sendmail Masquerading Problem

yc_2
Regular Advisor

Sendmail Masquerading Problem

Hi,

Mail send out from unix box, the From field is @.

To get rid off the part, I modified sendmail.cf in HP-UX with the following:
:
DM
:
Then I restart sendmail.

The recipient mail of the From field stated as @. This is what I expected.

In the HP-UX server, the system stating the folloiwng using sendmail -v command:
:
>>> MAIL From:@.
:

Why is it so? It is still sending out the mail with the part.

How to get rid off the part from the HP-UX server when the mail is sent out? It is important because the bounce back mail seems using the @. which the HP-UX server is not configured to recv mail.



Thanks in advance,
YC

 

 

P.S. this thread has been moved from HP-UX > System Administration to HP-UX > messaging - HP Forum Moderator

8 REPLIES
Michael Schulte zur Sur
Honored Contributor

Re: Sendmail Masquerading Problem

Hi,

have you tried
sendmail -F
to change the return address to a machine, that can accept mail?

greetings,

Michael
Donny Jekels
Respected Contributor

Re: Sendmail Masquerading Problem

YC,

DM does not work for root. only for regular users.

I am using it as you explained, and don't get the hostname in the smtp addy.

how did you setup

Dj

peace
Donny
"Vision, is the art of seeing the invisible"
Sridhar Bhaskarla
Honored Contributor

Re: Sendmail Masquerading Problem

Hi,

DM should have worked. Do you have a non-default CE macro setup?. Masquerading will not be done for the users specified under CE macro.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Ernie Burns
Advisor

Re: Sendmail Masquerading Problem

A while back I had opened a ticket with HP concerning this same issue and was given the following:

sendmail.cf
DM # Add domain name
Uncomment line starting with S94
Uncomment line starting with R$+
Comment out line CE root #To masquerade root id.
Steven E. Protter
Exalted Contributor

Re: Sendmail Masquerading Problem

you might want to try the sendmail.mc equivalent for HP-UX.

I hate missing with sendmail.cf, I almost always use macros' which makes it easier to regenerate the sendmail.cf from a file that has a readable format.

Let me know if you want to go this way.

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
Steven E. Protter
Exalted Contributor

Re: Sendmail Masquerading Problem

last post

missing should have been messing

Let me attach a script that shows how easy sendmail macro programming is with hp-ux.

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
yc_2
Regular Advisor

Re: Sendmail Masquerading Problem

Thanks everyone.

By copying a working sendmail.cf file from another host, it seems working now.

I will compare the different of both sendmail.cf file to find out the different.

BTW, is there a easy understand book for sendmail that will solve commonly configuration issues?
Geoff Wild
Honored Contributor

Re: Sendmail Masquerading Problem

is there a easy understand book for sendmail that will solve commonly configuration issues?

Don't think it's "easy" but the best book to have is:

sendmail by O'reilly & Associates

http://www.oreilly.com/catalog/sendmail3/index.html

There's also a cookbook:

http://www.oreilly.com/catalog/sendmailckbk/index.html

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.