Catch-All Configuration #228
-
Sorry, i'm a newbie in mailserver. I am following the documentation to enable the option for catch-all = true, using an alias @domain.com, but in the documentation it seems that it is necessary to use SQL statements to add the alias to a user account, but I am using RockDB and this a key-value. My question is whether there is any limitation on using the catch-all feature when using RockDB, or should I look for other causes? I need to use an other database to catch all mails? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
You have to add the alias with stalwart-cli: https://stalw.art/docs/management/directory/accounts#add-e-mail-aliases-to-an-account Example: $ stalwart-cli -u "https://domain.com" account add-email account_name @domain.com |
Beta Was this translation helpful? Give feedback.
-
Oh yes! My config is configured to internal, but the #############################################
# Internal Directory configuration
#############################################
[directory."internal"]
type = "internal"
store = "%{DEFAULT_STORE}%"
disable = false
[directory."internal".options]
catch-all = true
#catch-all = { map = "(.+)@(.+)$", to = "info@${2}" }
subaddressing = true
#subaddressing = { map = "^([^.]+)\.([^.]+)@(.+)$", to = "${2}@${3}" }
[directory."internal".cache]
entries = 500
ttl = {positive = '1h', negative = '10m'} I send a email from my personal gmail address to babalu@domain.com.br ( yes, i modified mail address to avoid exposure). In trace log i not detect any error, in my gmail inbox i not received any message of error and the internal mailbox of
|
Beta Was this translation helpful? Give feedback.
Can you include the log section when the message is delivered locally? That snippet only covers the incoming session from Gmail but misses the final delivery to the local mailbox.
Also, have you checked that the message is not in the
Junk Mail
folder?