OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: avoid aliasing

From: LuKreme (kremelskreme.com)
Date: Wed Aug 26 2009 - 19:12:06 CDT


On 26-Aug-2009, at 03:14, Stefan Palme wrote:
> user+noduplicate: user+noduplicate
> user: user, otheruserotherdomain.com

Seems to me this would be an ideal use of procmail.

/etc/procmailrc

ARG=$1

:0
* TO_user
{
   :0
   * ! ARG ^^^^
   {
     DROPPRIVS

     :0c
     !otheruserotherdomain.com

     :0
     .ARG/
   }

   :0E
   {
     DROPPRIVS

     :0
     $DEFAULT
   }
}

(something like that, not tested, YMV, yadda yadda yadda,

--
y
        kiss, the Gates of Love they budged an inch / I can't say much
        has happened since / but CLOSING TIME