<!DOCTYPE html>
<html lang="en" dir="ltr" class="client-nojs">
<head>
<meta charset="UTF-8">
<title>Amavis - ArchWiki</title>
<meta name="generator" content="MediaWiki 1.22.7">
<meta name="robots" content="noindex,follow">
<link rel="shortcut icon" href="/favicon.ico">
<link rel="search" type="application/opensearchdescription+xml" href="/opensearch_desc.php" title="ArchWiki (en)">
<link rel="EditURI" type="application/rsd+xml" href="https://wiki.archlinux.org/api.php?action=rsd">
<link rel="copyright" href="http://www.gnu.org/copyleft/fdl.html">
<link rel="alternate" type="application/atom+xml" title="ArchWiki Atom feed" href="/index.php?title=Special:RecentChanges&amp;feed=atom">
<link rel="stylesheet" href="../ArchWikiOffline.css">
<meta name="ResourceLoaderDynamicStyles" content="">

</head>
<body class="mediawiki ltr sitedir-ltr ns-0 ns-subject page-Amavis skin-archlinux action-view">

<div id="globalWrapper" style="width: 100%">
<div id="column-content"><div id="content" class="mw-body-primary" role="main" style="margin: 2em; margin-bottom: 0">
	<a id="top"></a>
	
	<h1 id="firstHeading" class="firstHeading" lang="en"><span dir="auto">Amavis</span></h1>
	<div id="bodyContent" class="mw-body">
		<div id="contentSub"></div>
		<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr">
<div style="text-align: center; margin-bottom: 1em; overflow:hidden;">
<table class="notice noprint toc" id="translateme" style="background: {{{backgroundcolor}}}; border-color: {{{bordercolor}}}; width: 100%">
<tr>
<td style="background-color: {{{signalcolor}}}; width: 100px"> <a href="../File:Tango-document-new.png" class="image"><img alt="Tango-document-new.png" src="../File:Tango-document-new.png" width="48" height="48"></a>
</td>
<td>  <b>This article is a stub.</b> <div style="font-size: 90%">
<b>Notes:</b> <span style="color:red;">please use the first argument of the template to provide more detailed indications.</span> (<a rel="nofollow" class="external text" href="https://wiki.archlinux.org/index.php/Talk:Amavis">Discuss</a>)</div>
</td>
<td style="background-color: {{{signalcolor}}}; width: 100px"> <a href="../File:Tango-document-new.png" class="image"><img alt="Tango-document-new.png" src="../File:Tango-document-new.png" width="48" height="48"></a>
</td>
</tr>
</table>
</div>
<p>Amavis gives you an interface between mail servers (MTAs such as Postfix or DoveCot) and mail filters (ClamAV, SpamAssassin). In many cases it is more efficient than running separate daemons like spamd.
</p>
<div id="toc" class="toc">
<div id="toctitle"><h2>Contents</h2></div>
<ul>
<li class="toclevel-1 tocsection-1"><a href="#Install_.26_Setup"><span class="tocnumber">1</span> <span class="toctext">Install &amp; Setup</span></a></li>
<li class="toclevel-1 tocsection-2"><a href="#Postfix"><span class="tocnumber">2</span> <span class="toctext">Postfix</span></a></li>
<li class="toclevel-1 tocsection-3"><a href="#SpamAssassin"><span class="tocnumber">3</span> <span class="toctext">SpamAssassin</span></a></li>
<li class="toclevel-1 tocsection-4"><a href="#ClamAV"><span class="tocnumber">4</span> <span class="toctext">ClamAV</span></a></li>
</ul>
</div>

