warn condition = $acl_c_helo_warning
!condition = ${if eq{$acl_c_mode}{submission}}
!hosts = +allnets
- ADD_HEADER(<:X-CONF_header_token-Warning: \
- BADHELO \
- Client's HELO doesn't match its IP address.\n\t\
- helo-name=$sender_helo_name \
- address=$sender_host_address:>)
+ WARNING_HEADER(BADHELO,
+ <:Client's HELO doesn't match its IP address.\n\t\
+ helo-name=$sender_helo_name \
+ address=$sender_host_address:>)
## Always allow the empty sender, so that we can receive bounces.
accept senders = :
m4_define(<:RENAME_HEADERS_REMOVE:>, <:m4_dnl
CLRSEP<::>FOREACH(<:SEP(:)$:><:1:>, <:$1:>):>)
+## WARNING_HEADER(tag, msg)
+##
+## Add a warning header to the current mesage.
+m4_define(<:WARNING_HEADER:>,
+<:add_header = X-CONF_header_token-Warning: $1 $2:>)
+
## LOOKUP_DOMAIN(dom, [if-found], [if-not-found])
##
## Look up DOM in the master domains file. If it's found, put the
{${if match_domain {$sender_address_domain} \
{+public} \
{+allnets}{! +allnets}}})}
- ADD_HEADER(<:X-CONF_header_token-Warning: \
- RCLNTLSNDR \
- Apparently local sender, but received from remote \
- server.\n\t\
- sender=$sender_address \
- host=$sender_host_address:>)
+ WARNING_HEADER(RCLNTLSNDR,
+ <:Apparently local sender, but received from remote \
+ server.\n\t\
+ sender=$sender_address \
+ host=$sender_host_address:>)
## OK.
accept
### Rename locally-meaningful headers in mail from outside.
m4_define(<:DISTORTED_HEADERS:>,
-<:X-CONF_header_token-Warning,
-X-CONF_header_token-SpamAssassin-Score,
+<:X-CONF_header_token-SpamAssassin-Score,
X-CONF_header_token-SpamAssassin-Status:>)
SECTION(acl, data)m4_dnl