J.P. Trosclair wrote:
So I setup a filter for stripping the attachments. I want to route
mail based on [EMAIL PROTECTED] through this filter before it is passed
on to domain's MX address. I think it's possible by using
transport_maps and some tricks in master.cf, at least thats what I was
told in a dream last night. I haven't tried it yet but will in a
little while.
I've been messing with this idea of using transport_maps without much
success because it seems a loop is unavoidable since transport_maps
can't be overridden (I've googled and confirmed it from posts in the
past). Any suggestions would be appreciated. Here's what I've tested
which I've deemed unusable based on transport_maps being a global
setting (besides that, the whole thing is a big hack):
Entries added in master.cf:
renattach unix - n n - - pipe
flags=q user=nobody argv=/mailtools/bin/renattach -dal -p
/mailtools/bin/mini_sendmail -v -s127.0.0.1 -p10001 -f${sender} ${recipient}
127.0.0.1:10000 inet n - n - - smtpd
-o content_filter=renattach
-o mynetworks=127.0.0.0/8
-o smtpd_enforce_tls=no
-o smtpd_client_restrictions=permit_mynetworks,reject
127.0.0.1:10001 inet n - n - - smtpd
-o content_filter=
-o mynetworks=127.0.0.0/8
-o smtpd_enforce_tls=no
-o smtpd_client_restrictions=permit_mynetworks,reject
-o transport_maps=
-o receive_override_options=no_milters,no_address_mappings
Entry added to main.cf:
transport_maps = hash:/etc/postfix/transport
/etc/postfix/transport:
[EMAIL PROTECTED] smtp:[127.0.0.1]:10000
J.P.