

etc/postfix/sql/mysql_virtual_mailbox_maps.cf user = postfix #additional_conditions = and active = '1' etc/postfix/sql/mysql_virtual_mailbox_limit_maps.cf user = postfix etc/postfix/sql/mysql_virtual_alias_maps.cf user = postfix etc/postfix/sql/mysql_relay_domains_maps.cf user = postfixĪdditional_conditions = and backupmx = '1' You need to add create the following files: Smptd_tls_session_cache_database=btree:/var/spool/postfix/smtpd_tls_cache Virtual_mailbox_limit_maps=mysql:/etc/postfix/sql/mysql_virtual_mailbox_limit_maps.cf
Postfix spamassassin free#
Virtual_maildir_limit_message=Sorry, Your maildir has overdrawn your diskspace quota, please free some space of your mailbox and try again. Virtual_mailbox_maps = mysql:/etc/postfix/sql/mysql_virtual_mailbox_maps.cf Virtual_mailbox_domains = mysql:/etc/postfix/sql/mysql_virtual_domains_maps.cf Virtual_alias_maps = mysql:/etc/postfix/sql/mysql_virtual_alias_maps.cf Smtpd_tls_key_file = /etc/pki/tls/private/ Smtpd_tls_cert_file = /etc/pki/tls/certs/ Smtpd_sasl_security_options = noanonymous Smtpd_recipient_restrictions = permit_sasl_authenticated,Ĭheck_policy_service unix:postgrey/socket, Smtpd_helo_restrictions = permit_mynetworks, Sendmail_path = /usr/sbin/sendmail.postfix Sample_directory = /usr/share/doc/postfix-2.10.1/samples Readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES Newaliases_path = /usr/bin/newaliases.postfix Mydestination = $myhostname, localhost.$mydomain, localhost When that's done we need to edit the /etc/postfix/main.cf to match your needed configuration: alias_database = hash:/etc/aliasesĭebugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin$daemon_directory/$process_name $process_id & sleep 5
Postfix spamassassin install#
Will achieve that using yum: #yum -y install postfix dovecot dovecot-mysql mariadb-server We will make sure that we have all the related packages installed. We will be using in this example a mysql backend. After we are able to successfully send and retrieve e-mails we will securing the server with postgrey, spamassassin and clamav antivirus. In this post we will install a mail server using virtual users with authentication using dovecot and ssl.
