CyberPanel Community

ClosedDomain that you have provided is not configured as rDNS for your server IP. [404]

SS
Shuman Sheikh #1

Hi, I’m new here, I’m facing error- Domain that you have provided is not configured as rDNS for your server IP. [404] in version 2.3.5 [Setup Wizard.]
In previous 2.3.4 the hostname and mail server was configured correctly and working without any issues. But after updating to new version no mail can be sent. Manually issuing MailServer ssl works but crashes again within 1/2 day. Changing the nameserver in resolv.conf also doesn’t work.
Someone help me please…

54 replies
RM
Rana Muhammad Usman Nasir #3

I think I found the problem, can you upgrade your server and try now? it should be OK.

SS
Shuman Sheikh #4

thanks for respond, yes my rDNS set properly.

SS
Shuman Sheikh #6

I have issued mail server ssl last night and also upgraded cyber panel. it’s working… but I don’t know how long it will be work? because I have issued ssl 3 time from last upgrade. The Setup wizard still showing error.

SS
Shuman Sheikh #8

thank you very much, allow me sometime to update and check it.

SS
Shuman Sheikh #9

After upgrade last commits onboarding setup still showing Domain that you have provided is not configured as rDNS for your server IP. [404], last night issued ssl has gone. if i sending any mail it showing ‘can’t connect to server’

RM
Rana Muhammad Usman Nasir #10
Issue mail server ssl now, upgrade your server and it should be fine.

That is why I said this above, because your rDNS is cached in DNS, just issue mail server SSL now.

SS
Shuman Sheikh #11

RDNS has been set a long time ago. Nothing has been changed anew. Even if it is cached, there should be no problem. Everything was fine before. The mail score was 10 out of 10. However, I issued SSL again. Let’s see if there’s a problem?

SS
Shuman Sheikh #13

What I realized after a few days of use is that mailserver ssl is lost when updating and rebooting the server. I updated the last commit but still gives an error from the setup wizard.

SS
Shuman Sheikh #15

Current Version:
2.3
Build:
5
Current Commit:
4aba2b9d301ced8c898ff2cbacbd74614fa77b0d

RM
Rana Muhammad Usman Nasir #16

out of

cd /usr/local/CyberCP
git log --oneline
SS
Shuman Sheikh #17

This command showing lots of bug fix. What to do now?

SS
Shuman Sheikh #19

