This is an old revision of the document!
SMTP Local Aliases
There are situations where it is desirable to send an email to multiple recipients while the application only supports a single email address. Asterisk Voicemail is one such example.
SMTP local aliases can be used to map a local recipient (does not contain an “@”
) to a comma separated list of remote recipients (each contain an “@”
). Think of it as local mail groups.
Note: AstLinux 1.1.8 or later is required
Example /mnt/kd/msmtp-aliases.conf
file:
## SMTP Local Aliases ## ## vm-list: email@example1.com, email@example2.com, email@example3.com ## ## default: my_email@myhost.com ## vm-list: email@example1.com, email@example2.com, email@example3.com default: my_email@myhost.com
Tip -> The optional default
entry is a catchall for any local recipient not specified, if not defined the SMTP Mail Relay Server will be forced to handle the local recipient.
Using the above example, if the Asterisk voicemail.conf
(or Users Tab in the web interface) had the Email address of “vm-list” specified, voicemail attachments would be sent to the three remote recipients as specified.