conecto sin errores a POSTFIX utilizando " cliente.php "
sin emnbargo en un servidor con Almalinux 9 + POSTFIX 3.9.1
independientemente de que:
- el usuario séa inexistente
- la clave esté errada
- clave y usuario séan validos
""" 535 5.7.8 Error: authentication failed: (reason unavailable) """
éste es mi archivo /etc/postfix/main.cf:
Código:
# Global Postfix configuration file. This file lists only a subset
# of all parameters. For the syntax, and for a complete parameter
# list, see the postconf(5) manual page (command: "man 5 postconf").
#
# For common configuration examples, see BASIC_CONFIGURATION_README
# and STANDARD_CONFIGURATION_README. To find these documents, use
# the command "postconf html_directory readme_directory", or go to
# http://www.postfix.org/.
#
# For best results, change no more than 2-3 parameters at a time,
# and test if Postfix still works after every change.
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
inet_protocols = all
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
myhostname = HOSTNAME
mynetworks = 127.0.0.0/8
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
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, check_recipient_access hash:/etc/postfix/script_filter, permit
smtpd_use_tls = yes
smtpd_tls_cert_file = /etc/pki/dovecot/certs/dovecot.pem
smtpd_tls_key_file = /etc/pki/dovecot/private/dovecot.pem
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_mailbox_limit_maps
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1
inet_interfaces = all
smtp_tls_security_level = may
disable_vrfy_command = yes
smtpd_milters = inet:127.0.0.1:8891
non_smtpd_milters = $smtpd_milters
milter_default_action = accept
tls_server_sni_maps = hash:/etc/postfix/vmail_ssl.map
smtpd_data_restrictions = check_policy_service unix:/var/log/policyServerSocket
smtpd_policy_service_default_action = DUNNO
smtpd_data_restrictions = check_policy_service unix:/var/log/policyServerSocket
smtpd_policy_service_default_action = DUNNO
smtpd_data_restrictions = check_policy_service unix:/var/log/policyServerSocket
smtpd_policy_service_default_action = DUNNO
Código:
[root@pepsi ~]# postconf mail_version
postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_client_restrictions
postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_helo_restrictions
postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_sender_restrictions
postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_client_restrictions
postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_helo_restrictions
postconf: warning: /etc/postfix/master.cf: undefined parameter: mua_sender_restrictions
postconf: warning: /etc/postfix/main.cf: undefined parameter: virtual_mailbox_limit_maps
mail_version = 3.9.1
postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_create_maildirsize=yes
postconf: warning: /etc/postfix/main.cf: unused parameter: virtual_maildir_extended=yes
postconf: warning: /etc/postfix/main.cf: support for parameter "smtpd_use_tls" will be removed; instead, specify "smtpd_tls_security_level"
[root@pepsi ~]#
https://pasteboard.co/DkjVFUhW0oL3.png
aquí todos los comandos:
Código:
21:03:03.756744 conectado a HOSTNAME en el puerto 25
21:03:06.855631 220 HOSTNAME ESMTP Postfix
21:03:06.855657 NOOP
21:03:06.855809 250 2.0.0 Ok
21:03:06.855824 HELO HOSTNAME
21:03:06.855940 250 HOSTNAME
21:03:06.855950 EHLO HOSTNAME
21:03:06.856074 250-dns.HOSTNAME
21:03:06.856081 250-PIPELINING
21:03:06.856085 250-SIZE 30720000
21:03:06.856088 250-ETRN
21:03:06.856091 250-STARTTLS
21:03:06.856094 250-AUTH PLAIN
21:03:06.856097 250-AUTH=PLAIN
21:03:06.856100 250-ENHANCEDSTATUSCODES
21:03:06.856103 250-8BITMIME
21:03:06.856106 250-DSN
21:03:06.856109 250 CHUNKING
21:03:06.856113 STARTTLS
21:03:06.856210 220 2.0.0 Ready to start TLS
21:03:06.912122 EHLO HOSTNAME
21:03:06.912480 250-HOSTNAME
21:03:06.912500 250-PIPELINING
21:03:06.912505 250-SIZE 30720000
21:03:06.912509 250-ETRN
21:03:06.912512 250-AUTH PLAIN
21:03:06.912515 250-AUTH=PLAIN
21:03:06.912518 250-ENHANCEDSTATUSCODES
21:03:06.912521 250-8BITMIME
21:03:06.912524 250-DSN
21:03:06.912527 250 CHUNKING
21:03:06.912532 AUTH PLAIN
21:03:06.913105 334
21:03:06.913125 cmdAbWVqb3JhbW9zLmNvbQ==
21:03:08.415445 535 5.7.8 Error: authentication failed: (reason unavailable)
21:03:08.415472 QUIT
21:03:08.415867 221 2.0.0 Bye