Skip to content

How can I set creds and stroage aliases #665

Answered by foxcpp
Cnily03 asked this question in Q&A
Discussion options

You must be logged in to vote

Any module under "Lookup tables" can be used for auth_map/storage_map/delivery_map.
Take a look at https://maddy.email/reference/table/static, https://maddy.email/reference/table/chain/ in particular.

E.g. how your example in original post could be implemented:

table.chain accounts_map {
  optional_step static {
    entry [email protected] user
    entry [email protected] user
  }
  step identity # default, ccc@* -> ccc@*
}

# Use it everywhere.
submission ... {
  auth_map &accounts_map
}
imap ... {
  auth_map &accounts_map
  storage_map &accounts_map
}
storage.imapsq local_storage {
  delivery_map &accounts_map
}

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Cnily03
Comment options

@foxcpp
Comment options

Answer selected by Cnily03
@stellarpower
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants