1 最后由 ybbao (2015-04-14 08:50:33) 编辑

主题: SSL的怪异现象

==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.9.0
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):MySQL
- 使用的 Linux/BSD 发行版名称及版本号:Centos 6 32bit
- 与您的问题相关的日志信息:
====

按照官方技术点,开启了SSL 465端口,Outlook测试通过

但在软件连接的时候出现了错误

按照debug要求,开启了ip_debug

出错信息如下:

Apr 13 23:31:30 mail postfix/smtpd[13491]: warning: numeric hostname: 162.218.119.38
Apr 13 23:31:30 mail postfix/smtpd[13491]: connect from unknown[162.218.119.38]
Apr 13 23:31:30 mail postfix/smtpd[13491]: smtp_stream_setup: maxtime=300 enable_deadline=0
Apr 13 23:31:30 mail postfix/smtpd[13491]: send attr request = seed
Apr 13 23:31:30 mail postfix/smtpd[13491]: send attr size = 32
Apr 13 23:31:30 mail postfix/smtpd[13491]: private/tlsmgr: wanted attribute: status
Apr 13 23:31:30 mail postfix/smtpd[13491]: input attribute name: status
Apr 13 23:31:30 mail postfix/smtpd[13491]: input attribute value: 0
Apr 13 23:31:30 mail postfix/smtpd[13491]: private/tlsmgr: wanted attribute: seed
Apr 13 23:31:30 mail postfix/smtpd[13491]: input attribute name: seed
Apr 13 23:31:30 mail postfix/smtpd[13491]: input attribute value: qJT4MuFsG+9O8+dpR/6YJnDXSCvqKYlbdxDVxymQ/8A=
Apr 13 23:31:30 mail postfix/smtpd[13491]: private/tlsmgr: wanted attribute: (list terminator)
Apr 13 23:31:30 mail postfix/smtpd[13491]: input attribute name: (end)
Apr 13 23:31:30 mail postfix/smtpd[13491]: xsasl_dovecot_server_create: SASL service=smtp, realm=(null)
Apr 13 23:31:30 mail postfix/smtpd[13491]: name_mask: noanonymous
Apr 13 23:31:30 mail postfix/smtpd[13491]: xsasl_dovecot_server_connect: Connecting
Apr 13 23:31:30 mail postfix/smtpd[13491]: xsasl_dovecot_server_connect: auth reply: VERSION?1?1
Apr 13 23:31:30 mail postfix/smtpd[13491]: xsasl_dovecot_server_connect: auth reply: MECH?PLAIN?plaintext
Apr 13 23:31:30 mail postfix/smtpd[13491]: name_mask: plaintext
Apr 13 23:31:30 mail postfix/smtpd[13491]: xsasl_dovecot_server_connect: auth reply: MECH?LOGIN?plaintext
Apr 13 23:31:30 mail postfix/smtpd[13491]: name_mask: plaintext
Apr 13 23:31:30 mail postfix/smtpd[13491]: xsasl_dovecot_server_connect: auth reply: SPID?13493
Apr 13 23:31:30 mail postfix/smtpd[13491]: xsasl_dovecot_server_connect: auth reply: CUID?1
Apr 13 23:31:30 mail postfix/smtpd[13491]: xsasl_dovecot_server_connect: auth reply: COOKIE?97da2d9849505fa30c8ed9a2036577e8
Apr 13 23:31:30 mail postfix/smtpd[13491]: xsasl_dovecot_server_connect: auth reply: DONE
Apr 13 23:31:30 mail postfix/smtpd[13491]: xsasl_dovecot_server_mech_filter: keep mechanism: PLAIN
Apr 13 23:31:30 mail postfix/smtpd[13491]: xsasl_dovecot_server_mech_filter: keep mechanism: LOGIN
Apr 13 23:31:30 mail postfix/smtpd[13491]: match_hostname: unknown ~? 127.0.0.0/8
Apr 13 23:31:30 mail postfix/smtpd[13491]: match_hostaddr: 162.218.119.38 ~? 127.0.0.0/8
Apr 13 23:31:30 mail postfix/smtpd[13491]: match_list_match: unknown: no match
Apr 13 23:31:30 mail postfix/smtpd[13491]: match_list_match: 162.218.119.38: no match
Apr 13 23:31:30 mail postfix/smtpd[13491]: auto_clnt_open: connected to private/anvil
Apr 13 23:31:30 mail postfix/smtpd[13491]: send attr request = connect
Apr 13 23:31:30 mail postfix/smtpd[13491]: send attr ident = smtps:162.218.119.38
Apr 13 23:31:30 mail postfix/smtpd[13491]: private/anvil: wanted attribute: status
Apr 13 23:31:30 mail postfix/smtpd[13491]: input attribute name: status
Apr 13 23:31:30 mail postfix/smtpd[13491]: input attribute value: 0
Apr 13 23:31:30 mail postfix/smtpd[13491]: private/anvil: wanted attribute: count
Apr 13 23:31:30 mail postfix/smtpd[13491]: input attribute name: count
Apr 13 23:31:30 mail postfix/smtpd[13491]: input attribute value: 1
Apr 13 23:31:30 mail postfix/smtpd[13491]: private/anvil: wanted attribute: rate
Apr 13 23:31:30 mail postfix/smtpd[13491]: input attribute name: rate
Apr 13 23:31:30 mail postfix/smtpd[13491]: input attribute value: 1
Apr 13 23:31:30 mail postfix/smtpd[13491]: private/anvil: wanted attribute: (list terminator)
Apr 13 23:31:30 mail postfix/smtpd[13491]: input attribute name: (end)
Apr 13 23:31:30 mail postfix/smtpd[13491]: > unknown[162.218.119.38]: 220 mail.yun.pm ESMTP Postfix
Apr 13 23:31:30 mail postfix/smtpd[13491]: watchdog_pat: 0x2469220
Apr 13 23:31:30 mail postfix/smtpd[13491]: smtp_get: EOF
Apr 13 23:31:30 mail postfix/smtpd[13491]: match_hostname: unknown ~? 127.0.0.0/8
Apr 13 23:31:30 mail postfix/smtpd[13491]: match_hostaddr: 162.218.119.38 ~? 127.0.0.0/8
Apr 13 23:31:30 mail postfix/smtpd[13491]: match_list_match: unknown: no match
Apr 13 23:31:30 mail postfix/smtpd[13491]: match_list_match: 162.218.119.38: no match
Apr 13 23:31:30 mail postfix/smtpd[13491]: send attr request = disconnect
Apr 13 23:31:30 mail postfix/smtpd[13491]: send attr ident = smtps:162.218.119.38
Apr 13 23:31:30 mail postfix/smtpd[13491]: private/anvil: wanted attribute: status
Apr 13 23:31:30 mail postfix/smtpd[13491]: input attribute name: status
Apr 13 23:31:30 mail postfix/smtpd[13491]: input attribute value: 0
Apr 13 23:31:30 mail postfix/smtpd[13491]: private/anvil: wanted attribute: (list terminator)
Apr 13 23:31:30 mail postfix/smtpd[13491]: input attribute name: (end)
Apr 13 23:31:30 mail postfix/smtpd[13491]: lost connection after CONNECT from unknown[162.218.119.38]
Apr 13 23:31:30 mail postfix/smtpd[13491]: disconnect from unknown[162.218.119.38]
Apr 13 23:34:50 mail postfix/anvil[13494]: statistics: max connection rate 1/60s for (smtps:162.218.119.38) at Apr 13 23:31:30
Apr 13 23:34:50 mail postfix/anvil[13494]: statistics: max connection count 1 for (smtps:162.218.119.38) at Apr 13 23:31:30
Apr 13 23:34:50 mail postfix/anvil[13494]: statistics: max cache size 1 at Apr 13 23:31:30

