LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Email configuration -CNAME records - on server (https://www.linuxquestions.org/questions/linux-server-73/email-configuration-cname-records-on-server-592830/)

File.am 10-18-2007 02:59 PM

Email configuration -CNAME records - on server
 
Hello

I have customer which site domain*.net (e) is hosted on my server.

domain*.com is his site too, (but is hosted by another hoster) and as *.com is operational site, he ask me to set for domain*.net records of domain*.com

so just now records for domain*.net are:

Code:


 
domain*.net - 14400 in A - IP of second hoster
localhost.domain*.net -1440 in A -127.0.0.1
domain*.net 14400 ub MX - 0
www -14400 in CNAME - domain*.com
FTP -14400 in A - IP of second hoster


everything works nice, untill my client need to setup emails on this domain - domain*.net

i setup emails via cpanel, but if client try to connect via mail program (f.e. outlook express), he got an error. [as mail program try to connect to domain*.net which is pointed to domain*.com]

so my question is, is there any way, to change (add) any record, and as result have working emails on domain*.net ?

P.s. As i know, i must setup A or CNAME records of "mail" to my ip of domain*.net

pls correct me, if i'm wrong ?

any advice will be appreciated

P.p.s. try to setup IP of domain.net as pop3 and smtp mailservers, but
some messages are bounced with such error

Delivery to the following recipient has been delayed:


Message will be retried for 2 more day(s)



Technical details of temporary failure:
TEMP_FAILURE: Could not initiate SMTP conversation with any hosts:
[domain.net. (0): Connection timed out]
[domain.com. (10): Connection timed out]

this213 10-19-2007 08:17 AM

You shouldn't be using CNAME records. Rather than pick apart your zone file (of which you should have posted the whole thing) that same zone could be written as such:
Code:

$TTL 86400
@      IN      SOA    ns1.mynameserver.com.  webmaster.mydomain.com. (
                2006012201 ; serial
                7200 ; refresh
                1800 ; retry
                1209600 ; expire
                86400 ; ttl
                        )

; name servers
                IN      NS      ns1.mynameserver.com.
                IN      NS      ns2.mynameserver.com.

; mail servers (FQDNs here)
@              IN      MX      1      mail.domain.com.
@              IN      MX      20      mail2.domain.com.
; proper SPF record
                IN      TXT    "v=spf1 A MX -ALL"

; need both of these defined for compatibility
; with various clients
@              IN      A      123.123.123.123
*              IN      A      123.123.123.123

; start matching subdomains to ip addresses
www          IN      A      123.123.123.123
mail        IN      A      123.123.123.123
mail2        IN      A      124.124.124.124
ftp          IN      A      123.123.123.123
localhost    IN      A      123.123.123.123

All you're doing here is assigning (for example) www.domain.com to 123.123.123.123, mail2.domain.com to 124.124.124.124 and so on.

bostonthunder777 10-19-2007 08:18 AM

YOu are missing a MX Record.


All times are GMT -5. The time now is 04:33 PM.