socket file location doesn't support chroot'd postfix smtpd, which is default
Bug #430411 reported by
Stephen Warren
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
spamass-milter (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: spamass-milter
A default postfix install, at least on Jaunty, runs smtpd chroot'd.
/etc/init.
if [ -x /usr/sbin/postfix ]; then
SOCKET=
which is fine for non-chroot'd smtpd, but doesn't work for chroot'd smtpd.
To solve this, I did something like:
mkdir -p /var/spool/
ln /var/spool/
It'd be nice if the spamass-milter package packaged that directory/link, or created them on install or startup; that way, chroot'd smtpd would "just work".
To post a comment you must log in.
It does just work. See the instructions in /usr/share/ doc/spamass- milter/ README. Debian:
------- ------- ------- ------- ------- ------- ------- ------- ------ ------- ------- ------- ------- ------- ------- ------- ------
Integrating spamass-milter into your postfix installation
-------
You need to edit /etc/postfix/ main.cf and configure smptpd_milters so
that postfix connects to the spamass-milter socket. Something like:
# spamass-milter configuration spool/postfix/ spamass/ spamass. sock
smtpd_milters = unix:/var/
should work. Note, however, if you're using a chrooted version of
postfix, you'll need the local path to the socket inside of the
chroot. In recent versions of Debian the following should work:
# spamass-milter configuration spamass. sock connect_ macros = j {daemon_name} v {if_name} _
smtpd_milters = unix:/spamass/
# milter macros useful for spamass-milter
milter_
See http:// www.postfix. org/MILTER_ README. html or doc/postfix/ MILTER_ README. gz (in postfix-doc) for
/usr/share/
information on how to set tempfail and the various timeouts that the
sendmail configuration above uses.
The defaults for spamass-milter adjust themselves so that no spamass- milter should be required.
configuration in /etc/default/
[However, if you are not doing so, see below.]