Azurel
Silver Pleskian
In my mail queue are hundreds mails with "[email protected]" from fail2ban (plesk12 module). Here I have a few questions:
1. How I can set "my" custom mail address here?
2. How I can disable this notification?
3. How I clear the "[email protected]" from mail queue?
Answer:
# postqueue -p | tail -n +2 | awk 'BEGIN { RS = "" } /fail2ban@example\.com/ { print $1 }' | tr -d '*!' | postsuper -d -
Thanks
I have this jails enabled, but the only first of it have: "[email protected]".
Must I remove this line or comment out? How?
------
1. How I can set "my" custom mail address here?
2. How I can disable this notification?
3. How I clear the "[email protected]" from mail queue?
Answer:
# postqueue -p | tail -n +2 | awk 'BEGIN { RS = "" } /fail2ban@example\.com/ { print $1 }' | tr -d '*!' | postsuper -d -
Thanks
I have this jails enabled, but the only first of it have: "[email protected]".
Must I remove this line or comment out? How?
[ssh-iptables]
enabled = true
filter = sshd
action = iptables[name=SSH, port=ssh, protocol=tcp]
sendmail-whois[name=SSH, dest=[COLOR=#ff0000][email protected][/COLOR], sender=[email protected], sendername="Fail2Ban"]
logpath = /var/log/secure
maxretry = 5
------
[nginx-http-auth]
enabled = true
filter = nginx-http-auth
action = iptables-multiport[name=nginx-http-auth,port="80,443"]
logpath = /var/log/nginx/error.log
maxretry = 2
[plesk-apache]
enabled = true
filter = apache-auth
action = iptables-multiport[name=apache, port="http,https,7080,7081"]
logpath = /var/www/vhosts/system/*/logs/error_log
/var/log/httpd/*error_log
maxretry = 6
[plesk-apache-badbot]
enabled = true
filter = apache-badbots
action = iptables-multiport[name=BadBots, port="http,https,7080,7081"]
logpath = /var/www/vhosts/system/*/logs/*access*log
/var/log/httpd/*access_log
maxretry = 1
[plesk-courierimap]
enabled = true
filter = plesk-courierlogin
action = iptables-multiport[name="plesk-courierimap", port="imap,imap3,imaps,pop3,pop3s"]
logpath = /var/log/maillog
maxretry = 5
[plesk-panel]
enabled = true
filter = plesk-panel
action = iptables-multiport[name="plesk-login", port="8880,8443"]
logpath = /var/log/plesk/panel.log
maxretry = 5
[plesk-postfix]
enabled = true
filter = postfix-sasl
action = iptables-multiport[name="plesk-postfix", port="smtp,smtps,submission"]
logpath = /var/log/maillog
maxretry = 5
[plesk-proftpd]
enabled = true
filter = proftpd
action = iptables-multiport[name="plesk-proftpd", port="ftp,ftp-data,ftps,ftps-data"]
logpath = /var/log/secure
maxretry = 5
Last edited: