How can I solve the problem of "IPs with missing PTR records." to send email through postfix with port 25 from local pc?
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How can I solve the problem of "IPs with missing PTR records." to send email through postfix with port 25 from local pc?
Error:
Code:
AAB0360FEF: to=<abcd@gmail.com>, relay=gmail-smtp-in.l.google.com[64.233.170.27]:25, delay=2.9, delays=0.02/0.02/2/0.84, dsn=5.7.25, status=bounced
(host gmail-smtp-in.l.google.com[64.233.170.27] said: 550-5.7.25 [a.b.c.d] The IP address sending this message does not have a PTR 550-5.7.25 record
setup, or the corresponding forward DNS entry does not point 550-5.7.25 to the sending IP. As a policy, Gmail does not accept messages from 550-5.7.25
IPs with missing PTR records. For more information, go to 550-5.7.25 https://support.google.com/mail/answer/81126#ip-practices 550-5.7.25 To learn
more about Gmail's sender policy, go to 550 5.7.25 https://support.google.com/mail/answer/81126. w2-20020a17090aaf8200b002a78140f747si5962065pjq.62
- gsmtp (in reply to end of DATA command))
Here, a.b.c.d is the public ip address. It is dynamic ip address. I think, it is the router's public ip address. Local pc has ip address like 192.168.1.103.
I am trying to send email to gmail through postfix with port 25 from local pc or localhost. I have installed postfix, opendkim and configured these. /etc/hostname has "mydomain.com". So the sender is user1@mydomain.com.
How can I solve the problem of "IPs with missing PTR records." to send email through postfix with port 25 from local pc? Where will I write PTR record? How can I write PTR record?
This is the "whole other subject" I spoke of in your other post. There is much involved in hosting an email server.
PTR records are DNS entries. Gmail probably wants to see an rDNS record for your IP. What does
Code:
dig -x (your IP)
return?
You’ll also need TXT DNS entries for your domain for SPF and DKIM.. Those entries will be in the authoritative name servers for your domain. Typically, those are provided by your domain registrar.
It’s also unlikely that email coming from a dynamic IP address will be accepted by gmail or Oath (AOL/Yahoo) or any server using an RBL that identifies dynamic IPs.
It’s also unlikely that email coming from a dynamic IP address will be accepted by gmail or Oath (AOL/Yahoo) or any server using an RBL that identifies dynamic IPs.
I have got: "We notice you are on a blacklist.". Listed 5 times with 2 timeouts. Blacklist for BARRACUDA, SORBS SPAM, Spamhaus ZEN, UCEPROTECTL2, UCEPROTECTL3. Timeout: MADAVI, NoSolicitado. Can it be a problem?
I have got: "We notice you are on a blacklist.". Listed 5 times with 2 timeouts. Blacklist for BARRACUDA, SORBS SPAM, Spamhaus ZEN, UCEPROTECTL2, UCEPROTECTL3. Timeout: MADAVI, NoSolicitado. Can it be a problem?
Yes, you may have problems getting any e-mail delivered.
This is the "whole other subject" I spoke of in your other post. There is much involved in hosting an email server.
PTR records are DNS entries. Gmail probably wants to see an rDNS record for your IP. What does
Code:
dig -x (your IP)
return?
You’ll also need TXT DNS entries for your domain for SPF and DKIM.. Those entries will be in the authoritative name servers for your domain. Typically, those are provided by your domain registrar.
It’s also unlikely that email coming from a dynamic IP address will be accepted by gmail or Oath (AOL/Yahoo) or any server using an RBL that identifies dynamic IPs.
dig -x (my IP) has already a PTR record. So can I set PTR record to my hostname? Here hostname=host.mydomain.com. I have bought mydomain.com.
It’s also unlikely that email coming from a dynamic IP address will be accepted by gmail or Oath (AOL/Yahoo) or any server using an RBL that identifies dynamic IPs.
You're first post says you've got a Dynamic IP, which is normal for a residential acct .
(& yes, it's the 'outside' ip addr of your router which is the one that counts ie the one that faces the public internet)
Most ISPs only hand out a static IP if you pay extra for a 'business' acct (or similar) with them.
dig -x (my IP) has already a PTR record. So can I set PTR record to my hostname? Here hostname=host.mydomain.com. I have bought mydomain.com.
I really, really doubt it. PTR are "reverse" records, so only the owner of the IP address block can set them, this will be your ISP. If you have business broadband with a static IP then they may be able to either set it for you or let you change it through their portal. For residential broadband, no chance.
dig -x (my IP) has already a PTR record. So can I set PTR record to my hostname? Here hostname=host.mydomain.com. I have bought mydomain.com.
As has been said, no.
You cannot set the rDNS of an IP. I can’t even set the rDNS of static IPs I’ve been assigned…I have to request the ISP that owns the IPs do that for me. They’re happy to do that, given the big(ish) bucks I pay them.
What are you trying to accomplish? If it’s to learn to setup and run a mail server, start by acquiring a static IP from a reputable provider, and be prepared to do a LOT of study and learning to make it work.
If it’s to be able to use your domain to send email, the simplest, easiest way to do that is to contract with a domain/web hosting provider to provide those services. Some can be quite reasonable.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.