Difference between revisions of "Amavis"

From ArchWiki
Jump to: navigation, search
(starting the daemon)
m (Add stub flag.)
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
[[Category:Mail Server]]
 
[[Category:Mail Server]]
 
+
{{Stub}}
 
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.
 
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.
  
==Install==
+
==Install & Setup==
  
 
Build {{AUR|amavisd-new}} from the AUR and install it with pacman. You'd be wise to also install optdepends such as {{Pkg|p7zip}} and {{Pkg|unrar}} so your filters can actually see inside compressed files.
 
Build {{AUR|amavisd-new}} from the AUR and install it with pacman. You'd be wise to also install optdepends such as {{Pkg|p7zip}} and {{Pkg|unrar}} so your filters can actually see inside compressed files.
  
  sudo pacman -Syu amavisd-new p7zip unrar
+
  sudo pacman -U amavisd-new-*-any.pkg.tar.xz
 +
sudo pacman -Syu p7zip unrar
  
If your hostname is not a FQDN, you must set $myhostname in /etc/amavisd/amavisd.conf. You probably want to set $mydomain too. After that, you should be able to start the service:
+
If your hostname is not a FQDN, you must set $myhostname in /etc/amavisd/amavisd.conf. You probably want to set $mydomain too. After that, you probably want to start it like this:
  
 +
sudo systemctl enable amavisd
 
  sudo systemctl start amavisd
 
  sudo systemctl start amavisd
  
Check for any errors with:
+
Some ways to check for errors:
  
 
  systemctl status amavisd
 
  systemctl status amavisd
 +
journalctl -xbo short -u amavisd
  
The daemon can be quite verbose, so the curious may want a complete log:
+
==Postfix==
  
journalctl -xbo short -u amavisd
+
digest of the excellent [http://www.ijs.si/software/amavisd/README.postfix.html upstream README]
  
If all seems well, make the service permanent:
+
==SpamAssassin==
  
sudo systemctl enable amavisd
+
todo
 +
 
 +
==ClamAV==
 +
 
 +
todo

Revision as of 05:40, 23 May 2013

Tango-document-new.pngThis article is a stub.Tango-document-new.png

Notes: please use the first argument of the template to provide more detailed indications. (Discuss in Talk:Amavis#)

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.

Install & Setup

Build amavisd-newAUR from the AUR and install it with pacman. You'd be wise to also install optdepends such as p7zip and unrar so your filters can actually see inside compressed files.

sudo pacman -U amavisd-new-*-any.pkg.tar.xz
sudo pacman -Syu p7zip unrar

If your hostname is not a FQDN, you must set $myhostname in /etc/amavisd/amavisd.conf. You probably want to set $mydomain too. After that, you probably want to start it like this:

sudo systemctl enable amavisd
sudo systemctl start amavisd

Some ways to check for errors:

systemctl status amavisd
journalctl -xbo short -u amavisd

Postfix

digest of the excellent upstream README

SpamAssassin

todo

ClamAV

todo