Unable to use SMTP and error on Rainloop

Hi!
I am trying to set up SMTP. I have done all the required things instructed by Usman here: How to Build Free SMTP Server with CyberPanel in 5 Minutes - YouTube

However, when I open rainloop it has the message: Can’t get message list.

Moreover, I don’t get any error messages while sending emails. Also, I’m not either receiving the emails and neither the sent emails reaches the person.

Here are the mail error logs:

Nov  2 12:15:58 localhost dovecot: imap(admin@gatewayconsultants.com.pk)<644662><bsyazXvsLL0AAAAAAAAAAAAAAAAAAAAB>: Error: mkdir(/home/vmail/gatewayconsultants.com.pk/admin/Maildir) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +w perm: /home, dir owned by 0:0 mode=0711)
Nov  2 12:15:58 localhost dovecot: imap(admin@gatewayconsultants.com.pk)<644662><bsyazXvsLL0AAAAAAAAAAAAAAAAAAAAB>: Error: mkdir(/home/vmail/gatewayconsultants.com.pk/admin/Maildir) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +w perm: /home, dir owned by 0:0 mode=0711)
Nov  2 12:15:58 localhost dovecot: imap(admin@gatewayconsultants.com.pk)<644662><bsyazXvsLL0AAAAAAAAAAAAAAAAAAAAB>: Error: Mailbox INBOX: Failed to autocreate mailbox: Internal error occurred. Refer to server log for more information. [2022-11-02 12:15:58]
Nov  2 12:15:58 localhost dovecot: imap(admin@gatewayconsultants.com.pk)<644662><bsyazXvsLL0AAAAAAAAAAAAAAAAAAAAB>: Logged out in=72 out=602 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Nov  2 12:15:58 localhost dovecot: imap-login: Login: user=<admin@gatewayconsultants.com.pk>, method=PLAIN, rip=::1, lip=::1, mpid=644663, TLS, session=<TAybzXvsLr0AAAAAAAAAAAAAAAAAAAAB>
Nov  2 12:15:58 localhost dovecot: imap(admin@gatewayconsultants.com.pk)<644663><TAybzXvsLr0AAAAAAAAAAAAAAAAAAAAB>: Logged out in=11 out=462 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Nov  2 12:16:20 localhost postfix/qmgr[638197]: 709362F4973: from=<root@gatewayconsultants.com.pk>, size=15751, nrcpt=1 (queue active)
Nov  2 12:16:20 localhost postfix/qmgr[638197]: F26342F4982: from=<root@gatewayconsultants.com.pk>, size=15751, nrcpt=1 (queue active)
Nov  2 12:16:20 localhost postfix/qmgr[638197]: ED80A2F4980: from=<root@gatewayconsultants.com.pk>, size=15751, nrcpt=1 (queue active)
Nov  2 12:16:20 localhost postfix/qmgr[638197]: E6FCD2F497F: from=<root@gatewayconsultants.com.pk>, size=18414, nrcpt=1 (queue active)
Nov  2 12:16:20 localhost postfix/pipe[644688]: 709362F4973: to=<root@gatewayconsultants.com.pk>, orig_to=<root>, relay=dovecot, delay=1118, delays=1118/0.02/0/0.04, dsn=4.3.0, status=deferred (temporary failure. Command output: Can't open log file /home/vmail/dovecot-deliver.log: No such file or directory )
Nov  2 12:16:20 localhost postfix/pipe[644689]: F26342F4982: to=<root@gatewayconsultants.com.pk>, orig_to=<root>, relay=dovecot, delay=518, delays=518/0.01/0/0.04, dsn=4.3.0, status=deferred (temporary failure. Command output: Can't open log file /home/vmail/dovecot-deliver.log: No such file or directory )
Nov  2 12:16:20 localhost postfix/pipe[644692]: E6FCD2F497F: to=<root@gatewayconsultants.com.pk>, orig_to=<root>, relay=dovecot, delay=518, delays=518/0.02/0/0.03, dsn=4.3.0, status=deferred (temporary failure. Command output: Can't open log file /home/vmail/dovecot-deliver.log: No such file or directory )
Nov  2 12:16:20 localhost postfix/pipe[644691]: ED80A2F4980: to=<root@gatewayconsultants.com.pk>, orig_to=<root>, relay=dovecot, delay=518, delays=518/0.02/0/0.03, dsn=4.3.0, status=deferred (temporary failure. Command output: Can't open log file /home/vmail/dovecot-deliver.log: No such file or directory )
Nov  2 12:16:31 localhost postfix/anvil[640024]: statistics: max connection rate 1/60s for (smtp:141.98.11.113) at Nov  2 12:06:38
Nov  2 12:16:31 localhost postfix/anvil[640024]: statistics: max connection count 1 for (smtp:141.98.11.113) at Nov  2 12:06:38
Nov  2 12:16:31 localhost postfix/anvil[640024]: statistics: max cache size 4 at Nov  2 12:09:44
Nov  2 12:16:35 localhost postfix/smtpd[643523]: warning: hostname command-combo.halffail.com does not resolve to address 141.98.11.75: Temporary failure in name resolution
Nov  2 12:16:35 localhost postfix/smtpd[643523]: connect from unknown[141.98.11.75]
Nov  2 12:16:37 localhost postfix/smtpd[643523]: warning: unknown[141.98.11.75]: SASL PLAIN authentication failed: 
Nov  2 12:16:37 localhost postfix/smtpd[643523]: disconnect from unknown[141.98.11.75] ehlo=1 auth=0/1 quit=1 commands=2/3
Nov  2 12:17:23 localhost dovecot: imap-login: Login: user=<admin@gatewayconsultants.com.pk>, method=PLAIN, rip=::1, lip=::1, mpid=644743, TLS, session=<8F6y0nvsPr0AAAAAAAAAAAAAAAAAAAAB>
Nov  2 12:17:23 localhost dovecot: imap(admin@gatewayconsultants.com.pk)<644743><8F6y0nvsPr0AAAAAAAAAAAAAAAAAAAAB>: Error: mkdir(/home/vmail/gatewayconsultants.com.pk/admin/Maildir) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +w perm: /home, dir owned by 0:0 mode=0711)
Nov  2 12:17:23 localhost dovecot: message repeated 2 times: [ imap(admin@gatewayconsultants.com.pk)<644743><8F6y0nvsPr0AAAAAAAAAAAAAAAAAAAAB>: Error: mkdir(/home/vmail/gatewayconsultants.com.pk/admin/Maildir) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +w perm: /home, dir owned by 0:0 mode=0711)]
Nov  2 12:17:23 localhost dovecot: imap(admin@gatewayconsultants.com.pk)<644743><8F6y0nvsPr0AAAAAAAAAAAAAAAAAAAAB>: Error: Mailbox INBOX: Failed to autocreate mailbox: Internal error occurred. Refer to server log for more information. [2022-11-02 12:17:23]
Nov  2 12:17:23 localhost dovecot: imap(admin@gatewayconsultants.com.pk)<644743><8F6y0nvsPr0AAAAAAAAAAAAAAAAAAAAB>: Logged out in=112 out=733 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Nov  2 12:17:24 localhost dovecot: imap-login: Login: user=<admin@gatewayconsultants.com.pk>, method=PLAIN, rip=::1, lip=::1, mpid=644745, TLS, session=<xkvC0nvsQL0AAAAAAAAAAAAAAAAAAAAB>
Nov  2 12:17:24 localhost dovecot: imap(admin@gatewayconsultants.com.pk)<644745><xkvC0nvsQL0AAAAAAAAAAAAAAAAAAAAB>: Error: mkdir(/home/vmail/gatewayconsultants.com.pk/admin/Maildir) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +w perm: /home, dir owned by 0:0 mode=0711)
Nov  2 12:17:24 localhost dovecot: imap(admin@gatewayconsultants.com.pk)<644745><xkvC0nvsQL0AAAAAAAAAAAAAAAAAAAAB>: Error: mkdir(/home/vmail/gatewayconsultants.com.pk/admin/Maildir) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +w perm: /home, dir owned by 0:0 mode=0711)
Nov  2 12:17:24 localhost dovecot: imap(admin@gatewayconsultants.com.pk)<644745><xkvC0nvsQL0AAAAAAAAAAAAAAAAAAAAB>: Error: Mailbox INBOX: Failed to autocreate mailbox: Internal error occurred. Refer to server log for more information. [2022-11-02 12:17:24]
Nov  2 12:17:24 localhost dovecot: imap(admin@gatewayconsultants.com.pk)<644745><xkvC0nvsQL0AAAAAAAAAAAAAAAAAAAAB>: Logged out in=72 out=602 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Nov  2 12:17:29 localhost postfix/smtpd[643523]: connect from unknown[141.98.10.194]
Nov  2 12:17:33 localhost postfix/smtpd[643523]: warning: unknown[141.98.10.194]: SASL PLAIN authentication failed: 
Nov  2 12:17:33 localhost postfix/smtpd[643523]: disconnect from unknown[141.98.10.194] ehlo=1 auth=0/1 quit=1 commands=2/3
Nov  2 12:17:39 localhost postfix/smtpd[643523]: warning: hostname srv-141-98-11-74.serveroffer.net does not resolve to address 141.98.11.74: Name or service not known
Nov  2 12:17:39 localhost postfix/smtpd[643523]: connect from unknown[141.98.11.74]
Nov  2 12:17:43 localhost postfix/smtpd[643523]: warning: unknown[141.98.11.74]: SASL PLAIN authentication failed: 
Nov  2 12:17:43 localhost postfix/smtpd[643523]: disconnect from unknown[141.98.11.74] ehlo=1 auth=0/1 quit=1 commands=2/3
Nov  2 12:18:43 localhost postfix/pickup[638196]: 7AC342F498B: uid=0 from=<root>
Nov  2 12:18:43 localhost postfix/cleanup[644823]: 7AC342F498B: message-id=<20221102121843.7AC342F498B@gatewayconsultants.com.pk>
Nov  2 12:18:43 localhost postfix/qmgr[638197]: 7AC342F498B: from=<root@gatewayconsultants.com.pk>, size=12200, nrcpt=1 (queue active)
Nov  2 12:18:43 localhost postfix/pipe[644826]: 7AC342F498B: to=<root@gatewayconsultants.com.pk>, orig_to=<root>, relay=dovecot, delay=0.06, delays=0.04/0/0/0.01, dsn=4.3.0, status=deferred (temporary failure. Command output: Can't open log file /home/vmail/dovecot-deliver.log: No such file or directory )
Nov  2 12:19:04 localhost postfix/smtpd[643523]: warning: hostname srv-141-98-11-95.serveroffer.net does not resolve to address 141.98.11.95: Name or service not known
Nov  2 12:19:04 localhost postfix/smtpd[643523]: connect from unknown[141.98.11.95]
Nov  2 12:19:08 localhost postfix/smtpd[643523]: warning: unknown[141.98.11.95]: SASL PLAIN authentication failed: 
Nov  2 12:19:08 localhost postfix/smtpd[643523]: disconnect from unknown[141.98.11.95] ehlo=1 auth=0/1 quit=1 commands=2/3
Nov  2 12:19:58 localhost postfix/smtpd[643523]: warning: hostname good-server.outreachratio.com does not resolve to address 141.98.10.70: Name or service not known
Nov  2 12:19:58 localhost postfix/smtpd[643523]: connect from unknown[141.98.10.70]
Nov  2 12:20:02 localhost postfix/smtpd[643523]: warning: unknown[141.98.10.70]: SASL PLAIN authentication failed: 
Nov  2 12:20:03 localhost postfix/smtpd[643523]: disconnect from unknown[141.98.10.70] ehlo=1 auth=0/1 quit=1 commands=2/3

I think something is up with the dovecot. I have installed Cyberpanel from CyberPanel One-Click Installation.

Hello @pizzaguy Happy you are here

is your DNS setup correctly?

Yes, it is. I have transferred the DNS configuration to Cloudflare from the Cyberpanel>>>DNS>>>Cloudflare tab. These include MX records, NS records, and TXT records.

Even if the DNS is not set up, I think the rainloop must work properly. But in my inbox column, it says ’ Can’t get message list’.

Also, 141.98.11.95 or any of the IPs starting with141.98.xx.xx isn’t my server IP address.

Wrong! reverse DNS resolution (rDNS) is important for sending emails. Most email servers will reject you email instantly. Also withotu DKIM signature and Sender Policy Framework can be rejected without reason and dumped into spam for most recipient mails servers. These three DNS configurations must be addressed for a successful email messaging

I wil test on my test server and revert.

So, how should I proceed with it? I did set the dns record mentioned by cyberpanel’s dns section on cloudflare.

Post a screenshot and hide any personal info of your cloudflare dns configuration

Also Prevent mail to Gmail users from being blocked or sent to spam - Gmail Help