Category: Exim

BASH: Script to alert when Exim mail queue is HIGH

  The following script sends an alert whenever the exim mail queue is greater than a certain threshold   #!/bin/bash if [ `/usr/sbin/exim -bpc` -ge 300 ]; then mail -s “Alert: There are over 300 Emails in the queue!” [email protected] <<EOF Server Hostname : `/bin/hostname -f` Mail IP’s (If Any): `cat /etc/mailips` Current Mail Queue […]

PHP: Script to Test Mail Delivery using SMTP Authentication

  The below script may be useful to test the mail delivery using email authentication with and without SSL Note: The script uses pear Mail function, so make sure that PEAR Mail function is installed on your server. Don’t forget to change the fields as needed … With SSL:   <?php require_once “Mail.php”; $from = […]

Online System/Network Admin Tools

  1. MXTOOLBOX: One of the most popular website to check MX Records, Blacklist Status, SPF, DKIM, DNS, OPEN Ports etc … website: http://www.mxtoolbox.com 2. WHATISMYDNS: Want to check the global propogation status of your DNS records ? WHATISMYDNS is the right online tool website: http://www.whatismydns.net 3. HOST-TRACKER: Want to know whether your website is […]

Disable IPV6 on CentOS 6.x servers

1. Edit /etc/sysctl.conf  and add the following line   net.ipv6.conf.all.disable_ipv6 = 1   2. Edit /etc/sysconfig/network and add the following line   NETWORKING_IPV6=no   3. Edit /etc/sysconfig/network-scripts/ifcfg-eth0 and add the following line   IPV6INIT=no   4. Stop iptables6 service   service iptables6 stop   5. Disable iptables6 service   chkconfig ip6tables –level 345 off   […]

www.hostingdada.net © 2016