Post's attachments

aa.txt 4.92 kb, 3 downloads since 2015-04-14 

master.cf 7.76 kb, 2 downloads since 2015-04-14 

You don't have the permssions to download the attachments of this post.

2 最后由 ybbao (2015-04-14 11:15:36) 编辑

回复: SSL的怪异现象

Debug_List_log

Apr 14 11:09:56 mail postfix/smtpd[8092]: connect from unknown[183.54.238.204]
Apr 14 11:09:56 mail postfix/smtpd[8092]: smtp_stream_setup: maxtime=300 enable_deadline=0
Apr 14 11:09:56 mail postfix/smtpd[8092]: send attr request = seed
Apr 14 11:09:56 mail postfix/smtpd[8092]: send attr size = 32
Apr 14 11:09:56 mail postfix/smtpd[8092]: private/tlsmgr: wanted attribute: status
Apr 14 11:09:56 mail postfix/smtpd[8092]: input attribute name: status
Apr 14 11:09:56 mail postfix/smtpd[8092]: input attribute value: 0
Apr 14 11:09:56 mail postfix/smtpd[8092]: private/tlsmgr: wanted attribute: seed
Apr 14 11:09:56 mail postfix/smtpd[8092]: input attribute name: seed
Apr 14 11:09:56 mail postfix/smtpd[8092]: input attribute value: w9Vi3AXax9lpGFbP7edPBp+zr2vc0bk4eXKlweEhmB4=
Apr 14 11:09:56 mail postfix/smtpd[8092]: private/tlsmgr: wanted attribute: (list terminator)
Apr 14 11:09:56 mail postfix/smtpd[8092]: input attribute name: (end)
Apr 14 11:09:56 mail postfix/smtpd[8092]: send attr request = tktkey
Apr 14 11:09:56 mail postfix/smtpd[8092]: send attr keyname = [data 0 bytes]
Apr 14 11:09:56 mail postfix/smtpd[8092]: private/tlsmgr: wanted attribute: status
Apr 14 11:09:56 mail postfix/smtpd[8092]: input attribute name: status
Apr 14 11:09:56 mail postfix/smtpd[8092]: input attribute value: 0
Apr 14 11:09:56 mail postfix/smtpd[8092]: private/tlsmgr: wanted attribute: keybuf
Apr 14 11:09:56 mail postfix/smtpd[8092]: input attribute name: keybuf
Apr 14 11:09:56 mail postfix/smtpd[8092]: input attribute value: wFox6rvp/pFPyaGHgUocMbU1/Dsn8aqmbYomHHVoSxk1FKoWtPpoOrJbJmIL3AzlC4wsVQ==
Apr 14 11:09:56 mail postfix/smtpd[8092]: private/tlsmgr: wanted attribute: (list terminator)
Apr 14 11:09:56 mail postfix/smtpd[8092]: input attribute name: (end)
Apr 14 11:09:56 mail postfix/smtpd[8092]: xsasl_dovecot_server_create: SASL service=smtp, realm=(null)
Apr 14 11:09:56 mail postfix/smtpd[8092]: name_mask: noanonymous
Apr 14 11:09:56 mail postfix/smtpd[8092]: xsasl_dovecot_server_connect: Connecting
Apr 14 11:09:56 mail postfix/smtpd[8092]: xsasl_dovecot_server_connect: auth reply: VERSION?1?1
Apr 14 11:09:56 mail postfix/smtpd[8092]: xsasl_dovecot_server_connect: auth reply: MECH?PLAIN?plaintext
Apr 14 11:09:56 mail postfix/smtpd[8092]: name_mask: plaintext
Apr 14 11:09:56 mail postfix/smtpd[8092]: xsasl_dovecot_server_connect: auth reply: MECH?LOGIN?plaintext
Apr 14 11:09:56 mail postfix/smtpd[8092]: name_mask: plaintext
Apr 14 11:09:56 mail postfix/smtpd[8092]: xsasl_dovecot_server_connect: auth reply: SPID?7816
Apr 14 11:09:56 mail postfix/smtpd[8092]: xsasl_dovecot_server_connect: auth reply: CUID?8
Apr 14 11:09:56 mail postfix/smtpd[8092]: xsasl_dovecot_server_connect: auth reply: COOKIE?e806de8633ab9d9ebbec91304294e2f1
Apr 14 11:09:56 mail postfix/smtpd[8092]: xsasl_dovecot_server_connect: auth reply: DONE
Apr 14 11:09:56 mail postfix/smtpd[8092]: xsasl_dovecot_server_mech_filter: keep mechanism: PLAIN
Apr 14 11:09:56 mail postfix/smtpd[8092]: xsasl_dovecot_server_mech_filter: keep mechanism: LOGIN
Apr 14 11:09:56 mail postfix/smtpd[8092]: match_hostname: unknown ~? 127.0.0.0/8
Apr 14 11:09:56 mail postfix/smtpd[8092]: match_hostaddr: 183.54.238.204 ~? 127.0.0.0/8
Apr 14 11:09:56 mail postfix/smtpd[8092]: match_hostname: unknown ~? 162.218.0.0/16
Apr 14 11:09:56 mail postfix/smtpd[8092]: match_hostaddr: 183.54.238.204 ~? 162.218.0.0/16
Apr 14 11:09:56 mail postfix/smtpd[8092]: match_list_match: unknown: no match
Apr 14 11:09:56 mail postfix/smtpd[8092]: match_list_match: 183.54.238.204: no match
Apr 14 11:09:56 mail postfix/smtpd[8092]: auto_clnt_open: connected to private/anvil
Apr 14 11:09:56 mail postfix/smtpd[8092]: send attr request = connect
Apr 14 11:09:56 mail postfix/smtpd[8092]: send attr ident = smtps:183.54.238.204
Apr 14 11:09:56 mail postfix/smtpd[8092]: private/anvil: wanted attribute: status
Apr 14 11:09:56 mail postfix/smtpd[8092]: input attribute name: status
Apr 14 11:09:56 mail postfix/smtpd[8092]: input attribute value: 0
Apr 14 11:09:56 mail postfix/smtpd[8092]: private/anvil: wanted attribute: count
Apr 14 11:09:56 mail postfix/smtpd[8092]: input attribute name: count
Apr 14 11:09:56 mail postfix/smtpd[8092]: input attribute value: 1
Apr 14 11:09:56 mail postfix/smtpd[8092]: private/anvil: wanted attribute: rate
Apr 14 11:09:56 mail postfix/smtpd[8092]: input attribute name: rate
Apr 14 11:09:56 mail postfix/smtpd[8092]: input attribute value: 1
Apr 14 11:09:56 mail postfix/smtpd[8092]: private/anvil: wanted attribute: (list terminator)
Apr 14 11:09:56 mail postfix/smtpd[8092]: input attribute name: (end)
Apr 14 11:09:56 mail postfix/smtpd[8092]: > unknown[183.54.238.204]: 220 mail.yun.pm ESMTP Postfix
Apr 14 11:09:56 mail postfix/smtpd[8092]: watchdog_pat: 0x13132e8
Apr 14 11:09:56 mail postfix/smtpd[8092]: warning: TLS library problem: error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca:s3_pkt.c:1259:SSL alert number 48:
Apr 14 11:09:56 mail postfix/smtpd[8092]: smtp_get: EOF
Apr 14 11:09:56 mail postfix/smtpd[8092]: match_hostname: unknown ~? 127.0.0.0/8
Apr 14 11:09:56 mail postfix/smtpd[8092]: match_hostaddr: 183.54.238.204 ~? 127.0.0.0/8
Apr 14 11:09:56 mail postfix/smtpd[8092]: match_hostname: unknown ~? 162.218.0.0/16
Apr 14 11:09:56 mail postfix/smtpd[8092]: match_hostaddr: 183.54.238.204 ~? 162.218.0.0/16
Apr 14 11:09:56 mail postfix/smtpd[8092]: match_list_match: unknown: no match
Apr 14 11:09:56 mail postfix/smtpd[8092]: match_list_match: 183.54.238.204: no match
Apr 14 11:09:56 mail postfix/smtpd[8092]: send attr request = disconnect
Apr 14 11:09:56 mail postfix/smtpd[8092]: send attr ident = smtps:183.54.238.204
Apr 14 11:09:56 mail postfix/smtpd[8092]: private/anvil: wanted attribute: status
Apr 14 11:09:56 mail postfix/smtpd[8092]: input attribute name: status
Apr 14 11:09:56 mail postfix/smtpd[8092]: input attribute value: 0
Apr 14 11:09:56 mail postfix/smtpd[8092]: private/anvil: wanted attribute: (list terminator)
Apr 14 11:09:56 mail postfix/smtpd[8092]: input attribute name: (end)
Apr 14 11:09:56 mail postfix/smtpd[8092]: lost connection after CONNECT from unknown[183.54.238.204]
Apr 14 11:09:56 mail postfix/smtpd[8092]: disconnect from unknown[183.54.238.204]

3 最后由 ybbao (2015-04-14 11:15:23) 编辑

回复: SSL的怪异现象

postconf -n记录

alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
allow_min_user = no
allow_percent_hack = no
biff = no
bounce_queue_lifetime = 4h
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
debug_peer_list = 162.218.119.38,183.54.238.204
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5
delay_warning_time = 0h
disable_vrfy_command = yes
dovecot_destination_recipient_limit = 1
enable_original_recipient = no
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
inet_protocols = all
lmtp_tls_mandatory_protocols = !SSLv2 !SSLv3
lmtp_tls_protocols = !SSLv2 !SSLv3
mail_owner = postfix
mailbox_command = /usr/libexec/dovecot/deliver
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
maximal_backoff_time = 4000s
maximal_queue_lifetime = 4h
message_size_limit = 15728640
minimal_backoff_time = 300s
mydestination = $myhostname, localhost, localhost.localdomain, localhost.$myhostname
mydomain = yun.pm
myhostname = mail.yun.pm
mynetworks = 127.0.0.0/8,162.218.0.0/16
mynetworks_style = host
myorigin = mail.yun.pm
newaliases_path = /usr/bin/newaliases.postfix
proxy_read_maps = $canonical_maps $lmtp_generic_maps $local_recipient_maps $mydestination $mynetworks $recipient_bcc_maps $recipient_canonical_maps $relay_domains $relay_recipient_maps $relocated_maps $sender_bcc_maps $sender_canonical_maps $smtp_generic_maps $smtpd_sender_login_maps $transport_maps $virtual_alias_domains $virtual_alias_maps $virtual_mailbox_domains $virtual_mailbox_maps $smtpd_sender_restrictions
queue_directory = /var/spool/postfix
queue_run_delay = 300s
readme_directory = /usr/share/doc/postfix-2.11.0/README_FILES
recipient_bcc_maps = proxy:mysql:/etc/postfix/mysql/recipient_bcc_maps_user.cf, proxy:mysql:/etc/postfix/mysql/recipient_bcc_maps_domain.cf
recipient_delimiter = +
relay_domains = $mydestination, proxy:mysql:/etc/postfix/mysql/relay_domains.cf
sample_directory = /usr/share/doc/postfix-2.11.0/samples
sender_bcc_maps = proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_user.cf, proxy:mysql:/etc/postfix/mysql/sender_bcc_maps_domain.cf
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp-amavis_destination_recipient_limit = 1
smtp_data_init_timeout = 240s
smtp_data_xfer_timeout = 600s
smtp_tls_CAfile = $smtpd_tls_CAfile
smtp_tls_loglevel = 0
smtp_tls_mandatory_protocols = !SSLv2 !SSLv3
smtp_tls_note_starttls_offer = yes
smtp_tls_protocols = !SSLv2 !SSLv3
smtp_tls_security_level = may
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_end_of_data_restrictions = check_policy_service inet:127.0.0.1:7777, check_policy_service inet:127.0.0.1:10031,
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname, check_helo_access pcre:/etc/postfix/helo_access.pcre
smtpd_recipient_restrictions = reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unlisted_recipient, check_policy_service inet:127.0.0.1:7777, check_policy_service inet:127.0.0.1:10031, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_reject_unlisted_recipient = yes
smtpd_reject_unlisted_sender = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_path = private/dovecot-auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_login_maps = proxy:mysql:/etc/postfix/mysql/sender_login_maps.cf
smtpd_sender_restrictions = permit_mynetworks, reject_sender_login_mismatch, permit_sasl_authenticated
smtpd_tls_CAfile = /etc/pki/tls/certs/iRedMail.crt
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/pki/tls/certs/iRedMail.crt
smtpd_tls_key_file = /etc/pki/tls/private/iRedMail.key
smtpd_tls_loglevel = 0
smtpd_tls_mandatory_protocols = !SSLv2 !SSLv3
smtpd_tls_protocols = !SSLv2 !SSLv3
smtpd_tls_security_level = may
swap_bangpath = no
tls_random_source = dev:/dev/urandom
transport_maps = proxy:mysql:/etc/postfix/mysql/transport_maps_user.cf, proxy:mysql:/etc/postfix/mysql/transport_maps_domain.cf
unknown_local_recipient_reject_code = 550
virtual_alias_domains =
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql/virtual_alias_maps.cf, proxy:mysql:/etc/postfix/mysql/domain_alias_maps.cf, proxy:mysql:/etc/postfix/mysql/catchall_maps.cf, proxy:mysql:/etc/postfix/mysql/domain_alias_catchall_maps.cf
virtual_gid_maps = static:2000
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql/virtual_mailbox_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql/virtual_mailbox_maps.cf
virtual_minimum_uid = 2000
virtual_transport = dovecot
virtual_uid_maps = static:2000

