* Franck MAHE <m...@civis.net>:
> All,
> 
> One of my client decided to use Office 365, but some internal servers need
> to send some emails.
> 
>  
> 
> So I've an issue with the authentication mechanisms with the smtp client.
> 
>  
> 
> Here is an extract of the conf
> 
> broken_sasl_auth_clients = yes
> cyrus_sasl_config_path =
> send_cyrus_sasl_authzid = no
> smtp_sasl_auth_cache_name =
> smtp_sasl_auth_cache_time = 90d
> smtp_sasl_auth_enable = yes
> smtp_sasl_auth_soft_bounce = yes
> smtp_sasl_mechanism_filter =
> smtp_sasl_password_maps = hash:/etc/postfix/sasl/sasl_client
> smtp_sasl_path =
> smtp_sasl_security_options =
> smtp_sasl_tls_security_options =
> smtp_sasl_tls_verified_security_options = $smtp_sasl_tls_security_options
> smtp_sasl_type = cyrus
> 
> all the sasl modules are installed on the servers.
> 
> Apr 12 14:45:14 fsrv postfix/smtp[4854]: D4B4A23A3: to=<m...@domain.com>,
> relay= pod51013.outlook.com[157.55.9.168]:587, delay=1013,
> delays=1012/0.03/0.37/0, dsn=4.7.0, status=deferred (SASL authentication
> failed; cannot authenticate to server pod51013.outlook.com[157.55.9.168]: no
> mechanism available)
> 
>  
> In the sasl_client, I've the username & password to authenticate.
> 
>  

Without TLS the server does not offer any mechanism, but AUTH:

$ telnet pod51013.outlook.com 587
Trying 157.55.9.168...
Connected to pod51013.outlook.com.
Escape character is '^]'.
220 pod51013.outlook.com Microsoft ESMTP MAIL Service ready at Thu, 12 Apr 2012 
13:03:49 +0000
EHLO foo
250-pod51013.outlook.com Hello [62.245.140.175]
250-SIZE 36700160
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-AUTH
250-8BITMIME
250-BINARYMIME
250 CHUNKING
QUIT



> With openssl client, I got the following after an EHLO
> 
> 250-pod51013.outlook.com Hello [217.108.200.87]
> 250-SIZE 36700160
> 250-PIPELINING
> 250-DSN
> 250-ENHANCEDSTATUSCODES
> 250-AUTH LOGIN
> 250-8BITMIME
> 250-BINARYMIME
> 250 CHUNKING
> 
> With tls loglevel 4, I've the feeling that postfix is not able to get the
> AUTH LOGIN, I'm in postfix 2.6.5.

Your log above does not prove Postfix uses TLS when it connects to the server.
What are your TLS settings for the client. Set a sufficient smtp_tls_loglevel
to see what is going on.

p@rick

-- 
All technical questions asked privately will be automatically answered on the
list and archived for public access unless privacy is explicitely required and
justified.

saslfinger (debugging SMTP AUTH):
<http://postfix.state-of-mind.de/patrick.koetter/saslfinger/>

Reply via email to