[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] RaQ4 How to redirect mail coming FROM a specific sender/domain
- Subject: Re: [cobalt-users] RaQ4 How to redirect mail coming FROM a specific sender/domain
- From: "Eddie Bishop" <cobalt-users@xxxxxxxxxxxxxxxx>
- Date: Thu Nov 28 12:19:27 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
>> I'd like to redirect all messages from that domain
>> (or
>> specific sender) to myself or to a "quarantine" account, rather than let
>> them go to the recipient.
>>
>> So what I really need is a line in /etc/mail/access like:
>>
>> dirtydomain.com[TAB]"send to (user)"
>>
>> but you can't do that in access. Is there another way short of a procmail
>> recipe? If not, does anyone have that recipe to hand please?
>I'm not the best one to answer this, but nobody else has spoken up yet.
>"man procmailex" gives some good examples.
>This is untested, but try this in /etc/procmailrc :
>:0h:
>* ^From.*dirtydomain.com
>/var/spool/mail/quarantine
>You may need to make sure /var/spool/mail/quarantine exists and has
>appropriate permissions. Ours is owned by admin and is 644.
>If the virus is forging the From: line, this might not work.
>pjm
Very kind of you Parker, many thanks. This is a partial solution, and
useful, but what I was really hoping to do was have the messages sent to a
user rather than dumped into a folder.
Once they are in that folder, is there any way to requeue them for delivery
to someone else, ie me?
--
Eddie