procmail
[Top] [All Lists]

Re: Delivering to several users

1996-11-13 10:20:36
On Wednesday 13 November 96, at 11 h 0, the keyboard of 
Martin(_dot_)Wahlstrom(_at_)uab(_dot_)ericsson(_dot_)se (Martin Wahlstrom) 
wrote:

At our ISP we have our own domain.
All mail sent to anyone @our.domain goes into one
main account.

This is the most awful solution. A proper mail transport through UUCP or 
SMTP would be much simpler.

To fetch the mail I use popclient:
popclient -3 -s -u $POPUSER -p $POPPASS -o $TEMPMAIL $POPSERVER

popclient (at least version 2, version 3 seems better) should never be 
used. It doesn't test delivery before deleting the messages on the POP 
server. If your disk is full, you lose mail.

cat $TEMPMAIL | /usr/local/bin/formail -I Status: -ds /usr/local/bin/procmail

At this step, you've lost the most important information: mail envelopes. 
procmail will do its best but cannot reconstruct them.

But what happens if someone sends a mail to "tore" AND "per" ?

Only the first one will get it. You can add a 'c' to every recipe, add a 
header (such as "formail -i"X-Delivered: true") each time a recipe 
matches and tests at the end if the mail was delivered at least once (and 
send it to postmaster if it wasn't).

Or isn't it?

What if your users subscribe to mailing lists? Their name will be in the 
envelope but will not appear in any header.

I repeat myself: do not do it that way. procmail is great for filtering, 
auto-responding, etc, not as a poor substitute for proper mail 
configuration.


<Prev in Thread] Current Thread [Next in Thread>