Postfix send email from dedicated ip address

Create file called sdd_transport_maps.regexp: /@customer1-dom\.tld$/ customer1: /@customer2-dom\.tld$/ customer2: /@customer3-dom\.tld$/ customer3: ..... next ..... In master.cf create special transport called customer1, customer2, customer3….and so on customer1 unix - - n - - smtp -o smtp_bind_address=1.1.1.1 -o smtp_helo_name=customer1-dom.tld -o syslog_name=postfix-customer1 customer2 unix - - n - - smtp -o smtp_bind_address=1.1.1.2 -o smtp_helo_name=customer2-dom.tld -o syslog_name=postfix-customer2 customer3 unix - […]

Read More

catch-all emails

In cwp you can easily set up a catch-all email for domain and send all to a single email account. From the mail forwarders in the user panel create a new forwarder with email address * In the "Redirects to:" option, you can enter any email address and all email coming for *@domain1.com will be […]

Read More

Policyd - Limit emails per hour

Policyd is used to limit incoming and outgoing emails per hour. Video instructions Installation instructions Install it from cwp.admin by rebuilding the mail server with option policyd Left Menu->Email->MailServer Manager and select policyd other options is to do the manual installation over ssh command: sh /scripts/install_cbpolicyd * Run this command from the ssh If needed […]

Read More

Postfix pipe email to whmcs ticket

Easy instructions for email pipe to whmcs ticket We recommend to skip these instructions and do it from the user panel Mail Forwarders -> Alias-Pipe - you need to have an email account created in cwp for these instructions to work. In the configuration examples we will use username: testuser and email account space@test.com, don't […]

Read More

How to manually import emails

Instructions for manual import of the emails to your CWP server. 1. Create all required mailboxes via CWP 2. Login in each created mailbox (this will create required file and folder structure) 3. Copy the emails (like any other files) in /var/vmail/DOMAIN.COM/USERNAME 4. Fix Permissions (chown uploaded files vmail:mail) Example path for email account: mark.s@cwp.com […]

Read More

Resolve, Emails marked as SPAM

Are you emails ending up in the SPAM folder or are they marked as a SPAM ? You need to check for the tree most common issues: 1. Check rDNS if its properly set 2. Check that you have enabled DKIM 3. Check that you are not blacklisted 1. Check rDNS if its properly set […]

Read More

Postfix Blacklist/Whitelist Domain or IP

This option works only if you have rebuilt the mail server in cwp.admin with antispam. You can blacklist or whitelist incoming emails in the following files: /etc/postfix/sender_blacklist /etc/postfix/sender_whitelist After making changes you need to run the following command for the files you edited postmap /etc/postfix/sender_blacklist postmap /etc/postfix/sender_whitelist Options: # Example for blacklisting domains/IP's or emails, […]

Read More

Test SpamAssassin and ClamAV

By default when you rebuild the mail server in CWP with antispam then it comes with enabled ClamAV & SpamAssassin protection. You can enable it from CWP.admin by going to MailServer Manager. Test ClamAV Send an email with content X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H* If ClamAV works you will see the following in the log: /var/log/maillog Dec 27 07:22:42 […]

Read More

How to create CWP iso image

This info is for Server providers like Cloud, VPS or Dedicated servers to create fast image deployment servers with CWP. You need to be aware that each cwp version is valid for 6 months only, so you would need to update the image before that expire time. Creating CWP iso image is easy, here are […]

Read More

Dkim double signature

This issue can happen when using amavis. In case you have a double email signature you can edit your postfix config. File: /etc/postfix/master.cf smtp inet n - n - - smtpd -o content_filter=smtp-amavis:127.0.0.1:10024 -o receive_override_options=no_address_mappings After no_address_mappings add no_milters , example: smtp inet n - n - - smtpd -o content_filter=smtp-amavis:127.0.0.1:10024 -o receive_override_options=no_address_mappings,no_milters After changes […]

Read More

To reduce the amount of spam sent to Gmail

Since many today have an issue with the gmail blocking them in case of the spam, here is a short info about it. If you see in your postfix log file /var/log/maillog messages like: Mar 29 08:13:02 cwp-mailserver postfix/smtp[12934]: A35C2137013: to=, relay=gmail-smtp-in.l.google.com[173.194.69.26]:25, delay=1.1, delays=0.1/0.02/0.61/0.34, dsn=5.7.1, status=bounced (host gmail-smtp-in.l.google.com[173.194.69.26] said: 550-5.7.1 [85.111.34.35 12] Our system has […]

Read More

cPanel Compatibility

Access admin/user panel over the same port 2082 - CWP User Panel 2083 - CWP User Panel SSL 2086 - CWP Admin (same as 2030) 2087 - CWP Admin SSL (same as 2031) * Recommended to be used with the hostname because of the usage of the hostname SSL. Examples: https://hostname.domain.com:2083 https://hostname.domain.com:2087 https://100.110.120.130:2083 https://100.110.120.130:2087 Access […]

Read More

How to Deploy Django Apps using Apache with mod-wsgi and nginx

Django is a free and open-source high-level Python Web framework. Being a Python Web framework, Django requires Python. In this guide, we will demonstrate how to install and configure Django. We will then set up Nginx and Apache to sit in front of our Django application. We will also be using the mod_wsgi Apache module […]

Read More

Move /var/vmail to another partition

Due to the lack of the disk space on partitions like / or /var, it's sometimes necessary to move the /var/vmail folder to a larger partition which has more free space and mostly to the /home partition. You can check the list of your partitions with this command: df -h Before moving the emails you […]

Read More

CWP Admin API

Account Remove Account: /scripts/cwp_api account remove_user USERNAME Suspend Account: /scripts/cwp_api account suspend_user USERNAME UnSuspend Account: /scripts/cwp_api account unsuspend_user USERNAME UnSuspend Account Bandwidth (You should increase user/package bandwidth before): /scripts/cwp_api account unsuspend_bandwidth USERNAME Reset Account Bandwidth (It will reset user bandwidth to 0 and UnSuspend Account): /scripts/cwp_api account reset_bandwidth USERNAME Fix Account Permissions /scripts/cwp_api account fix_perms […]

Read More

cPanel to CWP server convert

We have created several scripts which will convert your cPanel server into CWP. Last Update: 13.09.2021 How does this work? - First, we export from cPanel all user account details into temporary files so we can later import them into CWP. - Second, we create a backup of cPanel and uninstall it. - Third, we […]

Read More

Set up MX records for G Suite Gmail

To start using G Suite, you need to verify your domain and configure your domain's MX records to direct mail flow to Google mail servers. Video Instructions 1. Verify domain Verifying the domain will help you start using your Google services, such as G Suite, Drive Enterprise, or Cloud Identity. If you have G Suite, […]

Read More

Custom DNS Zone Template

Custom Default DNS Zone Template You can change a default DNS Zone template which is used when creating a new-account or domain. By default, cwp is using default.tpl for all new accounts and domains. If you need to change it please note that you need to make a file as default.tpl is overwritten on every […]

Read More