[5481] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: Sendmail Setup Questions

daemon@ATHENA.MIT.EDU (Eric S. Pulley)
Thu Nov 21 18:12:15 1996

To: Nicholson Thomson Collier <ntcollie@midway.uchicago.edu>
cc: redhat-list@redhat.com, pulley@amphlem.corp.apple.com
In-reply-to: Your message of "Wed, 20 Nov 1996 22:35:44 CST."
             <Pine.GSO.3.95.961120222005.29176A-100000@woodlawn.uchicago.edu> 
Date: Thu, 21 Nov 1996 10:31:01 -0800
From: "Eric S. Pulley" <pulley@apple.com>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com


>I'm trying to set up sendmail so I can send and receive mail from my LInux
>system, and I'm a little confused. I've read the docs, HOWTOs etc., but am
>unsure what to include in my mc file. 

Okay you'll have to get you mail through POP (e.g poclient or fetchpop) and
you'll have to send mail with sendmail.

don't bother messing with the mc files  Just edit your /etc/sendmail.cf and
look for the DS entry.  This is your relay host or your SMTP server.
 so change it to:
DSyour-isp-smtp-hostname.domainname

Then look for the DM line.  You nee to edit this so your mail looks like it
came from your pop account and not your local linux box.  This is so mail 
will not bounce if someone replies to it.

DMpop-domain.name

(e.g.  I am sending you this from amphlem.corp.apple.com but you can only
relpy to apple.com so I put DMapple.com and all my mail looks like it came
from apple.com.)

Okay you are set to send.  Now you need to change one more thing or else you
will get lots of mail errors in your root account.

in the sendmail runlevel startup script (/etc/rc.d/init.d/sendmail) push back 
the que time from 1 hour to 1 day (sendmail -q 1d).  This is so sendmail does 
not try and send mail while your ppp connection is not active.

Now all you have to do is every time you ppp turns on do a 'sendmail -q'
which will flush your que and send your mail.  Assuming you connect to ppp
one a day you will have no troubles.  (I have a script on my home comupter
to do ppp and get/send mail every 4 hours)


--
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-Errata
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post