- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: unable to send mail from the server
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2009 04:31 AM
07-13-2009 04:31 AM
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!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2009 04:35 AM
07-13-2009 04:35 AM
Re: unable to send mail from the server
I am able to telnet the exchange (mail) server at port 25
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2009 04:40 AM
07-13-2009 04:40 AM
Re: unable to send mail from the server
configure the sendmail with smarthost option.
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2009 04:40 AM
07-13-2009 04:40 AM
Re: unable to send mail from the server
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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2009 05:01 AM
07-13-2009 05:01 AM
Re: unable to send mail from the server
thanks & Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2009 05:16 AM
07-13-2009 05:16 AM
Re: unable to send mail from the server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2009 05:19 AM
07-13-2009 05:19 AM
Re: unable to send mail from the server
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2009 05:45 AM
07-13-2009 05:45 AM
Re: unable to send mail from the server
# 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...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2009 06:03 AM
07-13-2009 06:03 AM
SolutionIn 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
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2009 12:14 PM
07-13-2009 12:14 PM
Re: unable to send mail from the server
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2009 10:07 PM
07-13-2009 10:07 PM
Re: unable to send mail from the server
I modified the sendmail.cf file, added exchange server's hostname after DS,
DSmyexchangeserver.hostname
and also added the ip and hostname in the /etc/hosts file.
then tried to stop and start sendmail service
root@hrdb03:/etc/mail# /sbin/init.d/sendmail stop
Shutting down sendmail [Done]
Sendmail client not running
root@hrdb03:/etc/mail# ps -ef | grep sendmail
root 16501 14235 0 08:56:01 pts/tb 0:00 grep sendmail
root@hrdb03:/etc/mail# /sbin/init.d/sendmail start
Starting sendmail [Done]
Unable to start sm-client
then I copied submit.cf to /etc/mail/ and then again stop and start the sendmail service.
root@hrdb03:/etc/mail# /sbin/init.d/sendmail start
Starting sendmail [Done]
/etc/mail/submit.cf: line 1100: readcf: option RunAsUser: unknown user smmsp
/etc/mail/submit.cf: line 1119: readcf: option TrustedUser: unknown user smmsp
Mail submission program must have RunAsUser set to non root user
Unable to start sm-client
For more information see /var/adm/syslog/mail.log
oracle@hrdb03[central]:/etc$ /sbin/init.d/sendmail stop
kill_sendmail[9]: /etc/mail/sendmail.pid: cannot open
Sendmail client not running
oracle@hrdb03[central]:/etc$ /sbin/init.d/sendmail start
/sbin/init.d/sendmail[115]: /etc/rc.config.d/gwlmCtl: not found.
PLEASE HELP!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2009 12:19 AM
07-14-2009 12:19 AM
Re: unable to send mail from the server
/etc/mail/submit.cf: line 1100: readcf: option RunAsUser: unknown user smmsp
/etc/mail/submit.cf: line 1119: readcf: option TrustedUser: unknown user smmsp
Mail submission program must have RunAsUser set to non root user
Please update!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2009 12:24 AM
07-14-2009 12:24 AM
Re: unable to send mail from the server
Jul 14 11:01:14 hrdb03 sendmail[24937]: sm_gethostbyname:name :hrdb03 family:22
Jul 14 11:16:48 hrdb03 sendmail[29887]: sm_gethostbyname:name :hrdb03 family:22
Jul 14 11:16:48 hrdb03 sendmail[29887]: NOQUEUE: SYSERR(oracle): /etc/mail/submit.cf:
line 1100: readcf: option RunAsUser: unknown user smmsp
Jul 14 11:16:48 hrdb03 sendmail[29887]: NOQUEUE: SYSERR(oracle): /etc/mail/submit.cf:
line 1119: readcf: option TrustedUser: unknown user smmsp
Jul 14 11:20:48 hrdb03 sendmail[1311]: sm_gethostbyname:name :hrdb03 family:22
Please update!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2009 12:26 AM
07-14-2009 12:26 AM
Re: unable to send mail from the server
make a alias in /etc/hosts
IP test.example.com test
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2009 12:30 AM
07-14-2009 12:30 AM
Re: unable to send mail from the server
I already added the ip of exchange server in the hosts file
10.242.12.56 cc1001-mail02.kmc.med cc1001-mail02
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2009 12:37 AM
07-14-2009 12:37 AM
Re: unable to send mail from the server
check this link from ITRC :
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1036060
hope it help you
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2009 12:49 AM
07-14-2009 12:49 AM
Re: unable to send mail from the server
The SENDMAIL_SERVER is already set to 1
I the echo $SENDMAIL_SERVER gives the output 1.
I tried to restart the sendmail service & got the following
oracle@hrdb03[central]:/home/oracle/scripts$ /sbin/init.d/sendmail stop
kill_sendmail[9]: /etc/mail/sendmail.pid: cannot open
Sendmail client not running
oracle@hrdb03[central]:/home/oracle/scripts$ /sbin/init.d/sendmail start
/sbin/init.d/sendmail[115]: /etc/rc.config.d/gwlmCtl: not found.
Please update!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2009 01:09 AM
07-14-2009 01:09 AM
Re: unable to send mail from the server
the oracle user doesn't have permition to stop/start services.
mikap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2009 01:16 AM
07-14-2009 01:16 AM
Re: unable to send mail from the server
oracle@hrdb03[central]:/sbin/init.d$ /sbin/init.d/sendmail start
/sbin/init.d/sendmail[115]: Syntax error at line 438 : `(' is not expected.
Please update!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2009 01:17 AM
07-14-2009 01:17 AM
Re: unable to send mail from the server
root@hrdb03:/etc/rc.config.d# /sbin/init.d/sendmail start
/sbin/init.d/sendmail[115]: Syntax error at line 438 : `(' is not expected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2009 01:27 AM
07-14-2009 01:27 AM
Re: unable to send mail from the server
This means you have a garbage file in /etc/rc.config.d/.
115 . /etc/rc.config
You can't have "backup" files in /etc/rc.config.d/ or any other types there.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2009 01:30 AM
07-14-2009 01:30 AM
Re: unable to send mail from the server
Unable to start sm-client
That is an extremely trivial message.
Your system will send and receive email without trouble without the sm-client running.
sendmail must be administered, stopped and started with the root user.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2009 02:04 AM
07-14-2009 02:04 AM
Re: unable to send mail from the server
Dennins,
I removed one backup file from the /etc/rc.config.d/ directory then I was able to stop and start the sendmail service from the oracle user not from the root user, when I tried to stop and start from root user I got this error
root@hrdb03:/etc/mail# /sbin/init.d/sendmail stop
Shutting down sendmail [Done]
Sendmail client not running
root@hrdb03:/etc/mail# /sbin/init.d/sendmail start
Starting sendmail [Done]
/etc/mail/submit.cf: line 1100: readcf: option RunAsUser: unknown user smmsp
/etc/mail/submit.cf: line 1119: readcf: option TrustedUser: unknown user smmsp
Mail submission program must have RunAsUser set to non root user
Unable to start sm-client
then I tried to start from oracle user
oracle@hrdb03[central]:/sbin/init.d$ /sbin/init.d/sendmail start
Sendmail has already been started
but when I tried to send one mail I got the following error
oracle@hrdb03[central]:/home/oracle/scripts$ /etc/mail/submit.cf: line 1100: readcf:
option RunAsUser: unknown user smmsp
/etc/mail/submit.cf: line 1119: readcf: option TrustedUser: unknown user smmsp
Mail submission program must have RunAsUser set to non root user
and the process is just stucked there.
Please help!