1825715 Members
3144 Online
109686 Solutions
New Discussion

smtp host and sendmail

 
nagendra_3
Advisor

smtp host and sendmail

Hi ,
Need you help:

I am using the sendmail to send the mail.
if i do a sendmail -v x@x.com , i get the mail.
However when i use a Java servlet to send the mail it does not send the mail

I have no idea on the smtp and the localhost.

props.put("mail.smtp.host", smtpHost);

Actually this is the smtpHost which sends the mail.
I guess the smtpHost needs to be identified.
I have the value of the smtpHost as the IP address present in /etc/hosts file

This Java servlet works fine on other HP-UX boxes. The problem is on a new HP-UX box which is confirgured recently. I am sure it is do with some configuration.

Please help me in this regards,
Nag
Knowledge is Power
2 REPLIES 2
nagendra_3
Advisor

Re: smtp host and sendmail

Just a note :
The only difference i see is when i start the sendmail i get the following error

/sbin/init.d/sendmail[36]: tcp_conn_request_max: not found.
/sbin/init.d/sendmail[36]: tcp_keepalive_interval: not found.

Does this create a problem.
Knowledge is Power
someone_4
Honored Contributor

Re: smtp host and sendmail

hi
what version of sendmail are you running?
#sendmail -bs
you might have a corrupt sendmail.cf file if you get that error i am not too sure. But here is what you can do if you would like to try:

cd /etc/mail
mv sendmail.cf sendmail.cf.old

cd /usr/newconfig/etc/mail
cp sendmail.cf /etc/mail/sendmail.cf

make your changes to that sendmail.cf file that you made to the other one. Then restart sendmail.

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

depending on what version of sendmail you have you can also generate a new sendmail.cf file. By going to:

/usr/newconfig/etc/mail/cf/cf
and running gen_cf
#./gen_cf
this will promt you for what options you want in sendmail besides the default.

Richard