Answer the question
In order to leave comments, you need to log in
Email forwarding
Hello, I have a server on debian, it has exim4 installed, all mail is redirected to one mailbox, i.e. you can send letters to *** domain .com and they all add up to one place. The domain is hosted on godaddy, in order to send mail correctly, I made the following entries:
A (Host)
@ IP
CNAME (Alias)
imap @
mail @
pop @
smtp @
MX (MailExchanger)
0 @ @
There is an item in the exim-config:
collector_router:
driver = redirect
domains = MYDOMAIN.org
data = [email protected]
All this works, but the problem is that you need to add another domain to this heap so that any mail on it is redirected to this server. I made the entries for the new domain as follows:
imap MYDOMAIN.ORG
mail MYDOMAIN.ORG
pop MYDOMAIN.ORG
smtp MYDOMAIN.ORG
MX:
0 @ @
Mail is not redirected with this config. I think the reason for this is the MX record, it is impossible to register a domain name there, it resaves it in @.
Tell me if this is so, and what needs to be added to Exim so that it picks up another domain.
Answer the question
In order to leave comments, you need to log in
First, it is difficult to read DNS zone data in this form. Still, it's better not to draw origins in such quantities, and write everything in the BIND zone format, which is the industry standard and described in the bearded RFC1034 and RFC1035.
Did I understand your zones correctly:
$ORIGIN domain.com
domain.com. A <ip-address>
domain.com. MX0 domain.com.
mail CNAME domain.com.
imap CNAME domain.com.
pop CNAME domain.com.
smtp CNAME domain.com.
$ORIGIN mydomain.org.
mydomain.org. MX0 mydomain.org.
imap CNAME mydomain.org.
mail CNAME mydomain.org.
pop CNAME mydomain.org.
smtp CNAME mydomain.org.
domain.com MX 0 domain.com
domain.com A 192.0.2.1
domain.com MX 0 192.0.2.1
domain.com A 192.0.2.1
domain.com MX 0 mail.domain.com
domain.com A 192.0.2.1
mail.domain.com CNAME domain.com
mydomain.org. MX0 domain.com.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question