Operating System - HP-UX
1753776 Members
7536 Online
108799 Solutions
New Discussion юеВ

Re: unable to send mail from the server

 
SOLVED
Go to solution
user1221
Frequent Advisor

Re: unable to send mail from the server

Hi,

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!
user1221
Frequent Advisor

Re: unable to send mail from the server

When I tried to send the mail I got this error
/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!
user1221
Frequent Advisor

Re: unable to send mail from the server

got the following messages in the /var/admsyslog/mail.log

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!
Michal Kapalka (mikap)
Honored Contributor

Re: unable to send mail from the server

hi,

make a alias in /etc/hosts

IP test.example.com test
user1221
Frequent Advisor

Re: unable to send mail from the server

Thanks for reply

I already added the ip of exchange server in the hosts file
10.242.12.56 cc1001-mail02.kmc.med cc1001-mail02
Michal Kapalka (mikap)
Honored Contributor

Re: unable to send mail from the server

hi,

check this link from ITRC :

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1036060

hope it help you

mikap
user1221
Frequent Advisor

Re: unable to send mail from the server

Thanks for your reply,

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!
Michal Kapalka (mikap)
Honored Contributor

Re: unable to send mail from the server

hi,

the oracle user doesn't have permition to stop/start services.

mikap
user1221
Frequent Advisor

Re: unable to send mail from the server

I changed the file permission for gwlmCtl to 777 and then tried to run
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!
user1221
Frequent Advisor

Re: unable to send mail from the server

even when I tried with the root user still the same error is coming
root@hrdb03:/etc/rc.config.d# /sbin/init.d/sendmail start
/sbin/init.d/sendmail[115]: Syntax error at line 438 : `(' is not expected.