Topic: Specific Help to Set Up MX and Related Configurations?
==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.105
- Linux/BSD distribution name and version: CentOS 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MariaDB
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====
I am VERY inexperienced in administering an email server. I have read a lot about MX records, etc, including the explanation provided by the iRedMail website, but I cannot find a clear and simple explanation of how they actually work.
I am trying to set up an INTRAnet-only email server using iRedMail. I know I need a local MX record so that machines on my network can find the iRedMail server. I do not believe I need A records, or any other records, because this server is going to be invisible to the internet.
I currently have such an email server using the ClearOS system (a version of CentOS designed to function as an LDAP "domain"/SAMBA "domain" controller, as well as an email server). It functions properly without any MX records, simply by directing email requests to the machine name. I will have to stop using ClearOS and I am trying to replace its email functionality.
I tested a different email server with ClearOS and was able to get it to work without disrupting the production email system by adding some lines to the ClearOS dnsmasq.conf file (see below).
I have successfully installed iRedMail. I can confirm that I can use an iRedMail account to send mail to itself using RoundCube. That works.
Now I want to configure Windows mail clients (Thunderbird, Eudora) to use this system. I can't seem to figure out how to do this. I have looked at the iRedMail website for setting up Thunderbird but those instructions don't work, so I think I have my MX/domain/host records wrong.
In the current ClearOS system on my network, the ClearOS server is an LDAP server and local DNS server. This machine uses dnsmasq for local DNS.
I set up the following in dnsmasq.conf:
bogus-priv
dhcp-authoritative
dhcp-lease-max=1000
domain-needed
domain=kirk.internal.lan
expand-hosts
no-negcache
strict-order
user=nobody
mx-host=sticmail.com,scotty.internal.lan,10
mx-target=scotty.internal.lan
localmx
internal.lan is the LDAP "domain".
The last 3 lines are the mx records for the iRedMail server.
NOTE: with this configuration, I can use a POP3 or SMTP client with the ClearOS email system by supplying the machine name to the client as the email server. This is desirable because I do NOT want this email server visible to the internet. I only want it to work on the local network.
On the machine that is hosting iRedMail (machine name "scotty"), I set the hostname as scotty.internal.lan.
In the hosts file I have:
127.0.0.1 scotty.internal.lan scotty localhost localhost.localdomain
When I do hostname -f I get:
scotty.internal.lan
If I use the machine name referenced here (scotty) with Thunderbird to retrieve mail (POP3) from the iRedMail system, the name is resolved and Thunderbird attempts to connect to scotty, but fails.
If I just feed Thunderbird the email domain (sticmail.com), Thunderbird returns "not found".
Using scotty.internal.lan, or scotty.sticmail.com or the IP address of scotty all fail.
Can anyone provide specific information on how to set this up, using the exact names I've provided here (not "example.com", etc)?
Thanks.
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.