Hello,

our mail server does local content_filtering via lmtp over unix socket.
This filter is capable of reinjecting the result via unix socket too.
I'd like to use this.

But I come across a problem.
The inet-way of reinjection is defined in our master.cf as follows:

127.0.0.1:10026
          inet  n       -       n       -       3       smtpd
  -o content_filter=
  -o local_recipient_maps=
  -o relay_recipient_maps=
  -o smtpd_helo_restrictions=
  -o smtpd_client_restrictions=
  -o smtpd_sender_restrictions=
  -o 
receive_override_options=no_unknown_recipient_checks,no_header_body_checks,no_milters
  -o smtpd_recipient_restrictions=permit_mynetworks,reject
  -o mynetworks=127.0.0.0/8
  -o smtpd_authorized_xforward_hosts=127.0.0.0/8
  -o smtpd_tls_security_level=none

Now I translated this into unix socket:
backdoor
          unix  -       -       n       -       3       smtpd
  -o content_filter=
  -o local_recipient_maps=
  -o relay_recipient_maps=
  -o smtpd_helo_restrictions=
  -o smtpd_client_restrictions=
  -o smtpd_sender_restrictions=
  -o 
receive_override_options=no_unknown_recipient_checks,no_header_body_checks,no_milters
  -o smtpd_tls_security_level=none

The problem is how to translate the following:
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o smtpd_authorized_xforward_hosts=127.0.0.0/8

I'd like to do something 
* smtpd_recipient_restrictions=permit_mynetworks,reject
translated to 
* smtpd_recipient_restrictions=permit,reject
* smtpd_helo_required=yes
* smtpd_helo_restrictions=check_helo_access hash:/etc/postfix/backdoor
(whats the master.cf syntax as command line option - no spaces allowed)

And with the X-Headers:
* smtpd_authorized_xforward_hosts=127.0.0.0/8
translated to
* smtpd_authorized_xforward_hosts=unix

But this seems not to be supported, isn't it?
Will this be supported in a future version?

Thanks
Lars

PS: Wietse thanks for this great postfix system!

Reply via email to