Skip to main content

Postfix

By Default CWP server comes with Postfix + Dovecot + AntiSpam Solutions. We need to do some modifications on Postfix + Dovecot , for better security and to get high performance. In this series tutorials , We will learn about Postfix + Dovecot with AntiSpam Solutions .

1. How to Build Postfix + Dovecot Mail Server with Anti-Spam Solutions on CWP Server ?
2. How to Secure CWP Postfix and Dovecot with Lets Encrypt SSL Certificate ?
3. How to Enable logging of Email’s Subject Line in Postfix Maillog ?
4. How to Remove Sensitive Data from Postfix Headers ?
5. How to Block (Virus) Extensions on Postfix Mail Server ?
6. How to Configure SMTP Relay on CWP CentOS 7 with Relay Provider ?
7. How to Configure autodiscover information for mail clients to setup pop/imap/smtp settings automatically on CentOS WebPanel?
8. How to Produce Postfix MTA logfile summary using Pflogsumm on CWP?

Spam Filtering for Postfix/Dovecot Mail Server on CWP7:
Z-Push  ActiveSync
https://medium.com/@DonSYS/configuring-exchange-activesync-with-autodiscover-on-zimbra-c93e110158fb
https://imanudin.net/2019/08/30/exchange-activesync-for-zimbra-open-source-edition/
https://think.unblog.ch/en/how-to-install-z-push/
https://www.qmailtoaster.org/msas.html
https://kb.kopano.io/display/ZP/Installation#Installation-RHELbasedsystems

False Positives 
https://sanesecurity.com/support/false-positives/ 
http://www.clamav.net/reports/fp 
https://www.securiteinfo.com/services/anti-spam-anti-virus/whitelisting_clamav_signatures.shtml 
https://www.securiteinfo.com/services/anti-spam-anti-virus/improve-detection-rate-of-zero-day-malwares-for-clamav.shtml?lg=en

https://rtcamp.com/tutorials/mail/
https://access.redhat.com/solutions/120383

SQL 
https://www.digitalocean.com/community/tutorials/how-to-optimize-mysql-queries-with-proxysql-caching-on-ubuntu-16-04

https://www.digitalocean.com/community/tutorials/how-to-measure-mysql-query-performance-with-mysqlslap

https://www.digitalocean.com/community/tutorials/how-to-use-proxysql-as-a-load-balancer-for-mysql-on-ubuntu-16-04

Postfix Relay:
https://stackoverflow.com/questions/55159882/how-do-i-configure-postfix-to-only-relay-emails-from-a-specific-domain

https://forum.efa-project.org/viewtopic.php?t=2222
https://cloud.google.com/appengine/docs/standard/php/mail/mail-with-headers-attachments 
https://www.suse.com/support/kb/doc/?id=000016697

Postfix Aa a MailGateway 
http://www.linuxpcfix.com/how-to-configure-mx-gateway-mail-gateway-on-postfix/
http://www.linuxpcfix.com/how-to-set-up-a-postfix-mailserver-as-a-backup-mx-mail-exchanger/
http://www.techspacekh.com/configuring-postfix-e-mail-gateway-for-ms-exhchange-server-2013-with-rhelcentos-7/
https://connexeon.com/linux/mailscanner-with-postfix-mailwatch-installation-procedure-on-rhel/
https://ftp.unpad.ac.id/orari/library/library-sw-hw/linux-1/ANTI-VIRUS/MailScanner/docs/MailScanner_conf.htm 

https://sites.google.com/site/wikirolanddelepper/mailscanner
https://prolinuxhub.com/category/mailscanner/
https://linuxhint.com/configuring_postfix_relayhost/
https://linuxhint.com/postfix_mail_queue_management/
https://brokkr.net/tag/postfix/page/2/
https://www.middlewareinventory.com/blog/postfix-relay-office-365/

Relay and Open Relay
https://www.ionos.com/help/server-cloud-infrastructure/server-administration/configuration-of-the-helo-entry-of-your-mail-transfer-agent-mta/

https://anandarajpandey.com/2019/04/09/postfix-forward-all-outgoing-emails-to-one-email-address-on-centos-redhat/

https://anandarajpandey.com/2019/12/30/postfix-how-to-prevent-open-relay/
https://anandarajpandey.com/2014/07/15/how-to-install-apc-in-centos-for-php-better-performance-opcode/

https://mailtrap.io/blog/test-smtp-relay/

https://marcelog.github.io/articles/configure_postfix_forward_all_email_smtp_gateway.html

https://serverfault.com/questions/280585/how-do-i-configure-postfix-to-deliver-mail-for-specified-domains-to-another-host *

https://serverfault.com/questions/710450/postfix-ignoring-relay-recipient-maps

https://edoceo.com/sys/postfix-gateway
https://beginlinux.com/index.php/server_training/mail-server/118-mail-server/1044-postfix-mail-gateway

https://www.mail-archive.com/search?l=postfix-users@postfix.org&q=subject:%22Re%5C%3A+relay_recipient_maps%22&o=newest&f=1

https://stackoverflow.com/questions/62561912/how-to-configure-postfix-with-transport-maps-and-randmap

https://linux.die.net/man/5/transport
https://www.howtoforge.com/how-to-whitelist-hosts-ip-addresses-in-postfix
https://www.akadia.com/services/postfix_uce.html

SpamTitan
https://docs.titanhq.com/en/8792-spamtitan-gateway-admin-guide.html
https://docs.titanhq.com/en/8958-bayes-database.html

Content Filter
http://www.postfix.org/header_checks.5.html
https://www.seaglass.com/postfix/faq.html#dnshnf2
http://www.postfix.org/docs.html
https://selfsolved.com/problems/simple-content-based-filtering-f.html
https://www.akadia.com/services/postfix_mta.html
https://www.akadia.com/services/postfix_uce.html

Email Masquaride:
https://superuser.com/questions/695170/changing-default-from-e-mail-address-for-system-accounts-when-using-sendmail
https://opensource.apple.com/source/postfix/postfix-147/postfix/html/rewrite.html 

DNS DANE:
https://github.com/internetstandards/toolbox-wiki/blob/master/DANE-for-SMTP-how-to.md
https://blog.apnic.net/2019/11/20/better-mail-security-with-dane-for-smtp/
https://dane.sys4.de/

MTA-STS
https://www.digitalocean.com/community/tutorials/how-to-configure-mta-sts-and-tls-reporting-for-your-domain-using-apache-on-ubuntu-18-04 

DANE-TLSA
https://joscor.com/blog/dane-tlsa-tutorial/

Enforce TLS on incoming Mail:
https://serverfault.com/questions/389636/can-you-set-postfix-to-enforce-tls-on-incoming-email-only-from-certain-domains-o

MailScanner
https://sites.google.com/site/wikirolanddelepper/mailscanner/mailwatch 

RBL:
http://www.uceprotect.net/en/rblcheck.php
https://www.blacklistalert.org/
http://www.whitelisted.org/
https://www.dnswl.org/selfservice/?action=register 

Tips:
https://www.hostdime.com/kb/hd/mail

Mail Tester
https://www.mailgenius.com/
https://dmarcguide.globalcyberalliance.org/#/dmarc/aggregates 

Important Command
# openssl version
# openssl version –help
# openssl version -help
# openssl version -a
# openssl version -d

# dovecot --version
# postconf mail_version
# postconf -d | grep mail_version

Comments