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

Send mail not working for external addresses

Send mail not working for external addresses

Hi,

We have 2 HP-UX Servers.

I've setup the mail server ip address under /etc/hosts file. Also configured /etc/mail/sendmail.cf. But, could not able to send mails to the external addresses.

The setup works fine on one of the HP Servers but not on the other.

Any guidance will be appriciated.

TIA,
Hari
4 REPLIES
Pedro Sousa
Honored Contributor

Re: Send mail not working for external addresses

OK...
So, your mail server is on NT?
Can you attatch your error messages from the /var/adm/syslog/mail.log?
Do you have the line 'DS' configured in sendmail.cf? Try to indicate the server without domain, and with domain like:
DSserver
or
DSserver.xxx.com
good luck.
Douglas Cromby_1
Valued Contributor

Re: Send mail not working for external addresses

Hello,

I agree with Pedro. The most likely thing to change in sendmail.cf is the DS line. Basically, if you are say using Exchange on the NT server(s), then you can relay all non-local messages to the NT box, and this should be able to forward them on as required.

Re: Send mail not working for external addresses

Thanks for the reply.

Actually, the company getting the mail service from a local ISP. So, what all I've is their router IP Address.

So, I've just defined the IP address with a mailserver name in /etc/hosts file.
I could able to ping to the mail server from the HP-UX box.

In sendmail.cf, I've given this mailserver name at DS.

Similar thing works on one of the servers but not on the other.

Could I need to run any other deamon processes?



Douglas Cromby_1
Valued Contributor

Re: Send mail not working for external addresses

One thing that I use to troubleshoot situations like this is to use sendmail on the command line with the -v option for verbose. This will show exactly what is going on, and how the message is being routed (or not!!). You could test this for a success internal address and an external address.

eg This command will send the hosts file to abc@xyz.com:

sendmail -v abc@xyz.com < /etc/hosts

or just a simple test:

sendmail -v abc@xyz.com
test
.