4aba2b9d (HEAD → v2.3.5, origin/v3.0.0, origin/v2.3.5, origin/stable, origin/HEAD) paramiko version
fac200f4 bug fix: add missing variable
96351c27 bug fix: add missing variable
0924e2d9 bug fix: use paramiko for ssh operations
d36c7f96 Merge branch ‘v3.0.0’ of github.com:usmannasir/cyberpanel into v3.0.0
670e46c3 bug fix: use paramiko for ssh operations
9de6243c bug fix: potential issue with sftp destination add [BUG] Cannot add SFTP Backup Destination · Issue #1210 · usmannasir/cyberpanel · GitHub; ;
c7d30041 bug fix: [BUG] Manual Backup Failed · Issue #1207 · usmannasir/cyberpanel · GitHub
33ac9a06 bug fix: [BUG] Manual Backup Failed · Issue #1207 · usmannasir/cyberpanel · GitHub
2cfc35fc bug fix: command execution
f28402ce bug fix: alias domains, php fetch and domain with sudo
24b10a34 bug fix: mariadb install
fcd07468 bug fix: mariadb install
0b8f6acc bug fix: docker
a589e980 bug fix: docker install
90be9374 bug fix: docker install
a22346d7 bug fix: docker install
ca39cdbc possible resolution of Domain that you have provided is not configured as rDNS for your server IP. [404]
9e3c9f09 bug fix: docker install
3bb1488e changes in update mysql
76a492dd possible resolution of Domain that you have provided is not configured as rDNS for your server IP. [404]
6b5a932e bug fix: [BUG] Setting up hostname freeze while onboarding v2.3.5 · Issue #1206 · usmannasir/cyberpanel · GitHub
bad53db4 made changes in updatemysql
4a6aca8e bug fix submit docker install
84ef24f2 bug fix: prevent dockerapps to be created by less ram
3d1623cb bug fix: prevent dockerapps to be created by less ram
f07cfcef feature: add port option for backup v2 Backup V2: Need to change Port of SFTP Backend
c27f4127 feature: add port option for backup v2 Backup V2: Need to change Port of SFTP Backend
172ba5e7 Merge branch ‘v2.3.5’ of github.com:usmannasir/cyberpanel into v2.3.5
:…skipping…
4aba2b9d (HEAD → v2.3.5, origin/v3.0.0, origin/v2.3.5, origin/stable, origin/HEAD) paramiko version
fac200f4 bug fix: add missing variable
96351c27 bug fix: add missing variable
0924e2d9 bug fix: use paramiko for ssh operations
d36c7f96 Merge branch ‘v3.0.0’ of github.com:usmannasir/cyberpanel into v3.0.0
670e46c3 bug fix: use paramiko for ssh operations
9de6243c bug fix: potential issue with sftp destination add [BUG] Cannot add SFTP Backup Destination · Issue #1210 · usmannasir/cyberpanel · GitHub; ;
c7d30041 bug fix: [BUG] Manual Backup Failed · Issue #1207 · usmannasir/cyberpanel · GitHub
33ac9a06 bug fix: [BUG] Manual Backup Failed · Issue #1207 · usmannasir/cyberpanel · GitHub
2cfc35fc bug fix: command execution
f28402ce bug fix: alias domains, php fetch and domain with sudo
24b10a34 bug fix: mariadb install
fcd07468 bug fix: mariadb install
0b8f6acc bug fix: docker
a589e980 bug fix: docker install
90be9374 bug fix: docker install
a22346d7 bug fix: docker install
ca39cdbc possible resolution of Domain that you have provided is not configured as rDNS for your server IP. [404]
9e3c9f09 bug fix: docker install
3bb1488e changes in update mysql
76a492dd possible resolution of Domain that you have provided is not configured as rDNS for your server IP. [404]
6b5a932e bug fix: [BUG] Setting up hostname freeze while onboarding v2.3.5 · Issue #1206 · usmannasir/cyberpanel · GitHub
bad53db4 made changes in updatemysql
4a6aca8e bug fix submit docker install
84ef24f2 bug fix: prevent dockerapps to be created by less ram
3d1623cb bug fix: prevent dockerapps to be created by less ram
f07cfcef feature: add port option for backup v2 Backup V2: Need to change Port of SFTP Backend
c27f4127 feature: add port option for backup v2 Backup V2: Need to change Port of SFTP Backend
172ba5e7 Merge branch ‘v2.3.5’ of github.com:usmannasir/cyberpanel into v2.3.5
245bc48f feature: add port option for backup v2 Backup V2: Need to change Port of SFTP Backend
8143e759 added addon domain in CP1
6cd54ec4 added addon domain in CP
8e8fd6a0 bug fix: reset default domain if old deleted
dcb71c45 bug fix: dns record add ref : Txt record insertion error
3a8c3cf6 bug fix: wp manager ref ClickUp
3db2eea9 docker install function
58721b91 docker install function
3f0d1e37 bug fix: remote transfer
b89418a1 bug fix clone/staging ClickUp
34b7216a bug fix: snapshot delete backups v2
ce4b06f5 bug fix: file editor issue ref: Error HTML Editor
f854aaf8 bug fix: in backups v2
a6f8a85e updated error message to better reflect the situation
15ffd846 updated error message to better reflect the situation
191f007b bug fix: backup
fdcb7822 bug fix: mautic install
a6a4889f bug fix: backup creation
65e21b23 bug fix: reset dns configurations upon email config rest
1cbd84b0 lsws conversion support for arm: ref ClickUp
8e83f513 lsws conversion support for arm: ref ClickUp
874cdfdc fix mariadb install for ubuntu 20 ref [ERROR] We are not able to run DEBIAN_FRONTEND=noninteract - #2 by usmannasir
ed4cfb16 feature: include homedir in backups ref: [Feature-Required] Backup don't include other folders/files under website directory · Issue #1196 · usmannasir/cyberpanel · GitHub
:

RM
Rana Muhammad Usman Nasir #20

Can you do one last thing and share logs from CyberPanel main log file ?

RM
Rana Muhammad Usman Nasir #21

I’ve tried to reproduce your situation and these are my logs

