for email you set different type of DNS record (MX), so it can differ from main DNS records.
–
edvinas.meMar 22 '14 at 22:08

1

finally, I found out the domain provider only allows A records (I guess CNAME is for subdomains only), so everything is working now correctly; just had to adapt the .htaccess file; domains has to be told to hosting site too
–
user37181Mar 25 '14 at 16:16

1 Answer
1

When a mail server wants to deliver mail to @domain.tld, it makes a DNS lookup for the MX record for that particular domain. It will connect to the server returned by the lookup with SMTP, and send the e-mail.

So, you should add the MX record for your @domain.tld domain, and enter the name of the server that handles the e-mail for that domain.