Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - martend

Pages: [1] 2
1
Think you are right, I did not have expired domains yest, so very plausible :-)

2
SSL / Re: Auto SSL /Let's Encrypt
« on: October 27, 2019, 10:15:46 PM »
Ehm... it's build in :-) So no extra setup needed.

How to apply Let's Encrypt.. To avoid mistakes, On the left side, go to user accounts click on the triangle and select New Account Fill out the form presented to you with the relevant information.
At the bottom, don't select the AutoSSL yet! Click on the blue Create button and CWP goes to work.

Check if everything is to your liking and that you can access the just created domain. If that is the case from the left menu now choose Webserver Settings Almost at the end of the list you will see SSL Certificates time to click on that one.

You will presented with a tabbed menu, choose the tab AutoSSL [FREE] from the dropdown menu pick the User you just created and the domain, if it matches the Install SSL button changes to a different shade of blue and clickable. Click on it and the SSL certificates will install without any problems.

Doing it this way avoids some potential problems that if you create a user and domain the DNS or NGINX / Apache / Vhost did not catch up yet. What will give an error since the SSL check can't find the domain.

3
E-Mail / Re: Can't receive emails
« on: October 24, 2019, 08:18:48 PM »
warning: do not list domain bosiskarijera.rs in BOTH mydestination and virtual_mailbox_domains <--- it's in the log


Make sure that mydestination parameter is correct in /etc/postfix/main.cf

mydestination = localhost.$mydomain, localhost, localhost.localdomain

is the standard setting, to avoid some potential problems, you could delete: localhost.$mydomain,


4
CentOS-WebPanel Bugs / Re: Hourly Email not working
« on: October 24, 2019, 08:10:04 PM »
Could you provide some more information? Now it is a pure guessing job about what the problem might be.

- before turning on hourly services etc. do check if you can send/receive emails.
- check your server on a site like https://mxtoolbox.com/

5
martend@stryker:~$ dig sport-kostyumy.ru @pns11.cloudns.net

; <<>> DiG 9.11.3-1ubuntu1.9-Ubuntu <<>> sport-kostyumy.ru @pns11.cloudns.net
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63724
;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 1
;; WARNING: recursion requested but not available

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;sport-kostyumy.ru.      IN   A

;; ANSWER SECTION:
sport-kostyumy.ru.   300   IN   A   176.119.28.104

;; AUTHORITY SECTION:
sport-kostyumy.ru.   3600   IN   NS   pns13.cloudns.net.
sport-kostyumy.ru.   3600   IN   NS   pns12.cloudns.net.
sport-kostyumy.ru.   3600   IN   NS   pns11.cloudns.net.
sport-kostyumy.ru.   3600   IN   NS   pns14.cloudns.net.

;; Query time: 15 msec
;; SERVER: 2a06:fb00:1::1:133#53(2a06:fb00:1::1:133)
;; WHEN: Thu Oct 24 21:57:24 CEST 2019
;; MSG SIZE  rcvd: 153

DNS did catch up

6
SSL / Re: AutoSSL not working
« on: October 20, 2019, 01:20:46 PM »
In your panel docreate yoursite.com
- then go ahead and create a subdomain for yoursite.com, like cars.yoursite.com

After creation go to your DNS settings click edit records and change the IP number of yoursite.com don't change cars.yoursite.com.
When done correctly CWP will host only cars.yoursite.com and all other traffic will be send to the other server where yoursite.com is hosted. In the home directory of yoursite.com on the cwp server you could replace the standard index.html with one who who redirects to yoursite.com on the other server.

When creating the subdomain pay attention to the folder it shows, correct the folder name by adding the name of the subdomain to it, like so: public_html/cars
In that folder you put everything you want for the subdomain and will the system direct users to the right folder.

7
E-Mail / Re: mail with php seen as spam
« on: October 18, 2019, 07:43:04 PM »
Gmail is strict in handling email, it wants mail sent from an registered domain.

If you setup a server at home, it will send email through your home router connected to your Internet Service Providers IP. That home ip address resolves to for example: dynamic.cable.fr
So no matter what you change on your server at home, the ip / mailhost you are sending from will always resolve to your home IP.
Gmail and other email services does see that there is a mismatch in origin/host - sender to receiver, so mail goes to spam folder.
Even if you could tweak the DNS of your home iSP, Gmail still might reject it, simply because it's a home-ip. They have all those rules in place, to keep us as much as possible spam-free. Without the reverse-dns, dkim etc everybody could run a mail server and a lot of people would not do run it in a safe way.. leaving their mailservers open for hackers etc.

If you want to run a server with mail etc, I would go out and get a cheap vps, register for a few euro a domain. Important here is that the hosting company allows you to set your own DNS and Nameservers.
This way you can run and experiment with a full fledge server hooked on to the web, with all goodies you can think of imagine doing with it :-)
For a VPS you could take a look at the GCP, (Google Cloud Platform) they allow you to try their service out for free. But you have to figure out everything yourself, by documentation or forums. The good thing is, in your free trial you can mess up, reboot, re-install pretty much as often as you want, till you have things working, since they won't bill you. Is the VPS / Server not working anymore? Delete it from your project page, create a new one and of you go again :)