<h2><span class="mw-headline" id="Install_.26_Setup">Install &amp; Setup</span></h2>
<p>Install <span style="font-family: monospace"><a rel="nofollow" class="external text" href="https://aur.archlinux.org/packages/amavisd-new/">amavisd-new</a></span> from the <a href="../en/Arch_User_Repository.html" title="AUR" class="mw-redirect">AUR</a>. You'd be wise to also install optdepends such as <span style="font-family: monospace"><a rel="nofollow" class="external text" href="https://www.archlinux.org/packages/?name=p7zip">p7zip</a></span> and <span style="font-family: monospace"><a rel="nofollow" class="external text" href="https://www.archlinux.org/packages/?name=unrar">unrar</a></span> so your filters can actually see inside compressed files.
</p>
<p>If your hostname is not a FQDN, you must set <code style="display:inline-block; padding: 0.1em 0.3em;">$myhostname</code> in <code style="display:inline-block; padding: 0.1em 0.3em;">/etc/amavisd/amavisd.conf</code>. You probably want to set <code style="display:inline-block; padding: 0.1em 0.3em;">$mydomain</code> too.
</p>
<p>After that, you can start the <code style="display:inline-block; padding: 0.1em 0.3em;">amavisd</code> service with <a href="../en/Systemd.html" title="Systemctl" class="mw-redirect">systemctl</a> and possibly enable it.
</p>
<p>Some ways to check for errors:
</p>
<pre>systemctl status amavisd
journalctl -xbo short -u amavisd
</pre>
<h2><span class="mw-headline" id="Postfix">Postfix</span></h2>
<p>Digest of the excellent <a rel="nofollow" class="external text" href="http://www.ijs.si/software/amavisd/README.postfix.html">upstream README</a>.
</p>
<h2><span class="mw-headline" id="SpamAssassin">SpamAssassin</span></h2>
<div style="text-align: center; margin-bottom: 1em; overflow:hidden;">
<table class="notice noprint toc" id="translateme" style="background: {{{backgroundcolor}}}; border-color: {{{bordercolor}}}; width: 100%">
<tr>
<td style="background-color: {{{signalcolor}}}; width: 100px"> <a href="../File:Tango-view-fullscreen.png" class="image"><img alt="Tango-view-fullscreen.png" src="../File:Tango-view-fullscreen.png" width="48" height="48"></a>
</td>
<td>  <b>This article or section needs expansion.</b> <div style="font-size: 90%">
<b>Reason:</b> todo (<a rel="nofollow" class="external text" href="https://wiki.archlinux.org/index.php/Talk:Amavis">Discuss</a>)</div>
</td>
<td style="background-color: {{{signalcolor}}}; width: 100px"> <a href="../File:Tango-view-fullscreen.png" class="image"><img alt="Tango-view-fullscreen.png" src="../File:Tango-view-fullscreen.png" width="48" height="48"></a>
</td>
</tr>
</table>
</div>
<h2><span class="mw-headline" id="ClamAV">ClamAV</span></h2>
<div style="text-align: center; margin-bottom: 1em; overflow:hidden;">
<table class="notice noprint toc" id="translateme" style="background: {{{backgroundcolor}}}; border-color: {{{bordercolor}}}; width: 100%">
<tr>
<td style="background-color: {{{signalcolor}}}; width: 100px"> <a href="../File:Tango-view-fullscreen.png" class="image"><img alt="Tango-view-fullscreen.png" src="../File:Tango-view-fullscreen.png" width="48" height="48"></a>
</td>
<td>  <b>This article or section needs expansion.</b> <div style="font-size: 90%">
<b>Reason:</b> todo (<a rel="nofollow" class="external text" href="https://wiki.archlinux.org/index.php/Talk:Amavis">Discuss</a>)</div>
</td>
<td style="background-color: {{{signalcolor}}}; width: 100px"> <a href="../File:Tango-view-fullscreen.png" class="image"><img alt="Tango-view-fullscreen.png" src="../File:Tango-view-fullscreen.png" width="48" height="48"></a>
</td>
</tr>
</table>
</div>

</div>
<div id="catlinks" class="catlinks"><div id="mw-normal-catlinks" class="mw-normal-catlinks">
<a href="../Special:Categories.html" title="Special:Categories">Category</a>: <ul><li><a href="../en/Category:Mail_Server.html" title="Category:Mail Server">Mail Server</a></li></ul>
</div></div>		<div class="visualClear"></div>
	</div>
</div></div>
<div class="visualClear"></div>
<div id="footer" role="contentinfo">
	<ul id="f-list" style="margin: 0 2em">
		<li>
Retrieved from "<a href="https://wiki.archlinux.org/index.php?title=Amavis&amp;oldid=288011">https://wiki.archlinux.org/index.php?title=Amavis&amp;oldid=288011</a>"</li>
		<li id="lastmod"> This page was last modified on 15 December 2013, at 03:42.</li>
		<li id="copyright">Content is available under <a class="external" rel="nofollow" href="http://www.gnu.org/copyleft/fdl.html">GNU Free Documentation License 1.3 or later</a> unless otherwise noted.</li>
		<br><li id="privacy"><a href="../en/ArchWiki:General_disclaimer.html" title="ArchWiki:Privacy policy">Privacy policy</a></li>
		<li id="about"><a href="../en/ArchWiki:About.html" title="ArchWiki:About">About ArchWiki</a></li>
		<li id="disclaimer"><a href="../en/ArchWiki:General_disclaimer.html" title="ArchWiki:General disclaimer">Disclaimers</a></li>
	</ul>
</div>
</div>
</body>
</html>
