Package Details: amavisd-new 2.11.0-1

Git Clone URL: https://aur.archlinux.org/amavisd-new.git (read-only)
Package Base: amavisd-new
Description: High-performance interface between mailer (MTA) and content checkers
Upstream URL: http://www.ijs.si/software/amavisd/
Licenses: GPL
Submitter: None
Maintainer: yar
Last Packager: yar
Votes: 32
Popularity: 0.193900
First Submitted: 2005-04-22 04:23
Last Updated: 2016-06-07 18:08

Dependencies (24)

Required by (2)

Sources (3)

Latest Comments

Arvedui commented on 2016-06-07 09:56

It's arch, the package should have be rebuild along with the other perl packages that rely on native code, but it was not.

nightah commented on 2016-06-07 09:39

Right you are!

Rebuilt against perl 5.24.0-1 with this PKGBUILD: https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/perl-unix-syslog

Thanks for the bug report too, is that upstream perl or somewhere around on Arch? I'll follow that so I can move back to the community release when fixed.

Arvedui commented on 2016-06-07 09:02

The problem is that perl-unix-syslog was not rebuild against perl 5.24.

That package was moved to community so you have use abs to get the PKGBUILD if you want to rebuild it yourself.

Here is the corresponding bug report is FS#49600 btw.

nightah commented on 2016-06-07 07:59

Had the same error post upgrade of perl and some of it's modules on the 5th of June.

For me it was because of razor 2.85-7 having a dependancy of perl 5.24.0-1.

Rolled back to razor 2.85-5, perl 5.22.2-1 and all the modules that also had been been marked as upgrade dependancies listed below (some of the dependancies are for razor and not amavis specifically):

[2016-06-05 22:40] [ALPM] upgraded perl (5.22.2-1 -> 5.24.0-1)
[2016-06-05 22:40] [ALPM] upgraded perl-berkeleydb (0.55-1 -> 0.55-2)
[2016-06-05 22:40] [ALPM] upgraded perl-digest-nilsimsa (0.06-11 -> 0.06-12)
[2016-06-05 22:40] [ALPM] upgraded perl-digest-sha1 (2.13-6 -> 2.13-7)
[2016-06-05 22:40] [ALPM] upgraded perl-net-libidn (0.12-9 -> 0.12-10)
[2016-06-05 22:40] [ALPM] upgraded razor (2.85-5 -> 2.85-7)

I've also tried building the newer version of amavis (2.11.0) with the required razor dependancies and we still receive the Syslog.c binary mismatch error.

BoldForester commented on 2016-06-06 19:00

Package seems to be broken on fresh install:

amavisd[543]: Syslog.c: loadable library and perl binaries are mismatched (got handshake key 0xdb00080, needed 0xdb80080)

Also this is not the latest version (amavisd-new-2.11.0.tar.xz).

Arvedui commented on 2015-08-12 21:19

The package was probably lost during aur switch.

But I just uploaded it :)

nougad commented on 2015-08-12 20:52

I can't find package perl-convert-tnef for installation. I think it is not available anymore.

Frnmst commented on 2015-04-25 10:13

I've added documentation on ArchWiki page if someone needs it: https://wiki.archlinux.org/index.php/Amavis

yar commented on 2015-03-15 01:11

@Durag it uses systemd's RunTimeDirectory now. Maybe you forgot to reload the service file?

Durag commented on 2015-03-04 13:22

The start of amavisd fails, because it can't find the pid file.
Full error log: http://pastebin.com/iVh0d3qi

Got it working after creating the directory /run/amavis and chowning it to amavis:amavis

Durag commented on 2015-03-04 11:31

The start of amavisd fails, because it can't find the pid file.
Full error log: http://pastebin.com/iVh0d3qi

rumpelsepp commented on 2014-11-21 17:40

You could add this to your systemd service file:

RuntimeDirectory=amavis
RuntimeDirectoryMode=750