[02.13.2024_18-25-13] Postfix Hostname: cl.cyberpanel.net. Server IP 95.217.248.69. rDNS: cl.cyberpanel.net, rDNS check 1
Hostname is already set, the same hostname is also used with mail service and rDNS. Let see if valid SSL also exists for this hostname..,10
[02.13.2024_18-25-13] Hostname is already set, the same hostname is also used with mail service and rDNS. Let see if valid SSL also exists for this hostname..,10
It looks like your current hostname is already the mail server hostname and rDNS is also set and there is a valid SSL, nothing needed to do.
[02.13.2024_18-25-13] It looks like your current hostname is already the mail server hostname and rDNS is also set and there is a valid SSL, nothing needed to do.
[02.13.2024_18-25-15] sudo -u root systemctl restart postfix && systemctl restart dovecot && postmap -F hash:/etc/postfix/vmail_ssl.map

It does not update my existing SSL.

You can run on cli

/usr/local/CyberCP/bin/python /usr/local/CyberCP/plogical/IncScheduler.py Daily

Then run

cat /home/cyberpanel/error-logs.txt

then share logs of this log command.

SS
Shuman Sheikh #22

[02.07.2024_18-00-05] SSL exists for mail.example.com and is not ready to renew, skipping…
[02.07.2024_18-00-05] Checking SSL for mail.exm.example.com.
[02.07.2024_18-00-05] SSL exists for mail.exm.example.com. Checking if SSL will expire in 15 days…
[02.07.2024_18-00-05] SSL exists for mail.exm.example.com and is not ready to renew, skipping…
[02.07.2024_18-00-05] Restarting mail services for them to see new SSL.
[02.07.2024_18-00-05] [Errno 2] No such file or directory: ‘postmap’: ‘postmap’. [ProcessUtilities.normalExecutioner.Base]
[02.07.2024_18-00-17] [Errno 2] No such file or directory: ‘/home/cyberpanel/git’. [IncScheduler.git:90]
[02.07.2024_18-00-20] Domain that you have provided is not configured as rDNS for your server IP. [404]
[02.07.2024_21-05-20] Expecting value: line 1 column 1 (char 0)
[02.07.2024_23-23-37] https://api.github.com/repos/usmannasir/cyberpanel/commits?sha=v2.3.5
[02.08.2024_18-00-16] [Errno 2] No such file or directory: ‘/home/cyberpanel/git’. [IncScheduler.git:90]
[02.08.2024_18-00-19] Domain that you have provided is not configured as rDNS for your server IP. [404]
[02.08.2024_20-35-51] https://api.github.com/repos/usmannasir/cyberpanel/commits?sha=v2.3.5
[02.09.2024_18-00-16] [Errno 2] No such file or directory: ‘/home/cyberpanel/git’. [IncScheduler.git:90]
[02.09.2024_18-00-19] Domain that you have provided is not configured as rDNS for your server IP. [404]
[02.10.2024_18-00-16] [Errno 2] No such file or directory: ‘/home/cyberpanel/git’. [IncScheduler.git:90]
[02.10.2024_18-00-16] [Errno 2] No such file or directory: ‘/home/cyberpanel/git’. [IncScheduler.git:90]
[02.10.2024_18-00-19] Domain that you have provided is not configured as rDNS for your server IP. [404]
[02.10.2024_18-00-19] Domain that you have provided is not configured as rDNS for your server IP. [404]
[02.11.2024_18-00-16] [Errno 2] No such file or directory: ‘/home/cyberpanel/git’. [IncScheduler.git:90]
[02.11.2024_18-00-19] Domain that you have provided is not configured as rDNS for your server IP. [404]
[02.11.2024_22-25-53] https://api.github.com/repos/usmannasir/cyberpanel/commits?sha=v2.3.5
[02.11.2024_22-34-27] https://api.github.com/repos/usmannasir/cyberpanel/commits?sha=v2.3.5
[02.11.2024_22-34-52] Domain that you have provided is not configured as rDNS for your server IP. [404]
[02.11.2024_22-36-01] Domain that you have provided is not configured as rDNS for your server IP. [404]
[02.11.2024_22-36-10] Domain that you have provided is not configured as rDNS for your server IP. [404]
[02.11.2024_22-45-02] Domain that you have provided is not configured as rDNS for your server IP. [404]
[02.11.2024_22-46-14] Domain that you have provided is not configured as rDNS for your server IP. [404]
[02.11.2024_22-49-13] Domain that you have provided is not configured as rDNS for your server IP. [404]
[02.11.2024_22-50-39] Domain that you have provided is not configured as rDNS for your server IP. [404]
[02.11.2024_22-51-15] https://api.github.com/repos/usmannasir/cyberpanel/commits?sha=v2.3.5
[02.11.2024_22-58-46] Domain that you have provided is not configured as rDNS for your server IP. [404]
[02.11.2024_23-00-26] Covered domains: [‘exm.example.com’]
[02.11.2024_23-00-26] Status Code: Unknown for: http://www.exm.example.com/.well-known/acme-challenge/exm.example.com. Error: HTTPConnectionPool(host=‘www.exm.example.com’, port=80): Max retries exceeded with url: /.well-known/acme-challenge/exm.example.com (Caused by NewConnectionError(‘<urllib3.connection.HTTPConnection object at 0x7fcb71feeb38>: Failed to establish a new connection: [Errno -2] Name or service not known’,))
[02.11.2024_23-00-26] Status Code: Unkown for: http://exm.example.com/.well-known/acme-challenge/exm.example.com. Error: Exceeded 30 redirects.
[02.11.2024_23-00-29] /root/.acme.sh/acme.sh --issue -d exm.example.com -d www.exm.example.com --cert-file /etc/letsencrypt/live/exm.example.com/cert.pem --key-file /etc/letsencrypt/live/exm.example.com/privkey.pem --fullchain-file /etc/letsencrypt/live/exm.example.com/fullchain.pem -w /usr/local/lsws/Example/html -k ec-256 --force --server letsencrypt
[02.11.2024_23-00-38] Failed to obtain SSL for: exm.example.com and: www.exm.example.com
[02.11.2024_23-00-38] Trying to obtain SSL for: exm.example.com
[02.11.2024_23-00-38] /root/.acme.sh/acme.sh --issue -d exm.example.com --cert-file /etc/letsencrypt/live/exm.example.com/cert.pem --key-file /etc/letsencrypt/live/exm.example.com/privkey.pem --fullchain-file /etc/letsencrypt/live/exm.example.com/fullchain.pem -w /usr/local/lsws/Example/html -k ec-256 --force --server letsencrypt
[02.11.2024_23-00-44] Successfully obtained SSL for: exm.example.com
[02.11.2024_23-00-44] [Errno 111] Connection refused
[02.11.2024_23-16-50] https://api.github.com/repos/usmannasir/cyberpanel/commits?sha=v2.3.5
[02.12.2024_18-00-17] [Errno 2] No such file or directory: ‘/home/cyberpanel/git’. [IncScheduler.git:90]
[02.12.2024_18-00-20] Domain that you have provided is not configured as rDNS for your server IP. [404]
[02.13.2024_11-15-27] https://api.github.com/repos/usmannasir/cyberpanel/commits?sha=v2.3.5
[02.13.2024_11-21-40] https://api.github.com/repos/usmannasir/cyberpanel/commits?sha=v2.3.5
[02.13.2024_18-00-16] [Errno 2] No such file or directory: ‘/home/cyberpanel/git’. [IncScheduler.git:90]
[02.13.2024_18-00-19] Domain that you have provided is not configured as rDNS for your server IP. [404]
[02.13.2024_18-55-12] [Errno 2] No such file or directory: ‘/home/cyberpanel/git’. [IncScheduler.git:90]
[02.13.2024_18-55-15] Domain that you have provided is not configured as rDNS for your server IP. [404]

