Giter Club home page Giter Club logo

mailcow-dockerized-app's People

Contributors

zkryakgul avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

mailcow-dockerized-app's Issues

sender dependent transport fails for individual email if domain is pointed to a different transport.

Prior to placing the issue, please check following: (fill out each checkbox with an X once done)

  • [ x] I understand that not following or deleting the below instructions will result in immediate closure and/or deletion of my issue.
  • [ x] I have understood that this bug report is dedicated for bugs, and not for support-related inquiries.
  • [ x] I have understood that answers are voluntary and community-driven, and not commercial support.
  • [ x] I have verified that my issue has not been already answered in the past. I also checked previous issues.

Summary

Logs

Dec 23 17:32:36 79df21555fa2 postfix/smtp[787]: match_string: smtp_sasl_mechanism_filter: plain ~? plain
Dec 23 17:32:36 79df21555fa2 postfix/smtp[787]: match_string: smtp_sasl_mechanism_filter: login ~? plain
Dec 23 17:32:36 79df21555fa2 postfix/smtp[787]: match_string: smtp_sasl_mechanism_filter: login ~? login
Dec 23 17:32:36 79df21555fa2 postfix/smtp[787]: server features: 0x902f size 52428800
Dec 23 17:32:36 79df21555fa2 postfix/smtp[787]: Using ESMTP PIPELINING, TCP send buffer size is 87040, PIPELINING buffer size is 4096
Dec 23 17:32:36 79df21555fa2 postfix/smtp[787]: event_request_timer: reset 0x7f60c8ff1c80 0x5588fc9661f0 5
Dec 23 17:32:36 79df21555fa2 postfix/smtp[787]: send attr request = lookup
Dec 23 17:32:36 79df21555fa2 postfix/smtp[787]: send attr table = mysql:/opt/postfix/conf/sql/mysql_sasl_passwd_maps_sender_dependent.cf
Dec 23 17:32:36 79df21555fa2 postfix/smtp[787]: send attr flags = 540736
Dec 23 17:32:36 79df21555fa2 postfix/smtp[787]: send attr key = [email protected]
Dec 23 17:32:36 79df21555fa2 postfix/smtp[787]: vstream_fflush_some: fd 14 flush 130
Dec 23 17:32:36 79df21555fa2 postfix/smtp[787]: vstream_buf_get_ready: fd 14 got 82
Dec 23 17:32:36 79df21555fa2 postfix/smtp[787]: private/proxymap socket: wanted attribute: status
Dec 23 17:32:36 79df21555fa2 postfix/smtp[787]: input attribute name: status
Dec 23 17:32:36 79df21555fa2 postfix/smtp[787]: input attribute value: 0
Dec 23 17:32:36 79df21555fa2 postfix/smtp[787]: private/proxymap socket: wanted attribute: value
Dec 23 17:32:36 79df21555fa2 postfix/smtp[787]: input attribute name: value
Dec 23 17:32:36 79df21555fa2 postfix/smtp[787]: input attribute value: AWSUSER:AWSPASS
Dec 23 17:32:36 79df21555fa2 postfix/smtp[787]: private/proxymap socket: wanted attribute: (list terminator)
Dec 23 17:32:36 79df21555fa2 postfix/smtp[787]: input attribute name: (end)
Dec 23 17:32:36 79df21555fa2 postfix/smtp[787]: dict_proxy_lookup: table=mysql:/opt/postfix/conf/sql/mysql_sasl_passwd_maps_sender_dependent.cf flags=lock|fold_fix|utf8_request key=[email protected] -> status=0 result=AWSUSER:AWSPASS
Dec 23 17:32:36 79df21555fa2 postfix/smtp[787]: maps_find: smtp_sasl_password_maps: proxy:mysql:/opt/postfix/conf/sql/mysql_sasl_passwd_maps_sender_dependent.cf(0,lock|fold_fix|utf8_request): [email protected] = AWSUSER:AWSPASS
Dec 23 17:32:36 79df21555fa2 postfix/smtp[787]: mail_addr_find: [email protected] -> AWSUSER:AWSPASS
Dec 23 17:32:36 79df21555fa2 postfix/smtp[787]: smtp_sasl_passwd_lookup: host mail.smtp2go.com' user AWSUSER' pass `AWSPASS'
Dec 23 17:32:36 79df21555fa2 postfix/smtp[787]: starting new SASL client
Dec 23 17:32:36 79df21555fa2 postfix/smtp[787]: smtp_sasl_authenticate: mail.smtp2go.com[194.195.251.121]:2525: SASL mechanisms PLAIN LOGIN
Dec 23 17:32:36 79df21555fa2 postfix/smtp[787]: xsasl_cyrus_client_get_user: AWSUSER
Dec 23 17:32:36 79df21555fa2 postfix/smtp[787]: xsasl_cyrus_client_get_passwd: AWSPASS
Dec 23 17:32:36 79df21555fa2 postfix/smtp[787]: xsasl_cyrus_client_first: uncoded initial reply: \000AWSUSER\000AWSPASS
Dec 23 17:32:36 79df21555fa2 postfix/smtp[787]: > mail.smtp2go.com[194.195.251.121]:2525: AUTH PLAIN ASDFDGDSHDSHSDHSDJSJSDGAGSDHJHSDGADHDJFJFJDSHDSGSDJSJSFKFKGKDKDFKFDHFHSDH
Dec 23 17:32:36 79df21555fa2 postfix/smtp[787]: vstream_fflush_some: fd 15 flush 101
Dec 23 17:32:36 79df21555fa2 postfix/smtp[787]: vstream_buf_get_ready: fd 15 got 35
Dec 23 17:32:36 79df21555fa2 postfix/smtp[787]: < mail.smtp2go.com[194.195.251.121]:2525: 535 Incorrect authentication data

Reproduction

Set the domain to sender dependent transport of an SMTP provider with username and password.
Set an individual email in that domain to another sender dependent transport without a username and password.
Sending any email from that individual email will return SASL Authentication Failed.

Possible Fix

mysql_sasl_passwd_maps_sender_dependent.cf seems to have the SQL query's COALESCE parameters in the wrong order. flipping the parameters around seems to fix this, but I am not sure if that has any unintended consequences at other places.

System information

Question Answer
My operating system debian
Is Apparmor, SELinux or similar active? no
Virtualization technlogy (KVM, VMware, Xen, etc - LXC and OpenVZ are not supported VMware
Server/VM specifications (Memory, CPU Cores) 8GB,16
Docker Version (docker version) 20.10.22
Docker-Compose Version (docker-compose version) 2.14.1
Reverse proxy (custom solution) NO
  • Output of git diff origin/master, any other changes to the code? If so, please post them.
  • All third-party firewalls and custom iptables rules are unsupported. Please check the Docker docs about how to use Docker with your own ruleset. Nevertheless, iptabels output can help us to help you: iptables -L -vn, ip6tables -L -vn, iptables -L -vn -t nat and ip6tables -L -vn -t nat.
  • DNS problems? Please run docker exec -it $(docker ps -qf name=acme-mailcow) dig +short stackoverflow.com @172.22.1.254 (set the IP accordingly, if you changed the internal mailcow network) and post the output.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.