One downside to GCP they have the standard port for email 25 blocked. Internal and External  You can setup a mailserver by using different ports, but keep that also in mind.


8
Updates / Updating to PHP 7.* breaks DNS Master/Slave
« on: October 16, 2019, 08:39:44 PM »
So since PHP 5 will soon be EOL and I have a new setup, I thought it was a good idea to upgrade with the php switcher to a new version of php, i did go for 7.9. After updating I could not log in anymore in to my DNS Master/Slave UI, cause the switcher does not install all needed modules for that feature.

I tried to repair the DNS Manager GUI with the ioncube solution mentioned on the wiki or forum here somewhere, but no effect.
I would imagine that if you use the extra switcher feature, it would take in account that people run other addons from CWP on their setups.

Maybe it is possible to build such a function in, in a next release that the modules who are needed for DNS Master/Slave also are getting installed and configured. Since their are already a bunch of php modules checked in the list, so a few more checkboxes ticked won't hurt and will bring many people joy, instead of re-installing the nameserver again.

greetings
Martend

9
As the topic suggests my DNS 2 nameserver would not start up due unbalanced quotes. One of the problems is, is that the dkim_key get's cut off, so it's missing the final lines and the " of the key.

At first the script used to transfer and update, squashed the zonefile in to 2 lines, more machinecode than human readable.
Then I tried to sync the files with rsync without the script, which resulted in the problem of the dkim key getting cut off.

I have CWPro setup running on 3 Google Cloud Instances and followed the setup as described in the CWP wiki.

10
DNS / Re: DNS slave SERVERFAIL
« on: October 14, 2019, 10:36:13 PM »
Ah..ports... I forgot those at times also :)
My French isn't great but I understood it, great that you found it.

I'm half happy at the moment:

okt 14 22:21:03 ns2 named[9829]: managed-keys-zone: Key 20326 for zone . acceptance timer complete: key now trusted
okt 14 22:21:03 ns2 named[9829]: resolver priming query complete

number 2 is also online :-) but had to write a little script to import things myself. Maybe I did find the bug what is causing the problem but will open another thread for that :)

11
DNS / Re: DNS slave SERVERFAIL
« on: October 14, 2019, 08:15:23 PM »
Seems you have the same problem as me

During transfer from the dns host/slave combo to the slave somehow the zonefile get's corrupted / compressed in two lines.
I don't know if the script is causing it, or it gets compressed during ssh but the end result of your slave is the same, a servfail since it cannot read the "db.myexample.com" file.

I have a similar setup like you, one normal box 1 core 6gb memory and two smaller ones with 1 core and 1.7 gb memory for hosting the nameservers.

Sorry for not having an answer yet, still trying to figure out what is causing it :-)

12
DNS / Re: having trouble with hostname resolution
« on: October 14, 2019, 03:28:02 PM »
Changing a hostname only on a VPS are not enough steps to take, to get the  outcome you want.
You also have to take a look at your DNS records, they are more important.

an vps has ONE hostname, but can serve many DOMAINS

13
DNS / Re: DNS Only CWP Server
« on: October 14, 2019, 03:16:58 PM »
I also wanted my own nameservers, this is what i'm running at the moment:

http://wiki.centos-webpanel.com/slave-dns-server-manager-download-version


14
DNS / Re: Steps to take to run two own dedicated nameservers?
« on: October 14, 2019, 03:09:42 PM »
Don't know how I missed it but I did....

So I found the solution by going through the wiki once more.

CWP has an option to run a master - slave - slave setup by installing an additional CWPro and an addon... very nice!
Works like a charm.

15
DNS / Steps to take to run two own dedicated nameservers?
« on: October 13, 2019, 09:40:00 PM »
So I tried to follow the basic tutorial on this, found on this subject here on CWP, but I kept getting some errors.
I'm trying to figure out the right steps to take to get two dedicated nameservers working with my CWP.

What I have done so far:

I got myself a new domain by my registar. There I created a basic DNS with

nameserver 1 bind9 installed, pointing to it's static public ip
nameserver 2 bind9 installed, pointing to its static public ip
the server with CWP on it, using the Nat'd setup

All three servers have the same domain. like ns1.mydomain.com - ns2.mydomain.com cwp.mydomain.com

From what I understand, I have to change the nameservers on my registar to my own for the domain.

Also first thing to do in CWP is change the nameservers in my own.
When I do that, CWP shows that my nameservers resolve to the right IP addresses. 

What are the next step to take to get it working? Creating a user with the domain of the cwp and nameservers?
What changes do i need to make in the records? I saw for instance that after install of cwp, there are some records populated with
centos webpanel information.

Any help is more than welcome! :-)


Pages: [1] 2