The default installation of security/amavisd-milter would use AMAVISDIR as the place for its socket files. The problem with this is that security/amavisd-new would change the permission to vscan:vscan 0750, so an unprivileged MTA process would not be able to access the milter. Fix: The problem is that socket files and PID files does not belong to /var/amavis but /var/run/amavis. A directory should be created owned by AMAVISUSER:AMAVISUSER and have permission 0755, and change the rc.d scripts to use /var/run/amavis instead. How-To-Repeat: Install security/amavisd-milter with stock options and try to set up milter without changing the directory permission, or re-install security/amavisd-new.
State Changed From-To: open->feedback Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Maintainer of security/amavisd-milter, Please note that PR ports/187101 has just been submitted. If it contains a patch for an upgrade, an enhancement or a bug fix you agree on, reply to this email stating that you approve the patch and a committer will take care of it. The full text of the PR can be found at: http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/187101 -- Edwin Groothuis via the GNATS Auto Assign Tool edwin@FreeBSD.org
Created attachment 143820 [details] Move state dir to /var/run/amavis and support STAGEDIR Move state dir to /var/run/amavis and support STAGEDIR. Please note in UPDATING that users must adjust path to milter socket in sendmail or postfix configuration.
A commit references this bug: Author: delphij Date: Fri Jun 27 01:31:53 UTC 2014 New revision: 359429 URL: http://svnweb.freebsd.org/changeset/ports/359429 Log: Stageify and move state directory to /var/run/amavis. PR: 187101 Submitted by: maintainer (with changes) Changes: head/security/amavisd-milter/Makefile head/security/amavisd-milter/files/amavisd-milter.in head/security/amavisd-milter/files/pkg-message.in head/security/amavisd-milter/pkg-message head/security/amavisd-milter/pkg-plist
A slightly different patchset was committed as of r359429, thanks for your submission!
Created attachment 144193 [details] amavisd-milter-1.6.0_2.patch I forgot to create working wonder (previously created by amavisd-new) and set permissions :-( P.
s/wonder/folder/ Please note in UPDATING that users must adjust path to milter socket in sendmail or postfix configuration. P.