Date: Fri, 23 Apr 2004 12:28:48 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: antwort@schmalzbauer.de Cc: freebsd-questions@freebsd.org Subject: Re: Jail and spammass-milter (sendmail/spamassassin) Message-ID: <20040423172847.GD4463@dan.emsphone.com> In-Reply-To: <200404231348.13056.h@schmalzbauer.de> References: <200404231127.44314.h@schmalzbauer.de> <200404231348.13056.h@schmalzbauer.de>
next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Apr 23), Harald Schmalzbauer said: > Am Freitag, 23. April 2004 11:27 schrieb Harald Schmalzbauer: > > Dear all, > > > > is it possible that spamass-milter doesn't work in a jail? > > Ok, I verified that it's working with the same configuration under > -stabel outside a jail, but not on -current inside a jail. > > Is there any way I can make it work? I think the problem is with the > local socket between sendmail and spamass-milter. > > Is there a sysctl to allow local sockets or is it possible to tell > sendmail to connect via localhost (127.0.0.1)? If your jail is not chrooted at /, "/var/run/spamass-milter.sock" will point to different locations inside and outside the jail, so you'll have to use inet sockets to communicate. Actually if you have a single jail, you can configure the outer processes to use /usr/myjail/var/run/spamass-milter.sock and the jailed processes to use /var/run/spamass-milter.sock, but that won't work if you have multiple jails. The sendmail syntax is "inet:port@{hostname|ip-address}", so you can do something like this in your .mc file: INPUT_MAIL_FILTER(`spamassassin',`S=inet:2525@127.0.0.1, F=, T=C:15m;S:4m;R:4m;E:10m')dnl and then run spamass-milter with "-p inet:2525@127.0.0.1". -- Dan Nelson dnelson@allantgroup.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040423172847.GD4463>