回复: SSL的怪异现象

/etc/postfix/master.cf  配置文档

#
# Postfix master process configuration file.  For details on the format
# of the file, see the master(5) manual page (command: "man 5 master" or
# on-line: http://www.postfix.org/master.5.html).
#
# Do not forget to execute "postfix reload" after editing this file.
#
# ==========================================================================
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
# ==========================================================================
smtp      inet  n       -       -       -       -       smtpd
#smtp      inet  n       -       n       -       1       postscreen
#smtpd     pass  -       -       n       -       -       smtpd
#dnsblog   unix  -       -       n       -       0       dnsblog
#tlsproxy  unix  -       -       n       -       0       tlsproxy
#submission inet n       -       n       -       -       smtpd
#  -o syslog_name=postfix/submission
#  -o smtpd_tls_security_level=encrypt
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_reject_unlisted_recipient=no
#  -o smtpd_client_restrictions=$mua_client_restrictions
#  -o smtpd_helo_restrictions=$mua_helo_restrictions
#  -o smtpd_sender_restrictions=$mua_sender_restrictions
#  -o smtpd_recipient_restrictions=
#  -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
smtps     inet  n       -       n       -       -       smtpd
  -o smtpd_tls_wrappermode=yes
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#smtps     inet  n       -       n       -       -       smtpd
#  -o syslog_name=postfix/smtps
#  -o smtpd_tls_wrappermode=yes
#  -o smtpd_sasl_auth_enable=yes
#  -o smtpd_reject_unlisted_recipient=no
#  -o smtpd_client_restrictions=$mua_client_restrictions
#  -o smtpd_helo_restrictions=$mua_helo_restrictions
#  -o smtpd_sender_restrictions=$mua_sender_restrictions
#  -o smtpd_recipient_restrictions=
#  -o smtpd_relay_restrictions=permit_sasl_authenticated,reject
#  -o milter_macro_daemon_name=ORIGINATING
#628       inet  n       -       n       -       -       qmqpd
pickup    unix  n       -       n       60      1       pickup
cleanup   unix  n       -       n       -       0       cleanup
qmgr      unix  n       -       n       300     1       qmgr
#qmgr     unix  n       -       n       300     1       oqmgr
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 smtp_helo_timeout=5 -o smtp_connect_timeout=5
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
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent.  See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
#maildrop  unix  -       n       n       -       -       pipe
#  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
#
# ====================================================================
#
# Recent Cyrus versions can use the existing "lmtp" master.cf entry.
#
# Specify in cyrus.conf:
#   lmtp    cmd="lmtpd -a" listen="localhost:lmtp" proto=tcp4
#
# Specify in main.cf one or more of the following:
#  mailbox_transport = lmtp:inet:localhost
#  virtual_transport = lmtp:inet:localhost
#
# ====================================================================
#
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
#
#cyrus     unix  -       n       n       -       -       pipe
#  user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
#
# ====================================================================
#
# Old example of delivery via Cyrus.
#
#old-cyrus unix  -       n       n       -       -       pipe
#  flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
#
# ====================================================================
#
# See the Postfix UUCP_README file for configuration details.
#
#uucp      unix  -       n       n       -       -       pipe
#  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# ====================================================================
#
# Other external delivery methods.
#
#ifmail    unix  -       n       n       -       -       pipe
#  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
#
#bsmtp     unix  -       n       n       -       -       pipe
#  flags=Fq. user=bsmtp argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
#
#scalemail-backend unix -       n       n       -       2       pipe
#  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store
#  ${nexthop} ${user} ${extension}
#
#mailman   unix  -       n       n       -       -       pipe
#  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
#  ${nexthop} ${user}
submission inet n       -       n       -       -       smtpd
  -o smtpd_tls_security_level=encrypt
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_client_restrictions=permit_mynetworks,permit_sasl_authenticated,reject
#  -o content_filter=smtp-amavis:[127.0.0.1]:10026