and you can drop it from the tmpfiles file. :)

in addition to that you may add these directories to tmpfiles as well:

/var/spool/amavis
/var/spool/amavis/tmp
/var/spool/amavis/virus

You may consider to move /var/spool/amavis/tmp to /tmp instead, as you can use

PrivateTmp=true

in your systemd file. :)

rumpelsepp commented on 2014-11-21 16:59

in addition to that you may add these directories to tmpfiles as well:

/var/spool/amavis
/var/spool/amavis/tmp
/var/spool/amavis/virus

rumpelsepp commented on 2014-11-21 16:57

You could add this to your systemd service file:

RuntimeDirectory=amavis
RuntimeDirectoryMode=750

and you can drop your tmpfiles file. :)

ganymede commented on 2014-10-26 23:42

Version 2.10.1 is out, see http://www.ijs.si/software/amavisd/#new

New PKGBUILD proposal (no patch needed anymore) : http://pastebin.archlinux.fr/638477

ganymede commented on 2014-10-25 17:11

Just noticed that perl-io-socket-inet6 should also be added as a dependency.
New PKGBUILD proposal : http://pastebin.archlinux.fr/635731
Sorry for the noise...

ganymede commented on 2014-10-25 17:10

Just noticed that perl-io-socket-inet6 should also be added as a dependency.
New PKGBUILD proposal : http://pastebin.archlinux.fr/635730
Sorry for the noise...

ganymede commented on 2014-10-25 16:58

Just submitted a new PKGBUILD providing perl module File::LibMagic :
https://aur.archlinux.org/packages/perl-file-libmagic/

amavisd-new can use this module instead of spawning file(1) utility, for faster checking contents of mail parts (see : http://www.ijs.si/software/amavisd/release-notes.txt).

Therefore, perl-file-libmagic can now be added as an optional dependency.

ganymede commented on 2014-10-25 15:14

Hi, thank you for updating the package.

The following dependencies are now provided by perl itself, so they can be safely removed from the PKGBUILD :
- perl-archive-tar
- perl-compress-raw-zlib
- perl-compress-zlib
- perl-digest-md5
- perl-mime-base64
- perl-time-hires

Below is link to a new PKGBUILD including the patch pointed by rumpelsepp, readme files from the original amavisd-new package and a few optional dependencies :
http://pastebin.archlinux.fr/635545

The patch itself can be downloaded here :
http://pastebin.archlinux.fr/635534

rumpelsepp commented on 2014-10-25 10:10

There is a little bug in amavis due to a missing import. Here is the patch for that: http://lists.amavis.org/pipermail/amavis-users/2014-October/003259.html

rumpelsepp commented on 2014-10-22 20:01

new release: http://lists.amavis.org/pipermail/amavis-users/2014-October/003252.html

rumpelsepp commented on 2014-06-28 16:16

2.9.1 is out

rumpelsepp commented on 2014-06-05 09:04

I fixed it with rebuilding these perl packages:
perl-convert-uulib perl-unix-syslog

rumpelsepp commented on 2014-06-04 21:54

With perl 5.20 amavis-new fails:

Jun 04 17:50:56 archvm amavisd[348]: $ = eval {...} called from file '/usr/lib/perl5/vendor_perl/Unix/Syslog.pm' line 0
Jun 04 17:50:56 archvm amavisd[348]: $ = Amavis::Boot::BEGIN() called from file '/usr/lib/perl5/vendor_perl/Unix/Syslog.pm' line 0
Jun 04 17:50:56 archvm amavisd[348]: $ = Amavis::Boot::fetch_modules('REQUIRED BASIC MODULES', 1, 'Exporter', 'POSIX', 'Fcntl', 'Socket', 'Errno', 'Carp', 'Time::HiRes', 'IO::Handle', 'IO::File', 'IO::Socket', 'IO::Socket::UNIX', 'IO::Str
Jun 04 17:50:56 archvm amavisd[348]: $ = eval {...} called from file '/usr/bin/amavisd' line 211
Jun 04 17:50:56 archvm amavisd[348]: $ = require 'Unix/Syslog.pm' called from file '/usr/bin/amavisd' line 209
Jun 04 17:50:56 archvm amavisd[348]: $ = DynaLoader::bootstrap('Unix::Syslog', 1.1) called from file '/usr/lib/perl5/vendor_perl/Unix/Syslog.pm' line 49
Jun 04 17:50:56 archvm amavisd[348]: $ = eval {...} called from file '/usr/lib/perl5/core_perl/DynaLoader.pm' line 216
Jun 04 17:50:56 archvm amavisd[348]: Caught a SIGSEGV at /usr/lib/perl5/core_perl/DynaLoader.pm line 216

any ideas? :/

rumpelsepp commented on 2014-04-29 14:32

*push*
Configuration file /usr/lib/systemd/system/amavisd.service is marked executable. Please remove executable permission bits. Proceeding anyway.

rumpelsepp commented on 2014-03-09 20:59

Configuration file /usr/lib/systemd/system/amavisd.service is marked executable. Please remove executable permission bits. Proceeding anyway.

DJ_L commented on 2013-12-15 06:03

Just a heads up, need to double quote quarantine directory in sample config, it is currently single quoted and results in not expanding $MYHOME.

yar commented on 2013-09-21 00:03

Bumped to 2.8.1. I had to manually rebuild perl-unix-syslog. I've asked the maintainer to bump pkgrel. We'll see.

yar commented on 2013-09-21 00:00

Bumped to 2.8.1. I had to manually rebuild:

perl-convert-uulib
perl-unix-syslog

I've asked the maintainers to bump pkgrel. We'll see.

rumpelsepp commented on 2013-09-09 10:38

Version 2.8.1 and 2.8.2 RC have been released!
http://www.ijs.si/software/amavisd/#new

yar commented on 2013-05-22 22:42

Hope I haven't stepped on anyone's toes, but I'm adopting this package and fixing it as best I can.

My changes: https://github.com/yardenac/pkgbuilds/commits/master/packages/amavisd-new
First attempts at a wiki page: https://wiki.archlinux.org/index.php/Amavis

I welcome your testing and constructive criticism. Thanks!

yar commented on 2013-05-22 22:38

Hope I haven't stepped on anyone's toes, but I've just adopted this package and am trying to fix it as best I can. I welcome your testing and constructive criticism. Thanks!

alexandernst commented on 2013-04-11 10:17

Any updates on this?

roentgen commented on 2013-02-02 09:46

I'm using this as systemd service http://paste.kde.org/663410/
I can't find right now from where I've got them.

Could you please post your PKGBUILD somewhere or send it by mail?

cpwithers commented on 2013-02-01 22:45

I had started work on an updated package but not yet figured out the systemd service file and not really had chance to work it out.

I don't have a great understanding of the PKGBUILD file, what's the best way to get another pair of eyes to check what I've done and pick up stupid errors before looking to adopt this package?

roentgen commented on 2013-01-31 21:05

I do have plans to make a better package for this. I can't promise when this will happen though...

ChojinDSL commented on 2013-01-31 15:46

Anybody feel like adopting this package?

net147 commented on 2013-01-24 00:01

Package is out of date. 2.8.0 is available.

Vrob commented on 2011-08-05 11:42

There are several issues with this package, most of them are just inconsistencies or typos in the config files.

Problem 1:
In the default config file it reads "$QUARANTINEDIR = '$MYHOME/virus'". The '' must be substituted with "" or amavis fails to recognize $MYHOME as a variable, taking it literally and thus failing to access the quarantine dir.

Problem 2:
The amavis user doesn't have rights to write into /var/run (which is actually fine) and therefore in the default config the pid and lock files are located in /var/run/amavisd. At least for my system I had to manually create
and chown the amavisd folder in /var/run before this worked. Might be due to me using a tmpfs for /var/run but still the initscript should take care of creating and chowning that folder.

Problem 3:
Speaking of the initscript. I think parts of its inherent logic are flawed. The get_pid function always returns an empty value. Therefore the initscript creates an empty file in /var/run/amavisd/amavisd.pid which is then populated by the amavis script itself as it seems. If you change the location of the pidfile in amavisd.conf the initiscript won't know the change and fail. So it should get rid of this redundancy e.g. by reading the pid file location from amavisd.conf.
But more seriously than that is that in the stop) part the PID of amavisd-master is determined by the get_pid-function (returns an empty value) and so the kill will fail and the deamon is not stopped at all. An easy but dirty (because the path is hardcoded) fix is to not use the get_pid-function, but to read the PID into $PID directly from the file:
PID=`cat /var/run/amavisd/amavisd.pid`

"Problem 4":
It's not really a problem but a thing of convenience. The default path for clamavs socket file is not /var/run/clamav/clamd but something different (sorry, I can't remember right now). It would be nice if the path would be correct in amavisd.conf (in the @av_scanners section).

Thanks alot for providing the package,
Vrob

Vrob commented on 2011-08-05 11:39

There are several issues with this package, most of them are just inconsistencies or typos in the config files.

Problem 1:
In the default config file it reads "$QUARANTINEDIR = '$MYHOME/virus'". The '' must be substituted with "" or amavis fails to recognize $MYHOME as a variable, taking it literally and thus failing to access the quarantine dir.

Problem 2:
The amavis user doesn't have rights to write into /var/run (which is actually fine) and therefore in the default config the pid and lock files are located in /var/run/amavisd. At least for my system I had to manually create
and chown the amavisd folder in /var/run before this worked. Might be due to me using a tmpfs for /var/run but still the initscript should take care of creating and chowning that folder.

Problem 3:
Speaking of the initscript. I think parts of its inherent logic are flawed. The get_pid function always returns an empty value. Therefore the initscript creates an empty file in /var/run/amavisd/amavisd.pid which is then populated by the amavis script itself as it seems. If you change the location of the pidfile in amavisd.conf won't know the change and fail. So it should get rid of this redundancy e.g. by reading the pid file location from amavisd.conf.
But more seriously than that is that in the stop) part the PID of amavisd-master is determined by the get_pid-function which is broken and so the kill will fail and the deamon is not stopped at all. An easy but dirty (because the path is hardcoded) fix is to not use the get_pid-function but to read the PID into $PID directly from the file:
PID=`cat /var/run/amavisd/amavisd.pid`

"Problem 4":
It's not really a problem but a thing of convenience. The default path for clamavs socket file is not /var/run/clamav/clamd but something different (sorry, I can't remember right now). It would be nice if the path would be correct in amavisd.conf (in the @av_scanners section).

Thanks alot for providing the package,
Vrob

techlive commented on 2011-03-15 11:42

Version 2.6.4-4 update information

The default amavisd-new home directory has been moved to /var/lib/amavis.

The pid and lock files has been change to /var/run/amavisd.

The anti-spam and anti-virus features has been disabled by default,you
need to mannully enable them by comment the follow lines in /etc/amavisd.co

# @bypass_virus_checks_maps = (1); # controls running of anti-virus code
# @bypass_spam_checks_maps = (1); # controls running of anti-spam code

Please update you /etc/amavisd/amavisd.conf accordingly.

techlive commented on 2011-03-15 09:00

<<< Attention please!
<<<
<<< The default amavisd-new home directory has been moved to /var/lib/amavis.
<<<
<<< The pid and lock files has been change to /var/run/amavisd.
<<<
<<< The anti-spam and anti-virus features has been disabled by default,you
<<< need to mannully enable them by comment the follow lines in /etc/amavisd.co
<<<
<<< # @bypass_virus_checks_maps = (1); # controls running of anti-virus code
<<< # @bypass_spam_checks_maps = (1); # controls running of anti-spam code
<<<
<<< Please update you /etc/amavisd/amavisd.conf accordingly.

