Aron:
----- Original Message -----
From: aron <[EMAIL PROTECTED]>
To: diald-list Linux <[EMAIL PROTECTED]>
Sent: Wednesday, October 06, 1999 4:15 PM
Subject: Re: Re: sendmail brings up a connection when sending mail
> It seems like if sendmail gets this dgm-request, and then brings up
the line
> itself. So must I not change something in the sendmail config file or
prevent
> these packets from getting through the kernel?
Hello. Been away for a while but got it running OK now, and here I am,
:)
Now for your question. You should have a /etc/sendmail.mc file and of
course the /etc/sendmail.cf one. I'll explain configuring through m4,
and if it doesn't work for you (the only reason for this is if you don't
have it installed, and if so I urge you to do so since playing with cf
files is hard, the contents are quite cryptic) I'll repeat it with plain
cf files.
Edit /etc/sendmail.mc and make sure that the following options are in
it:
define(`confCON_EXPENSIVE',`true') [this one defines that some mailers
are expensive to connect so only do it when a queue poll is running]
define(`confDELIVERY_MODE',`deferred') [the "deferred" mode is preferred
over "queued" for intermitent connections since it doesn't try to
cannonify names and hence won't try to contact the corresponding DNS
server]
define(`confDIAL_DELAY',`1m') [this way while connecting, and if
sendmail gets a timeout it will wait the defined amount ot time before
retrying the connection, thus allowing a dial-on-demand conection to be
established]
define(`SMTP_MAILER_FLAGS',`e') [this sets the smtp mailer as a
expensive one]
Now you must run /etc/sendmail.mc through m4 to create the
/etc/sendmail.cf file. Just issue "m4 /etc/sendmail.mc >
/etc/sendmail.cf" and /etc/sendmail.cf will be created. You can ignore
the warning generated by compilation about antispam rules unavailable in
deferred mode (it's a small drawback).
Finally we must set sendmail to run as a deamon and queue poll when we
want. If you have RedHat or a RedHatish like distribution just edit
/etc/sysconfig/sendmail and set DEAMON="yes" and QUEUE="1h" (or the time
interval you want between calls, maybe "6h" or "4h" for polling 4 or 6
times a day could do) For a finer grain in polling control just comment
out QUEUE and create a cron job that calls sendmail with only a "-q"
after it's name. If you have a Debian distribution just edit
/etc/init.d/sendmail and either set Q at the top to the time interval as
described above or both comment out the Q environment variable and at
the bottom of the start section change '-- -bd -q"$Q"' to '-- -bd
#-q"$Q"' to try a cron job approach. For other distributions you'll have
to dig inside the /etc/sysconfig/sendmail file (leave or add "-bd" for
deamon mode and either set to desired values "-q" or remove to cron
approach)
Another approach, the one I use myself, is setting the system for a cron
job as above but just add "/usr/sbin/sendmail -q" to /etc/diald/ip-up
for a poll every time I connect. Attention that this solution is part of
a larger picture with fetchmail running at specific times and thus
starting the link at least 4 times a day.
I hope this helps.
--
Lazarus Long
<[EMAIL PROTECTED]>
PGP:
<http://wwwkeys.pgp.net:11371/pks/lookup?op=index&search=0x5C1DC205>
ICQ#: 30062012
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]