Question about rDNS for email.
Hi!
I have a few questions I thought maybe you could help me with.
So, Ive got 5 IP's for my cPanel server.
Ive put the hostname for my server as webpanel.mydomain.com
Now, I know I need to add an rDNS for my mailserver because my emails ends up in the spam folder. However, I'm not really sure which IP or what to set it to.
1. Which IP should I set rDNS on? All of them?
2. I want webpanel.mydomain.com as the hostname, and it's also the domain of what customers use when they access the panel. Do I need to set the rDNS to the same as the hostname? Because the rDNS for the mail should be mail.mydomain.com, but I dont want my server to have mail.mydoman.com as hostname, because its not only a mail server.
Can I choose what IP should be used for mailsending and then just put an mail.mydomain.com as rDNS even if thats not the hostname?
Im a little bit confused.
Thanks in advance.
-
HI, 1. By default, mail will be sent from the main shared IP of your server. You can set and view this at WHM > Server Configuration > Basic cPanel & WHM Setup. However, if you have manually specified another mail IP, you would see this at `/etc/mailips'. If this file is empty, your main shared IP will be used for mail. You may also toggle this file on/off at WHM > Server Configuration > Exim Configuration Manager > "Reference /etc/mailips for outgoing SMTP connections". 2. I want webpanel.mydomain.com as the hostname
If this is the case and you are not specifying an alternative mail IP via `/etc/mailips', simply ensure the IP that "webpanel.mydomain.com" resolves to, has a PTR record of "webpanel.mydomain.com". If you are using `/etc/mailips' simply ensure that each IP specified in this file has matching forward/reverse DNS. Note the PTR records of these IP's do not have to correspond to your MX record. You may also find the following documentation helpful:0 -
HI, 1. By default, mail will be sent from the main shared IP of your server. You can set and view this at WHM > Server Configuration > Basic cPanel & WHM Setup. However, if you have manually specified another mail IP, you would see this at `/etc/mailips'. If this file is empty, your main shared IP will be used for mail. You may also toggle this file on/off at WHM > Server Configuration > Exim Configuration Manager > "Reference /etc/mailips for outgoing SMTP connections". 2. If this is the case and you are not specifying an alternative mail IP via `/etc/mailips', simply ensure the IP that "webpanel.mydomain.com" resolves to, has a PTR record of "webpanel.mydomain.com". If you are using `/etc/mailips' simply ensure that each IP specified in this file has matching forward/reverse DNS. Note the PTR records of these IP's do not have to correspond to your MX record. You may also find the following documentation helpful:
0 -
Hello, I am happy to see those answers were helpful. Feel free to let us know if you have additional questions. Thank you. 0 -
Hi! Sorry for bumping, but I never got any further with this since we had to focus on other stuff. I wonder, if I only want one IP for mail-sending, is this how my /etc/mailips should look?: *: xxx.xxx.xxx.xxx only this? whereas xxx.xxx.xxx.xxx is my IP adress I want to use for mail. 0 -
the domain I was told to use to set up my email manually was webpanel.mydomain.com
Could you clarify where you are attempting to change this? Do you have a SSL certificate installed for this domain name with Mail SNI enabled?And also, how is my /etc/mailhelo supposed to look?
If you want all email from the hostname, it should look like this:*: hostname.example.com
Thank you.0 -
Could you clarify where you are attempting to change this? Do you have a SSL certificate installed for this domain name with Mail SNI enabled?
Yes I have SSL certificate installed for this domain name, a wildcard SSL for our whole domain. I don't know if I have SNI enabled, where can I check this? I don't even know If I should have it enabled or disabled.If you want all email from the hostname, it should look like this:
*: hostname.example.com
Thank you.
Alright, thank you. So for instance "*: mail.mydomain.com" ?0 -
Hi, this is not a bump. But I don't wanna complicate things, so I'll skip this about using mail.mydomain.com, as I said earlier our domain is webpanel.mydomain.com We have 5 IP's assigned to the cPanel server, should I just update the rDNS for these 5 IP's to webpanel.mydomain.com and skip changing mailhelo and mailips files? Easier to just let it all be automatic. Thanks in advance. 0 -
We have 5 IP's assigned to the cPanel server, should I just update the rDNS for these 5 IP's to webpanel.mydomain.com and skip changing mailhelo and mailips files? Easier to just let it all be automatic.
Hello :) Yes, it's normal and acceptable to have all of your IP addresses point back to the hostname of the server. This only changes if you decide to send email out through different IP addresses for different accounts. Thank you.0
Please sign in to leave a comment.
Comments
10 comments