Nicklas,

> I have a question about variables in amavisd-new. I'm looking for a way to
> let each domain have it's own virus admin based on the blocked recipient
> domain.
>
> Something like this, where $(domain) should be replaced with a valid
> variable:
>
> $virus_admin = "[EMAIL PROTECTED](domain)";
>
> How do one extract the domain part of an email address? I have looked
> through the documentation and Googled but I can't find anything on the
> subject.

@virus_admin_maps = (
  new_RE( [qr'^(.*)(@[EMAIL PROTECTED])?$' => 'virusalert${2}'] ),
);

See README.lookups.

  Mark


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to