Operating System - HP-UX
1833752 Members
2921 Online
110063 Solutions
New Discussion

Re: Not able to send mail

 
prasathc_1
Frequent Advisor

Not able to send mail

Hi All
I have a B-2600 machine with 11.22 LR Installedn. When i try to send mail to some other id apart from hp.com id it's simply lying the queue and some of the mail are bouncing.

----- Transcript of session follows -----
550 5.1.2 ... Host unknown (Name server: india.hp.com.: host not found)
451 hpcvl200: Name server timeout
451 hpcvl200: Name server timeout

----- Transcript of session follows -----
550 5.1.2 ... Host unknown (Name server: wipro.com.: host not found)

(Deferred: Connection refused by mail.uu.net.)

Can any body help me out to sort this problem.

Thanks in Advance.
Prasath C
If u fail to plan, U plan to fail
14 REPLIES 14
U.SivaKumar_2
Honored Contributor

Re: Not able to send mail

Hi,

Can you resolve the DNS records for other domains from that mail server ?

#nslookup
>set type=mx
>wipro.com
Does it show the mx records ( mail servers ) of wipro.com domain ?.

Are you using your own DNS server or ISP's DNS server in /etc/resolv.conf ?

If it is ISP's then Check with your ISP whether any problem is there with their DNS servers or any intercity link is down
regards,
U.SivaKumar
Innovations are made when conventions are broken
Telia BackOffice
Valued Contributor

Re: Not able to send mail

you have nameserver problem and not a sendmail problem. Look at the file /etc/resolv.conf for seeing you choise of DNS server and at /etc/nsswitch.conf for your order of resolv.

Please give some more information.

/Jannik
prasathc_1
Frequent Advisor

Re: Not able to send mail

Hi Shiva
Here is output of nslookup
# nslookup
Default Name Server: chennai.india.hp.com
Address: 15.70.168.58

> set type=mx
> wipro.com
Name Server: chennai.india.hp.com
Address: 15.70.168.58

Trying DNS
Non-authoritative answer:
wipro.com preference = 5, mail exchanger = wiproecmx2.wipro.com
wipro.com preference = 5, mail exchanger = wiprom2mx1.wipro.com
wipro.com preference = 5, mail exchanger = wiprom2mx2.wipro.com
wipro.com preference = 5, mail exchanger = wiproecmx1.wipro.com

Authoritative answers can be found from:
wipro.com nameserver = ns2.webindia.com
wipro.com nameserver = ns1.webindia.com
wiproecmx2.wipro.com internet address = 164.164.31.6
wiprom2mx1.wipro.com internet address = 203.197.164.41
wiprom2mx2.wipro.com internet address = 203.197.164.42
wiproecmx1.wipro.com internet address = 164.164.31.5
ns2.webindia.com internet address = 204.176.141.201
ns1.webindia.com internet address = 204.176.140.101
>

and i am working with our own DNS server domain.

Thanks in Advance
Prasath C
If u fail to plan, U plan to fail
Jose Mosquera
Honored Contributor

Re: Not able to send mail

Hi,

If you are using a Relay server you need set DS definition into /etc/mail/sendmail.cf, i.e:
DS

Where must be a resolute name.

Also you can try setting your "official domain name", i.e:
Dj$w.

After any change in /etc/mail/sendmail.cf you must restart sendmail service, these commands allow you stop|start sendmail service:

/sbin/init.d/./sendmail stop
/sbin/init.d/./sendmail start

You can check your pending mail queue by the comand: "mailq -v". All mails queued are in /var/spool/mqueue. Each email have 2 files, one is mail header and other is data

Remember always that sendmail variable must be set to 1, in /etc/rc.config./mailservers file.

Rgds.
U.SivaKumar_2
Honored Contributor

Re: Not able to send mail

Hi ,

can you do connect to smtp port of wipro server

#telnet wiproecmx2.wipro.com 25

