This is a long time draft that I thought already publish till I update some wordpress plugin. My friend who open software house came send me private message. He ask me if I have an idea why his email not delivered. He install a software called gitlab. This software basically manage operation of git from web based application.
After login to his server I realize that his vps provider blocked port 25. This port is designed for send email. To overcome this issue just open a ticket and told them about the problem. Attach the output of this command :
After few minutes (almost one hour) ticket responded and port unblocked. Now I see email arrive to mailbox.
Another issue is spf record. As provider try to secure their network from spam then our job is make sure from our server there is no spam. spf record is one thing we can do from client side.
This picture basically told if spf record is not set.
In gmail to get that view you can click “show original” from next arrow icon.
To set spf record for this subdomain just login to cpanel and choose “advance dns” and enter the data like this illustration.
Name : fill hostname here.
TTL : 1440
Type : TXT
TXT Data : v=spf1 a ip4:188.8.131.529 ?all (change 184.108.40.2069 to your public ip)
Click Add Record.
Try to send other email (do something like change email member of gitlab) and check the result.
Gmail told that spf record properly and pass their examination.
My friend happy and I got new experience 🙂