Mailing List Archive

getting spamass-milter to work with remote spamd (on CentOS8)
I have problems configuring the spamass-milter to connect to the remote spamd. I am constantly getting

getaddrinfo(192.168.10.243:34219) failed: Name or service not known
could not resolve any hosts (192.168.10.243:34219): no such host

Nothing of these seem to work
-D 192.168.10.243:34219 inet:34219@hostname

this spamc commandline is processed ok
spamc -d xxxx.xxx.xxx -p 34219 < /etc/mail/spamassassin/sample-spam2.txt

Anyone having a remote spamd configured?
Re: getting spamass-milter to work with remote spamd (on CentOS8) [ In reply to ]
Marc:
> I have problems configuring the spamass-milter to connect to the remote spamd. I am constantly getting
>
> getaddrinfo(192.168.10.243:34219) failed: Name or service not known
> could not resolve any hosts (192.168.10.243:34219): no such host
>
> Nothing of these seem to work
> -D 192.168.10.243:34219 inet:34219@hostname
>
> this spamc commandline is processed ok
> spamc -d xxxx.xxx.xxx -p 34219 < /etc/mail/spamassassin/sample-spam2.txt

Usually a SpamAssassin milter can accept additional arguments after ‘--’
that it will pass to spamc. So:

spamassassin-milter ...other args... -- -d 192.168.10.243 -p 34219

Or configure the connection in /etc/spamassassin/spamc.conf, that works
too.
RE: getting spamass-milter to work with remote spamd (on CentOS8) [ In reply to ]
> Usually a SpamAssassin milter can accept additional arguments after ‘--’
> that it will pass to spamc. So:
>
> spamassassin-milter ...other args... -- -d 192.168.10.243 -p 34219
>
> Or configure the connection in /etc/spamassassin/spamc.conf, that works
> too.

Thanks! Got it to work with this:
EXTRA_FLAGS=" -D xxxxxx.xxx.xxx -- -p 34219"
Re: getting spamass-milter to work with remote spamd (on CentOS8) [ In reply to ]
>> Usually a SpamAssassin milter can accept additional arguments after ‘--’
>> that it will pass to spamc. So:
>>
>> spamassassin-milter ...other args... -- -d 192.168.10.243 -p 34219
>>
>> Or configure the connection in /etc/spamassassin/spamc.conf, that works
>> too.

On 06.02.22 14:02, Marc wrote:
>Thanks! Got it to work with this:
>EXTRA_FLAGS=" -D xxxxxx.xxx.xxx -- -p 34219"

the man page for spamass-milter says:

-D host
Connects to a remote spamd server on host, instead of using one
on localhost. This option is deprecated; use -- -d host instead.

so, 1. it's deprecated, 2. only uses host.

I'm glad you have fixed that but next time please read the manual page
first.


--
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Save the whales. Collect the whole set.
RE: getting spamass-milter to work with remote spamd (on CentOS8) [ In reply to ]
> On 06.02.22 14:02, Marc wrote:
> >Thanks! Got it to work with this:
> >EXTRA_FLAGS=" -D xxxxxx.xxx.xxx -- -p 34219"
>
> the man page for spamass-milter says:
>
> -D host
> Connects to a remote spamd server on host, instead of using
> one
> on localhost. This option is deprecated; use -- -d host
> instead.
>
> so, 1. it's deprecated, 2. only uses host.
>

It is not deprecated and -d is for debug.

in source:
307 cout << " -C RejectCode: using this Reject Code." << endl;
308 cout << " -d xx[,yy ...]: set debug flags. Logs to syslog" << endl;
309 cout << " -D host: connect to spamd at remote host (deprecated)" << endl;
310 cout << " -e defaultdomain: pass full email address to spamc instead of just\n"
311 " username. Uses 'defaultdomain' if there was none" << endl;
312 cout << " -f: fork into background" << endl;
313 cout << " -i: skip (ignore) checks from these IPs or netblocks" << endl;

on centos8

~]# spamass-milter -h
spamass-milter: invalid option -- 'h'
spamass-milter - Version 0.4.0
SpamAssassin Sendmail Milter Plugin
Usage: spamass-milter -p socket [-b|-B bucket] [-d xx[,yy...]] [-D host]
[-e defaultdomain] [-f] [-i networks] [-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
Re: getting spamass-milter to work with remote spamd (on CentOS8) [ In reply to ]
Marc <Marc@f1-outsourcing.eu> writes:

>> On 06.02.22 14:02, Marc wrote:
>> >Thanks! Got it to work with this:
>> >EXTRA_FLAGS=" -D xxxxxx.xxx.xxx -- -p 34219"
>>
>> the man page for spamass-milter says:
>>
>> -D host
>> Connects to a remote spamd server on host, instead of using
>> one
>> on localhost. This option is deprecated; use -- -d host
>> instead.
>>
>> so, 1. it's deprecated, 2. only uses host.
>>
>
> It is not deprecated and -d is for debug.
>
> in source:
> 307 cout << " -C RejectCode: using this Reject Code." << endl;
> 308 cout << " -d xx[,yy ...]: set debug flags. Logs to syslog" << endl;
> 309 cout << " -D host: connect to spamd at remote host (deprecated)" << endl;

See the word deprecated in the previous line.


> 310 cout << " -e defaultdomain: pass full email address to spamc instead of just\n"
> 311 " username. Uses 'defaultdomain' if there was none" << endl;
> 312 cout << " -f: fork into background" << endl;
> 313 cout << " -i: skip (ignore) checks from these IPs or netblocks" << endl;
>
> on centos8
>
> ~]# spamass-milter -h
> spamass-milter: invalid option -- 'h'
> spamass-milter - Version 0.4.0
> SpamAssassin Sendmail Milter Plugin
> Usage: spamass-milter -p socket [-b|-B bucket] [-d xx[,yy...]] [-D host]
> [-e defaultdomain] [-f] [-i networks] [-m] [-M]
> [-P pidfile] [-r nn] [-u defaultuser] [-x] [-a]
> [-C rejectcode] [-R rejectmsg] [-g group]
> [-- spamc args ]

Understand the difference between "-d" and "-- -d".

> -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
RE: getting spamass-milter to work with remote spamd (on CentOS8) [ In reply to ]
> > ~]# spamass-milter -h
> > spamass-milter: invalid option -- 'h'
> > spamass-milter - Version 0.4.0
> > SpamAssassin Sendmail Milter Plugin
> > Usage: spamass-milter -p socket [-b|-B bucket] [-d xx[,yy...]] [-D host]
> > [-e defaultdomain] [-f] [-i networks] [-m] [-M]
> > [-P pidfile] [-r nn] [-u defaultuser] [-x] [-a]
> > [-C rejectcode] [-R rejectmsg] [-g group]
> > [-- spamc args ]
>
> Understand the difference between "-d" and "-- -d".
>

I agree, pffff