/usr/share/sendmail/examples/amavis/amavis-doc-7.html is in sendmail-base 8.15.2-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | <!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>
|