Email sent successfully but nothing goes out or in

Hello,
when I try to send email from my Usermin or Roundcube to Gmail I get a success message but nothing goes there inbox or spam folder, and also when i send a message from Gmail to my server i get nothing in my server inbox. i’m getting now Error i don’t know what to provide to explain this issue.
i installed Virtualmin using install.ssh
I use Digitalocean Droplet and i use Digitalocean Dns

i couldn’t upload the image above due to image limit

To verify from your mail logs if the message is indeed leaving the system, go to Webmin >> System >> System Logs and then View mail.log

Sending test messages to a Gmail account is not the best way to test a mail server because Gmail maintains the highest of standards in the industry with regard to the email it permits to land in a user’s inbox. If your server has not been configured correctly, complete with RDNS and the domain with DKIM & SPF, then email might not be delivered at all: neither to Gmail’s inbox nor to any other the folders like Promotion or Spam. Maybe that’s what’s happening with your system @ihabhamed.

I suggest you use a (free for limited use) tool like https://www.mail-tester.com/ and keep tweaking till you get 10/10 before you test with Gmail.

thank you mr Calport, looks like you’r right the message never leaves the server

Blockquote
May 31 04:37:51 serverubuntu dovecot: imap(admin-cieta.net): Logged out in=50 out=499
May 31 04:38:52 serverubuntu dovecot: imap-login: Login: user=<admin-cieta.net>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=31047, secured, session=<tQNXQeqmgJR/AAAB>
May 31 04:38:52 serverubuntu dovecot: imap(admin-cieta.net): Logged out in=50 out=499
May 31 04:38:56 serverubuntu postfix/smtpd[30290]: connect from dynggepcrak-9-10-66-105.inwitelecom.net[105.66.10.9]
May 31 04:38:56 serverubuntu postfix/smtpd[30290]: lost connection after CONNECT from dynggepcrak-9-10-66-105.inwitelecom.net[105.66.10.9]
May 31 04:38:56 serverubuntu postfix/smtpd[30290]: disconnect from dynggepcrak-9-10-66-105.inwitelecom.net[105.66.10.9] commands=0/0
May 31 04:39:52 serverubuntu dovecot: imap-login: Login: user=<admin-cieta.net>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=31205, secured, session=<3I7qROqmgpR/AAAB>
May 31 04:39:52 serverubuntu dovecot: imap(admin-cieta.net): Logged out in=50 out=499
May 31 04:40:31 serverubuntu postfix/smtpd[30290]: connect from dynggepcrak-9-10-66-105.inwitelecom.net[105.66.10.9]
May 31 04:40:31 serverubuntu postfix/smtpd[30290]: lost connection after CONNECT from dynggepcrak-9-10-66-105.inwitelecom.net[105.66.10.9]
May 31 04:40:31 serverubuntu postfix/smtpd[30290]: disconnect from dynggepcrak-9-10-66-105.inwitelecom.net[105.66.10.9] commands=0/0
May 31 04:40:52 serverubuntu dovecot: imap-login: Login: user=<admin-cieta.net>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=31355, secured, session=<XcJ+SOqmhJR/AAAB>
May 31 04:40:52 serverubuntu dovecot: imap(admin-cieta.net): Logged out in=50 out=499
May 31 04:41:14 serverubuntu postfix/smtpd[30290]: connect from dynggepcrak-9-10-66-105.inwitelecom.net[105.66.10.9]
May 31 04:41:14 serverubuntu postfix/smtpd[30290]: lost connection after CONNECT from dynggepcrak-9-10-66-105.inwitelecom.net[105.66.10.9]
May 31 04:41:14 serverubuntu postfix/smtpd[30290]: disconnect from dynggepcrak-9-10-66-105.inwitelecom.net[105.66.10.9] commands=0/0
May 31 04:41:19 serverubuntu postfix/qmgr[26940]: 10B36808C5: from=admin@cieta.net, size=554, nrcpt=1 (queue active)
May 31 04:41:49 serverubuntu postfix/smtp[31582]: connect to gmail-smtp-in.l.google.com[74.125.140.27]:25: Connection timed out
May 31 04:41:52 serverubuntu dovecot: imap-login: Login: user=<admin-cieta.net>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=31820, secured, session=<9ggSTOqmipR/AAAB>
May 31 04:41:52 serverubuntu dovecot: imap(admin-cieta.net): Logged out in=50 out=499
May 31 04:42:04 serverubuntu postfix/smtpd[30290]: connect from dynggepcrak-9-10-66-105.inwitelecom.net[105.66.10.9]
May 31 04:42:04 serverubuntu postfix/smtpd[30290]: lost connection after CONNECT from dynggepcrak-9-10-66-105.inwitelecom.net[105.66.10.9]
May 31 04:42:04 serverubuntu postfix/smtpd[30290]: disconnect from dynggepcrak-9-10-66-105.inwitelecom.net[105.66.10.9] commands=0/0
May 31 04:42:19 serverubuntu postfix/smtp[31582]: connect to alt1.gmail-smtp-in.l.google.com[209.85.233.27]:25: Connection timed out
May 31 04:42:40 serverubuntu postfix/smtpd[30290]: connect from dynggepcrak-9-10-66-105.inwitelecom.net[105.66.10.9]
May 31 04:42:40 serverubuntu postfix/smtpd[30290]: lost connection after CONNECT from dynggepcrak-9-10-66-105.inwitelecom.net[105.66.10.9]
May 31 04:42:40 serverubuntu postfix/smtpd[30290]: disconnect from dynggepcrak-9-10-66-105.inwitelecom.net[105.66.10.9] commands=0/0
May 31 04:42:49 serverubuntu postfix/smtp[31582]: connect to alt2.gmail-smtp-in.l.google.com[142.250.4.27]:25: Connection timed out
May 31 04:42:52 serverubuntu dovecot: imap-login: Login: user=<admin-cieta.net>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=32254, secured, session=<fD2lT+qmkJR/AAAB>
May 31 04:42:52 serverubuntu dovecot: imap(admin-cieta.net): Logged out in=50 out=499

any advice to help, i was looking around for tutorial to help reconfiguration the mail server but with no luck

`

I dont see any mxrecords anywhere?

do you have any mxrecords in your dns?

If there are no “mail exchanger” definitions, email cant go anywhere

also, you will need to ensure that your have reverse ptr for your VPS, and spf+_dmarc records in dns too.

some people replace spf and _dmarc dns text records with dkim. I personally stick with sp and _dmarc but dkim works too.

1 Like

yes i didn’t add, i just add it now and tried to restart the droplet several times and the messages still not work, please check if i’m doing it right

what is the actual hostname of your server?

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