Am 14.03.2015 um 14:08 schrieb [email protected]:
On Fri, 13 Mar 2015, David B Funk wrote:Looking at the source for spamass-milter it looks like they're taking the "-p socket" argument and passing it directly to smfi_setconn so you should be able to give an INET socket address if you use the correct syntax (see docs for smfi_setconn).The spamass-milter mailing list says you can't do this (and I don't think the post about it was _that_ old), but I should probably give it a try anyway. Worst thing that happens is that it doesn't work
normally spamass-milter runs on the MTA and the params after "--" are for spamc, so you have spamd running on whatever host and instruct all milters on MTA's to use these host / hosts over TCP
/usr/sbin/spamass-milter -p /run/spamass-milter/spamass-milter.sock -g sa-milt -r 8.0 -- -s 5242880 --port=10028
Usage: spamass-milter -p socket [-b|-B bucket] [-d xx[,yy...]] [-D host]
[-e defaultdomain] [-f] [-i networks] [-I] [-m] [-M]
[-P pidfile] [-r nn] [-u defaultuser] [-x] [-a]
[-C rejectcode] [-R rejectmsg] [-g group]
[-- spamc args ]
-p socket: path to create socket
-b bucket: redirect spam to this mail address. The orignal
recipient(s) will not receive anything.
-B bucket: add this mail address as a BCC recipient of spam.
-C RejectCode: using this Reject Code.
-d xx[,yy ...]: set debug flags. Logs to syslog
-D host: connect to spamd at remote host (deprecated)
-e defaultdomain: pass full email address to spamc instead of just
username. Uses 'defaultdomain' if there was none
-f: fork into background
-g group: socket group (perms to 660 as well)
-i: skip (ignore) checks from these IPs or netblocks
example: -i 192.168.12.5,10.0.0.0/8,172.16.0.0/255.255.0.0
-I: skip (ignore) checks if sender is authenticated
-m: don't modify body, Content-type: or Subject:
-M: don't modify the message at all
-P pidfile: Put processid in pidfile
-r nn: reject messages with a score >= nn with an SMTP error.
use -1 to reject any messages tagged by SA.
-R RejectText: using this Reject Text.
-u defaultuser: pass the recipient's username to spamc.
Uses 'defaultuser' if there are multiple recipients.
-x: pass email address through alias and virtusertable expansion.
-a: don't scan messages over an authenticated connection.
-- spamc args: pass the remaining flags to spamc
signature.asc
Description: OpenPGP digital signature
