[Mailmunge] MTA Macros

postfix at ptld.com postfix at ptld.com
Mon Aug 16 14:24:37 EDT 2021


> Try turning on higher levels of Postfix debug logging.

I grabbed what looked relevant, let me know if you want to see more. I 
see that tls_version is being sent twice (along with other macros) to 
mailmunge. It only does it once for the dkim/dmarc milters. Any idea 
what im doing wrong to cause this?


milter8_connect: non-protocol events for protocol version 2: 
SMFIP_NOUNKNOWN SMFIP_NODATA
milter8_connect: transport=unix 
endpoint=/var/run/mailmunge/mailmunge.sock
milter8_connect: my_version=0x2
milter8_connect: my_actions=0x1ff SMFIF_ADDHDRS SMFIF_CHGBODY 
SMFIF_ADDRCPT SMFIF_DELRCPT SMFIF_CHGHDRS SMFIF_QUARANTINE SMFIF_CHGFROM 
SMFIF_ADDRCPT_PAR SMFIF_SETSYMLIST
milter8_connect: my_events=0x7f SMFIP_NOCONNECT SMFIP_NOHELO 
SMFIP_NOMAIL SMFIP_NORCPT SMFIP_NOBODY SMFIP_NOHDRS SMFIP_NOEOH
vstream_fflush_some: fd 19 flush 17
vstream_buf_get_ready: fd 19 got 1935
milter8_connect: milter unix:/var/run/mailmunge/mailmunge.sock version 2
milter8_connect: events
milter8_connect: requests SMFIF_ADDHDRS SMFIF_CHGBODY SMFIF_ADDRCPT 
SMFIF_DELRCPT SMFIF_CHGHDRS SMFIF_QUARANTINE SMFIF_CHGFROM 
SMFIF_ADDRCPT_PAR SMFIF_SETSYMLIST
override SMFIM_CONNECT macro list with "_ {auth_authen} {auth_author} 
{auth_ssf} {auth_type} {cert_issuer} {cert_subject} {cipher} 
{cipher_bits} {daemon_name} {daemon_port} i {if_addr} {if_name} j 
{mail_addr} {mail_host} {mail_mailer} {tls_version} {verify} {rcpt_addr} 
{rcpt_host} {rcpt_mailer} {tls_version}"
override SMFIM_HELO macro list with "_ {auth_authen} {auth_author} 
{auth_ssf} {auth_type} {cert_issuer} {cert_subject} {cipher} 
{cipher_bits} {daemon_name} {daemon_port} i {if_addr} {if_name} j 
{mail_addr} {mail_host} {mail_mailer} {tls_version} {verify} {rcpt_addr} 
{rcpt_host} {rcpt_mailer} {tls_version}"
override SMFIM_ENVFROM macro list with "_ {auth_authen} {auth_author} 
{auth_ssf} {auth_type} {cert_issuer} {cert_subject} {cipher} 
{cipher_bits} {daemon_name} {daemon_port} i {if_addr} {if_name} j 
{mail_addr} {mail_host} {mail_mailer} {tls_version} {verify} {rcpt_addr} 
{rcpt_host} {rcpt_mailer} {tls_version}"
override SMFIM_ENVRCPT macro list with "_ {auth_authen} {auth_author} 
{auth_ssf} {auth_type} {cert_issuer} {cert_subject} {cipher} 
{cipher_bits} {daemon_name} {daemon_port} i {if_addr} {if_name} j 
{mail_addr} {mail_host} {mail_mailer} {tls_version} {verify} {rcpt_addr} 
{rcpt_host} {rcpt_mailer} {tls_version}"
override SMFIM_DATA macro list with "_ {auth_authen} {auth_author} 
{auth_ssf} {auth_type} {cert_issuer} {cert_subject} {cipher} 
{cipher_bits} {daemon_name} {daemon_port} i {if_addr} {if_name} j 
{mail_addr} {mail_host} {mail_mailer} {tls_version} {verify} {rcpt_addr} 
{rcpt_host} {rcpt_mailer} {tls_version}"
override SMFIM_EOM macro list with "_ {auth_authen} {auth_author} 
{auth_ssf} {auth_type} {cert_issuer} {cert_subject} {cipher} 
{cipher_bits} {daemon_name} {daemon_port} i {if_addr} {if_name} j 
{mail_addr} {mail_host} {mail_mailer} {tls_version} {verify} {rcpt_addr} 
{rcpt_host} {rcpt_mailer} {tls_version}"
override SMFIM_EOH macro list with "_ {auth_authen} {auth_author} 
{auth_ssf} {auth_type} {cert_issuer} {cert_subject} {cipher} 
{cipher_bits} {daemon_name} {daemon_port} i {if_addr} {if_name} j 
{mail_addr} {mail_host} {mail_mailer} {tls_version} {verify} {rcpt_addr} 
{rcpt_host} {rcpt_mailer} {tls_version}"
milter_macro_lookup: "_"
milter_macro_lookup: result "mx.example.com [ipv6]"
milter_macro_lookup: "{auth_authen}"
milter_macro_lookup: "{auth_author}"
milter_macro_lookup: "{auth_ssf}"
milter_macro_lookup: "{auth_type}"
milter_macro_lookup: "{cert_issuer}"
milter_macro_lookup: "{cert_subject}"
milter_macro_lookup: "{cipher}"
milter_macro_lookup: "{cipher_bits}"
milter_macro_lookup: "{daemon_name}"
milter_macro_lookup: result "smtp.example.com"
milter_macro_lookup: "{daemon_port}"
milter_macro_lookup: result "25"
milter_macro_lookup: "i"
milter_macro_lookup: "{if_addr}"
milter_macro_lookup: "{if_name}"
milter_macro_lookup: "j"
milter_macro_lookup: result "smtp.example.com"
milter_macro_lookup: "{mail_addr}"
milter_macro_lookup: "{mail_host}"
milter_macro_lookup: "{mail_mailer}"
milter_macro_lookup: "{tls_version}"
milter_macro_lookup: "{verify}"
milter_macro_lookup: "{rcpt_addr}"
milter_macro_lookup: "{rcpt_host}"
milter_macro_lookup: "{rcpt_mailer}"
milter_macro_lookup: "{tls_version}"


milter8_rcpt_event: milter unix:/var/run/opendkim/opendkim.sock: rcpt 
<user at example.com> ORCPT=rfc822;user at example.com
event: SMFIC_RCPT; macros: {rcpt_addr}=user at example.com 
{rcpt_host}=unix:private/dovecot-lmtp {rcpt_mailer}=lmtp 
{tls_version}=TLSv1.3


milter8_rcpt_event: milter unix:/var/run/opendmarc/opendmarc.sock: rcpt 
<user at example.com> ORCPT=rfc822;user at example.com
event: SMFIC_RCPT; macros: {rcpt_addr}=user at example.com 
{rcpt_host}=unix:private/dovecot-lmtp {rcpt_mailer}=lmtp 
{tls_version}=TLSv1.3


milter8_rcpt_event: milter unix:/var/run/mailmunge/mailmunge.sock: rcpt 
<user at example.com> ORCPT=rfc822;user at example.com
event: SMFIC_RCPT; macros: _=mx.example.com [ipv6] 
{cipher}=TLS_AES_256_GCM_SHA384 {cipher_bits}=256 
{daemon_name}=smtp.example.com {daemon_port}=25 j=smtp.example.com 
{mail_addr}=test at example.com {mail_host}=unix:private/dovecot-lmtp 
{mail_mailer}=lmtp {tls_version}=TLSv1.3 {rcpt_addr}=user at example.com 
{rcpt_host}=unix:private/dovecot-lmtp {rcpt_mailer}=lmtp 
{tls_version}=TLSv1.3



More information about the Mailmunge mailing list