Munin Installation

cd /usr/local/src

wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

rpm -ivh rpmforge-release-0.3.6-1.el5.rf.i386.rpm

yum install munin

yum install munin-node

vi /etc/munin/munin.conf

htmldir /var/www/html/munin

mkdir /var/www/html/munin

cp -rp /etc/munin/html/* to /var/www/html/munin

chown -R munin.munin /var/www/html/munin

allow port 4949 in firewall

restart httpd, crond, munin-node

Posted in Issues

Whitelist domains in exim

Login to the server SSH as root. Make a sender whitelist file.

touch /etc/exim_whitelist_senders

Take a backup of the exim conf and open it.

cp -p /etc/exim.conf /etc/exim.conf.BKP
vi /etc/exim.conf

Add the line on top of the file

addresslist whitelist_senders = wildlsearch;/etc/exim_whitelist_senders

Now search for the line
require verify = sender/callout

Comment that line and add the following below that.

!verify = sender/callout=30s,defer_ok,maxwait=60s
!senders = +whitelist_senders

Save conf file.

Add email address to the /etc/exim_whitelist_senders file one by one. Wildcard is also acceptable here, Eg: *@domain.com

Restart exim

Posted in Issues, Mail

Hotmail Support

https://support.msn.com/eform.aspx?productKey=edfsmsbl&ct=eformts&st=1&wfxredirect=1

Posted in Issues

FreeBSD Hardware Info

Hardware type/platform, processor architecture
uname -mrs
—————————————————————–
RAM Information

cd /usr/ports/sysutils/freecolor
make install clean

To see memory details, enter:

#freecolor -t -m -o

OR

# fetch http://www.cyberciti.biz/files/scripts/freebsd-memory.pl.txt
# mv freebsd-memory.pl.txt /usr/local/bin/free
# chmod +x /usr/local/bin/free

Enter the command

# free

OR

sysctl -a | grep -i memory

—————————————————————–

CPU information

dmesg | grep CPU

—————————————————————–

Sysctl command to see rest of all information:

sysctl -a | less

Posted in FreeBSD, linux

Iptables rule to allow access only from one IP

iptables -I INPUT -s (allowip) -p tcp –dport (port) -j ACCEPT

iptables -A INPUT -s 0.0.0.0/24 -p tcp –dport (port) -j DROP

Posted in Issues, Server Security

Disable modsec for a domain

In apache conf under that user add this:

<IfModule mod_security2.c>
SecRuleEngine Off
</IfModule

Restart httpd

Posted in Apache, Issues

Mails redirected /dev/null **bypassed**

Its an issue with spamassasign.

Edit the file /etc/mail/spamassassin/local.cf and add the following lines:

score FH_DATE_PAST_20XX 0.0

restart spamd and exim.

Posted in Issues, Mail
Blog Stats
  • 111,650 hits
Follow

Get every new post delivered to your Inbox.

Join 209 other followers