Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ######################## /etc/postfix/main.cf #############################
- compatibility_level = 2
- queue_directory = /var/spool/postfix
- command_directory = /usr/sbin
- daemon_directory = /usr/libexec/postfix
- data_directory = /var/lib/postfix
- mail_owner = postfix
- myhostname = mydomain.ru
- mydomain = mydomain.ru
- myorigin = $mydomain
- inet_interfaces = all
- inet_protocols = all
- mydestination = $myhostname, localhost.$mydomain, localhost
- unknown_local_recipient_reject_code = 550
- alias_maps = hash:/etc/aliases
- alias_database = hash:/etc/aliases
- home_mailbox = Maildir/
- 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/samples
- readme_directory = /usr/share/doc/postfix/README_FILES
- smtpd_tls_cert_file = /etc/pki/tls/certs/postfix.pem
- smtpd_tls_key_file = /etc/pki/tls/private/postfix.key
- smtp_tls_CApath = /etc/pki/tls/certs
- smtp_tls_CAfile = /etc/pki/tls/certs/ca-bundle.crt
- meta_directory = /etc/postfix
- shlib_directory = /usr/lib64/postfix
- smtpd_sasl_auth_enable = yes
- smtpd_sasl_type = dovecot
- smtpd_sasl_path = private/auth
- smtpd_tls_security_level = encrypt
- smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
- ####################### /etc/postfix/master.cf #################################
- mtp inet n - n - - smtpd
- submission inet n - n - - smtpd
- -o smtpd_tls_security_level=encrypt
- -o smtpd_sasl_auth_enable=yes
- -o smtpd_sasl_type=dovecot
- -o smtpd_sasl_path=private/auth
- -o smtpd_sasl_security_options=noanonymous
- -o smtpd_sasl_local_domain=$mydomain
- -o smtpd_client_restrictions=permit_sasl_authenticated,reject
- -o smtpd_sender_login_maps=hash:/etc/postfix/virtual
- -o smtpd_sender_restrictions=reject_sender_login_mismatch
- -o smtpd_recipient_restrictions=reject_non_fqdn_recipient,reject_unknown_recipient_domain,permit_sasl_authenticated,reject
- pickup unix n - n 60 1 pickup
- cleanup unix n - n - 0 cleanup
- qmgr unix n - n 300 1 qmgr
- tlsmgr unix - - n 1000? 1 tlsmgr
- rewrite unix - - n - - trivial-rewrite
- bounce unix - - n - 0 bounce
- defer unix - - n - 0 bounce
- trace unix - - n - 0 bounce
- verify unix - - n - 1 verify
- flush unix n - n 1000? 0 flush
- proxymap unix - - n - - proxymap
- proxywrite unix - - n - 1 proxymap
- smtp unix - - n - - smtp
- relay unix - - n - - smtp
- -o syslog_name=postfix/$service_name
- showq unix n - n - - showq
- error unix - - n - - error
- retry unix - - n - - error
- discard unix - - n - - discard
- local unix - n n - - local
- virtual unix - n n - - virtual
- lmtp unix - - n - - lmtp
- anvil unix - - n - 1 anvil
- scache unix - - n - 1 scache
- postlog unix-dgram n - n - 1 postlogd
- ######################## /etc/dovecot/dovecot.conf ############################
- protocols = imap pop3
- dict {
- }
- !include conf.d/*.conf
- ######################### /etc/dovecot/conf.d/10-auth.conf ###########################
- auth_mechanisms = plain login
- !include auth-system.conf.ext
- ######################### /etc/dovecot/conf.d/10-master.conf ##########################
- service imap-login {
- inet_listener imap {
- }
- inet_listener imaps {
- }
- }
- service pop3-login {
- inet_listener pop3 {
- }
- inet_listener pop3s {
- }
- }
- service submission-login {
- inet_listener submission {
- }
- }
- service lmtp {
- unix_listener lmtp {
- }
- }
- service imap {
- }
- service pop3 {
- }
- service submission {
- }
- service auth {
- unix_listener auth-userdb {
- }
- unix_listener /var/spool/postfix/private/auth {
- mode = 0666
- user = postfix
- group = postfix
- }
- }
- service auth-worker {
- }
- service dict {
- unix_listener dict {
- }
- }
- ###############################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement