Operating System - HP-UX
1834480 Members
3981 Online
110067 Solutions
New Discussion

Sendmail macro MASQUERADE_AS

 
SOLVED
Go to solution

Sendmail macro MASQUERADE_AS

Hi all,

on one of our HP 11.00 box we need to modify the sendmail configuration in order to "mask" the domain of the outbound email.
Now sending an email is only possible within our local domain cause the mail's host name header is in the form: .intranetdomain.
We would it in the form: hostname.publicdomain so this one will be recognized by the recevivers over the internet.
I found the directive MASQUERADE_AS and tried to insert it on a sendmail.mc file then using m4 I tried to generate a sendmail.cf without success. Maybe I mitkaen somethnig.
Is there any soul who would help me providing a procedure/solution to solve our issue?

Many Thanx
Alessansro
6 REPLIES 6
Gerald Taylor
Frequent Advisor
Solution

Re: Sendmail macro MASQUERADE_AS

You are on the right track. All you need to do is modify /etc/mail/sendmail.cf

search "Dj"

EXAMPLE:
# my official domain name
# ... define this only if sendmail cannot automatically determine your domain
Dj$w.mydomain.com

Gerald

Re: Sendmail macro MASQUERADE_AS

well,

this directive works well.
Now the domain of the senders id correct.
But is still impossible to receive mail across the internet because of the mail's header I suppose.

Microsoft Mail Internet Headers Version 2.0
Received: from webmail.publicdomain ([192.168.168.7]) by mail.publicdomain with Microsoft SMTPSVC(6.0.3790.211);
Tue, 28 Feb 2006 11:12:56 +0100
Received: from hostname.intranetdomain([192.168.168.1]) by webmail.ourpublicdomain with Microsoft


>> I THINK THIS IS THE PROBLEM...


SMTPSVC(6.0.3790.211);
Tue, 28 Feb 2006 11:12:55 +0100
Received: (from pr1adm@localhost)
by hostnameourintranetdomain(8.9.3 (PHNE_29773)/8.8.6) id LAA25149
for username@ourpublicdomain; Tue, 28 Feb 2006 11:19:01 +0100 (MET)
Date: Tue, 28 Feb 2006 11:19:01 +0100 (MET)


Any idea?

Gerald Taylor
Frequent Advisor

Re: Sendmail macro MASQUERADE_AS

Hello Alessansro,

Do you have MX record for your domain that you have added to masquerade as? This probably should have been the starting question.

Gerald
Geoff Wild
Honored Contributor

Re: Sendmail macro MASQUERADE_AS

Should be something like:

MASQUERADE_AS(`yourdomain.com')

See:

http://www.sendmail.org/m4/masquerading.html

Should appear as the followinf in sendmail.cf:

DMyourdomain.com

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.

Re: Sendmail macro MASQUERADE_AS

Dear gerald,


note that using conventional MAIL commands from the server connecting via telnet on port 25 of an external popmail works fine.
I suppose the issue regards sendmail on it's own.

Regards,
Alessandro.

Re: Sendmail macro MASQUERADE_AS

Thanx to all.
In addittion I implmented the samrthost solution for realying the mail to our mailserver (with the directive DS ).


ciaoooo!
Alessandro