Noel Jones:
> You need to read and follow these directions:
> http://www.postfix.org/SOHO_README.html#client_sasl_sender

Roger Dura?ona Vargas:
> Seems that those directins dotn apply when we are talking about yahoo. I
> got the same result, any additional account gets the 553 error when
> sending. Made a quick test with mdaemon and the result is the same, but
> managed to make 2 accoutns work by rotating them as the account used to
> authenticate.

I think I found the bug. When Postfix sends SMTP mail it tries NOT
to reuse a connection when sender-dependent SASL authentication is
turned on.

Unfortunately the test is wrong, and thus it is possible that
Postfix sends mail for sender X over an SMTP connection that was
used to send mail for sender Y (and thus, over a connection that
was logged into YAHOO as user Y).

You can configure Postfix not to reuse SMTP connections when sending
mail:

/etc/postfix/main.cf
    smtp_connection_cache_on_demand = no

Or you can use the patch below.

        Wietse

*** ./src/smtp/smtp_connect.c-  Fri Nov 27 10:52:10 2009
--- ./src/smtp/smtp_connect.c   Thu Dec 16 16:57:07 2010
***************
*** 461,467 ****
       * connection, and we must not send mail that requires authentication
       * over a connection that wasn't authenticated.
       */
!     if (var_smtp_sender_auth)
        return;
  
      if (smtp_cache_dest && string_list_match(smtp_cache_dest, dest)) {
--- 461,467 ----
       * connection, and we must not send mail that requires authentication
       * over a connection that wasn't authenticated.
       */
!     if (*var_smtp_sender_auth)
        return;
  
      if (smtp_cache_dest && string_list_match(smtp_cache_dest, dest)) {

Reply via email to