Operating System - HP-UX
1837672 Members
3668 Online
110117 Solutions
New Discussion

sendmail using another IP address

 
SOLVED
Go to solution
Lynn Hsu_2
Frequent Advisor

sendmail using another IP address

Hi,
I have a HPUX box that has 3 IP addresses (1 nic). 2 IP addresses are registered in the
public domain. Can I use 1 registered IP for
sendmail traffic? If so, what will be the line
in sendmial.cf? Any input is appreciated.

Thanks,

Lynn
4 REPLIES 4
Geoff Wild
Honored Contributor
Solution

Re: sendmail using another IP address

Try:


OOAddr=1.2.3.4

Substituting your TCP/IP address for 1.2.3.4. This Sendmail option is explained in the "Options" chapter of the O'Reilly Sendmail book.


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

Re: sendmail using another IP address

Shalom Lynn,

If other machines are going to use the HP-UX machine to send mail, you will need to authorize relay very carefuly in the /etc/mail/access file.

Format:
IP adrress RELAY

Example

192.168.0.15 RELAY

Don't authorize relay for all IP addresses or the spammers will figure it out and use your server to relay mail.

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
Lynn Hsu_2
Frequent Advisor

Re: sendmail using another IP address

Hi,
I tried the OOAddr= option in sendmail.cf. Restarted sendmail, test mail
still can not go out to the internet. I suspect it's DNS issue. Somehow, the outgoing mail will go thr DNS to resolve the
recepient's mail server name... It timed out... Is there anyway to get around DNS?
I have not tried "access" file. How do I build this access.db if I modify access file?

Of course, I still need to figure what's wrong with DNS on this box. It has named
running but can not query external host.
Is there a external "relay" to DNS configuration?

At this point, I want to get mail to send
out. So please help if you have any idea. Thanks million!

Lynn


Geoff Wild
Honored Contributor

Re: sendmail using another IP address

DNS - check your /etc/resolv.conf - if this is a DNS server, it probably points to itself first.

For a DNS server, you want to setup forwarders in your named.conf - these should be the DNS servers from your Internet Provider:

options {
directory "/etc/namedb";
forwarders {
X.X.X.1; X.X.X.2; // this is a comment };
forward only; // while in transition
};

Then restart named.

In /etc/nsswitch.conf - check hosts line - should be something like:

hosts: files [NOTFOUND=CONTINUE] dns


If hosts first, make sure you have the FQDN by your host name.

192.168.2.1 svr003 svr003.yourdomain.net


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.