Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # The queue_directory specifies the location of the Postfix queue.
- queue_directory = /var/spool/postfix
- # The command_directory parameter specifies the location of all postXXX commands.
- command_directory = /usr/sbin
- # The daemon_directory parameter specifies the location of all Postfix
- # daemon programs (i.e. programs listed in the master.cf file). This
- # directory must be owned by root.
- daemon_directory = /usr/lib64/postfix
- # The data_directory parameter specifies the location of Postfix-writable
- # data files (caches, random numbers). This directory must be owned
- # by the mail_owner account (see below).
- #data_directory = /var/lib/postfix
- # The mail_owner parameter specifies the owner of the Postfix queue and of most Postfix daemon processes.
- mail_owner = mail
- # SENDING MAIL
- #
- # The myorigin parameter specifies the domain that locally-posted
- # mail appears to come from. The default is to append $myhostname,
- # which is fine for small sites. If you run a domain with multiple
- # machines, you should (1) change this to $mydomain and (2) set up
- # a domain-wide alias database that aliases each user to
- # user@that.users.mailhost.
- #
- # For the sake of consistency between sender and recipient addresses,
- # myorigin also specifies the default domain name that is appended
- # to recipient addresses that have no @domain part.
- #
- #myorigin = $myhostname
- #myorigin = $mydomain
- # RECEIVING MAIL
- # The mydestination parameter specifies the list of domains that this
- # machine considers itself the final destination for.
- #mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
- unknown_local_recipient_reject_code = 550
- # The mail_spool_directory parameter specifies the directory where UNIX-style mailboxes are kept.
- #mail_spool_directory = /var/mail
- # The smtpd_banner parameter specifies the text that follows the 220 code in the SMTP server's greeting banner.
- #smtpd_banner = $myhostname ESMTP $mail_name
- smtpd_banner = $myhostname ESMTP UltraSmtp v0.2.3-r2
- # The full pathname of the Postfix sendmail command.
- sendmail_path = /usr/sbin/sendmail
- # The full pathname of the Postfix newaliases command.
- newaliases_path = /usr/bin/newaliases
- # The full pathname of the Postfix mailq command.
- mailq_path = /usr/bin/mailq
- # The group for mail submission and queue management commands.
- setgid_group = postfix
- # The location of the Postfix HTML documentation.
- html_directory = /usr/share/doc/postfix-2.5.5/html
- # The location of the Postfix on-line manual pages.
- manpage_directory = /usr/share/man
- # The location of the Postfix sample configuration files.
- #sample_directory = /etc/postfix
- # The location of the Postfix README files.
- readme_directory = /usr/share/doc/postfix-2.5.5/readme
- # The location of the Postfix mailbox
- home_mailbox = /var/postfix/maildir/
- # --------------- local settings ------------------
- myhostname = *********
- inet_interfaces = localhost, ***********
- inet_protocols = ipv4
- mynetworks = 127.0.0.0/8
- mydestination = localhost.$mydomain, localhost
- #uncomment if you need relay_domains... do not list domains in both relay and virtual
- relay_domains = proxy:mysql:$config_directory/mysql_relay_domains_maps.cf
- # ---------------------- VIRTUAL DOMAINS START ----------------------
- virtual_mailbox_domains = proxy:mysql:$config_directory/mysql_virtual_domains_maps.cf
- virtual_mailbox_base = /var/mail
- virtual_mailbox_maps = proxy:mysql:$config_directory/mysql_virtual_mailbox_maps.cf
- virtual_alias_maps = proxy:mysql:$config_directory/mysql_virtual_alias_maps.cf
- virtual_minimum_uid = 0
- virtual_uid_maps = static:8
- #virtual_gid_maps = static:8
- virtual_transport = dovecot
- dovecot_destination_recipient_limit = 1
- # ---------------------- VIRTUAL DOMAINS END ----------------------
- # ---------------------- SASL PART START ----------------------
- # note smtpd_* it's for desktop smtp client to smtp server
- smtpd_sasl_auth_enable = yes
- smtpd_sasl_local_domain = $myhostname
- smtpd_sasl_exceptions_networks = $mynetworks
- smtpd_sasl_security_options = noanonymous
- broken_sasl_auth_clients = yes
- smtpd_sasl_type = dovecot
- smtpd_sasl_path = private/auth
- smtpd_use_tls = yes
- smtpd_tls_loglevel = 0
- smtpd_tls_received_header = yes
- # ---------------------- SASL PART END ----------------------
- # ---------------------- TLS PART START ----------------------
- # note smtp-* it's for smtp to smtp
- smtp_tls_CAfile = /etc/postfix/ssl/cacert.pem
- smtp_tls_cert_file = /etc/postfix/ssl/cert.pem
- smtp_tls_key_file = /etc/postfix/ssl/key.pem
- smtp_use_tls = yes
- smtp_tls_note_starttls_offer = yes
- #Postfix 2.5 or greater must use:
- #smtp_tls_session_cache_database = btree:$data_directory/smtp_tls_session_cache
- smtp_tls_session_cache_database = btree:/var/spool/postfix/smtp_tls_session_cache
- #smtp_tls_security_level = may
- smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
- smtpd_tls_cert_file = /etc/postfix/ssl/cert.pem
- smtpd_tls_key_file = /etc/postfix/ssl/key.pem
- # ---------------------- TLS PART END ----------------------
- # --------------------- Anti-spam START --------------------
- smtpd_helo_required = yes
- smtpd_delay_reject = no
- disable_vrfy_command = yes
- #smtpd_recipient_restrictions =
- # permit_sasl_authenticated,
- # permit_mynetworks,
- # reject_unauth_destination,
- # reject_invalid_hostname,
- # reject_non_fqdn_sender,
- # reject_non_fqdn_recipient,
- # reject_unknown_recipient_domain,
- # reject_unknown_sender_domain,
- # reject_unauth_pipelining
- #smtpd_helo_restrictions =
- # permit_mynetworks,
- # reject_invalid_hostname,
- # reject_unknown_helo_hostname,
- # reject_non_fqdn_hostname
- # --------------------- Anti-spam END --------------------
- sample_directory = /etc/postfix
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement