Reverse for Dedicated IP - Not working.

6 posts / 0 new
Last post
#1 Sun, 01/26/2014 - 05:51
FcbInfo

Reverse for Dedicated IP - Not working.

Hi there.

I'm trying to config for more than 2 days and can't get it working. I have 3 websites with his own Dedicated IPs. The PTR record rDNS is oks on the provider.

I have followed this http://www.virtualmin.com/documentation/email/dependent and now I have the e-mails sent by IP but it send helo with myservername.mydomain.com instead of myrdnsdomain.mydomain.com

When I do the tests, I'm getting SMTP greeting errors because the SMTP Banner send the hostname of the server instead of the domain IP.

SMTP banner All banner greetings comply with SMTP specified format. 199.199.199.10 | 220 server.mydomain.com ESMTP Postfix (Debian/GNU)

Here is the error, it sending the hostname of the server instead of send hostname for this ip.

SMTP greeting
199.199.199.10 | WARNING: The hostname in the SMTP greeting does not match the reverse DNS (PTR) record for your mail server. This probably won't cause any harm, but may be a technical violation of RFC5321

On cPanel servers, it does automatic rule over the file: /etc/mail_reverse_dns.

And the file contents shows like /etc/hosts This file have

199.199.199.10 anything.domain-for-this-ip.com

I'm getting tired trying to config this. For 2 days and can't. Can someone help me with this?

Thank you!

Sun, 01/26/2014 - 07:16
FcbInfo

Well, no way, backing to cPanel.

Sun, 01/26/2014 - 07:35
Locutus

Okay, good luck with cPanel, if you can't even wait for 2 hours (on a Sunday) for someone to respond.

Mon, 01/27/2014 - 07:12
FcbInfo

Finished the tests. cPanel cannot to it too.

Back to Virtualmin again!

master.cf

smtp inet n - n - - smtpd -o smtpd_sasl_auth_enable=yes

Change it to:

199.199.199.10:smtp inet n - n - - smtpd -o smtpd_sasl_auth_enable=yes 199.199.199.10:smtp inet n - n - - smtpd -o myhostname=hostname.mydomain.com

And now it works. But need to manual edit the smtp greetings on virtualmin.

I'm gonna try this: http://www.kutukupret.com/2010/01/02/postfix-bind-sender-domain-to-dedic...

And I'll back here to post the results.

Thank you!

Mon, 01/27/2014 - 07:15
Mon, 01/27/2014 - 08:42
FcbInfo

Well, I just don't know how I got this working.

I'm getting now green status on smtp banner and smtp greetings. But I don't know how, because the smtp banner shows the dedicated IP of this domain but the reverse is of the main IP shared.

SMTP Banner 199.199.199.10 | 220 server.mysharedipdomain.com ESMTP Postfix (Debian/GNU)

SMTP Greetings 199.199.199.10 | 250-server.mysharedipdomin.com

But my PTR rDNS records on the service provider are: 199.199.199.10 web.mydedicatedipdomain.com 199.199.199.11 server.mysharedipdomin.com

Anyway, when i got to mxtools or dnsstuff, it is getting gree (OKS) on all options. I believe will keep this config then. If I'm getting green status, it shows working oks?

I also tried to add this line on master.cf (commented this first line and added the second line)

#smtp    inet    n       -       -       -       -       smtpd -o smtpd_sasl_auth_enable=yes
199.199.199.10:smtp    inet    n       -       -       -       -       smtpd -o smtpd_sasl_auth_enable=yes -o smtp_helo_name=web.mydedicatedipdomain.com -o myhostname=web.mydedicatedipdomain.com

But with this, I'm getting error on greetings.

Topic locked