Hello,

I have my OpenSMTP server configured as follow:

pki mx-pki cert           "xxx"
pki mx-pki key            "xxx"

filter   "rdns" phase connect match   !rdns disconnect "550 DNS error"
filter "fcrdns" phase connect match !fcrdns disconnect "550 DNS error"
filter "rspamd" proc-exec "/usr/local/libexec/smtpd/filter-rspamd"
filter "rspamd-dkim" proc-exec "/usr/local/libexec/smtpd/filter-rspamd 
-settings-id dkim"

srs key "xxx"

table creds                    file:/etc/mail/creds
table vdoms                    file:/etc/mail/vdoms
table vusers                   file:/etc/mail/vusers
table aliases                  file:/etc/mail/aliases

# Inbound from external
listen on re0 tls pki mx-pki filter { "rdns", "fcrdns", "rspamd" }

# Run rspamd on outgoing for DKIM
listen on re0 port 587 tls pki mx-pki auth-optional <creds> filter "rspamd-dkim"

action expand expand-only alias <aliases>
action deliver lmtp "/var/dovecot/lmtp" virtual <vusers>
action send relay helo xxxx srs

match from local for local action expand
match from local !for domain <vdoms> action send
match from any for domain <vdoms> action deliver
match from auth for any action send
match from src 10.0.0.0/8 for any action send


Now, in vdom, I have a list of domain that I accept email for:

a.com
b.com
...

And in vusers, I have something like this:

[email protected] [email protected]
[email protected] foobar
@ kuon

Now this works, emails received for [email protected] are relayed back to 
[email protected]
and [email protected] is delivered to the foobar user and the rest to my user kuon.

The problem is that this requires the local users kuon and foobar.

How can I make it work with a single vmail unix user? Without losing the
catchall?

Thanks

-- 
Nicolas Goy
Developer and electronic engineer
Goyman SA

https://kuon.ch
https://goyman.com

Reply via email to