Monthly Archives: August 2015
Quick Tip: Checking SPF and DKIM records
If you want to check if the DKIM and SPF records have been setup on the dns server for example.com issue the following 2 commands. DKIM dig default._domainkey.example.com TXT If you have it setup right, you should see something like this in the answer section: ;; ANSWER SECTION: default._domainkey.example.com. 300 IN TXT “v=DKIM1\; k=rsa\; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyWompSSOHvgTtoRiLN1ieoj38kn7BK5suTGXeEXup9u96uCKw/73VaOfKngsUcAYr44/usj0cSNzlHbfWPDsm0cMToLiv7oqB4Ly+QsyzopfXc/UCJX2+pPGERiX9FjaEWADY6CTOxC+0f2J7150mh2G12cnSlmZvQ/M25GKnWDg9PX/8CojpDZUype5Mo15V” …
Mass changes to DNS zones on a cpanel server
Let’s say you have a DNS server change, and need to update the zone records on all your domains to use the new name server “NS” records. Rather then going through each and every one of them in the WHM, you can run these 2 simple commands. cd /var/named;grep -lR ns.oldnameserver.com *.db >> fixfiles.txt for …
Common DNS syntax errors
Your Internet Address has changed since the beginning of your Mail session
How to block wordpress logins and xmlrpc with no referer
If you are getting flooded with wordpress login attempts by a suspected hacker, you can add the following rule to mod security in /usr/local/apache/conf/modsec2.user.conf This rule will block any access to wp-login.php that does not contain a referer #block wp-lgoin.php with no referer <Locationmatch “/wp-login.php”> SecRule REQUEST_METHOD “POST” “deny,status:401,id:5000130,chain,msg:’wp-login request blocked, no referer’” SecRule &HTTP_REFERER …
Some common postfix commands
- English Support
- 24/7 x 365
- Branded Support
- Reduced Overhead
- Linux Experts
- Friendly Staff