Software: Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.12 with Suhosin-Patch mod_ssl/2.2.8 OpenSSL/0.9.8g. PHP/5.2.4-2ubuntu5.12 uname -a: Linux forum.circlefusion.com 2.6.24-19-server #1 SMP Wed Jun 18 15:18:00 UTC 2008 i686 uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/share/sendmail/examples/amavis/ drwxr-xr-x |
Viewing file: amavis-doc-7.html (2.82 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | 7. Installing and Running AmavisHopefully we passed the correct options to the Amavis configure script so that when we install it, the Debian file system policy won't be violated. That would be bad karma. Create a user named " amavis" with:
useradd amavis From the amavis-sourcecode-directory type:
make install If everythiny worked, the install script should have
Now you will need to create an alias in /etc/aliases or /etc/mail/aliases (or wherever you keep your mail aliases) for the " virusalert" email address that Amavis will try and send virus reports to. Generally, this should be the system administrator. Don't forget to rebuild the aliases file by issuing:
newaliases Finally, open up the /etc/mail/sendmail.mc file for editing and insert the following two lines anywhere after the line the begins with " ## Custom configurations" (it is near the bottom):
define(`_FFR_MILTER', `1')dnl INPUT_MAIL_FILTER(`milter-amavis', `S=local:/var/local/amavis/amavis-milter.sock, T=S:10m;R:10m;E:10m')dnl After you close the /etc/mail/sendmail.mc file, start-up amavis-milter and amavisd with the following three commands:
rm -rf /var/local/amavis/amavis-milter.sock nohup /usr/local/sbin/amavis-milter -p /var/local/amavis/amavis-milter.sock & /usr/local/sbin/amavisd Now that Amavis is ready and running, you can fire-up your new sendmail configuration with:
sendmailconfig This command will recreate the /etc/mail/sendmail.cf file from the /etc/mail/sendmail.mc file and reload the sendmail daemon. An alternate approach is to delete the /etc/mail/sendmail.cf file, run " make" in the /etc/mail directory, and restart sendmail with " /etc/init.d/sendmail restart" (or whatever it is that you use). Next Previous Contents |
:: Command execute :: | |
--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0063 ]-- |