how to configuer qmail with intermitent PPP connection ?

how to configuer qmail with intermitent PPP connection ?

Post by Nicolas Anqueti » Wed, 24 Nov 1999 04:00:00



I am using qmail 1.03 on a stand alone RH 6.0

What sendmail to use when you have an intermitent ppp connection ?

What I mean is that:
- my line is bad, sometimes the connection cuts off in the middle of
something (like sending a mail).  These "failed" mails are kept
somewhere by qmail and never sent.
- I would like to be able to "send" mails without worrying if I am
connected or not.  Qmail should keep the mail in a queue and send them
as soon a s a connection is establish (which I do every hour with cron).

The queuing works allright, but mails are never sent!  Qmail keep them 1
week and then tell me (locally) that he felt to send them.
I don't know how to tell  it when the connection is establish to retry
queued mails.

Related question: Is qmail the best thing with such a basic
configuration as maine (stand alone linux box)?  I used to use ssmtp
(simple smtp I think) but it does not work with pine which my girl
friend likes to use...

--
Nicolas ANQUETIL                      Professor visitante

 
 
 

how to configuer qmail with intermitent PPP connection ?

Post by Charles Blackbu » Thu, 25 Nov 1999 04:00:00


On Tue, 23 Nov 1999 20:35:58 -0200, Nicolas Anquetil blurted:

Quote:

>I am using qmail 1.03 on a stand alone RH 6.0

>What sendmail to use when you have an intermitent ppp connection ?

>What I mean is that:
>- my line is bad, sometimes the connection cuts off in the middle of
>something (like sending a mail).  These "failed" mails are kept
>somewhere by qmail and never sent.
>- I would like to be able to "send" mails without worrying if I am
>connected or not.  Qmail should keep the mail in a queue and send them
>as soon a s a connection is establish (which I do every hour with cron).

Maybe this will point you in the right direction,
 Check these out in the /etc/sendmail.cf file

# "Smart" relay host (may be null)
DSsmtp:[ISP SMTP Server]

# Hosts that will permit relaying ($=R)
FR-o /etc/mail/relay-domains

# who I masquerade as (null for no masquerading) (see also $=M)
DM[Domain Name]

# avoid connecting to "expensive" mailers on initial submission?
O HoldExpensive=True

# default delivery mode
O DeliveryMode=background

