Ihsan,

> I've set that up, but something is not working right:
>
> Nov 19 16:20:25 bender postfix/smtpd[27979]: [ID 197553 mail.info]
> NOQUEUE: filter: RCPT from mx1.cnd-ag.ch[82.197.176.19]:
> <mx1.cnd-ag.ch[82.197.176.19]>: Client host triggers FILTER
> amavisauth:[127.0.0.1]:10026; from=<[EMAIL PROTECTED]>
> to=<[EMAIL PROTECTED]> proto=ESMTP helo=<mx1.cnd-ag.ch>
>
> Nov 19 16:20:25 bender postfix/smtpd[27979]: [ID 197553 mail.info]
> NOQUEUE: filter: RCPT from mx1.cnd-ag.ch[82.197.176.19]:
> <mx1.cnd-ag.ch[82.197.176.19]>: Client host triggers FILTER
> amavisfeed:[127.0.0.1]:10024; from=<[EMAIL PROTECTED]>
> to=<[EMAIL PROTECTED]> proto=ESMTP helo=<mx1.cnd-ag.ch>
>
> When I receive an e-mail, it seems that it triggers on both, but it
> selects amavisfeed.

When multiple postfix restrictions are triggered and each specifies
its own FILTER, the last one applied prevails.

> If a mail comes in through SMTP-AUTH it goes also throught amavisfeed.
>
> I've did this settings:
>
> smtpd_client_restrictions =
>     check_client_access pcre:/etc/postfix/filter_outbound
>     permit_mynetworks
>     permit_sasl_authenticated
>     check_client_access pcre:/etc/postfix/filter_inbound

So far so good. Within smtpd_client_restrictions the filter_outbound
will apply if mail is from mynetworks or is sasl_authenticated.

Are you sure the 82.197.176.19 is either in postfix' mynetworks
or the client was SASL authenticated? It doesn't look that way.

After smtpd_client_restrictions there come other smtp restrictions,
make sure they do not replace the FILTER with their own choice.

> I've disabled the content_filter for that.
>
> I have to admit, that I'm using permit_sasl_authenticated on different
> places:
> smtpd_recipient_restrictions = permit_sasl_authenticated,
> smtpd_helo_restrictions = permit_sasl_authenticated,
> smtpd_sender_restrictions = permit_sasl_authenticated,

That should be alright, as long as you do not have some other
restriction specifying a FILTER.

  Mark

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
AMaViS-user mailing list
[email protected] 
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