Using two content filter

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Using two content filter

luistkd4

Hi, today I have a policyd configured in my postfix server like:


MAIN.CF
smtpd_sender_restrictions = check_policy_service inet:127.0.0.1:10031 reject_sender_login_mismatch
smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:10031

Today I need a content filter to modify my message and I created using shellscript and python, and configured in manster.cf like:

submission inet n       -       -      -       -       smtpd -o smtpd_sasl_auth_enable=yes
        -o content_filter=altermime
altermime  unix  -       n       n        -      -       pipe
        flags=Rq user=altermime argv=/etc/postfix/test.sh -f ${sender} -- ${recipient}

 The postix only deliver message to content_filter configured in master.cf. 

Can I have this ? How?

Thanks

Loading...