**host name musked

RM
Rana Muhammad Usman Nasir #23

So I keep seeing this error, can you open a ticket here with server logins: https://platform.cyberpersons.com/

then mention ticket id here.

SS
Shuman Sheikh #24

To create ticket in support departments you can purchase CyberPanel Cloud Support plans.

I cant create ticket. Is it Paid? My all server have same issue.

I have skipped Additional Features “Skip rDNS/PTR Check (If you don’t want to use email service on this server)” then logs showing like…

[02.14.2024_10-07-21] Domain that you have provided is not configured as rDNS for your server IP. [404]
[02.14.2024_10-07-31] Hostname is already set, the same hostname is also used with mail service and rDNS. Let see if valid SSL also exists for this hostname…,10
[02.14.2024_10-07-31] It looks like your current hostname is already the mail server hostname and rDNS is also set and there is a valid SSL, nothing needed to do.
[02.14.2024_10-07-53] https://api.github.com/repos/usmannasir/cyberpanel/commits?sha=v2.3.5

fm
fmohican #26

@usmannasir i face the same issues with rdns…
The rdns is setup correctly, and i also check with ‘dig -x’, but in the setup page from cypberpanel it always return 404( Domain that you have provided is not configured as rDNS for your server IP. [404] )

What should i do?

Panel Version: 2.3.5 (c97df70156acd8d6a005d7b10e9f6a0aaf900c23)

