Operating System - HP-UX
1748165 Members
3790 Online
108758 Solutions
New Discussion юеВ

Re: sendmail config for workflow mailer

 
SOLVED
Go to solution
Meakin Singh
Frequent Advisor

Re: sendmail config for workflow mailer

hi, i cudnt get sendmail started
so i rebooted the server

now i am getting a diffrent error


# /sbin/init.d/sendmail start
/sbin/init.d/sendmail[54]: /etc/mail/sendmail.pid: Cannot find or open the file.
# Mar 6 23:07:43 test prngd[3051]: Will not touch /var/run/egd-pool: no socket
Meakin Singh
Frequent Advisor

Re: sendmail config for workflow mailer

there is another problem
i have EBS running on this server

but ps -ef | grep applmgr returns no value

also

./a1 returns

ps -ef |grep java
0
ps -ef |grep oracle
0
ps -ef |grep LOCAL=NO
0
ps -ef |grep applmgr
0

but there are processes running on server
TTr
Honored Contributor

Re: sendmail config for workflow mailer

The sendmail might have started after you rebooted and no need to start it again.
"ps -ef |grep sendmail" will tell you what is running. Also check the bottom of /var/adm/syslog/mail.log for errors or status.

On another thought what is the SMTP requirement of EBS? Does it use the local SMTP or does it have an SMTP server configuration? If it is the latter, you could probably point EBS directly to the exchange SMTP relay server.

"ps -ef |more" look in detail fro running processes to see what is running.
Meakin Singh
Frequent Advisor

Re: sendmail config for workflow mailer

sir,
sendmail is running but when i try to stop it, it gives the error

# /sbin/init.d/sendmail stop
/usr/sbin/killsm[7]: /etc/mail/sendmail.pid: cannot open
Meakin Singh
Frequent Advisor

Re: sendmail config for workflow mailer

i guess realying is enabled by our mail admin , as emails from oracle(utl_smtp)package can be sent via this email server

the only problem is iam not able to send mail thru HP UX

i changed mailservs and sendmail.cf as suggested

and then use

sendmail user@domain.com

but i never recieve this email
Meakin Singh
Frequent Advisor

Re: sendmail config for workflow mailer

to be more clear

my mail server IP is 192.168.0.221 , no idea abt its hostname

HP UX server IP , from here i want to send an email 192.168.0.93

my desktop ip , from where i want to recieve a mail sent from 192.168.0.93 is 192.168.0.33
TTr
Honored Contributor

Re: sendmail config for workflow mailer

> emails from oracle(utl_smtp)package can be sent via this email server

So as I suspected before the EBS is sending directly to the exchange server bypassing the local HP-UX sendmail.

Now let's verify the HP-UX sendmail.

Your desktop IP is not involved here. You still have to send email from HP-UX to the exchange server.
1) Did you put "DS192.168.0.221" in /etc/mail/sendmail.cf?

what is the output of
2) ps -ef | grep sendmail
3) ll /etc/mail/sendmail.cf
4) cat /etc/mail/sendmail.pid


Meakin Singh
Frequent Advisor

Re: sendmail config for workflow mailer

1 yes, DS192.168.0.221 is in sendmail.cf

2 # ps -ef | grep sendmail
root 20721 15271 0 22:09:06 pts/tb 0:00 grep sendmail
root 9604 1 1 15:09:18 ? 0:17 sendmail: accepting connections on port 25

3 # ll /etc/mail/sendmail.cf
-r--r--r-- 1 bin bin 94367 Mar 6 17:56 /etc/mail/sendmail.cf

4 # cat /etc/mail/sendmail.pid
9604
/usr/sbin/sendmail -bd -q30m
TTr
Honored Contributor

Re: sendmail config for workflow mailer

Sendmail is running OK. Let's try sending a test email via your SMTP server.

echo TESTMAIL | sendmail -v email.address@yourdomain.com

where "email.address" is a valid recipient and "yourdomain.com" is your email domain in your 192.168.0.221 email system. Post the output of the above command
Meakin Singh
Frequent Advisor

Re: sendmail config for workflow mailer

# echo TESTMAIL | sendmail -v meakin.singh@khannapaper.com
khannapaper.com: Name server timeout
meakin.singh@khannapaper.com... Transient parse error -- message queued for future delivery
meakin.singh@khannapaper.com... queued