> > Hello everyone on the list,
> > as subject, how can I pass through a content filter only the messages
> > arriving from sasl authenticated users ?

Easy option: 

Allow AUTH on the submission port only. That way you can
specify the content_Filter in master.cf for that particular
smtpd, e.g. like this:

submission inet  n       -       n       -       -       smtpd 
             -o 
smtpd_recipient_restrictions=reject_authenticated_sender_login_mismatch,permit_sasl_authenticated,reject
             -o content_filter=foobar:

Hard option:

Use a policy daemon to return "FILTER foobar:dummy" if the user has
authenticated (sasl_username attribut is non-empty)

See
http://www.postfix.org/SMTPD_POLICY_README.html
for the policy delegation stuff

See
http://www.postfix.org/access.5.html
for the "FILTER:" stuff 
-- 
Ralf Hildebrandt
  Geschäftsbereich IT | Abteilung Netzwerk
  Charité - Universitätsmedizin Berlin
  Campus Benjamin Franklin
  Hindenburgdamm 30 | D-12203 Berlin
  Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
  ralf.hildebra...@charite.de | http://www.charite.de
            

Reply via email to