So I did following …
On the
ZCS host I opened a new transport option by editing the master.cf.in:
Code: Select all
[192.168.184.2]:20024 inet n - n - - smtpd
-o smtp_send_xforward_command=yes
-o disable_dns_lookups=yes
-o smtpd_sasl_auth_enable=no
%%uncomment SERVICE:antispam%%> -o content_filter=smtp-amavis:[%%zimbraLocalBindAddress%%]:10032
%%uncomment SERVICE:!antispam%% -o content_filter=smtp:[%%zimbraLocalBindAddress%%]:10025
On the
MX gateway host I tried those adjustments in main.cf:
Code: Select all
smtpd_recipient_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
…
check_policy_service inet:192.168.184.2:20024
The result was:
Code: Select all
Nov 29 10:21:17 hostname postfix/smtpd[28942]: warning: premature end-of-input on 192.168.184.2:20024 while reading input attribute name
Nov 29 10:21:18 hostname postfix/smtpd[28942]: warning: premature end-of-input on 192.168.184.2:20024 while reading input attribute name
Nov 29 10:21:18 hostname postfix/smtpd[28942]: warning: problem talking to server 192.168.184.2:20024: Success
with an additional tempfail respond to the sending MTA.
When I try …
Code: Select all
default_transport = smtp:192.168.184.2:20024
or …
Code: Select all
content-filter = smtp:192.168.184.2:20024
in main.cf on the MX gateway, then nothing is complained but the mails are running directly via lmtp into the mailboxes at the ZCS host:
Code: Select all
Return-Path: <sender@domain.tld>
Received: from a.b.c.d (LHLO mxgateway.domain.tld) (a.b.c.d) by
zcs.domain.tld with LMTP; Fri, 29 Nov 2019 11:19:56 +0100 (CET)
X-Client-Addr: aaaa:bbbb:cccc:00::11
Sure that's the final purpose but I'd like to check them with amavisd first. It seems that I can't override the transport path which is given from LDAP, the MX gateway uses the same information as the ZCS.