1# Email with domain23The table module `table.email_with_domain` appends one or more4domains (allowing 1:N expansion) to the specified value.56```7table.email_with_domain DOMAIN DOMAIN... { }8```910It can be used to implement domain-level expansion for aliases if used together11with `table.chain`. Example:1213```14modify {15 replace_rcpt chain {16 step email_local_part17 step email_with_domain example.org example.com18 }19}20```2122This configuration will alias `anything@anydomain` to `anything@example.org`23and `anything@example.com`.2425It is also useful with `authorize_sender` to authorize sending using multiple26addresses under different domains if non-email usernames are used for27authentication:2829```30check.authorize_sender {31 ...32 user_to_email email_with_domain example.org example.com33}34```3536This way, user authenticated as `user` will be allowed to use37`user@example.org` or `user@example.com` as a sender address.