With iRedAdmin-Pro, you can easily add mail list account by click menu:
Add -> Mail List (or
Add -> Alias for SQL backends) in main
To create an mail alias account, you can simply insert a SQL record in table
vmail.alias. For example:
sql> USE vmail; sql> INSERT INTO alias (address, goto, domain, islist) \ VALUES ('firstname.lastname@example.org', \ 'email@example.com,firstname.lastname@example.org,email@example.com', \ 'example.com', \ 1);
You can restrict which senders are allowed to send email to this mail alias
account by adding proper policy name in SQL column
sql> UPDATE alias SET accesspolicy='domain' WHERE firstname.lastname@example.org';
Available access policies are:
public: no restrictions.
domain: all users under same domain are allowed to send email to this mail list.
subdomain: all users under same domain and sub-domains are allowed to send email to this mail list.
membersOnly: only members of this mail list are allowd.
allowedOnly: only moderators of this mail list are allowed. Moderators are email addresses stored in SQL column
alias.moderators. With iRedAPD-1.4.5, it's ok to use
*@domain.comas (one of) moderator for all users under mail domain 'domain.com'.
membersAndModeratorsOnly: only members and moderators of this mail list are allowed.
Access restriction is implemented in iRedAPD (a simple Postfix policy server),
iRedMail has it enabled by default. You'd better check its config file
/opt/iredapd/settings.py to make sure plugin
enabled in parameter
plugins = .