Difference between revisions of "Amavis"

From ArchWiki
Jump to: navigation, search
(suggest optdepends for decompression)
(starting the daemon)
Line 7: Line 7:
 
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.
  
  pacman -Syu amavisd-new p7zip unrar
+
  sudo pacman -Syu amavisd-new 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.
+
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:
 +
 
 +
sudo systemctl start amavisd
 +
 
 +
Check for any errors with:
 +
 
 +
systemctl status amavisd
 +
 
 +
The daemon can be quite verbose, so the curious may want a complete log:
 +
 
 +
journalctl -xbo short -u amavisd
 +
 
 +
If all seems well, make the service permanent:
 +
 
 +
sudo systemctl enable amavisd

Revision as of 21:47, 22 May 2013


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

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 -Syu amavisd-new 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:

sudo systemctl start amavisd

Check for any errors with:

systemctl status amavisd

The daemon can be quite verbose, so the curious may want a complete log:

journalctl -xbo short -u amavisd

If all seems well, make the service permanent:

sudo systemctl enable amavisd