On Wed, 21 Jun 2023 18:30:31 +0200
Philippe Strauss <phili...@straussaudio.ch> wrote:

> Hello the list,
> 
> I'm new to opensmtpd, great software BTW, but after reading the man 
> page and googling around the net, I can't find the right syntax for
> the "listen ... filter ..." syntax in smtpd.conf, I'm simply trying
> to setup rspamd to filter and DKIM sign emails, someone willing to
> share some example for 6.8.0p2?
> 
> TIA!
> 

Here is what I use: 

# Filters 
filter dkimsign proc-exec "filter-dkimsign -d mydomain -s 20210622 -k
/etc/mail/dkim/private.rsa.key" user _dkimsign group _dkimsign

filter   "rdns" phase connect match   !rdns disconnect "550 DNS error"
filter "fcrdns" phase connect match !fcrdns disconnect "550 DNS error"
filter check_dyndns phase connect match rdns regex { '.*\.dyn\..*',
'.*\.dsl\..*' } \ disconnect "550 no residential connections"

listen on socket filter "dkimsign"
listen on localhost filter "dkimsign"
listen on eth0 port 25 tls pki mydomain filter { "dkimsign", "rdns",
"fcrdns", "check_dyndns" }

Hope that helps.

Reply via email to