Archive for May, 2009

Postfix smtpd_client_restrictions

Share on TwitterSubmit to StumbleUponDigg This
Keeping known email abusers out is always desired. Postfix has a parameter which is specified in the main.cf file that allows you to refer to these lists. The script I use is as follows...
smtpd_client_restrictions =
	permit_mynetworks
	permit_sasl_authenticated
	reject_unauth_pipelining
	reject_rbl_client cbl.abuseat.org
	reject_rbl_client dnsbl.ahbl.org
	reject_rbl_client dnsbl.sorbs.net
	reject_rbl_client list.dsbl.org
	reject_rbl_client sbl-xbl.spamhaus.org
	#reject_rhsbl_client blackhole.securitysage.com
	reject_rhsbl_client rhsbl.sorbs.net
	permit
Note the commented out line
	#reject_rhsbl_client blackhole.securitysage.com
This is a list that was not properly administered. A friend of mine tried to email me who uses the mac.com domain and was being rejected as an abuser which, of course, is rediculous. I keep the entry as a future reference. There are others out there so if you know of them please let me know. mta.
Share on TwitterSubmit to StumbleUponDigg This

Bandwidth Conversion

Share on TwitterSubmit to StumbleUponDigg This
See below Sponsored Links

Bandwidth Conversion

Mbit K/s
100 12,800
20 2,560
16 2,048
8 1,024
4 512
2 256
1 128
0.5 64
Share on TwitterSubmit to StumbleUponDigg This
In: Linux & WindowsAuthor: EditorComments (2)

Backup your Linux Server Apps

Share on TwitterSubmit to StumbleUponDigg This
So you have your linux server up and running. A lot of time and effort went into this so lets get it backed up. You don't need to invest in any fancy backup system. A bit of shell script and some use of crontab will do the trick. Here are the two scripts I use...
    Email backup
Make an executable file e.g. mailserver_backup.sh containing the following
cd /
dt=`date +%Y%m%d_%s`
/bin/tar -czf mailserver_$dt.tar.gz etc/postfix etc/dovecot.conf usr/bin/null.sh usr/local/bin/safilter.sh usr/local/bin/backup_mailprogs.sh etc/mail/spamassassin home/mailfilt/.spamassassin var/spool/mail
    Web backup
Make an executable file e.g. web_sql_backup.sh containing the following
cd /
dt=`date +%Y%m%d_%s`
rm -f mysqlall.sql
mysqldump -uroot -ppassword --all-databases > /mysqlall.sql
/bin/tar -czf mailserver_web_sql_$dt.tar.gz etc/httpd var/www/html mysqlall.sql usr/local/bin/backup_web_sql.sh
Now use crontab to schedule the running of the scripts... crontab -e and enter the following See below Sponsored Links

15	3	*	*	*	/usr/local/bin/mailserver_backup.sh
45	3	*	*	*	/usr/local/bin/web_sql_backup.sh
This will backup mail server apps at 3:15am and web backup at 3:45am. I would also suggest you copy the backed up files to other media in case your server completely crumbles.
Share on TwitterSubmit to StumbleUponDigg This