If the server is behind a firewall (Destination NAT), then all connections are from the same IP (gateway IP). A service installed, fail2ban, will ban IP if it fails too much login. But then if it bans the IP, it bans all connection.
Disable fail2ban or create white list.
Very easy to install, just follow instructions.
All How-tos
mysql -u vmailadmin -p
Alias account (SQL)
http://www.iredmail.org/docs/sql.create.mail.alias.html
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 ('original@example.com', \ 'user1@example.com,user2@example.com,user1@test.com', \ 'example.com', \ 1);
NOTES:
To allow member of mailing list (or mail alias) account to send email as this mailing list (or mail alias), please follw steps below:
reject_sender_login_mismatch
in Postfix config file /etc/postfix/main.cf
.reject_sender_login_mismatch
in iRedAPD config file /opt/iredapd/settings.py
./opt/iredapd/settings.py
to allow member to send email as mail list or mail alias:ALLOWED_LOGIN_MISMATCH_LIST_MEMBER = True
Add additional email addresses sales@domain.com
, bill@domain.com
for existing user john@domain.com
:
sql> USE vmail; sql> INSERT INTO alias (address, goto, alias_to, is_alias, domain) VALUES ('sales@domain.com', 'john@domain.com', 'john@domain.com', 1, 'domain.com'); sql> INSERT INTO alias (address, goto, alias_to, is_alias, domain) VALUES ('bill@domain.com', 'john@domain.com', 'john@domain.com', 1, 'domain.com');
sales@domain.com
and bill@domain.com
are NOT existing mail user accounts.alias.goto
and alias.alias_to
must be the same -- email address of the existing mail user.bill@domain.com
could be an email address which belongs to your alias domain.