main.cf

cd /etc/postfix

 cp /etc/aliases /etc/postfix/aliases

touch body_checks

touch recipient_bcc

touch sender_bcc

touch block_attachments

---

#

readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES

##------------------------------------------------------------------------------------#-

myhostname = mail.worldcm.net

virtual_mailbox_domains = proxy:mysql:/etc/postfix/sql/mysql_virtual_domains_maps.cf

virtual_alias_maps = 

       proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_maps.cf,

       proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_maps.cf,

       proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_catchall_maps.cf

virtual_mailbox_maps = 

       proxy:mysql:/etc/postfix/sql/mysql_virtual_mailbox_maps.cf,

       proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_mailbox_maps.cf

virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/sql/mysql_virtual_mailbox_limit_maps.cf

smtpd_tls_cert_file = /etc/pki/tls/certs/localhost.crt

smtpd_tls_key_file = /etc/pki/tls/certs/localhost.key

smtpd_use_tls = yes

smtpd_tls_auth_only = yes

smtpd_sasl_type = dovecot

smtpd_sasl_path = private/auth

smtpd_sasl_auth_enable = yes

mynetworks = 127.0.0.0/8, [::1]/128

virtual_transport = lmtp:unix:private/dovecot-lmtp

##--------------------------------------------------------------------------------------------#

bounce_queue_lifetime = 1dsmtpd_helo_required = yesdisable_vrfy_command = yes#receive_override_options = no_address_mappings           #enable_original_recipient = no
#SMTPD CLIENT RESTRICTIONSsmtpd_client_restrictions =        permit_mynetworks,#       permit_sasl_authenticated,        check_client_access,        hash:/etc/postfix/access,        reject_unauth_pipelining,        permit_inet_interfaces
#SMTPD ETRN RESTRICTIONSsmtpd_etrn_restrictions =        permit_mynetworks,        permit_sasl_authenticated,        reject
# SMTPD SENDER RESTRICTIONSsmtpd_sender_restrictions =        permit_mynetworks,        permit_sasl_authenticated,        check_sender_access hash:/etc/postfix/access,        reject_non_fqdn_sender,        reject_unknown_sender_domain,        reject_sender_login_mismatch,          reject_unlisted_sender,        reject_unauth_pipelining,        reject_non_fqdn_hostname,        reject_unauth_destination
######Faruqsmtpd_helo_restrictions = permit_mynetworks,     permit_sasl_authenticated,     reject_non_fqdn_hostname,     reject_invalid_hostname,     permit
##### SMTPD RECIPIENT RESTRICTIONS , smtpd_recipient_restrictions =        permit_mynetworks,        permit_sasl_authenticated,        reject_unauth_destination,        reject_invalid_hostname,        check_recipient_access hash:/etc/postfix/access,        check_client_access hash:/etc/postfix/access,        check_sender_access hash:/etc/postfix/access,        reject_unauth_pipelining,        reject_non_fqdn_sender,        reject_unknown_recipient_domain,        reject_non_fqdn_recipient, #     reject_non_fqdn_hostname,        reject_unknown_sender_domain,        reject_unlisted_recipient,        reject_multi_recipient_bounce,    reject_rhsbl_client rhsbl.sorbs.net,    reject_rbl_client dnsbl.sorbs.net,    reject_rbl_client cbl.abuseat.org,    reject_rhsbl_client in.dnsbl.org,    reject_rhsbl_client ex.dnsbl.org,    reject_rbl_client bl.spamcop.net,    reject_rbl_client zen.spamhaus.org,    reject_rbl_client sbl-xbl.spamhaus.org,    reject_rbl_client b.barracudacentral.org,    reject_rbl_client dsn.rfc-ignorant.org,    reject_rbl_client dnsbl-1.uceprotect.net,    reject_rbl_client dnsbl-3.uceprotect.net
#alias_database = hash:/etc/postfix/aliases#alias_maps = hash:/etc/postfix/aliases
body_checks = regexp:/etc/postfix/body_checksheader_checks = regexp:/etc/postfix/header_checksmime_header_checks = regexp:/etc/postfix/block_attachmentssender_bcc_maps = hash:/etc/postfix/sender_bccrecipient_bcc_maps = hash:/etc/postfix/recipient_bccmessage_size_limit = 0mailbox_size_limit = 0receive_override_options = no_address_mappings # content_filter = amavis:[127.0.0.1]:10024

----