1

Topic: Communication between 3 Iredmail servers on an intranet

==== Required information ====
- iRedMail version: iRedMail-0.8.4(
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Linux/BSD distribution name and version: CentOS 6.4
- Related log if you're reporting an issue:
====

Hello,
Here is my situation : I have an intranet with 3 servers with the configurations below :

//==========================================================================================

- Server 1 :
Linux distribution : CentOS 6.4
IPadress : 192.168.16.200/21
DNS : 192.168.16.200
Domain name : emat.fan.def
Hostname : ns
IREDMAIL with LDAP

- Server 2 :
Linux distribution : CentOS 6.4
IPadress : 192.168.16.200/21
DNS : 192.168.16.200
Domain name : dcim.fan.def
Hostname : ns
IREDMAIL with LDAP

- Server 3 :
Linux distribution : CentOS 6.4
IPadress : 192.168.5.6/21
DNS : 192.168.5.200
Domain name : fan.def
Hostname : ema
IREDMAIL with LDAP

//==========================================================================================

The network is ok between the 3 server, the ping works well between the 3.

I'd like to make to make my mail users to communicate beetween them from on server to an other.

Example : test@emat.fan.def (user form server 1) to send an email to test@dcim.fan.def (user form server 2)

How can I do this ? I suppose that I should add entries in my named.conf ????

Can you please help me.

Thanks.

2

Re: Communication between 3 Iredmail servers on an intranet

Postfix lookups domain names with DNS server by default, so adding entries in your Bind DNS server should be ok, and i guess it's the easiest way.

3

Re: Communication between 3 Iredmail servers on an intranet

Thank you ZhangHuangbin.
Can you help me with those dns entries ? Should I put them as MX ?

Thank you!

4

Re: Communication between 3 Iredmail servers on an intranet

didi167 wrote:

Should I put them as MX ?

Usually, MTA (Postfix, Sendmail, Exim, etc) lookups MX record first, if no MX record available, use A record instead.
It's better to have both A and MX records.

5

Re: Communication between 3 Iredmail servers on an intranet

Ok, for example, if I want my server 1 to communicate with server 2, I should do this on server 1 :

//==========================================================================================

$TTL 86400
@   IN  SOA     ns.emat.fan.def. root.emat.fan.def. (
        2011071001  ;Serial
        3600        ;Refresh
        1800        ;Retry
        604800      ;Expire
        86400       ;Minimum TTL
)

        IN  NS      ns
        IN  NS      ns.emat.fan.def.


        IN  MX 10   ns.emat.fan.def.

        IN  MX 20   ns.dcim.fan.def.


ns                           IN  A       192.168.16.200
ns.emat.fan.def.     IN  A       192.168.16.200

ns.dcim.fan.def      IN  A       192.168.24.200

//==========================================================================================

Is that correct ? Should I put also an entire on the reverse resolution file ?

6

Re: Communication between 3 Iredmail servers on an intranet

I tried this but it didn't worked...I got always this message on Roundcube (it's in french) :
ERROR SMTP (450) ...
Recipient address rejected : Domain not found

Should I put dns entries in postfix configurations ???

7

Re: Communication between 3 Iredmail servers on an intranet

You can use a central DNS server in your internal network. Then setup required A/MX records for all 3 servers, update /etc/resolv.conf and /var/spool/postfix/etc/resolv.conf to use this internal DNS server on all 3 servers.

8

Re: Communication between 3 Iredmail servers on an intranet

Hello ZhangHuangbin, thank you very much for carring about my problem!
I'll try this solution now! But there is another problem, on this solution if the central dns goes, all the mail servers won't be able to communicate together!

Ok I think that we'll manage this after, for the moment I'll try to make them work together.