Sending and recieving emails in Roundcube

| OS type and version | Ubuntu Linux 18.04.6 |
| Webmin version | 2.021 |
| Virtualmin version | 7.7 |
| Related packages | Bind/Dovecot/Postfix |

Have had a server up an running for over a year and never could get the email system to work and decided to give it another shot. Typically all our domains have their emails thru zoho and then add those mx records to cloudflare and everything works well.

I created a vps on the server and Mail for domain is enabled, then installed the roundcube module and essentially was hoping that everything would work. Was able to log into roundcube and sent test emails to hotmail/yahoo/gmail and get a success message however these emails are not recieved. The only mx record for the domain has which is MX-Mail server/ 5 has been added to the DNS records on cloudflare as well.

have cphecked dns propagation for that mx record and comes up as (this seems odd to me)

mail logs at /var/log/mail.log show as such (for hotmail)

Jun 11 11:31:54 webserver postfix/smtp[25130]: 050EA2C00C1:,[]:25, delay=0.41, delays=0.01/0/0.36/0.04, dsn=5.7.1, status=bounced (host[] said: 550 5.7.1 Unfortunately, messages from [] weren’t sent. Please contact your Internet service provider since part of their network is on our block list (S3150). You can also refer your provider to Troubleshooting. [ 2023-06-11T15:31:54.380Z 08DB6A1F3ED2DEC1] (in reply to MAIL FROM command))

for gmail

Jun 11 11:31:31 webserver postfix/smtp[25130]: C3AE32C00C1:,[]:25, delay=1.3, delays=0.04/0.01/0.61/0.65, dsn=5.7.25, status=bounced (host[] said: 550-5.7.25 [] The IP address sending this message does not have a 550-5.7.25 PTR record setup, or the corresponding forward DNS entry does not 550-5.7.25 point to the sending IP. As a policy, Gmail does not accept messages 550-5.7.25 from IPs with missing PTR records. Please visit 550-5.7.25 Prevent mail to Gmail users from being blocked or sent to spam - Gmail Help for more 550 5.7.25 information. o15-20020ae9f50f000000b0075cddc2974esi4772898qkg.496 - gsmtp (in reply to end of DATA command))

for yahoo

Jun 11 11:32:12 webserver postfix/smtp[25130]: 2553C2C00C1:,[]:25, delay=1.5, delays=0.01/0/0.67/0.78, dsn=2.0.0, status=sent (250 ok dirdel)

This is where I could use any direction/assistance to fix the issue.

You could start setting up the PTR Record if you havent done it already, if you did, make sure it points to your hostname.

As you are hosting elsewhere you have a problem. All your records indicate someone else should be sending your email. There is going to be some painful downtime trying to move back.

I have never done that before. Are you able to point me or explain how I can go aboit that. My server is behing a static ip which is lets say . Am i setting up the ptr in virtual min dns or on cloudflare dns. If on virtual min dns then what am i putting for record bame and for reverse address. If on cloudflare again what am i put6ing in.

Im hosting on my on server behind a static ip. Please explain what you mean.

Take a look at this, if you’re using cloudflare you probably dont need to change in virtualmin dns.

The thing about PTR/rDNS is that it requires action from your ISP. Let me explain.

Lets say you have got allocated IP address (This is only for explanation purposes, IP address choosen is random)

If u make a reverse lookup of this IP address, for example with this tool: Network Tools: DNS,IP,Email you can see that it points to

You need to change to your mailserver hostname (so for example - the thing is, only your ISP can change this. Just find some technical contact, and request the change of rDNS on your IP address to rDNS of your mailserver.

This is part that have to be made by your ISP.

There is also a second part, where is needed an action from your side.

the opposite of the rDNS is forward DNS, which is set up by domain owner. This is where we use a PTR record (Pointer record).

The record is in following format: IN PTR

Things to note here:

The IP address is is written in reverse order!

When ISP changes your rDNS, it can take up to 12-24 hours to fully propagate, just dont panic :slight_smile:

When everything is done, you can go to talos - find here your IP address, and on left side, you can see details of your IP address.

Take a look onto “Hostname”, there should be name of your mailserver, so for example, and in Fwd/Rev DNS Match have to be Yes.

If everything matches, than you can request blacklist removal from Microsoft Hotmail/Outlook, and Google should accept your emails as well. :slight_smile:

Just dont be dissapointed when emails are gonna be landing in spam folder… You have to make some reputation first and it can take some time. Google in this case is your best friend.


This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.