Denis Voitenko wrote:
> I have a box that relays mail to my ISP's smtp server. I have the following
> line in /etc/senmail.cf
> DSsmtp.erols.com
> I can send mail no problem, except that every time I send a message the
> system dials up. Is it possible to have it accept the message and deliver it
> only when the connection is established otherwise, http for example?
>From the linux-admin FAQ:
: Question 3.4.2 How do I set up sendmail for off-line use?
:
: Enable:
:
: O HoldExpensive=True
:
: At the top of sendmail.cf, and add the `e' flag to the `F=' section of
: each of the outbound mailers (smtp, smtp8, esmtp, relay), e.g.
:
: Msmtp, P=[IPC], F=mDFMuXe, S=11/31, R=21, E=\r\n, L=990,
: T=DNS/RFC822/SMTP,
: A=IPC $h
:
: Also, change the command which starts the sendmail daemon so that it
: doesn't contain a `-q15m' switch (or similar). (It's been advised that
: you should run sendmail with -bd -os switches See the sendmail
: documentation for more information). This way, you will be able to
: flush your mail queue once you are connected to the network:
:
: sendmail -q
> Also, even when I send a message to a user on a same box it still
> wants to dial out. What would solve that problem?
Disabling DNS lookups; check for any occurrences of $[ ... $] or
$(host ... $) in sendmail.cf. If RBL is enabled, you will need to
comment out the section:
# DNS based IP address spam lists
R$* $: $&{client_addr}
R$-.$-.$-.$- $: $(host $4.$3.$2.$1.rbl.maps.vix.com. $: OK $)
ROK $@ OK
R$+ $#error $@ 5.7.1 $: "Mail from " $&{client_addr} "
refused by blackhole site rbl.maps.vix.com"
--
Glynn Clements <[EMAIL PROTECTED]>
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]