Answer the question
In order to leave comments, you need to log in
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
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;
Answer the question
In order to leave comments, you need to log in
smtpd_milters = unix:/var/run/rmilter/rmilter.sock;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question