[EMAIL PROTECTED] rearranged electrons thusly:

> I connect to VSNL from my Linux box and send mails using the smtp server of
> my machine and specifying smart host as the vsnl smtp server i.e 
> DS gw1.dot.net.in in sendmail.cf file. However, if I do so, it takes a long

A rather common situation ;)  This is a FAQ at sendmail.org by the way ;)

> time for mails to be deposited in the vsnl server. Otherhand, if I leave the
> field blank i.e. it works! What's the problem? Shouldn't the smart host
> option work better?

Actually the delay is because your local sendmail is doing a dns lookup on each
and every mail before sending it onwards to the smarthost (vsnl guwahati?) -
which will do its own dns lookups later to deliver the mail.

Just configure sendmail _NOT_ to lookup DNS when you are using a smarthost, but
to blindly pass everything to the smarthost for delivery.

If this stuff below sounds painful (it isn't too painful actually with sendmail
8.9.x) then just install the script found at http://cork.linux.ie and use it to
configure your sendmail.

To regenerate the sendmail.cf file from sendmail.mc you will need the
sendmail-cf-[version-number].rpm from your redhat CD (assuming you are running
redhat).

http://www.sendmail.org/faq/ - 

Q3.22 -- How do I configure sendmail not to use DNS?

Date: March 24, 1997 
Updated: April 6, 2000 

In situations where you're behind a firewall, or across a dial-up line, there
are times when you need to make sure that programs (such as sendmail) do not
use the DNS at all. 

With older releases of version 8 sendmail (8.7 and earlier), you need to
recompile the binary and make sure that "NAMED_BIND" is
turned off in src/conf.h. 

With versions 8.8 and later, you change the service switch file to omit "DNS"
and use only NIS, files, and other map types as appropriate. More information
about the service switch file can be found under the ServiceSwitchFile option
in �5.6 (Options) of the Installation and Operation Guide and all of �4.9 (Name
Server Access). 

Also, starting with 8.9, it may help to include the following in your .mc file: 

FEATURE(`accept_unresolvable_domains')dnl
FEATURE(`accept_unqualified_senders')dnl

Note that you'll need to forward all your outbound mail to another machine as a
"relay" (one that does use DNS, and understands how to properly use MX records,
etc...), otherwise you won't be able to get mail to any site(s) other than the
one(s) you configure in your /etc/hosts file (or whatever).  

-- 
Suresh Ramasubramanian + mallet<@>efn.org
  You spamma my mailbox, I nukea da ass

----------------------------------------------
Find out more about this and other Linux India 
mailing lists at http://lists.linux-india.org/

Reply via email to