Sean Brown <[EMAIL PROTECTED]> wrote:
> 
> Let's say I have a user "[EMAIL PROTECTED]", whose home directory is
> /home/mailuser.  I want to set things up so that mailuser only accepts
> messages from one particular e-mail address.  In other words, if the sender
> is any other address besides [EMAIL PROTECTED], mailuser will silently
> throw the message away.  If the message is from [EMAIL PROTECTED], it
> completes the instructions in mailuser's .qmail file (which right now
> forwards to three other addresses).

Use a .qmail file; have the first instruction a program delivery (|) which
checks the contents of the SENDER environment variable (the envelope sender
address), and exits appropriately to control whether the remainder of the
.qmail file (containing an instruction for storing in a Maildir or mbox file)
is executed.

`man dot-qmail` and `man qmail-command` for details.

Charles
-- 
-----------------------------------------------------------------------
Charles Cazabon                            <[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
-----------------------------------------------------------------------

Reply via email to