docker-image-postfix/postmap_all
Mauro Torrez fcea79f08f
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
Add ham/spam cutoff parameters to spamfilter
2022-09-16 01:29:34 -03:00

17 lines
417 B
Bash
Executable File

#!/bin/bash
# run postmap on all configured lookup tables
postconf -h \
postscreen_access_list \
postscreen_dnsbl_reply_map \
smtp_sasl_password_maps \
smtpd_client_restrictions \
smtpd_helo_restrictions \
smtpd_recipient_restrictions \
virtual_alias_maps \
virtual_mailbox_maps \
| sed "s/,/\n/g" | sed "s/ /\n/g" | sort | uniq \
| egrep '(hash):' \
| xargs -n1 postmap