Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- EHLO paolo9785.com
- 250-mail.paolo9785.com
- 250-PIPELINING
- 250-SIZE 30720000
- 250-VRFY
- 250-ETRN
- 250-STARTTLS
- 250-AUTH PLAIN
- 250-AUTH=PLAIN
- 250-ENHANCEDSTATUSCODES
- 250-8BITMIME
- 250 DSN
- AUTH LOGIN
- 535 5.7.8 Error: authentication failed: Invalid authentication mechanism
- firewall-cmd --list-all
- public (active)
- target: default
- icmp-block-inversion: no
- interfaces: eth0
- sources:
- services: dhcpv6-client http https imaps pop3s smtp ssh
- ports: 110/tcp 465/tcp 587/tcp 25/tcp 143/tcp 3306/tcp 9000/tcp 993/tcp
- protocols:
- masquerade: no
- forward-ports:
- sourceports:
- icmp-blocks:
- rich rules:
- systemctl status postfix -l
- ● postfix.service - Postfix Mail Transport Agent
- Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)
- Active: active (running) since Mon 2017-07-24 23:11:10 CEST; 28min ago
- Process: 6717 ExecStop=/usr/sbin/postfix stop (code=exited, status=0/SUCCESS)
- Process: 6775 ExecStart=/usr/sbin/postfix start (code=exited, status=0/SUCCESS)
- Process: 6769 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)
- Process: 6758 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=0/SUCCESS)
- Main PID: 7098 (master)
- CGroup: /system.slice/postfix.service
- ├─ 7098 /usr/libexec/postfix/master -w
- ├─ 7107 pickup -l -t unix -u
- ├─ 7108 qmgr -l -t unix -u
- ├─22635 smtpd -n smtp -t inet -u -o stress= -s 2
- ├─22872 anvil -l -t unix -u
- ├─29678 tlsmgr -l -t unix -u
- └─32164 proxymap -t unix -u
- Jul 24 23:28:27 mail.paolo9785.com postfix/qmgr[7108]: 1992D5EE6B: removed
- Jul 24 23:28:27 mail.paolo9785.com postfix/smtpd[19686]: disconnect from mail-ua0-f182.google.com[209.85.217.182]
- Jul 24 23:33:40 mail.paolo9785.com postfix/submission/smtpd[32159]: fatal: unexpected command-line argument: smtps
- Jul 24 23:33:41 mail.paolo9785.com postfix/master[7098]: warning: process /usr/libexec/postfix/smtpd pid 32159 exit status 1
- Jul 24 23:33:41 mail.paolo9785.com postfix/master[7098]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
- Jul 24 23:35:12 mail.paolo9785.com postfix/submission/smtpd[31465]: fatal: unexpected command-line argument: smtps
- Jul 24 23:35:13 mail.paolo9785.com postfix/master[7098]: warning: process /usr/libexec/postfix/smtpd pid 31465 exit status 1
- Jul 24 23:35:13 mail.paolo9785.com postfix/master[7098]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
- Jul 24 23:36:04 mail.paolo9785.com postfix/smtpd[22635]: connect from unknown[5.102.9.124]
- Jul 24 23:36:35 mail.paolo9785.com postfix/smtpd[22635]: warning: unknown[5.102.9.124]: SASL LOGIN authentication failed: Invalid authentication mechanism
- readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
- myhostname = mail.paolo9785.com
- mydomain = paolo9785.com
- relay_host = paolo9785.com
- myorigin = paolo9785.com
- home_mailbox = mail/
- mynetworks = 127.0.0.0/8
- inet_interfaces = all
- inet_protocols = all
- #inet_interfaces = localhost
- mydestination = mail.paolo9785.com, localhost.paolo9785.com, localhost
- smtpd_sasl_type = dovecot
- smtpd_sasl_path = private/auth
- smtpd_sasl_local_domain =
- smtpd_sasl_security_options = noanonymous
- broken_sasl_auth_clients = yes
- smtpd_sasl_auth_enable = yes
- smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
- smtp_tls_security_level = may
- smtpd_tls_security_level = may
- smtp_tls_note_starttls_offer = yes
- smtpd_tls_loglevel = 1
- smtpd_tls_key_file = /etc/postfix/ssl/server.key
- smtpd_tls_cert_file = /etc/postfix/ssl/server.crt
- smtpd_tls_received_header = yes
- smtpd_tls_session_cache_timeout = 3600s
- tls_random_source = dev:/dev/urandom
- 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
- virtual_mailbox_base = /home/vmail
- virtual_uid_maps = static:5000
- virtual_gid_maps = static:5000
- virtual_create_maildirsize = yes
- virtual_maildir_extended = yes
- 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
- smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination, check_policy_service unix:private/policy
- policy_time_limit = 3600
- #DKIM config
- smtpd_milters = inet:127.0.0.1:8891, inet:127.0.0.1:8893
- non_smtpd_milters = $smtpd_milters
- milter_default_action = accept
- milter_protocol = 2
- cat /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").
- #
- # 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 - n - - smtpd
- submission inet n - n - - smtpd
- -o syslog_name=postfix/submission
- -o smtpd_sasl_auth_enable=yes
- -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject
- -o milter_macro_daemon_name=ORIGINATING
- smtps inet n - n - - smtpd
- -o syslog_name=postfix/smtps
- -o smtpd_sasl_auth_enable=yes
- -o smtpd_recipient_restrictions=permit_sasl_authenticated,reject
- -o milter_macro_daemon_name=ORIGINATING
- #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=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=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=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m ${extension} ${user}
- #
- # ====================================================================
- #
- # Old example of delivery via Cyrus.
- #
- #old-cyrus unix - n n - - pipe
- # flags=R user=cyrus argv=/usr/lib/cyrus-imapd/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}
- dovecot unix - n n - - pipe
- flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/deliver -f ${sender} -d ${recipient}
- policy unix - n n - 0 spawn user=nobody argv=/bin/python /usr/libexec/postfix/policyd-spf
- cat /etc/postfix/mysql-virtual_forwardings.cf
- user = mail_admin
- password = ******************
- dbname = mail
- query = SELECT destination FROM forwardings WHERE source='%s'
- hosts = 127.0.0.1
- cat /etc/postfix/mysql-virtual_email2email.cf
- user = mail_admin
- password = **********
- dbname = mail
- query = SELECT email FROM users WHERE email='%s'
- hosts = 127.0.0.1
- cat /etc/postfix/mysql-virtual_domains.cf
- user = mail_admin
- password = **********
- dbname = mail
- query = SELECT domain AS virtual FROM domains WHERE domain='%s'
- hosts = 127.0.0.1
- cat /etc/postfix/mysql-virtual_mailboxes.cf
- user = mail_admin
- password = ****************
- dbname = mail
- query = SELECT CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/') FROM users WHERE email='%s'
- hosts = 127.0.0.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement