1

Topic: Virtual Domain: setup records

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- Related log if you're reporting an issue:
====
Hi all!
Can anyone explain me the right mx record for a virtual domain?
I think that the fqdn is the same of the "maindomain.com"
So it will be:
A RECORD
mx.maindomain.com

MX RECORD
@maindomain.com                     point to         mx.maindomain.com
@virtualdomain.com                   point to         mx.maindomain.com

Is it correct?
I did that! I can send email from the virtualdomain to another mail, but when i try to send an email from gmail to the virtualdomain, the email return with an error like "dns type mx lookup of virtualdomain.com responded with code nxdomain name not found: virtualdomain.com"

Thank you

Ale

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Virtual Domain: setup records

Correct. MX points to a A record, A points to an IP address.

monny999 wrote:

but when i try to send an email from gmail to the virtualdomain, the email return with an error like "dns type mx lookup of virtualdomain.com responded with code nxdomain name not found: virtualdomain.com"

Usually it takes some time (2 hours or more) to get refreshed by DNS vendors, so just wait and try again.

3

Re: Virtual Domain: setup records

ZhangHuangbin wrote:

Correct. MX points to a A record, A points to an IP address.

monny999 wrote:

but when i try to send an email from gmail to the virtualdomain, the email return with an error like "dns type mx lookup of virtualdomain.com responded with code nxdomain name not found: virtualdomain.com"

Usually it takes some time (2 hours or more) to get refreshed by DNS vendors, so just wait and try again.

I set it Two days ago!! And again it doesn't work

4

Re: Virtual Domain: setup records

Would you mind telling us the real mail domain names? so that we can help verify it with some DNS queries.

5

Re: Virtual Domain: setup records

ZhangHuangbin wrote:

Would you mind telling us the real mail domain names? so that we can help verify it with some DNS queries.

Of course
My Real domain is cemmedue.com and the virtual is eridem.it
I set:
A RECORD
@ (that means cemmedue.com) point to 93.65.58.14
Posta.cemmedue.com point to the same ip
eridem point to the same ip

Then MX record (Also spf dkim but i will show you only Thos Two)
posta.cemmedue.com point to the same ip of a record
Cemmedue.com point to posta.cemmedue.com
Eridem point to posta.cemmedue.com

I tryed al the possible combination but i can only send from eridem's mail and i can't receive

6

Re: Virtual Domain: setup records

*) If your email address is user@sub.domain.com, you should update MX record of 'sub.domain.com'.
*) If your email address is user@domain.com, you should update MX record of 'domain.com'.

*) MX record always points to a domain name, NOT an IP address.

monny999 wrote:

Then MX record
posta.cemmedue.com point to the same ip of a record
Cemmedue.com point to posta.cemmedue.com
Eridem point to posta.cemmedue.com

I'm afraid that i'm still confused... Could you please capture a screenshot of your DNS records which managed on your DNS management web UI?

7

Re: Virtual Domain: setup records

ZhangHuangbin wrote:

*) If your email address is user@sub.domain.com, you should update MX record of 'sub.domain.com'.
*) If your email address is user@domain.com, you should update MX record of 'domain.com'.

*) MX record always points to a domain name, NOT an IP address.

monny999 wrote:

Then MX record
posta.cemmedue.com point to the same ip of a record
Cemmedue.com point to posta.cemmedue.com
Eridem point to posta.cemmedue.com

I'm afraid that i'm still confused... Could you please capture a screenshot of your DNS records which managed on your DNS management web UI?

In the screenshot you can see my dns
@ is cemmedue.com
Posta is posta.cemmedue.com

Then in the Mx record you see
@ that is cemmedue.com
Eridemsrl that is the virtual domain
Posta is the MX record
And cemmedue the Real domain

Thank you

8

Re: Virtual Domain: setup records

monny999 wrote:
ZhangHuangbin wrote:

*) If your email address is user@sub.domain.com, you should update MX record of 'sub.domain.com'.
*) If your email address is user@domain.com, you should update MX record of 'domain.com'.

*) MX record always points to a domain name, NOT an IP address.

monny999 wrote:

Then MX record
posta.cemmedue.com point to the same ip of a record
Cemmedue.com point to posta.cemmedue.com
Eridem point to posta.cemmedue.com

I'm afraid that i'm still confused... Could you please capture a screenshot of your DNS records which managed on your DNS management web UI?

In the screenshot you can see my dns
@ is cemmedue.com
Posta is posta.cemmedue.com

Then in the Mx record you see
@ that is cemmedue.com
Eridemsrl that is the virtual domain
Posta is the MX record
And cemmedue the Real domain

Thank you

Any update?

9

Re: Virtual Domain: setup records

$ dig -t mx cemmedue.com

cemmedue.com.        3600    IN    MX    10 posta.

This is WRONG. It must be pointed to a FULL domain name. in your case, it should be 'posta.cemmedue.com', not 'posta'.

10

Re: Virtual Domain: setup records

ZhangHuangbin wrote:
$ dig -t mx cemmedue.com

cemmedue.com.        3600    IN    MX    10 posta.

This is WRONG. It must be pointed to a FULL domain name. in your case, it should be 'posta.cemmedue.com', not 'posta'.

I don't think it's the error because the main domain works..
Anyway i tried to modify it but again the same error

11

Re: Virtual Domain: setup records

monny999 wrote:
ZhangHuangbin wrote:
$ dig -t mx cemmedue.com

cemmedue.com.        3600    IN    MX    10 posta.

This is WRONG. It must be pointed to a FULL domain name. in your case, it should be 'posta.cemmedue.com', not 'posta'.

I don't think it's the error because the main domain works..
Anyway i tried to modify it but again the same error

I tried to re install iredmail on another server and again it doesn't work
sad

12

Re: Virtual Domain: setup records

Could you please check our tutorial here?
http://www.iredmail.org/docs/setup.dns.html

13

Re: Virtual Domain: setup records

ZhangHuangbin wrote:

Could you please check our tutorial here?
http://www.iredmail.org/docs/setup.dns.html

I haven't found a solution...
I think my record are correct!!!

There is an attachment so you can see the records..

Note: in the mx record there are also some "try"; so there are two eridemsrl.com

Note2: my vendor automatically replace the main domain (that is cemmedue.com) with "@". If there is something like "posta.cemmedue.com" it will place only "posta"

Can you help me?

Ale

Post's attachments

Schermata del 2016-03-22 07-10-22.png 73.13 kb, file has never been downloaded. 

You don't have the permssions to download the attachments of this post.

14

Re: Virtual Domain: setup records

Your MX records of mail domain '@cemmedue.com' are:

cemmedue.com.        3584    IN    MX    10 posta.
cemmedue.com.        3584    IN    MX    5 posta.cemmedue.com.

the first one (posta.) is invalid. It should be a full FQDN hostname, so you should remove it and just keep the second one (posta.cemmedue.com).

15

Re: Virtual Domain: setup records

ZhangHuangbin wrote:

Your MX records of mail domain '@cemmedue.com' are:

cemmedue.com.        3584    IN    MX    10 posta.
cemmedue.com.        3584    IN    MX    5 posta.cemmedue.com.

the first one (posta.) is invalid. It should be a full FQDN hostname, so you should remove it and just keep the second one (posta.cemmedue.com).

But the real domain, cemmedue.com, works perfectly!!
eridemsrl.com gives me the error
I can send from it, but i cannot receive
I set up the same record of cemmedue.com but i can't receive

16

Re: Virtual Domain: setup records

As a testing and troubleshooting, why not simply remove "posta" in MX records?

17

Re: Virtual Domain: setup records

ZhangHuangbin wrote:

As a testing and troubleshooting, why not simply remove "posta" in MX records?

I already removed that but same result

18

Re: Virtual Domain: setup records

Querying A and MX records of 'eridemsrl.com' domain return nothing. I use Google DNS server 8.8.8.8 for DNS query.

19

Re: Virtual Domain: setup records

ZhangHuangbin wrote:

Querying A and MX records of 'eridemsrl.com' domain return nothing. I use Google DNS server 8.8.8.8 for DNS query.

Ok but you can see that i've added the Records!!
Why return nothing?

20

Re: Virtual Domain: setup records

You can try it yourself:

dig @8.8.8.8 -t mx eridemsrl.com
dig @8.8.8.8 -t a eridemsrl.com
dig @8.8.8.8 -t txt eridemsrl.com

21

Re: Virtual Domain: setup records

ZhangHuangbin wrote:

You can try it yourself:

dig @8.8.8.8 -t mx eridemsrl.com
dig @8.8.8.8 -t a eridemsrl.com
dig @8.8.8.8 -t txt eridemsrl.com

I am going crazy.
I can not solve this problem !!
I tried to change host and domain.
Now my domain is hosted by Aruba and it is  cemmedue.it.
I need to have a second domain, eridemsrl.it, so I created it virtually with iredmail
Where am I wrong? I have to configure only the mx record that will be         
host: eridemsrl.it point to: mx.cemmedue.it          ?

Why still it doesn't work ???!!!

Ale

22

Re: Virtual Domain: setup records

monny999 wrote:

I need to have a second domain, eridemsrl.it, so I created it virtually with iredmail

Did you buy this domain name (eridemsrl.it)? or you just create it with iRedMail web admin panel?

It's obvious that domain name "eridemsrl.it" doesn't have A and MX records.

23

Re: Virtual Domain: setup records

ZhangHuangbin wrote:
monny999 wrote:

I need to have a second domain, eridemsrl.it, so I created it virtually with iredmail

Did you buy this domain name (eridemsrl.it)? or you just create it with iRedMail web admin panel?

It's obvious that domain name "eridemsrl.it" doesn't have A and MX records.

I just created it!
I have to buy it? If yes i am really stupid

Ale