AlterMIME

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

AlterMIME

Kirk Bocek
After suggestions from Bill Cole, mousse and others, I'm trying to get
AlterMIME working with postfix 2.3. I've followed the instructions at:

http://howtoforge.com/add-disclaimers-to-outgoing-emails-with-altermime-postfix-debian-etch

but somehow the script that calls AlterMIME simply isn't executed. The parts I
think are relevant in master.cf:

        smtp      unix  -       -       n       -       -       smtp
      -o content_filter=myfilt:

and

        myfilt     unix  -       n       n       -       -       pipe
    flags=Rq user=myfilt argv=/etc/postfix/myfilt.sh \
                -f ${sender} -- ${recipient}

I've put a couple of testing markers in myfilt.sh and the script clearly isn't
being executed at all. I'm pretty sure permissions are correct. No errors in
/var/log/maillog.

Does anyone have any ideas?

Thanks,
Kirk Bocek
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: AlterMIME

Wietse Venema
Kirk Bocek:

> After suggestions from Bill Cole, mousse and others, I'm trying to get
> AlterMIME working with postfix 2.3. I've followed the instructions at:
>
> http://howtoforge.com/add-disclaimers-to-outgoing-emails-with-altermime-postfix-debian-etch
>
> but somehow the script that calls AlterMIME simply isn't executed. The parts I
> think are relevant in master.cf:
>
> smtp      unix  -       -       n       -       -       smtp
>       -o content_filter=myfilt:

This means the filter executes only for SMTP mail. Not for local
/usr/sin/sendmail submission.

See FILTER_README or http://www.postfix.org/FILTER_README.html for
details.

        Wietse
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: AlterMIME

Kirk Bocek
Wietse Venema wrote:

> Kirk Bocek:
>> After suggestions from Bill Cole, mousse and others, I'm trying to get
>> AlterMIME working with postfix 2.3. I've followed the instructions at:
>>
>> http://howtoforge.com/add-disclaimers-to-outgoing-emails-with-altermime-postfix-debian-etch
>>
>> but somehow the script that calls AlterMIME simply isn't executed. The parts I
>> think are relevant in master.cf:
>>
>> smtp      unix  -       -       n       -       -       smtp
>>       -o content_filter=myfilt:
>
> This means the filter executes only for SMTP mail. Not for local
> /usr/sin/sendmail submission.
>
> See FILTER_README or http://www.postfix.org/FILTER_README.html for
> details.
>
> Wietse

Got it. I put the "-o" line after the *second* smtp line in master.cf. I
should have put it after the *first*:

        smtp      inet  n       -       n       -       -       smtpd
      -o content_filter=myfilt:

Thanks for the help.

Kirk Bocek




Loading...