Re: filter-rspamd available for testing
On Fri, Aug 16, 2019 at 12:02:29AM +0200, Jakub Jirutka wrote: > Hi Gilles, > > I'm testing OpenSMTPD on Alpine Linux (musl libc) built from the last > commit from the portable branch [1] and filters don't work. > > The filter script gets the following lines on the start of OpenSMTPD: > > config|smtp-session-timeout|300\n > config|ready\n > > Right after reading "config|ready" I print the following lines to STDOUT: > > register|filter|smtp-in|data-line\n > register|filter|smtp-in|commit\n > register|ready\n > > No problem so far. But when I send a message via sendmail(1), OpenSMTPD > processes it, but doesn't feed any input to the script. The script is > running and when I kill OpenSMTPD, it's gracefully exited (STDIN??? is > closed, the script finishes). > > I've even tried to register all the reporters and filters as > filter-rspamd do, i.e. emit exactly the same output, but no change. > > My smtpd.conf: > > table aliases file:/etc/smtpd/aliases > filter "my-filter" proc-exec "/etc/smtpd/filter.sh" > listen on lo filter "my-filter" > > action "local" mbox alias > match for local action "local" > > Jakub > > [1]: > https://github.com/OpenSMTPD/OpenSMTPD/commit/772da22936c8d80f7ad3284ea7e5bdbfdbee2efb > Are you sure you're not enqueuing the mail through the local socket ? Note that 'listen on lo0' is a network listener and does not catch mails that are submitted through the 'mail' command for instance. Try adding 'listen on socket' and let me know if it works better. > P.S.: misc+get-04...@opensmtpd.org doesn't work. > never used it, i'll look -- Gilles Chehade @poolpOrg https://www.poolp.orgpatreon: https://www.patreon.com/gilles
filter-rspamd available for testing
Hi Gilles, I'm testing OpenSMTPD on Alpine Linux (musl libc) built from the last commit from the portable branch [1] and filters don't work. The filter script gets the following lines on the start of OpenSMTPD: config|smtp-session-timeout|300\n config|ready\n Right after reading "config|ready" I print the following lines to STDOUT: register|filter|smtp-in|data-line\n register|filter|smtp-in|commit\n register|ready\n No problem so far. But when I send a message via sendmail(1), OpenSMTPD processes it, but doesn't feed any input to the script. The script is running and when I kill OpenSMTPD, it's gracefully exited (STDIN  is closed, the script finishes). I've even tried to register all the reporters and filters as filter-rspamd do, i.e. emit exactly the same output, but no change. My smtpd.conf: table aliases file:/etc/smtpd/aliases filter "my-filter" proc-exec "/etc/smtpd/filter.sh" listen on lo filter "my-filter" action "local" mbox alias match for local action "local" Jakub [1]: https://github.com/OpenSMTPD/OpenSMTPD/commit/772da22936c8d80f7ad3284ea7e5bdbfdbee2efb P.S.: misc+get-04...@opensmtpd.org doesn't work. On 8/13/19 10:56 PM, gil...@opensmtpd.org wrote: > Hello, > > I have made available my filter-rspamd for testing: > > > https://github.com/poolpOrg/filter-rspamd > > > A port was done for OpenBSD, I'm waiting for okays but OpenBSD users will be > able to setup antispam with: > > pkg_add rspamd filter-rspamd > > > and adding the filter bits to smtpd.conf: > > filter "rspamd" proc-exec "/usr/local/bin/filter-rspamd" > listen on ... filter "rspamd" > > > I have been running with this filter for a while now, so have other people. > > You need to be running OpenSMTPD from OpenBSD -current or from the Github > repository. > > Please test and report ! > signature.asc Description: OpenPGP digital signature
filter-rspamd available for testing (repost)
Hello, It seems that I forgot to setup a proper outgoing route yesterday, so my mail announcing availability of filter-rspamd has been SPF-rejected by a bunch of hosts... Here's a link to the mail archive: https://www.mail-archive.com/misc@opensmtpd.org/msg04472.html Note that since then, the port has been committed to OpenBSD ! -- Gilles Chehade @poolpOrg https://www.poolp.orgpatreon: https://www.patreon.com/gilles
filter-rspamd available for testing
Hello, I have made available my filter-rspamd for testing: https://github.com/poolpOrg/filter-rspamd A port was done for OpenBSD, I'm waiting for okays but OpenBSD users will be able to setup antispam with: pkg_add rspamd filter-rspamd and adding the filter bits to smtpd.conf: filter "rspamd" proc-exec "/usr/local/bin/filter-rspamd" listen on ... filter "rspamd" I have been running with this filter for a while now, so have other people. You need to be running OpenSMTPD from OpenBSD -current or from the Github repository. Please test and report !