server - Postfix Outgoing Email Authentication - Ask Ubuntu


i have vps i'm using webserver , email server. have issue postfix. it's not asking password on outgoing email unauthorized domain.

this telnet call non-existent domain local email:

telnet smtp.mydomain.com 25 trying xxx.xxx.xxx.xxx... connected smtp.mydomain.com. escape character '^]'. 220 smtp.mydomain.com esmtp postfix ehlo smtp.mydomain.com 250-smtp.mydomain.com 250-vrfy 250-etrn 250-auth plain login 250-auth=plain login 250-enhancedstatuscodes 250 8bitmime mail from:<hello@hello.com> 250 2.1.0 ok rcpt to:<myaddress@mydomain.com> 250 2.1.5 ok data 354 end data <cr><lf>.<cr><lf> subject: test  hello  . 250 2.0.0 ok: queued 94dc2150bca quit 221 2.0.0 bye 

on other hand, if send email existing internal address existing internal address through telnet, postfix stops sending because needs authentication.

telnet smtp.mydomain.com 25 trying xxx.xxx.xxx.xxx... connected smtp.mydomain.com. escape character '^]'. 220 smtp.mydomain.com esmtp postfix ehlo smtp.mydomain.com 250-smtp.mydomain.com 250-vrfy 250-etrn 250-auth plain login 250-auth=plain login 250-enhancedstatuscodes 250 8bitmime mail from:<myaddress@mydomain.com> 250 2.1.0 ok rcpt to:<myotheraddress@mydomain.com> 453 4.7.1 <myaddress@mydomain.com>: sender address rejected: not logged in quit connection closed foreign host. 

here postfix config file:

alias_database = hash:/etc/aliases alias_maps = hash:/etc/postfix/virtual 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/lib/postfix debug_peer_level = 2 debugger_command = path=/bin:/usr/bin:/usr/local/bin:/usr/x11r6/bin xxgdb $daemon_directory/$process_name $process_id & sleep 5 delay_warning_time = 4 disable_vrfy_command = no dovecot_destination_recipient_limit = 1 html_directory = no inet_interfaces = inet_protocols = mail_owner = postfix mailbox_size_limit = 0 mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man message_size_limit = 52428800 milter_default_action = accept milter_protocol = 2 mydomain = smtp.mydomain.com myhostname = smtp.mydomain.com mynetworks = 127.0.0.0/8 myorigin = /etc/mailname newaliases_path = /usr/bin/newaliases.postfix non_smtpd_milters = inet:localhost:8891 queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.2.2/readme_files recipient_delimiter = + relay_domains = proxy:mysql:/etc/zpanel/configs/postfix/mysql-relay_domains_maps.cf relayhost = sample_directory = /usr/share/doc/postfix-2.2.2/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop smtp_tls_note_starttls_offer = yes smtp_use_tls = yes smtpd_client_restrictions = smtpd_data_restrictions = reject_unauth_pipelining smtpd_helo_required = yes smtpd_helo_restrictions = smtpd_milters = inet:localhost:8891 smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination,reject_unknown_sender_domain smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = $myhostname smtpd_sasl_path = private/auth smtpd_sasl_security_options = noanonymous smtpd_sasl_type = dovecot smtpd_sender_login_maps = proxy:mysql:/etc/zpanel/configs/postfix/mysql-virtual_sender_login_maps smtpd_sender_restrictions = reject_sender_login_mismatch, reject_unknown_sender_domain, reject_unlisted_sender, reject_unauthenticated_sender_login_mismatch, permit_sasl_authenticated, permit_mynetworks, reject_unverified_sender smtpd_tls_auth_only = yes smtpd_tls_cert_file = /etc/letsencrypt/live/smtp.mydomain.com/fullchain.pem smtpd_tls_key_file = /etc/letsencrypt/live/smtp.mydomain.com/privkey.pem smtpd_tls_loglevel = 1 smtpd_tls_received_header = yes smtpd_tls_session_cache_timeout = 3600s smtpd_use_tls = yes soft_bounce = yes tls_random_source = dev:/dev/urandom unknown_local_recipient_reject_code = 550 virtual_alias_maps = proxy:mysql:/etc/zpanel/configs/postfix/mysql-virtual_alias_maps.cf, regexp:/etc/zpanel/configs/postfix/virtual_regexp, hash:/etc/postfix/virtual virtual_gid_maps = static:5000 virtual_mailbox_base = /var/zpanel/vmail virtual_mailbox_domains = proxy:mysql:/etc/zpanel/configs/postfix/mysql-virtual_domains_maps.cf virtual_mailbox_maps = proxy:mysql:/etc/zpanel/configs/postfix/mysql-virtual_mailbox_maps.cf virtual_minimum_uid = 150 virtual_transport = dovecot virtual_uid_maps = static:5000 

i'd postfix ask passwords when sends email through telnet.

where going wrong? issue has become frustrating lately.


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User