How to Setup remote SMTP server as relay

Sending an outgoing email through a 3rd party SMTP relay service is a quick and easy alternative to setting up a full-fledged local email server. Open /etc/postfix/main.cf and add the remote mail server hostname to end of the file: relayhost = [remote.server.com] If the remote system uses a different port number, please specify the port […]

Read More

How to run cgi scripts with Apache

How to run cgi scripts with Apache In this example we will add support for the following file extensions: .cgi .pl .py We have set folder to be /home/*/public_html/cgi-bin/ as this is by default, don't set it to as public_html only as this will cause issues with your php scripts. Create File: /usr/local/apache/conf.d/mod_cgid.conf LoadModule cgid_module […]

Read More

How to Debug Mail Server issues

How to Debug Mail Server issues - Incoming Emails - Outgoing Emails - WebMail (Roundcube incoming/outgoing) Incoming emails =============== Log Files Postifx (smtp server): /var/log/maillog Log Files Dovecot (pop3/imap server): /var/log/dovecot.log /var/log/dovecot-info.log /var/log/dovecot-debug.log From shell start tail on the log file by using this command tail -f /var/log/maillog After you have set tail on the […]

Read More

Letsencrypt Free SSL on CWP

Let's Encrypt is a certificate authority that launched on April 12, 2016 that provides free X.509 certificates for Transport Layer Security (TLS) encryption via an automated process designed to eliminate the current complex process of manual creation, validation, signing, installation, and renewal of certificates for secure websites. You can check the list of supported browsers […]

Read More

Mail delivery failed to ...

How to check your mail server reputation when mail is not delivered to the inbox Firstly check your mail server configuration on the following site: https://www.mail-tester.com/ You should test it by sending email from roundcube and email client software like outlook. Next, lets check your mail server reputation and rDNS/DNS match http://www.senderbase.org And as last, […]

Read More

Roundcube Password change plugin

To enable the email account password change option from roundcube, you can edit file: /usr/local/cwpsrv/var/services/roundcube/plugins/password/config.inc.php Don't forget to replace your postfix user "PASSWORD" $config['password_driver'] = 'sql'; $config['password_db_dsn'] = 'mysqli://postfix:PASSWORD@localhost/postfix'; $config['password_query'] = "UPDATE mailbox SET password=CONCAT('{PLAIN-MD5}', MD5(%p)),modified=NOW() WHERE username=%u LIMIT 1"; You can find your postfix password here: grep pass /etc/postfix/mysql-virtual_mailbox_maps.cf

Read More

How to resolve spamming issue with postfix

How to resolve the spamming issue with your postfix mailserver having CWP. Before starting we should stop the postfix mailserver. service postix stop For start lets count the number of emails stuck in the mail server queue: postqueue -p | grep -c "^[A-Z0-9]" Select few similar emails and use IDs to check them postqueue -p […]

Read More

FreeHosting Provider Service

If you want to provide a free hosting service, now you can do that very simple with CWP, in just a few steeps. You need to set Access key in the following file /usr/local/cwp/.conf/free_hosting_key.conf Example of file /usr/local/cwp/.conf/free_hosting_key.conf DPQhj9zJeMYHJkGyEW To activate a new account, you need to call this API as in the following example: […]

Read More

CWP Scripts

CentOS Web Panel has also a scripts folder to help you with the upgrades or additional tool installations. For all of you liking to work in a shell, we are preparing an additional scripts list. Available Scripts with the latest version /scripts/upgrade_mysql >> Upgrade phpMyAdmin and MySQL to 5.5 /scripts/install_imagick >> Installs Image Magick /scripts/install_maldet […]

Read More

Tracking PHP Script SPAM

CWP is automatically saving to the log when PHP is sending mail using mail() function. This allows you to easily track a spammer by checking the log file. Minimum supported PHP version is: PHP 5.3 Log File: /usr/local/apache/logs/phpmail.log CWP will add a header to mail source for all outgoing emails sent by PHP scripts. Here […]

Read More

CentOS Mostly Used Ports

List of mostly used default ports on the CentOS servers Port Number - Name 20 - FTP 21 - FTP 22 - SSH 25 - SMTP/EMAIL 26 - SMTP 43 - WHOIS (We don't recommend opening this port) 53 - BIND/DNS 80 - HTTP / Apache Web server 110 - POP3/EMAIL 143 - IMAP 443 […]

Read More

How to migrate account from cPanel

Detailed instructions on how to migrate account from a cPanel to the CWP ON THE CPANEL SERVER In your cPanel account create the account backup. Prepare cPanel account backup - go to Files --> Backups --> Download a Full Website Backup (then wait for backup to complete) ** For backup destination choose "Home Directory". Move […]

Read More

How to Rebuild Postfix Mail Server ?

Starting from the CWP version 0.9.6+ you have a new awesome Postfix Mail Server Manager (Re-Builder) With a single click you can select additional Mail Server options and ReBuild your mail server according to your needs. Location in the CWP.admin area Left Menu --> Email --> Postfix Manager Options - AntiSpam and AntiVirus Protection (Spamassassin […]

Read More

Postfix Mail Server commands

Video instructions for MailServer Stats Some useful postfix commands //postqueue -p is the same as mailq List mail queue and MAIL_ID's, list mail queue postqueue -p mailq Reload config service postfix reload Restart postfix server service postfix restart View the postfix version postconf mail_version Show default postfix values postconf -d Show non default postfix values […]

Read More