p...@thinkage.ca (Peter Fraser), 2016.11.27 (Sun) 21:50 (CET): > Is there a similar procedure to get rspamd or similar to work with smtpd?
I did it via amavisd-new and do it atm with spampd. warning: spampd fails on me quite often. that's the reason for extra rc_check() and rc_pre() and some "rcctl ls failed" auto restart from cron(8). overview: inet -> :25 smtpd -> :10023 clamsmtpd -> :10024 spampd -> \ :10025 smtpd -> deliver local -> :587 smtpd -> :10026 clamsmtpdout -> :10027 spampdout -> \ :10028 smtpd -> deliver ==== $ grep ^spampd /etc/rc.conf.local spampd_flags=--host=127.25.0.1:10024 --relayhost=127.25.0.1:10025 --children=5 --maxsize=1024 --dose --tagall --pid=/var/run/spampd.pid spampdout_flags=--host=127.25.0.1:10027 --relayhost=127.25.0.1:10028 --children=5 --maxsize=1024 --dose --tagall --pid=/var/run/spampdout.pid ==== $ cat /etc/rc.d/spampd daemon="/usr/local/sbin/spampd" . /etc/rc.d/rc.subr pexp="/usr/bin/perl -T ${daemon}${daemon_flags:+ ${daemon_flags}}" rc_pre() { pkill -q -f -x '^/usr/bin/perl -T /usr/local/sbin/spampd$' || : } rc_check() { /usr/bin/fstat -u _spampd | /usr/bin/grep \ 'spampd.*127.25.0.1:10024$' } rc_cmd $1 === $ cat /etc/rc.d/spampdout daemon="/usr/local/sbin/spampd" . /etc/rc.d/rc.subr pexp="/usr/bin/perl -T ${daemon}${daemon_flags:+ ${daemon_flags}}" rc_pre() { pkill -q -f -x '^/usr/bin/perl -T /usr/local/sbin/spampd$' || : } rc_check() { /usr/bin/fstat -u _spampd | /usr/bin/grep \ "spampd.*127.25.0.1:10027$" } rc_cmd $1 Marcus > !DSPAM:583b47597609074139474!