For the coming from thing, it's easy and at the postfix level:

create a file and write a line in it : 
em...@something.com FILTER smtp-amavis:[127.0.0.1]:10025

postmap the file, then edit main.cf and add :
smtpd_sender_restrictions = hash:/etc/postfix/yourfile



It'll bypass amavis, so banned content will go through.




> Date: Wed, 13 May 2009 09:42:51 -0300
> From: leolis...@solutti.com.br
> To: amavis-user@lists.sourceforge.net
> Subject: [AMaViS-user] exclude addresses from banned filenames
> 
> 
>     i have amavisd 2.6 running fine and blocking some file 
> extensions/type, using banned_filename_re.
> 
>     so far, so good. It's working fine.
> 
>     what i was needing now is to exclude some senders/recipients from 
> the exclude list. For example, mails coming from @something.com wouldnt 
> be subjected to banned_filename_re rule, as well as some messages 'to' 
> @otherthing.com wouldnt be subjected to the rules neither.
> 
>     is that possible to be done ?
>    
> 
> -- 
> 
> 
>       Atenciosamente / Sincerily,
>       Leonardo Rodrigues
>       Solutti Tecnologia
>       http://www.solutti.com.br
> 
>       Minha armadilha de SPAM, NÃO mandem email
>       gertru...@solutti.com.br
>       My SPAMTRAP, do not email it
> 
> 
> 
> 
> 
> ------------------------------------------------------------------------------
> The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
> production scanning environment may not be a perfect world - but thanks to
> Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
> Series Scanner you'll get full speed at 300 dpi even with all image 
> processing features enabled. http://p.sf.net/sfu/kodak-com
> _______________________________________________
> 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/ 

_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. 
It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
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