Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Final-Recipient: rfc822; info@domain.ru
- Action: delayed
- Status: 4.4.1
- Diagnostic-Code: smtp; The recipient server did not accept our requests to connect. Learn more at https://support.google.com/mail/answer/7720
- [mail.domain.ru. ipv6 adress: generic::failed_precondition: connect error (0): error]
- [mail.domain.ru. ipv4 adress: generic::failed_precondition: connect error (0): error]
- # See /usr/share/postfix/main.cf.dist for a commented, more complete version
- # Debian specific: Specifying a file name will cause the first
- # line of that file to be used as the name. The Debian default
- # is /etc/mailname.
- myorigin = $mydomain
- smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
- biff = no
- # appending .domain is the MUA's job.
- append_dot_mydomain = no
- # Uncomment the next line to generate "delayed mail" warnings
- #delay_warning_time = 4h
- readme_directory = no
- # See http://www.postfix.org/COMPATIBILITY_README.html -- default to 2 on
- # fresh installs.
- compatibility_level = 2
- # TLS parameters
- smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
- smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.pem
- smtpd_use_tls=yes
- smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
- smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
- smtpd_tls_security_level = may
- smtpd_sasl_auth_enable = yes
- smtpd_sasl_type = dovecot
- smtpd_sasl_path = private/auth
- smtpd_sasl_security_options = noanonymous
- # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
- # information on enabling SSL in the smtp client.
- smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
- mydomain = domain.ru
- myhostname = mail.domain.ru
- alias_maps = hash:/etc/aliases
- alias_database = hash:/etc/aliases
- mydestination = localhost.$mydomain, localhost, localhost.localdomain
- relayhost =
- mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
- home_mailbox = Maildir/
- mailbox_command = procmail -a "$EXTENSION"
- mailbox_size_limit = 0
- recipient_delimiter = +
- inet_interfaces = all
- inet_protocols = all
- virtual_mailbox_base = /var/vmail
- virtual_mailbox_domains =
- proxy:mysql:/etc/postfix/sql/mysql_virtual_domains_maps.cf
- virtual_alias_maps =
- proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_maps.cf,
- proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_maps.cf,
- proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_catchall_maps.cf
- virtual_mailbox_maps =
- proxy:mysql:/etc/postfix/sql/mysql_virtual_mailbox_maps.cf,
- proxy:mysql:/etc/postfix/sql/mysql_virtual_alias_domain_mailbox_maps.cf
- #-------------------dovecot.conf- - http://www.dovecot.org/doc/dovecot-example.conf
- protocols = imap pop3
- #-------------------10-auth.conf- - http://wiki2.dovecot.org/Authentication
- disable_plaintext_auth = yes
- auth_mechanisms = plain login
- #-------------------10-logging.conf- - http://wiki2.dovecot.org/Logging
- log_path = /var/log/dovecot.log
- info_log_path = /var/log/dovecot-info.log
- debug_log_path = /var/log/dovecot-debug.log
- auth_verbose = yes
- auth_debug = yes
- auth_debug_passwords = yes
- mail_debug = yes
- auth_verbose_passwords = sha1
- verbose_ssl = yes
- #-------------------10-mail.conf- - http://wiki.dovecot.org/MailLocation
- mail_location = maildir:/var/vmail/%d/%n
- mail_uid = 5000
- mail_gid = 5000
- mail_privileged_group = vmail
- #-------------------10-master.conf- - http://wiki.dovecot.org/Services
- service auth {
- unix_listener auth-userdb {
- mode = 0600
- user = vmail
- group = vmail
- }
- unix_listener /var/spool/postfix/private/auth {
- mode = 0666
- user = postfix
- group = postfix
- }
- }
- service imap-login {
- inet_listener imap {
- }
- inet_listener imaps {
- }
- }
- service pop3-login {
- inet_listener pop3 {
- }
- inet_listener pop3s {
- }
- }
- #-------------------10-ssl.conf- - http://wiki.dovecot.org/SSL/DovecotConfiguration
- ssl = yes
- ssl_cert = </etc/dovecot/dovecot.pem
- ssl_key = </etc/dovecot/private/dovecot.pem
- #-------------------15-lda.conf- - http://wiki.dovecot.org/LDA
- protocol lda {
- }
- #-------------------15-mailboxes.conf- - http://wiki2.dovecot.org/MailboxSettings
- namespace inbox {
- inbox = yes
- mailbox Drafts {
- special_use = Drafts
- auto = subscribe
- }
- mailbox Junk {
- special_use = Junk
- auto = subscribe
- }
- mailbox Trash {
- special_use = Trash
- auto = subscribe
- }
- mailbox Sent {
- special_use = Sent
- auto = subscribe
- }
- }
- #-------------------90-plugin.conf- - http://wiki2.dovecot.org/Plugins
- plugin {
- }
- #-------------------auth-sql.conf.ext- - http://wiki2.dovecot.org/AuthDatabase/SQL
- userdb {
- driver = sql
- args = /etc/dovecot/dovecot-sql.conf
- }
- passdb {
- driver = sql
- args = /etc/dovecot/dovecot-sql.conf
- }
- root@example:~# netstat -pel | grep smtp
- tcp 0 0 0.0.0.0:smtp 0.0.0.0:* LISTEN root 845985 28651/master
- tcp6 0 0 [::]:smtp [::]:* LISTEN root 845986 28651/master
- unix 2 [ ACC ] STREAM LISTENING 846084 28651/master private/bsmtp
- unix 2 [ ACC ] STREAM LISTENING 845989 28651/master private/smtpd
- unix 2 [ ACC ] STREAM LISTENING 846042 28651/master private/smtp
- root@example:~# netstat -plnt |grep :25
- tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 28651/master
- tcp6 0 0 :::25 :::* LISTEN 28651/master
- 0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:25
- 0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:110
- 0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:143
- 0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:465
- 0 0 ACCEPT tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:587
- root@example:~# dig mx domain.ru
- ; <<>> DiG 9.10.3-P4-Debian <<>> mx domain.ru
- ;; global options: +cmd
- ;; Got answer:
- ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54832
- ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
- ;; QUESTION SECTION:
- ;domain.ru. IN MX
- ;; ANSWER SECTION:
- domain.ru. 3600 IN MX 10 mail.domain.ru.
- ;; Query time: 51 msec
- ;; SERVER: 77.88.8.8#53(77.88.8.8)
- ;; WHEN: Tue Jul 25 16:52:37 MSK 2017
- ;; MSG SIZE rcvd: 52
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement