Blog has been moved to

http://www.AlTwaijiry.com,

please join us.



Run the following script if you want the system to forward all the mails to an SMTP server that is responsible to send all your mails:

PS: replace **SERVER** with your mail relay server (SMTP Server) and youremail@yourdomain.com with your email

#!/bin/bash

cp /etc/mail/sendmail.cf /etc/mail/sendmail.cf.org
perl -i -pe ‘s/^DS.*/DS**SERVER**/g’ /etc/mail/sendmail.cf
/etc/init.d/sendmail stop
/etc/init.d/sendmail start
banner `hostname` | /usr/lib/sendmail -v youremail@yourdomain.com

Advertisement