1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
|
.TH maildirsmtp 1
.SH NAME
maildirsmtp \- send a maildir through SMTP
.SH SYNOPSIS
.B maildirsmtp
.I dir
.I prefix
.I host
.I helohost
.SH DESCRIPTION
.B maildirsmtp
scans a maildir,
.IR dir ,
and sends each message to
.I host
through SMTP.
It removes
.I prefix
from the beginning of each envelope recipient address.
It ignores any message whose recipient address does not begin with
.IR prefix .
.B maildirsmtp
removes messages accepted by
.IR host .
It bounces messages permanently rejected by
.I host
back to the envelope sender,
and then removes them.
It treats temporary rejection as permanent rejection
for messages more than two weeks old.
Note that failure to connect to
.I host
is not temporary rejection.
If
.I host
is never reachable,
.B maildirsmtp
will never remove messages.
.B maildirsmtp
uses
.I helohost
as the local host name for saying hello to the SMTP server.
.B maildirsmtp
needs
.B tcpclient
in
.BR $PATH .
.SH EXAMPLE
Put
.EX
virt.host:joe-ppp
.EE
into
.BR qmail 's
.B control/virtualdomains
to send all
.B virt.host
messages to Joe.
Then Joe can put
.EX
./pppdir/
.EE
into
.B ~joe/.qmail-ppp-default
to deliver the messages into
.BR pppdir .
When he logs in, he can run
.EX
maildirsmtp ~/pppdir joe-ppp- $HOST `hostname`
.EE
to transfer the messages to
.B $HOST
by SMTP.
.SH "SEE ALSO"
maildirserial(1),
serialsmtp(1),
tcpclient(1)
|