Posts

Showing posts from March, 2014

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