Thank you!

SS
Shuman Sheikh #27

I am still having the same problem. But I have adopted some trick to solve it. Completed setup by skipping Mailserver. Later I did separate mailserver ssl issue. But the problem is that every time I reboot the server, the mailserver ssl is lost. As a result, every time after rebooting the server, doing a separate postfix restart (systemctl restart postfix), then everything works fine.

Also noticed after 2.3.5 version upgrade no error log is coming in admin profile default mail.

fm
fmohican #28

Well if the problem is only at reboot, will not be much trouble, but does the ssl autorenew itself?

For example, i do as you said, and skip mailserver then issuse ssl, the ssl have 3 month lifetime, does it after 3rd month get renewed? or i have to issuse again ssl?

Thanks for tip, but i’m already use Cypberpanel for like 2 years, and everything went smooth till last update.

SS
Shuman Sheikh #29

Good question. I also faced this problem on upgrade to 2.3.5 version. Since it hasn’t been 3 months, I can’t tell you exactly. But I hope that connected ssl will autorenew normally.

AT
Abdelhadi Touil #30

Hi,
Me too, I’m facing the same issue with my server. I was able to upgrade some VPS before without any issue, but this time I got that rDNS error even thought I’m sure it is setup correctly, the only difference here it is a dedicated server not a VPS (I use Hetzner). Could you please fix this?

AT
Abdelhadi Touil #31

Update (Resolved):
I was able to fix the issue by editing the /etc/hosts file and adding the correct hostname to it. This was on a dedicated server running CentOS 7.
I observed that after running the command:
ping example.com
I noticed that the hostname was incorrect because the output appeared like this:

