Postfix: Clear postfix mail queue

Bschelst/ January 2, 2017/ Linux/ 0 comments

Is your postfix mail queue full of spam? You are not the only one 🙂 In that case it could be interesting to clear your queue, before the spam gets send out. In order to remove all mail from the postfix queue, execute the following command as superuser: #> postsuper -d ALL Do you only want to delete mails to

Read More

Fail2ban: show active jails

Bschelst/ December 31, 2016/ Linux/ 0 comments

Fail2ban is a daemon that can be used to monitor the logs of services and ban clients that based on incorrect behaviour.A must have on your Linux system.But sometimes you can forget enabling the correct jails, therefore always check the active jails on your system.This can be done with the “fail2ban-client” command:  #> fail2ban-client status Executing that will show you the

Read More

ModSecurity: Access denied with code 403 (phase 2). Woocommerce

Bschelst/ December 31, 2016/ Linux/ 0 comments

If you are using WordPress & Woocommerce in combination with mod_security2, you may have some false positives.In case you are having issues, you can use the Apache (.htaccess for example) “whitelist” below. This of course as an example.   <LocationMatch “/”>   SecRuleRemoveById 910006 # Google robot activity – Useful in someways but noisy for sites where you want them crawled

Read More

Postfix: Our system has detected that this message does not 550-5.7.1 meet IPv6 sending guidelines

Bschelst/ December 30, 2016/ Linux/ 0 comments

Ipv6…nice. But using Ipv6 when sending emails to google can be a pain in the *ss.It is possible that you get the following message in your postfix logs:  Our system has detected that this message does not 550-5.7.1 meet IPv6 sending guidelines regarding PTR records and authentication 550-5.7.1 As workaround you can configure postfix to send emails using ipv4 when

Read More