Posts

cacti virtualmin instalaltion

after installing cacti on a virtual host you need to add cronjab to run the poller */5 * * * * cacti2 /usr/bin/php /home/cacti2/public_html/poller.php > /dev/null 2>&1

virtualmin mailman problem

nano /etc/mailman/mm_cfg.py #------------------------------------------------------------- # Default domain for email addresses of newly created MLs DEFAULT_EMAIL_HOST = 'venus.domain.com' #------------------------------------------------------------- # Default host for web interface of newly created MLs DEFAULT_URL_HOST   = 'venus.domain.com' #------------------------------------------------------------- newlist mailman

Another MySQL daemon already running with the same unix socket.

[root@db ~]# service mysqld start Another MySQL daemon already running with the same unix socket. Starting mysqld:                                           [FAILED] [root@db ~]# mv /var/lib/mysql/mysql.sock /var/lib/mysql/mysql.sock.bak [root@db ~]# service mysqld start Starting mysqld:                                           [  OK  ] [root@db ~]#

Ip Addresses that is sending spam mails July 6 2014

Ip Addresses https://drive.google.com/file/d/0B0IzjeEFe2_bSVM1SXZ6X0F6QmM/edit?usp=sharing

dual home network slow response

slow response on linux centos dual home nic on a load balancer down stream smtp solution is echo 2 > /proc/sys/net/ipv4/conf/eth0/rp_filter echo 2 > /proc/sys/net/ipv4/conf/eth1/rp_filter echo 2 > /proc/sys/net/ipv4/conf/eth2/rp_filter also modify /etc/sysctl.conf # Controls source route verification (previously 1) net.ipv4.conf.default.rp_filter = 2  source: https://www.centos.org/forums/viewtopic.php?t=7775

postfix relay transport access denied to downstream servers / clamd + amavis error

http://serverfault.com/questions/583372/postfix-transport-relay-access-denied/583438?noredirect=1#583438 virtual_mailbox_maps=/etc/postfix/virtual_mailbox_maps.txt ------------------------------------------------------- for clamd and amavis as scanner, if there is a clamav permission error add both clamd to amavis group or vice verse also check permission try 755

du cut tr send email notification overquota users in an old mail system linux accounts

Task : to email old users that they have exceeded 100m disk space The problem is that the folder where the user is deep inside 2 folders so "du" is used. tr is used to remove characters cut to get the coloumn http://stackoverflow.com/questions/11049748/how-to-cut-multiple-columns-from-several-files-and-print-the-ouput-to-different   cd /backup/home/virtual du -m --max-depth=2  | tr './' ' ' | cut -d' '  -f 1,4 | while read space user do    if [ $space -gt 100 ]                     then         mail -s "Your account is using over 100MB Disk Space" $user <<MAIL  $user: You are now using $space MB in your home directory. The only total amount of diskspace allowed is 100 MB. MAIL  fi done