Set Up Ubuntu-Server 6.06 LTS As A Firewall/Gateway For Your Small Business Environment - Page 6
|
Now edit etc/postfix/header_checks. It should look like this: /^Received:/ HOLD cd /root Now configure MailScanner.chown postfix.postfix /var/spool/MailScanner/incoming chown postfix.postfix /var/spool/MailScanner/quarantine mkdir /var/spool/MailScanner/spamassassin ln -s /etc/MailScanner/spam.assassin.prefs.conf /etc/spamassassin/mailscanner.cf chown postfix.postfix /var/spool/MailScanner/spamassassin Now edit /etc/MailScanner/MailScanner.conf and set the following lines as shown: Run As User = postfixUncomment the line # run_mailscanner=1 in your /etc/default/mailscanner. Now make a cron job of /usr/sbin/check_mailscanner and run it every 20 minutes. Now we are going to fool the startup script of MailScanner. This is necessary because MailScanner refuses to start, due to an exim aimed script, I suspect (I've never actually used Exim, so I'm not sure about that). I don't want to modify the script itself, as it might be replaced with another 'not starting' update in the future. Just to be on the safe side. touch /etc/init.d/mailscanner_pre Edit /etc/init.d/mailscanner_pre. It should look like this: #!/bin/sh chmod 755 /etc/init.d/mailscanner_pre mv /etc/rc2.d/S20mailscanner /etc/rc2.d/S99mailscanner mv /etc/rc3.d/S20mailscanner /etc/rc3.d/S99mailscanner mv /etc/rc4.d/S20mailscanner /etc/rc4.d/S99mailscanner mv /etc/rc5.d/S20mailscanner /etc/rc5.d/S99mailscanner ln -s /etc/init.d/mailscanner_pre /etc/rc2.d/S20mailscanner_pre chown postfix.postfix /var/spool/MailScanner chown postfix.postfix /var/lib/MailScanner That should do the trick now, don't you agree?
|
www.seamlessenterprise.com
One number. One voicemail. Seize the lead. Sprint Mobile Integration.
www.seamlessenterprise.com
One Number. One Voicemail.
Make it easier for clients to reach you. Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com
One number. One voicemail. Sprint Mobile Integration.
www.seamlessenterprise.com
AT&T Synaptic Compute as a Service. Boost your power on demand.
Trial: IBM Cognos Express Reporting, Analysis & Planning
Learn benefits of Simpana software.
View the Gartner Video




print: 

Recent comments
11 hours 55 min ago
12 hours 40 min ago
14 hours 30 min ago
14 hours 41 min ago
16 hours 41 min ago
1 day 1 hour ago
1 day 2 hours ago
1 day 4 hours ago
1 day 6 hours ago
1 day 6 hours ago