Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

RSPAMD + Getmail + Postfix

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
DebiLord
Posts: 3
Joined: 2018-12-21 09:58

RSPAMD + Getmail + Postfix

#1 Post by DebiLord »

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 ?

reinob
Posts: 1198
Joined: 2014-06-30 11:42
Has thanked: 99 times
Been thanked: 47 times

Re: RSPAMD + Getmail + Postfix

#2 Post by reinob »

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.

DebiLord
Posts: 3
Joined: 2018-12-21 09:58

Re: RSPAMD + Getmail + Postfix

#3 Post by DebiLord »

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

#4 Post by DebiLord »

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

Post Reply