>> 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).

It's very easy.  Put this as the first line in the .qmail file:

| case "$SENDER" in [EMAIL PROTECTED]) exit 0 ;; *) exit 99 ;; esac

The exit 99 tells qmail to skip the rest of the .qmail file.

-- 
John R. Levine, IECC, POB 727, Trumansburg NY 14886 +1 607 387 6869
[EMAIL PROTECTED], Village Trustee and Sewer Commissioner, http://iecc.com/johnl, 
Member, Provisional board, Coalition Against Unsolicited Commercial E-mail

Reply via email to