must be a dotted-decimal IP address.
<STRONG>maildir2smtp</STRONG> retrieves a message's envelope sender address
and envelope recipient address from the <STRONG>Return-Path</STRONG> and
<STRONG>Delivered-To</STRONG> lines at the top of the message header. It
removes these lines before passing the message along.
<STRONG>maildir2smtp</STRONG> removes <EM>prefix</EM> from the beginning of each
envelope recipient address. It ignores any message whose
recipient address does not begin with <EM>prefix</EM>.
<STRONG>maildir2smtp</STRONG> is designed to pass messages along a SLIP or
PPP link. To set this up on the disconnected end, create
a new maildir in <STRONG>~alias</STRONG>:
# maildirmake ~alias/pppdir
# chown -R alias ~alias/pppdir
Put
:alias-ppp
into <STRONG>control/virtualdomains</STRONG> and
./pppdir/
into <STRONG>~alias/.qmail-ppp-default</STRONG>. Don't forget the extra
slash in <STRONG>pppdir/</STRONG>. Then, in the PPP startup script, do
maildir2smtp ~alias/pppdir alias-ppp- $IP `hostname`
replacing $IP with the remote IP address. A similar pro-
cedure works on the connected end: put
virt.host:joe-ppp
into <STRONG>control/virtualdomains</STRONG> and <STRONG>./pppdir/</STRONG> into
<STRONG>~joe/.qmail-ppp-default</STRONG>; then <STRONG>joe</STRONG> can run
maildir2smtp $HOME/pppdir joe-ppp- $IP `hostname`
when he establishes a connection.
<STRONG>maildir2smtp</STRONG> is reliable: it will not remove a message