Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am having an issue try to relay emails from postfix via a hosted exchange relay.

I have added the authentication details in and enabled SASL auth however I am getting the following error (I have changed some details to privacy)

Dec 11 14:23:36 server postfix/smtp[16240]: A367C5741B1: to=<dgibbs@email.co.uk>, relay=relay.exchangerelay.co.uk[1.2.3.4]:25, delay=528, delays=528/0.01/0.15/0, dsn=4.7.0, status=deferred (SASL authentication failed: server relay.exchangerelay.co.ukk[1.2.3.4]] offered no compatible authentication mechanisms for this type of connection security)

The main.cf has the following

relayhost = [relay.exchangerelay.co.uk]

# TLS parameters
smtpd_tls_security_level = may
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtp_tls_note_starttls_offer = yes
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes

#SASL Authentication
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_sasl_tls_security_options = noanonymous
smtp_tls_CAfile = /etc/ssl/certs/ssl-cert-snakeoil.pem

The /etc/postfix/sasl_passwd file looks like so. and

[relay.exchangerelay.co.uk] sales@email.co.uk:password

I'm guessing there is some setting I have missed but a Google around has not been successful.

Thanks for any help you can provide. Let me know if more info is required.

share|improve this question
    
Who runs the exchange server? Do you know what sort of SASL options it offers? –  NickW Dec 11 '13 at 15:16
    
This is a third party Cloud based exchange server. So I do not currently know that SASL options are available. I have also submitted the question to the third party however they might be able to give assistance. –  dgibbs Dec 12 '13 at 9:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.