------------------------------------------------------------------------
also, if you are using SuSE (I use 6.2), check out these options in
 /etc/rc.config (don't forget to run SuSEconfig after editing it :)

#
# smarthost - this host gets all outgoing email from us
# normally used for uucp-connected sites or for dialup connections
# use "uucp-dom:server.uucp.com" to deliver all email to "server.uucp.com"
#
SENDMAIL_SMARTHOST="smtp:smtpmail.freenetname.co.uk"

#
# sendmail assumes the following space-separated host-names to be
# the local host (this must just be used for names differrent to the
# hostname, for e.g. aliases like www.nowhere.com)
#
SENDMAIL_LOCALHOST="localhost dev.summerfieldtechnology.co.uk"

#
# do not deliver any email locally, but send all email to another host
# this can just be used with another system that has the same users on it
# and you probably also want to set the FROM_HEADER to the other host
#
SENDMAIL_RELAY=""

#
# with what parameters should sendmail be started?
# normal sites use "-bd -q30m -om". if you set SENDMAIL_EXPENSIVE and you
# have a dialup ISDN connection, you probably want to set this to
# "-bd -om" and run "sendmail -q" from your crontab.
#
SENDMAIL_ARGS="-bd -q30m -om"

#
# sendmail will only queue email in /var/spool/mqueue and will only start
# to deliver it if "sendmail -q" is run
#
SENDMAIL_EXPENSIVE="yes"

#
# sendmail will not try to canonify hostnames in your email
# so much less DNS-queries are send
# you probably want to enable this on a SENDMAIL_EXPENSIVE system
#
SENDMAIL_NOCANONIFY="yes"

--
Charles Blackburn
Summerfield Technology Limited - Official SuSE Reseller
Sponser Of the Birmingham (UK) Linux User Group


WWW: http://www.summerfieldtechnology.co.uk

 
 
 

1. ppp intermitent connection

Hello:

I used to connect my LAN to internet though a on-demand dial-up
connection (diald + ipmasquerading).

Then I upgraded to RH6.0 and changed diald by pppd. The connection
worked but it went really slow. The transfer rate vary from 8 KB/s to
0KB/s without apparent reason.

Here go my configuration files. Does someone find something wrong on
them?

NOTE: now, I'm using a proxy in a windows machine until I find a better
solution

Thank you very much in advance

-----------------------

/etc/rc.d/local.rc
===============================

 # material para IP-masquerading

      /sbin/modprobe ip_masq_ftp

# ipchains

/sbin/ipchains -P forward DENY
/sbin/ipchains -A forward -s 192.168.1.0/24 -j MASQ

# pppd con opciones de llamada bajo demanda
pppd

/etc/ppp/options
==========================================

connect /etc/ppp/infovia
demand
192.168.0.1:192.168.0.20
ipcp-accept-local
ipcp-accept-remote
idle 600
holdoff 15
mtu 1500
#mru 1500
crtscts
modem
passive
#+pap

noipdefault
debug
defaultroute
asyncmap a0000
/dev/modem
115200

/etc/ppp/infovia
====================================

#!/bin/sh

/usr/sbin/chat -v ABORT BUSY ABORT "NO CARRIER" "" "ATZ" "OK"
"ATDT0952079000"
CONNECT ""

/var/log/messages
===================================

Aug 10 08:57:05 servidor pppd[616]: Starting link
Aug 10 08:57:06 servidor chat[873]: abort on (BUSY)
Aug 10 08:57:06 servidor chat[873]: abort on (NO CARRIER)
Aug 10 08:57:06 servidor chat[873]: send (ATZ^M)
Aug 10 08:57:06 servidor chat[873]: expect (OK)
Aug 10 08:57:06 servidor chat[873]: ATZ^M^M
Aug 10 08:57:06 servidor chat[873]: OK
Aug 10 08:57:06 servidor chat[873]:  -- got it
Aug 10 08:57:06 servidor chat[873]: send (ATDT0952079000^M)
Aug 10 08:57:07 servidor chat[873]: expect (CONNECT)
Aug 10 08:57:07 servidor chat[873]: ^M
Aug 10 08:57:30 servidor chat[873]: ATDT0952079000^M^M
Aug 10 08:57:30 servidor chat[873]: CONNECT
Aug 10 08:57:30 servidor chat[873]:  -- got it
Aug 10 08:57:30 servidor chat[873]: send (^M)
Aug 10 08:57:30 servidor pppd[616]: Serial connection established.
Aug 10 08:57:30 servidor pppd[616]: Connect: ppp0 <--> /dev/modem
Aug 10 08:57:35 servidor pppd[616]: Remote message: Password Accepted
Aug 10 08:57:35 servidor modprobe: can't locate module ppp-compress-21
Aug 10 08:57:35 servidor modprobe: can't locate module ppp-compress-26
Aug 10 08:57:35 servidor modprobe: can't locate module ppp-compress-24
Aug 10 08:57:42 servidor pppd[616]: Unsupported protocol (0x31) received
Aug 10 08:58:06 servidor pppd[616]: Unsupported protocol (0x31) received

-----------------------

--
Salvador Main Lpez
CentroRed SL - Desarrollos
http://www.centrored.com

2. How to copy the Solaris Install CDROM

3. RH5.1 PPP connection: PPP connection persists, telnet session times out

4. Welcome to comp.unix.shell [Frequent posting]

5. Ask ppp-on and ppp-on-dialer for ppp connection

6. Mounting home dir from workstation w/out root

7. Cant Configuer Serial Printer

8. Help with xinerama, please, newbie...

9. qmail and qmail+MRTG How-Tos

10. qmail help: how do i use qmail-pw2u????

11. Configuer BJ-200 sous LINUX

12. qmail-pop3d connection problem

13. ppp connection terminates after connection established