PING localhost.localdomain (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=64 time=0.026 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=2 ttl=64 time=0.023 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=3 ttl=64 time=0.024 ms

The problem was with the localhost.localdomain section (which may vary in your situation), but this is supposed to be the hostname, so I modified the ipv4 part like this (example.com should be substituted with your hostname):

# IPv4
127.0.0.1 example.com example
127.0.0.1 localhost.localdomain localhost example.com
127.0.0.1 localhost4.localdomain4 localhost4 example.com

After saving the hosts file and restarting the server, I used the ping command to verify everything was working correctly. When I reran the setup wizard, it completed successfully!
I hope this can help you.

SS
Shuman Sheikh #32

Did you added “127.0.0.1 example.com example” above or edit an existing line?
Because I tried by modifying the existing line. Then the server became very slow and was about to shut down. There is no section called IPv4 on VPS server in this file.

AT
Abdelhadi Touil #33

Can you copy & paste the content of your /etc/hosts file? Just to clarify: My server is an old one using CentOS 7, from Hetzner, maybe things are different for you. I think I should mention the OS in my previous post.

SS
Shuman Sheikh #34

No, edited with my host name. I have tried before your post. My OS is AlmaLinux 8.

fm
fmohican #35

I’ve read @hadi060 advices and modify the /etc/hosts
so the line will be in the following order
127.0.0.1 example.com
127.0.0.1 localhost localhost.local
::1 example.com
::1 localhost localhost.local

after i do those modification i tried to rerun setup wizard and everything works.

My server is running ubuntu 20.04 and is hosted at Hetzner

AT
Abdelhadi Touil #36

I didn’t try Almalinux 8, but it should be similar to CentOS 7, maybe the difference comes from the server provider.
Try to look in your hosts file for the ipv4 section and make the change I posted. Before that, you can check using ping command to see if everything is ok as described in my post. If you can post the output of ping your-domain.com, it will be helpful to understand better your issue.

AT
Abdelhadi Touil #37

Glade that my post helped you! Hope the same for others.
Good luck!

SS
Shuman Sheikh #38

I think both of you didn’t reboot the server after setting the hostname. Reboot the server and see if mail can be sent from the mail server to Gmail.

note: I followed your steps. In my case 127.0.0.1 didn’t work. I added a new line above 0.0.0.0 host.example.com with server ip instead of 127.0.0.1. ssl issues are done. But after rebooting the server the mail could not be sent.

fm
fmohican #39

I’ve reboot the sever and then send mail from server to gmail, yahoo and outlook.
Each mail arrived without any issue, i’ve also check if the mail pass tests, and yes it pass all tests.

SS
Shuman Sheikh #40

Maybe it is because of OS. Have you used a subdomain?

AT
Abdelhadi Touil #41

Of course I rebooted the server after changing the hosts file, I have even mentioned that in my post:

After saving the hosts file and restarting the server, I used the ping command to verify everything was working correctly. When I reran the setup wizard, it completed successfully!

Regarding the Gmail issue, it is unrelated to the changes in the hosts file. However, I believe a simple change in the postfix config file may resolve it. Whenever I install CyberPanel on a new server, I always make the following change to enable sending and receiving from Gmail. Here is the fix:

  1. Edit Postfix configuration file at /etc/postfix/main.cf path and change inet_protocols setting to ipv4 instead of all.
  2. Do not forget to reload postfix service after making changes using this command:
postfix reload
  1. Verify if SSL is installed on the email account/Mail Server.
    Then try to send a mail to Gmail and check.
SS
Shuman Sheikh #42

I noticed, it about all mail not only Gmail.

RM
Rana Muhammad Usman Nasir #43

Sorry I did not check this issue for few days now. @shumansk I’ve continuously asked you to open ticket but you ignore my request.

I highly doubt that reboot of server have anything to do with this.

Also the reason CyberPanel keep saying that rDNS is not correct because the results are cached. And when you check your rDNS online you get the correct rDNS but CyberPanel get the cached results.

I highly recommended anyone reading this post that make sure you set rDNS before you try to use this feature because then incorrect rDNS will be cached.

SS
Shuman Sheikh #44

@usmannasir Sorry I couldn’t answer you. I thought I could fix it myself. I solved the 404 problem. But the reboot problem can still be solved. I’m trying, if I can’t, you’ll get through soon.

JD
James Dougherty #46

Hello, I am experiencing something similar but from a new install. Getting the Domain that you have provided is not configured as rDNS for your server IP. [404] in version 2.3.5, running ubuntu Ubuntu 20.04, namescheap vps, hostname set and rdns recorded, using cloudflare to manage.

the setup fails with the above error.

fm
fmohican #48

how we can wipe this cache? its there any command that can be used? or is there a file that can be safety removed?

Thanks,
~Fmohican

SS
Shuman Sheikh #50

queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
inet_protocols = all
mydestination = localhost, localhost.localdomain
unknown_local_recipient_reject_code = 550
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5

sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.10.1/samples
readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES

myhostname = hostname.example.com
mynetworks = 127.0.0.0/8
message_size_limit = 30720000
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_use_tls = yes
smtpd_tls_cert_file = /etc/pki/dovecot/certs/dovecot.pem
smtpd_tls_key_file = /etc/pki/dovecot/private/dovecot.pem
virtual_create_maildirsize = yes
virtual_maildir_extended = yes
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
inet_interfaces = all
smtp_tls_security_level = may
disable_vrfy_command = yes
smtpd_milters = inet:127.0.0.1:8891
non_smtpd_milters = $smtpd_milters
milter_default_action = accept

tls_server_sni_maps = hash:/etc/postfix/vmail_ssl.map
smtpd_data_restrictions = check_policy_service unix:/var/log/policyServerSocket
smtpd_policy_service_default_action = DUNNO

@usmannasir Is there anything wrong with this main.cf configuration?

SS
Shuman Sheikh #52

Yes, I changed, here was my hostname.

RM
Rana Muhammad Usman Nasir #55

It means CyberPanel is not actually doing anything wrong here. If hostname in postfix is right and rDNS is same then the onboarding wizard is ok.

If you can’t send email after reboot you can reach out to our support.

Sign in to reply