# Use dovecot deliver program as LDA.
dovecot unix    -       n       n       -       -      pipe
    flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/deliver -f ${sender} -d ${user}@${domain} -m ${extension}

smtp-amavis unix -  -   -   -   4  smtp
    -o smtp_data_done_timeout=1200
    -o smtp_send_xforward_command=yes
    -o disable_dns_lookups=yes
    -o max_use=20

127.0.0.1:10025 inet n  -   -   -   -  smtpd
    -o content_filter=
    -o mynetworks_style=host
    -o mynetworks=127.0.0.0/8
    -o local_recipient_maps=
    -o relay_recipient_maps=
    -o strict_rfc821_envelopes=yes
    -o smtp_tls_security_level=none
    -o smtpd_tls_security_level=none
    -o smtpd_restriction_classes=
    -o smtpd_delay_reject=no
    -o smtpd_client_restrictions=permit_mynetworks,reject
    -o smtpd_helo_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o smtpd_end_of_data_restrictions=
    -o smtpd_error_sleep_time=0
    -o smtpd_soft_error_limit=1001
    -o smtpd_hard_error_limit=1000
    -o smtpd_client_connection_count_limit=0
    -o smtpd_client_connection_rate_limit=0
    -o receive_override_options=no_header_body_checks,no_unknown_recipient_checks,no_address_mappings