Operating System - HP-UX
1752567 Members
5234 Online
108788 Solutions
New Discussion юеВ

unable to send mail from the server

 
SOLVED
Go to solution
user1221
Frequent Advisor

unable to send mail from the server

Hi all,

I am unable to send mail from hp-ux 11.31 server, I am trying to send mail to the same domain email id, the sendmail service is running but the mails are getting queued up.

/var/spool/mqueue (2 requests)
-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient--
n6DBUu1H025953 1781 Mon Jul 13 14:30 oracle
(host map: lookup (kmc.med): deferred)
mtaq@kmc.med
n6D5GNC8028538 1781 Mon Jul 13 08:16 oracle
(host map: lookup (kmc.med): deferred)
mtaq@kmc.med Total requests: 2

The HP openview operations sends the following critical message whenever there is a failed mail.
sendmail daemon could not receive/send mail to mtaq@kmc.med: Transient parse error -- message queued for future delivery

When tried
oracle:/etc/rc.config.d$ nslookup -q=mx kmc.med
Using /etc/hosts on: hdb03

looking up FILES
*** No address information is available for "kmc.med"

I even tried to dig
oracle:/etc/rc.config.d$ dig mx kmc.med

; <<>> DiG 9.3.2 <<>> mx kmc.med
;; global options: printcmd
;; connection timed out; no servers could be reached


Please help!
22 REPLIES 22
user1221
Frequent Advisor

Re: unable to send mail from the server

forget to add,
I am able to telnet the exchange (mail) server at port 25
Michal Kapalka (mikap)
Honored Contributor

Re: unable to send mail from the server

hi,

configure the sendmail with smarthost option.

mikap
James R. Ferguson
Acclaimed Contributor

Re: unable to send mail from the server

Hi:

Sendmail effectively requires DNS to be setup.

You have already seen that you can't resolve 'kmc.med':

*** No address information is available for "kmc.med"

Setup DNS and configure a smart relay (DS macro) in '/etc/mail/sendmail.cf'.

Regards!

...JRF...
user1221
Frequent Advisor

Re: unable to send mail from the server

could you please tell me how to set up smarthost option and the DS in /etc/mail/sendmail.cf

thanks & Regards
Michal Kapalka (mikap)
Honored Contributor

Re: unable to send mail from the server

Michal Kapalka (mikap)
Honored Contributor

Re: unable to send mail from the server

hi,

DS[192.168.1.1] or
DSmygateway.example.com

if you give there a hostname them add it to the DNS or /etc/hosts

mikap
Mel Burslan
Honored Contributor

Re: unable to send mail from the server

After you set up the smarthost on the DS line, make sure when you telnet to this server's port 25, you get something like :

# telnet smartmail 25
Trying...
Connected to smartmail.directv.com.
Escape character is '^]'.
220 smartmail.mydomain.com ready Mon, 13 Jul 2009 06:43:11 -0700

if you do not see the 220 message, or getting a connection refused, most probably mail relay server is not allowing your server to relay mails from. Talk to the maild server administrators in your organization to set this up.
________________________________
UNIX because I majored in cryptology...
Steven E. Protter
Exalted Contributor
Solution

Re: unable to send mail from the server

Shalom,

In most corporate environments a smtp relay server is provided for serves and such to dump email onto the corporate system.

You get the IP address or host name of the server, have it configured to accept mail from your server and.

Edit sendmail.cf

Change DS to:

DShostname_of_smtp_relay_server

or

DS
[ip address of smtp relay server]

ex

DS
[192.168.0.10]

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

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
Vinod Kumar Yadav
Trusted Contributor

Re: unable to send mail from the server

Hi,


The Sendmail is working it the permission issue with /var/spool/mqueue or check the
/etc/resolv.conf & Please check the sendmail services running.

root # ps -ef | grep -i sendmail
root 1700 1 0 Jul 11 ? 0:04 sendmail: accepting connections
root 29011 23487 0 16:13:46 pts/tb 0:00 grep -i sendmail

root # ls -ld /var/spool/mqueue
drwxr-xr-x 2 root bin 1024 Jul 13 16:13 /var/spool/mqueue

root # ls -ld resolv.conf
-rw-r--r-- 1 root sys 110 Jun 16 2007 resolv.conf

Try with Permission send mail & check the log /var/adm/syslog/mail.log


Thanks
Vinod


Jai Shiv Shankar