V
V
Vyacheslav Kordienko2017-01-26 15:39:54
linux
Vyacheslav Kordienko, 2017-01-26 15:39:54

How to integrate RSPAMD into MTA Postfix?

Good afternoon everyone!
I decided to connect RSPAMD to filter spam
. Judging by the documentation, integration with MTA goes only through RMILTER
When connecting rmilter in main.cf

#rsapmd
smtpd_milters = unix:/var/run/rmilter/rmilter.sock;
milter_mail_macros =  i {mail_addr} {client_addr} {client_name} {auth_authen}
milter_protocol = 6
milter_rcpt_macros = i {rcpt_addr}
# #skip mail without checks if milter will die
milter_default_action = accept

In the logs var/log/maillog.
warning: connect to Milter service unix:/var/run/rmilter/rmilter.sock;: No such file or directory

Jan 26 13:28:05 status postfix/smtpd[16870]: milter_macro_lookup: "j"
Jan 26 13:28:05 status postfix/smtpd[16870]: milter_macro_lookup: result "mail.site.ru"
Jan 26 13:28:05 status postfix/smtpd[16870]: milter_macro_lookup: "{daemon_name}"
Jan 26 13:28:05 status postfix/smtpd[16870]: milter_macro_lookup: result "mail.site.ru"
Jan 26 13:28:05 status postfix/smtpd[16870]: milter_macro_lookup: "v"
Jan 26 13:28:05 status postfix/smtpd[16870]: milter_macro_lookup: result "Postfix 2.6.6"
Jan 26 13:28:05 status postfix/smtpd[16870]: milter8_connect: non-protocol events for protocol version 6: 
Jan 26 13:28:05 status postfix/smtpd[16870]: milter8_connect: transport=unix endpoint=/var/run/rmilter/rmilter.sock;
Jan 26 13:28:05 status postfix/smtpd[16870]: warning: connect to Milter service unix:/var/run/rmilter/rmilter.sock;: No such file or directory
Jan 26 13:28:05 status postfix/smtpd[16870]: milter8_conn_event: skip milter unix:/var/run/rmilter/rmilter.sock;
....
Jan 26 13:28:05 status postfix/smtpd[16870]: milter_macro_lookup: "i"
Jan 26 13:28:05 status postfix/smtpd[16870]: milter_macro_lookup: "{mail_addr}"
Jan 26 13:28:05 status postfix/smtpd[16870]: ctable_locate: leave existing entry key [email protected]
Jan 26 13:28:05 status postfix/smtpd[16870]: milter_macro_lookup: result "[email protected]"
Jan 26 13:28:05 status postfix/smtpd[16870]: milter_macro_lookup: "{client_addr}"
Jan 26 13:28:05 status postfix/smtpd[16870]: milter_macro_lookup: result "127.0.0.1"
Jan 26 13:28:05 status postfix/smtpd[16870]: milter_macro_lookup: "{client_name}"
Jan 26 13:28:05 status postfix/smtpd[16870]: milter_macro_lookup: result "localhost"
Jan 26 13:28:05 status postfix/smtpd[16870]: milter_macro_lookup: "{auth_authen}"
Jan 26 13:28:05 status postfix/smtpd[16870]: milter8_mail_event: skip milter unix:/var/run/rmilter/rmilter.sock;

-
Postfix is ​​not in chroot
- Both rmilter.sock and rmilter.pid files are
in /var/run/rmilter/

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2017-01-26
@AmonTobin

smtpd_milters = unix:/var/run/rmilter/rmilter.sock;

It seems to me ; here is superfluous

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question