RSPAMD + Getmail + Postfix

Kernels & Hardware, configuring network, installing services

RSPAMD + Getmail + Postfix

Postby DebiLord » 2018-12-21 10:24

Hi,
need Help for rspamd.
tried to use rspamd insted of spamassassin
i have a well running mail server
i use getmail + postfix + dovecot under debian 9

i used the rspamd-part of this tutorial
https://thomas-leister.de/mailserver-debian-stretch/

in the web interface of rspamd i can see, that zero mails are scanned

netstat says, rspamd is running on 127.0.0.1:11334

i now searched 3 days for a reason why it not works...

i can manual check mails with
rspamc < emailxyz
Code: Select all
Results for file: stdin (0.180 seconds)
[Metric: default]
Action: add header
Spam: true
Score: 4.60 / 2.00
Symbol: ARC_NA (0.00)
Symbol: AUTH_NA (1.00)
and so on....


maybe the foult is in my postfix/main.cf ?

is there a better howto on the web ?
DebiLord
 
Posts: 3
Joined: 2018-12-21 09:58

Re: RSPAMD + Getmail + Postfix

Postby reinob » 2018-12-21 17:58

DebiLord wrote:netstat says, rspamd is running on 127.0.0.1:11334


11334 is the web interface. The documentation for RSPAMD is actually great, but needs some attention.

maybe the foult is in my postfix/main.cf ?


Perhaps posting your main.cf will actually help.

Something like:
Code: Select all
smtpd_milters = inet:localhost:11332
non_smtpd_milters = inet:localhost:11332


That's actually also shown in the tutorial you cited.
reinob
 
Posts: 699
Joined: 2014-06-30 11:42

Re: RSPAMD + Getmail + Postfix

Postby DebiLord » 2018-12-21 18:56

main.cf
Code: Select all
virtual_transport = postfix
mailbox_command = /usr/lib/dovecot/deliver
milter_protocol = 6
milter_default_action = accept
smtpd_milters = inet:localhost:11332
non_smtpd_milters = $smtpd_milters
milter_mail_macros =  i {mail_addr} {client_addr} {client_name} {auth_authen}


netstat -tulpen |grep 11332

tcp 0 0 127.0.0.1:11332 0.0.0.0:* LISTEN 128 53691 5607/rspamd: main p
tcp6 0 0 ::1:11332 :::* LISTEN 128 53692 5607/rspamd: main p
DebiLord
 
Posts: 3
Joined: 2018-12-21 09:58

Re: RSPAMD + Getmail + Postfix

Postby DebiLord » 2018-12-22 08:35

OK
it works now.
Can someone tell me...

How can i add ***SPAM*** to the Subject of Spam-Mails ?

i searched hours on google
it does'nt work
DebiLord
 
Posts: 3
Joined: 2018-12-21 09:58


Return to System configuration

Who is online

Users browsing this forum: Lieta and 15 guests

fashionable