Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- queue_directory = /var/spool/postfix
- command_directory = /usr/sbin
- daemon_directory = /usr/libexec/postfix
- data_directory = /var/lib/postfix
- mail_owner = postfix
- inet_interfaces = $myhostname, localhost
- inet_protocols = ipv4
- mydestination = localhost, localhost.localdomain
- unknown_local_recipient_reject_code = 550
- alias_maps = hash:/etc/aliases
- alias_database = hash:/etc/aliases
- debug_peer_level = 2
- debugger_command =
- PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
- ddd $daemon_directory/$process_name $process_id & sleep 5
- sendmail_path = /usr/sbin/sendmail.postfix
- newaliases_path = /usr/bin/newaliases.postfix
- mailq_path = /usr/bin/mailq.postfix
- setgid_group = postdrop
- html_directory = no
- manpage_directory = /usr/share/man
- sample_directory = /usr/share/doc/postfix-2.10.1/samples
- readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
- mynetworks = 127.0.0.0/8, <<<MY IP RANGE>>
- message_size_limit = 30720000
- virtual_alias_domains =
- virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
- virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
- virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
- smtpd_sender_login_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
- virtual_mailbox_base = /home/vmail
- virtual_uid_maps = static:5000
- virtual_gid_maps = static:5000
- smtpd_sasl_type = dovecot
- smtpd_sasl_path = private/auth
- smtpd_sasl_auth_enable = yes
- broken_sasl_auth_clients = yes
- smtpd_sasl_authenticated_header = yes
- disable_vrfy_command = yes
- smtpd_helo_required = yes
- smtpd_delay_reject = yes
- smtpd_helo_restrictions = permit_mynetworks, reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname, permit
- smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
- smtpd_sender_restrictions = permit_mynetworks, reject_non_fqdn_sender, reject_authenticated_sender_login_mismatch, reject_unknown_sender_domain, permit
- smtpd_use_tls = yes
- smtp_tls_security_level = may
- smtpd_tls_cert_file = /etc/letsencrypt/live/<<<MY SERVER HOSTNAME>>>/fullchain.pem
- smtpd_tls_key_file = /etc/letsencrypt/live/<<<MY SERVER HOSTNAME>>>/privkey.pem
- proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks
- virtual_transport = dovecot
- dovecot_destination_recipient_limit = 1
- bounce_queue_lifetime = 0
- protocols = imap pop3
- log_timestamp = "%Y-%m-%d %H:%M:%S "
- mail_location = maildir:/home/vmail/%d/%n/Maildir
- ssl_cert = </etc/letsencrypt/live/<<<MY SERVER HOSTNAME>>>/fullchain.pem
- ssl_key = </etc/letsencrypt/live/<<<MY SERVER HOSTNAME>>>/privkey.pem
- auth_debug = yes
- default_process_limit = 4000
- default_client_limit = 10000
- default_vsz_limit = 512M
- namespace {
- type = private
- separator = .
- prefix = INBOX.
- inbox = yes
- }
- service auth {
- unix_listener auth-master {
- mode = 0600
- user = vmail
- }
- unix_listener /var/spool/postfix/private/auth {
- mode = 0666
- user = postfix
- group = postfix
- }
- user = root
- }
- service auth-worker {
- user = root
- }
- protocol lda {
- log_path = /home/vmail/dovecot-deliver.log
- auth_socket_path = /var/run/dovecot/auth-master
- postmaster_address = postmaster@<<<MY DOMAIN>>>.com
- }
- protocol pop3 {
- pop3_uidl_format = %08Xu%08Xv
- }
- passdb {
- driver = sql
- args = /etc/dovecot/dovecot-sql.conf.ext
- }
- userdb {
- driver = static
- args = uid=5000 gid=5000 home=/home/vmail/%d/%n allow_all_users=yes
- }
- auth_mechanisms = plain login
- !include auth-system.conf.ext
- passdb {
- driver = pam
- # [session=yes] [setcred=yes] [failure_show_msg=yes] [max_requests=<n>]
- # [cache_key=<key>] [<service name>]
- #args = dovecot
- }
- #driver = passwd
- # [blocking=no]
- #args =
- #driver = shadow
- # [blocking=no]
- #args =
- #driver = bsdauth
- # [blocking=no] [cache_key=<key>]
- #args =
- userdb {
- # <doc/wiki/AuthDatabase.Passwd.txt>
- driver = passwd
- # [blocking=no]
- #args =
- # Override fields from passwd
- #override_fields = home=/home/virtual/%u
- }
- #driver = static
- # Can return anything a userdb could normally return. For example:
- #
- # args = uid=500 gid=500 home=/var/mail/%u
- #
- # LDA and LMTP needs to look up users only from the userdb. This of course
- # doesn't work with static userdb because there is no list of users.
- # Normally static userdb handles this by doing a passdb lookup. This works
- # with most passdbs, with PAM being the most notable exception. If you do
- # the user verification another way, you can add allow_all_users=yes to
- # the args in which case the passdb lookup is skipped.
- #
- #args =
Add Comment
Please, Sign In to add comment