This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Global Postfix configuration file. This file lists only a subset | |
# of all parameters. For the syntax, and for a complete parameter | |
# list, see the postconf(5) manual page (command: "man 5 postconf"). | |
# | |
# For common configuration examples, see BASIC_CONFIGURATION_README | |
# and STANDARD_CONFIGURATION_README. To find these documents, use | |
# the command "postconf html_directory readme_directory", or go to | |
# http://www.postfix.org/BASIC_CONFIGURATION_README.html etc. | |
# | |
# For best results, change no more than 2-3 parameters at a time, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
smtp inet n - n - - smtpd | |
-o content_filter=amavisfeed:[127.0.0.1]:10024 | |
submission inet n - n - - smtpd | |
-o syslog_name=postfix/submission | |
-o smtpd_tls_security_level=encrypt | |
-o smtpd_sasl_auth_enable=yes | |
-o smtpd_recipient_restrictions=permit_sasl_authenticated,reject | |
-o milter_macro_daemon_name=ORIGINATING | |
pickup unix n - n 60 1 pickup | |
cleanup unix n - n - 0 cleanup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
smtp inet n - n - - smtpd | |
-o content_filter=amavis-forward:unix:amavis/amavisd.sock | |
submission inet n - n - - smtpd | |
-o syslog_name=postfix/submission | |
-o smtpd_tls_security_level=encrypt | |
-o smtpd_sasl_auth_enable=yes | |
-o smtpd_recipient_restrictions=permit_sasl_authenticated,reject | |
-o milter_macro_daemon_name=ORIGINATING | |
pickup unix n - n 60 1 pickup | |
cleanup unix n - n - 0 cleanup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
smtp inet n - n - - smtpd | |
submission inet n - n - - smtpd | |
-o syslog_name=postfix/submission | |
-o smtpd_tls_security_level=encrypt | |
-o smtpd_sasl_auth_enable=yes | |
-o smtpd_recipient_restrictions=permit_sasl_authenticated,reject | |
pickup unix n - n 60 1 pickup | |
cleanup unix n - n - 0 cleanup | |
qmgr unix n - n 300 1 qmgr | |
tlsmgr unix - - n 1000? 1 tlsmgr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
smtp inet n - n - - smtpd | |
submission inet n - n - - smtpd | |
-o syslog_name=postfix/submission | |
-o smtpd_tls_security_level=encrypt | |
-o smtpd_sasl_auth_enable=yes | |
-o smtpd_recipient_restrictions=permit_sasl_authenticated,reject | |
pickup unix n - n 60 1 pickup | |
cleanup unix n - n - 0 cleanup | |
qmgr unix n - n 300 1 qmgr | |
tlsmgr unix - - n 1000? 1 tlsmgr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
smtp inet n - n - - smtpd | |
submission inet n - n - - smtpd | |
-o syslog_name=postfix/submission | |
-o smtpd_tls_security_level=encrypt | |
-o smtpd_sasl_auth_enable=yes | |
-o smtpd_recipient_restrictions=reject_non_fqdn_sender,reject_unknown_sender_domain,reject_non_fqdn_recipient,reject_unknown_recipient_domain,reject_unauth_pipelining,permit_sasl_authenticated,reject | |
pickup unix n - n 60 1 pickup | |
cleanup unix n - n - 0 cleanup | |
qmgr unix n - n 300 1 qmgr | |
tlsmgr unix - - n 1000? 1 tlsmgr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
smtp inet n - n - - smtpd | |
submission inet n - n - - smtpd | |
-o syslog_name=postfix/submission | |
-o smtpd_tls_security_level=encrypt | |
-o smtpd_sasl_auth_enable=yes | |
-o smtpd_recipient_restrictions=smspd_recipient_restrictions | |
pickup unix n - n 60 1 pickup | |
cleanup unix n - n - 0 cleanup | |
qmgr unix n - n 300 1 qmgr | |
tlsmgr unix - - n 1000? 1 tlsmgr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ========================================================================== | |
# service type private unpriv chroot wakeup maxproc command + args | |
# (yes) (yes) (yes) (never) (100) | |
# ========================================================================== | |
127.0.0.1:10025 inet n - n - - smtpd | |
-o content_filter= | |
-o smtpd_delay_reject=no | |
-o smtpd_client_restrictions=permit_mynetworks,reject | |
-o smtpd_helo_restrictions= | |
-o smtpd_sender_restrictions= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
opendmarc-reports: failed to collect domain names: ERROR: syntax error at or near "$2" | |
LINE 1: ...lastsent <= DATE_SUB(FROM_UNIXTIME($1), INTERVAL ($2) SECOND... | |
Thats the error | |
SELECT domains.name FROM requests JOIN domains ON requests.domain = domains.id WHERE lastsent <= DATE_SUB(FROM_UNIXTIME(?), INTERVAL ? SECOND) | |
Thats the query |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/bin/zsh | |
set -e | |
ip=$(ip addr show wlan0 | ag -o 'inet \K\d+\.\d+\.\d+\.\d+') | |
TRAPZERR() { | |
print "failure, ip was $ip" | |
} |