1833012 Members
2989 Online
110048 Solutions
New Discussion

Sendmail

 
Mohammad Kaleem
Advisor

Sendmail

Hi,

After uncommenting the following line from /etc/mail/sendmail.cf

O ServiceSwitchFile=/etc/mail/service.switch

Now I am getting the following error.

May 26 11:48:57 lib-03 sendmail[824]: LAA00824: to=msheab@libancell.com.lb, ctl

addr=root (0/3), delay=00:01:15, xdelay=00:01:12, mailer=smtp, relay=libancell.com.lb. [192.168.3.150], stat=Deferred: Connection timed out during initial connection with libancell.com.lb.

Any idea?

Thanks a lot.

Mohammad

MKQ
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: Sendmail

You mail is not being accepted by the target server.

I'd ask what the reason for making the sendmail.cf change was.

Thats not really important. I don't think the server libancell.com.lb. [192.168.3.150] is reachable or set up to relay your mail.

If you control this server look at the file /etc/mail/access

See if the IP address of your server is in there.

Mail relay is done as follows in sendmail.cf

DS
[IP_address_of_relay]

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

Some people use hostname in the DS directive, but I don't. I want the mail to go through even if the Microsoft DNS server at our shop is burping up the blue screen of death.

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
Animesh Chakraborty
Honored Contributor

Re: Sendmail

Hi,
But why you need to uncomment that line ?
Any way it is ignored in hpux.
If you are not using DNS,then the entry at service.switch file should be like this:
hosts files
aliases files
Did you take a backup?
T G Manikandan
Honored Contributor

Re: Sendmail

Enabling this ServiceSwitchFile=/etc/mail/service.switch

will tell how the host should be resolved.

If you have uncommented it then check how your hosts are resolved.

If you are using /etc/hosts to resolve the hosts

then it should look as

In /etc/nsswitch.conf
hosts: files

In /etc/mail/service.switch
hosts: files


Revert
Mohammad Kaleem
Advisor

Re: Sendmail

Thanks a lot for all. Its working now. Changed the entry in /etc/mail/service.switch for host: file.

Regards,

Mohammad
MKQ