revised: 19-Feb-2022
iRedmail installs the Nginx Webserver but the Webmin module for this webserver is not installed by default.
Configure of domains and users are all done via the application's admin page in the browser with a link such as: https://[example.com]/iredadmin or https://[YourIP]/iredadmin
Of the warning, accept the exception.
This should open the logon page for the Admin Panel.
Enter: postmaster@[example.com] then its password
In the assumption that the iRedmail was setup with the primary domain (eg. example.com), one would simply add users and set the storage quota of their mailboxes. If other domains are hosted on the server, the domains are first required to be set then the users. The usernames of users for logging all follow this pattern: somename@example.com
Assumption: That the A and MX settings for mail have been set, that is: The two settings are needed for the mailserver in the DNS table:
a. In 'A'; mail Value: 12.34.56.78 Note: that the IP entry your [IP-address]
b. In 'MX'; mail.example.com Value: 10
Due to much abuse of relaying spam and criminal emails through open mailservers, one needs to take these step to secure and protect one's own mailserver. Some important measures is to introduce in the 'TXT' field of each domain the settings provided by iRedmain installation details.
In this first three email messages for the admin user: postmaster@example.com, there is one entitled,'Details of this iRedMail installation'
Within this message there is a section labelled: 'DNS record for DKIM support:' having a 'key' such as this:
1. DKIM setting with TTL set at 3600
dkim._domainkey 3600 TXT (
"v=DKIM1; p="
"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCv1m1hohgWwgYk7byQ6RwKT"
"Kw0ZWWAY7jvVRdmuylJbw5S2yOD0XakwQTOm3BQGVlNElEFVKBrIH"
"PbDRbZuNvHy16p0hcremMNGwblV3C3OQYny0TR2Ab9XWak6DdcMPH"
"YGUZFGp6gp5DD/eWDwIDAQAB")
Using a text editor, one requires to modify the above to create the following entries in the DNS manager:
1. DKIM key Setting with TTL set at 3600
a. dkim._domainkey
b. v=DKIM1; p=MIGfMA0GCSqGSIb3DQEBA....eWDwIDAQAB - as one long single line with no interrupting quotes.
Note: All domains on the server will have the same entry with the same domainname key.
2. DMARC Setting with TTL set at 36003. SPF setting with TTL set at default
a. _spf
b. v=spf1 a ip4:[Your Ip] include:example.com -all
4. _smtp._tls setting with TTL set at default
Two settings are needed for the mailserver in the DNS table:
a. _smtp._tls
b. v=TLSRPTv1; rua=mailto:tls-reports@example.com // also create this mailbox via the browser -> iRedadmin
The settings in the Linode DNS Manager will look similar to these (other DNS may have a sligthly different layout):
iRedMail-Home | iRedMail-Extras |
iRedMail-Backup | iRedMail-Switch |