techlive commented on 2011-03-07 03:25

The perl-convert-binhex problem has been fix in 5.501-1 of perl-mime-tools,so i will remove it from the dependencies of the amavisd-new in next release.

techlive commented on 2011-03-05 11:23

And the spamassassin problem described by mclaud100,i think spamassassin should be the optional dependency and be disabled in amavisd-new's configuration file as default.

techlive commented on 2011-03-05 10:33

And the spamassassin problem described by mclaud100,i think spamassassin should be the optional dependency and be disabled in amavisd-new's configuration file as default.

techlive commented on 2011-03-05 10:30

Acturally,perl-convert-binhex should be the dependency of perl-mime-tools,so i plan to fill a bug report to the perl-mime-tools in [Extra].I will keep perl-convert-binhex as one of the current amavisd-new dependencies,untill the perl-mime-tools fix this problem.

Anonymous comment on 2011-02-16 07:20

Thanks fsa; Works for me with your perl-convert-* PKGBUILDs.

fsa commented on 2011-02-03 07:38

This suddenly didn't work for me yesterday because the perl-convert-* packages were installed in the wrong place. I have posted updated PKGBUILDs for all of them that fixes the problem.

dzaragoza commented on 2010-12-13 01:16

Please add spamassassin as a dependency, it doesn't work without it. Gives the error:

# amavisd -c /etc/amavisd/amavisd.conf debug
Problem in antispam SA code: Can't locate Mail/SpamAssassin.pm in @INC (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl /usr/lib/perl5/site_perl/5.10.1 /usr/share/perl5/site_perl/5.10.1 /usr/lib/perl5/current/x86_64-linux-thread-multi /usr/lib/perl5/current /usr/lib/perl5/site_perl/current/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/current) at (eval 65) line 64.
BEGIN failed--compilation aborted at (eval 65) line 64.

Also, sa-update must be run before first run.

techlive commented on 2010-11-13 12:08

Add dependcy of perl-convert-binhex in realse 3.

fsa commented on 2010-07-17 12:16

If you want to use amavisd-agent or amavisd-nanny you'll need to add the following to the PKGBUILD:

install -D -m755 amavisd-agent ${startdir}/pkg/usr/sbin/amavisd-agent || return 1
install -D -m755 amavisd-nanny ${startdir}/pkg/usr/sbin/amavisd-nanny || return 1
install -D -m755 p0f-analyzer.pl ${startdir}/pkg/usr/sbin/p0f-analyzer.pl || return 1

qwak commented on 2010-07-05 10:05

I have no Arch instillation at this moment (and I can't test new PKGBUILD), so now I orphan this package.

paulez commented on 2010-07-05 09:08

Some missing dependencies :

perl : Convert/BinHex (package not existing in aur)

perl-mail-dkim (in community)

mr.MikyMaus commented on 2010-05-02 17:47

found it - Convert::BinHex

PKGBUILD:
http://aur.pastebin.com/CWN08XmE

and install:
http://aur.pastebin.com/m4jBUhrN

feel free to adopt it :)

mr.MikyMaus commented on 2010-05-02 17:28

I got this whem I try to run amavisd. It seems like a forgotten dependency but I'm unable to locate it.

fetch_modules: error loading optional module MIME/Decoder/BinHex.pm:
Can't locate Convert/BinHex.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.10.1 /usr/share/perl5/site_perl/5.10.1 /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl /usr/lib/perl5/current/x86_64-linux-thread-multi /usr/lib/perl5/current /usr/lib/perl5/site_perl/current/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/current) at /usr/share/perl5/vendor_perl/MIME/Decoder/BinHex.pm line 43.
BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/MIME/Decoder/BinHex.pm line 43.
Compilation failed in require at /usr/sbin/amavisd line 197.