regards,
U.SivaKumar
Innovations are made when conventions are broken
prasathc_1
Frequent Advisor

Re: Not able to send mail

Hi

Here is output
# telnet wiproecmx2.wipro.com 25
Trying...
telnet: Unable to connect to remote host: Connection refused

Thanks
Prasath C
If u fail to plan, U plan to fail
prasathc_1
Frequent Advisor

Re: Not able to send mail

Hi

My Dns entry as follows
# cat /etc/resolv.conf
domain india.hp.com
nameserver 15.70.168.58 # CHENNAI.INDIA.HP.COM
nameserver 15.10.40.3 # FAKIR.INDIA.HP.COM

# cat /etc/nsswitch.conf
hosts: dns files nis

Regards
Prasath C
If u fail to plan, U plan to fail
Jose Mosquera
Honored Contributor

Re: Not able to send mail

Hi again,

Try detailing your order of resolv in /etc/nsswitch file. i.e:
hosts: dns [NOTFOUND=continue UNAVAIL=continue TRYAGAIN=continue] files [NOTFOUND=continue UNAVAIL=continue TRYAGAIN=return]

Try in you /etc/resolv.conf with:
search india.hp.com
nameserver 15.70.168.58
nameserver 15.10.40.3

(*) Always keeps a unchanged copy of these files. Remember restart sendmail service after do any change.

Rgds.
John Meissner
Esteemed Contributor

Re: Not able to send mail

edit /etc/mail/sendmail.cf and uncomment the DS option. also you will have to add the fully qualified domain name of the mail server after DS. It should look like this:

DS mailserver.mydomain.com

You will then be able to send external e-mail
All paths lead to destiny
Steven E. Protter
Exalted Contributor

Re: Not able to send mail

It is possible you have many issues not yet addressed in the very fine posts above.

Test your email functionality with the following command line.

/usr/sbin/sendmail -v -d8.99 -d38.99 whoever@what.com

After an error, run mailq

This will provide you diagnostics.

If you have mail queue entries, it is possible to fix your machine to get mail off of it.

Your problem however could be issues with your mail relay server.

We had a symmantec box in house which needed patching. I made many changes to my dns/mail configuration only to discover the symmantec box was totally at fault for my mail problems.

Steve
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
Chris Vail
Honored Contributor

Re: Not able to send mail

That 'connection refused' message you got when telnetting to port 25 on the remote host is a big clue. That means the remote host is not accepting mail. It could be that sendmail on the remote host is broken, not working, not installed, not configured correctly, etc.. Or it could mean that the router that serves email to that host has blocked port 25--the email port. If you can ping the remote host, but not telnet to port 25 on it, then you have basic network connectivity, but not email connectivity. Something is amiss, and you probably need to coordinate with the administrator of the remote system.
Good Luck
Chris
prasathc_1
Frequent Advisor

Re: Not able to send mail

Hi All

Now the problem was solved.

By copying the sendmail.cf from another machine[11.11].

Now i am able to send mail to the same host{wiprow}, and outside the domain.

Still i am confuse that what should be the problem with sendmail 8.11.1 (11.22).

Thanks for the valuable suggestion and response.

Regards
Prasath C
If u fail to plan, U plan to fail
Steven E. Protter
Exalted Contributor

Re: Not able to send mail

Your mail relay server, which appears to be mail.uu.net or wipro.com is not accepting mail from your host.

That could be an isp/firewall setup issue or a name resolution issue.

To get mail to outside mail severs, you might actually need a fully qualified domain name on the sending system.

At the very least, you'll need the sendmail.cf file setup to do so, otherwise certain outside mail servers(hp, aol, yahoo) will not accept your mail.

Do a sendmail -v -d38.99 isnstock@aol.com and watch aol reject your mail.

Steve
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
roadrunner_1
Regular Advisor

Re: Not able to send mail

if you are confused about that problem why dont u do a diff on the sendmail file which you copied with the original which caused problems.

This might help you find the difference the config