Hi there!

I have a dial-up ppp connection from a single computer to my ISP and use a
free SMTP- and POP3-server to fetch and send email for ALL local users.
Configuration of qmail is essentially as described in the mailqueue-howto
and everything works fine. (maildir for outgoing mail is
/var/qmail/alias/pppout, owned by user alias).
However it'd be nice to have qmail send the mail directly to the mail
server IF and only if a connection is established and ELSE put it into
pppout. (flushed in the ip-up script of pppd, run suid root)

To possibly save(?) some time:
1) Every time a user builds up a connection, mail of ALL users should be
sent out. (Otherwise separate maildirs that are flushed before shutting
down the connection would work; now impossible due to security).
2) I tried to set this up with a condredirect statement, but once the mail
has become local I understand that it will be ugly to reconstruct the
recipients from the message header.
3) Surely it's inacceptable not to store mail in pppout and to let
qmail-remote retry message delivery until a PPP connection is up
(even computers have better things to do, and think of the retry
schedule :)
4) Hope I'm right that this hasn't got anything to do with
inetd/tcpserver???

Any ideas how to make this work? I know that this is not exactly what
qmail was designed for, but if everything else works out well, .. maybe ..
I wouldn't be surprised if it was impossible, since my way is doubtful
even to me. Someone should reassure me to let go the approach of sending
out mail of ALL users in ip-up...

Thanks in advance,
sorry for any mistakes (English or qmailish),
Ingo

Reply via email to