Operating System - Linux
1822230 Members
3723 Online
109642 Solutions
New Discussion юеВ

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
6 REPLIES 6
Stuart Browne
Honored Contributor

Re: Sendmail Masquerading problem

Try using a 'Dj' line in conjunction with the 'DM'.
One long-haired git at your service...
Steven E. Protter
Exalted Contributor

Re: Sendmail Masquerading problem

If you are trying to run more than one domain on one server, the Dj directive will not do the trick.

If you are only running one domain the prior post is a solution, 10 point rabbit in my opinion.

Proper domain setup requires a hostname to be properly setup.

Say the server is server1

Change it to server1.company.net

in /etc/rc.config.d/netconf

If the last two sections exceed 8 characters then the only way to make this work right is to provide DNS records on a DSN server that create the servers fully qualified domain name to be server.company.net

Now if you want multiple domains, you need additional configuration files.

/etc/mail/virtusertable
/etc/mail/genericstable

These two files let you simulate subdomains for inbound and outbound mail.

If this is what you wish to accomplish I've got a complete guide to this kind of setup. If not, I've typed enough, I'll check back on the thread. If I don't email me, my email is in Dan's issues thread.

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
Berlene Herren
Honored Contributor

Re: Sendmail Masquerading problem

Don't test as root user, as root, by default, does not masquerade.

Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm
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?
Vitaly Karasik_1
Honored Contributor

Re: Sendmail Masquerading problem

I suggest you to work with sendmail.mc, not .cf file.

Books:

- Red Hat "RHL Customization Manual" is good for starting

- HOWTOs
- "Senamail for Linux" [http://www.amazon.com/exec/obidos/tg/detail/-/0672318342/103-9536108-1915822?v=glance]
- there is *classic" O'Reily Sendmail book, but it's too fat...
Berlene Herren
Honored Contributor

Re: Sendmail Masquerading problem

YC, you may want to look at sendmail Cookbook,

By Craig Hunt
December 2003
Series: Cookbooks
ISBN: 0-596-00471-0
408 pages,

http://www.bookpool.com/.x/tk7rrmz1nn/sm/0596004710

"The sendmail Cookbook provides step-by-step solutions for the administrator who need to solve configuration problems fast. Say you need to configure sendmail to relay mail for your clients without creating an open relay that will be abused by spammers. A recipe in the Cookbook shows you how to do just that. No more wading through pages of dense documentation and tutorials and creating your own custom solution--just go directly to the recipe that addresses your specific problem.

Each recipe in the sendmail Cookbook outlines a configuration problem, presents the configuration code that solves that problem, and then explains the code in detail. The discussion of the code is critical because it provides the insight you need to tweak the code for your own circumstances. "

Regards,
Berlene
http://www.mindspring.com/~bkherren/dobes/index.htm