Adding new SMTP user
After installing PowerMTA manually, you will need to create a new SMTP user and virtual-mta. To create an user, edit the virtualhost.txt file:
# Adding new VMTA-user
<smtp-user user1> # user's name
password password XXXXX # user's password...
SMTP port in pmta config
To change the SMTP port in PMTA, find and edit the config file at /etc/pmta/config
Find the line that starts with smtp-listener
This line specifies the port used by the PMTA server. If you need to use several ports, duplicate the line.
CLI commands for PMTA server
service pmta restart
Reloading the pmta config
service pmta start
Search for possible errors
pmta reset counters
Checking the status of PMTA...
What is the main configuration file of PMTA
This is a file which is located in the etc/pmta/ directory of your server and responsible for the rules of sending mail from a particular domain/ip address.
Two files are responsible for the configuration of your mail server, config and...
Protect website via htaccess
This list for .htaccess contains more than 1900 bad bots, grabbers, spammers, combiners and other garbage. Blocking them will help to reduce the load on your site, which will positively affect it's performance and security.
At the same time, search engines bots...
Set up own VPN with using OpenVPN client software
You will need a server with bandwidth 200 Mbps and pre-installed Ubuntu 20.04 or later.
1. Connect to your server:
2. Install git:
apt install git
3. Install OpenVPN:
git clone https://github.com/Nyr/openvpn-install.git
List of dangerous functions
exec() - calling an external program
proc_open() - executes a command and opens a file pointer for I/O
shell_exec() - executes a command in a shell and returns the full output as a string
system() - calling an external program and displaying the result