I have a question related to postfix and pipe email.
Before I not used multi ip-addresses. But recently I changed our
configuration to make it possible.
At this moment I can not use a filter to pipe the mail to external process.
The configuration before was like this:
smtp inet n - - - - smtpd
-o content_filter=filter-pipe:dummy
And this was the exactly filter:
filter-pipe unix - n n - 10 pipe
flags=F user=vmail null_sender=
argv=/srv/scripts/postmasterFilterScript.sh -f ${sender} -- ${recipient}
This worked all fine, but now i get the following setup for the multi
ip-addresses
Still the same pipeline:
filter-pipe unix - n n - 10 pipe
flags=FX user=vmail null_sender=
argv=/srv/scripts/postmasterFilterScript.sh -f ${sender} -- ${recipient}
But different setup for the smtp addresses:
127.0.0.1:10025 inet n - - - - smtpd
-o content_filter=
-o local_recipient_maps=
-o relay_recipient_maps=
-o smtpd_restriction_classes=
-o smtpd_delay_reject=no
-o smtpd_tls_security_level=none
-o smtpd_client_restrictions=permit_mynetworks,reject
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o smtpd_end_of_data_restrictions=
-o mynetworks_style=host
-o mynetworks=127.0.0.0/8
-o strict_rfc821_envelopes=yes
-o smtpd_error_sleep_time=0
-o smtpd_soft_error_limit=1001
-o smtpd_hard_error_limit=1000
-o smtpd_client_connection_count_limit=0
-o smtpd_client_connection_rate_limit=0
-o
receive_override_options=no_header_body_checks,no_unknown_recipient_checks,no_address_mappings
# First domain with SSL
XXX.XXX.XXX.180:smtp inet n - - - - smtpd
-o smtpd_proxy_filter=127.0.0.1:10024
-o content_filter=filter-pipe:dummy
-o smtpd_sasl_auth_enable=yes
-o smtpd_tls_key_file=/etc/ssl/private/mail.example.com.key
-o smtpd_tls_cert_file=/etc/ssl/certs/mail.example.com.bundle
-o smtp_helo_name=mail.gini-recruit.com
-o smtpd_banner=mail.gini-recruit.com
# Second domain with SSL
XXX.XXX.XXX.227:smtp inet n - n - - smtpd
-o smtpd_proxy_filter=127.0.0.1:10024
-o content_filter=filter-pipe:dummy
-o smtpd_sasl_auth_enable=yes
-o smtpd_tls_key_file=/etc/ssl/private/mail.example.eu.key
-o smtpd_tls_cert_file=/etc/ssl/certs/mail.example.eu.bundle
-o smtp_helo_name=mail.example.eu
-o smtpd_banner=mail.example.eu
Since I use this confuration mail will be not deliverd and also not stored.
Sometimes it ignores the filter and go directly in the mailbox.
When i use the follow rule:
127.0.0.1:10025 inet n - - - - smtpd
-o content_filter=filter-pipe:dummy
It makes many hops, we want store and handle a message but also receive in
the inbox of the user.
Who know a solution?
Thanks in advance
--
View this message in context:
http://postfix.1071664.n5.nabble.com/Problem-with-postfix-pipe-a-mail-tp64699.html
Sent from the Postfix Users mailing list archive at Nabble.com.