mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-04 01:55:29 +02:00
Initial regexp-send-only alias implementation
This commit is contained in:
parent
f8b3f40276
commit
a479b2015d
7 changed files with 37 additions and 1 deletions
|
@ -82,5 +82,19 @@ Postfix supports so-called address tags, in the form of plus (+) tags - i.e. `ad
|
|||
recipient_delimiter = -
|
||||
```
|
||||
|
||||
### Send-Only Aliases
|
||||
|
||||
Sometimes, it may be useful to allow certain accounts to send as other accounts, even when [the `SPOOF_PROTECTION` environment variable is enabled][spoof-protection]. This may be used to allow services to send accounts as other addresses without needing to disable spoof protection entirely, and without affecting incoming mail (which traditional [aliases](#aliases) would do).
|
||||
|
||||
To configure these aliases, add them to `docker-data/dms/config/postfix-regexp-send-only.cf` in the same format as [the other regexp aliases](#configuring-regexp-aliases). For example:
|
||||
|
||||
```cf
|
||||
/^.*@example.com$/ admin@example.com
|
||||
/^.*$/ superadmin@example.com
|
||||
```
|
||||
|
||||
In this example, `admin@example.com` would be able to send as any address at `example.com` and `superadmin@example.com` would be able to send as any address at any domain.
|
||||
|
||||
[spoof-protection]: ./environment.md#spoof_protection
|
||||
[postfix-docs-alias]: http://www.postfix.org/VIRTUAL_README.html#virtual_alias
|
||||
[postfix-docs-extension-delimiters]: http://www.postfix.org/postconf.5.html#recipient_delimiter
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue