APLawrence - Information and Resources for Unix and Linux Systems, Bloggers and the self-employed
RSS Feeds Get APLawrence.com by RSS











(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Home > News Posts > UUCP and Sendmail ––>Re: DNS less Sendmail
Printer Friendly Version




News Group Posts

UUCP and Sendmail



Message-ID: <36F3FE07.E17129EF@dlpco.net> 
Date: Sat, 20 Mar 1999 14:59:03 -0500
From: Fred Percynski <fredp@dlpco.net>
Newsgroups: comp.unix.sco.misc
Subject: Re: DNSless Sendmail
References: <01be72d5$d1772700$0180a8c0@mikespc.support4.com.au> 

Mike,

The following works for our customers who use UUCP and Sendmail. 
It sounds like it should work for your problem.  Add this to your
sendmail.cf file:



# Force Sendmail not to resolve host names
O ServiceSwitchFile=/etc/nsswitch.conf

Then create the file /etc/nsswitch.conf and populate it with:

# ServiceSwitchFile to tell Sendmail not to use DNS
hosts /etc/hosts

Hope it helps!
Fred
PS- Would you mind emailing me the ETRN script you wrote?  I am
trying to learn more about ETRN.  Thanks.
















Mike Hawkins wrote:
> 
> Hi people,
> 
> I am attempting to confgure sendmail on SCO openserver enterprise to send
> mail to an ISP through a dial on demand modem connection. At this time,
> mail is sent everytime a user sends an email. If the email is addressed
> locally, ppp raises the modem connection. This I definitely want to stop
> happening. If the user sends mail externally then I want the mail to be
> held until a script (which I will write) raises the connection at which
> point sendmail should dump all externally addressed queued messages to the
> ISP server. Also, the script will send an ETRN queue message. I've tested
> the ETRN script and it works just fine. I'll schedule it with cron.
> 
> I would love to disable DNS lookups by removing it altogether from the
> resolv.conf but I can't because other services (eg: squid proxy) must have
> DNS resolving available.
> 
> Here is my sendmail config, hosts, resolv.conf and named.boot.
> 
> Bind is set up to act as a cache DNS. Maybe it's not quite right but I
> think it works OK. Hosts has some redundant entries but apart from that it
> seems ok and resolv.conf seems OK to me as well. But I do know that
> sendmail.cf is probably out of kilter. If anyone can offer suggestions it
> would be much appreciated.
> 
> The main issue is stopping the link from coming up when a local email is
> sent. That's a real pain and is costing the customer a fortune in local
> calls. Queueing externally addressed emails for a periodic send is next on
> my wish list.
> 
> Here are the files,
> 
> and regards from,
> 
> Mike


If this page was useful to you, please click to help others find it:  

Your +1's can help friends, contacts, and others on the web find the best stuff when they search.

Comments?



Click here to add your comments



Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar



Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.

g_face.jpg

This post tagged:

       - DNS
       - Mail
       - Sendmail
       - UUCP




Unix/Linux Consultants

Skills Tests

Guest Post Here