[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Postfix vil ikke authentifikere imod relayhost...



Jeg forsøger at få min lokale postfix til at bruge kontorets
mailserver som relayhost, men får en "(SASL authentication failed;
cannot authenticate to server relay.example.com[10.255.255.217]: no
mechanism available"-fejl. 

Problemet er tilsyneladende at serveren kun acceptere LOGIN PLAIN, men
det burde postfix acceptere hvis man sætter smtp_sasl_security_options
til at være tom.

Jeg har følgende stående i min /etc/postfix/main.cf:

  # Sasl
  smtp_sasl_auth_enable = yes
  smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
  smtp_sasl_security_options = 
  smtp_sasl_exceptions_networks = $mynetworks
  smtp_sasl_mechanism_filter = 
  relayhost = relay.example.com
 
  debug_peer_list = relay.ewxample.com
  debug_peer_level = 4

Når jeg forsøger at sende en mail skriver den så følgende ud i loggen:

Jan 10 10:41:46 makholm postfix/pickup[6304]: 19B2C140593C7: uid=1000 from=<makholm>
Jan 10 10:41:46 makholm postfix/cleanup[6312]: 19B2C140593C7: message-id=<sslug@sslug>
Jan 10 10:41:46 makholm postfix/qmgr[6305]: 19B2C140593C7: from=<sslug@sslug>, size=311, nrcpt=1 (queue active)
Jan 10 10:41:46 makholm postfix/smtp[6314]: vstream_buf_get_ready: fd 13 got 26
Jan 10 10:41:46 makholm postfix/smtp[6314]: < relay.example.com[10.255.255.217]: 220 relay.example.com
Jan 10 10:41:46 makholm postfix/smtp[6314]: > relay.example.com[10.255.255.217]: EHLO makholm.example.com
Jan 10 10:41:46 makholm postfix/smtp[6314]: vstream_fflush_some: fd 13 flush 22
Jan 10 10:41:46 makholm postfix/smtp[6314]: vstream_buf_get_ready: fd 13 got 139
Jan 10 10:41:46 makholm postfix/smtp[6314]: < relay.example.com[10.255.255.217]: 250-relay.example.com
Jan 10 10:41:46 makholm postfix/smtp[6314]: < relay.example.com[10.255.255.217]: 250-PIPELINING
Jan 10 10:41:46 makholm postfix/smtp[6314]: < relay.example.com[10.255.255.217]: 250-SIZE 10240000
Jan 10 10:41:46 makholm postfix/smtp[6314]: < relay.example.com[10.255.255.217]: 250-VRFY
Jan 10 10:41:46 makholm postfix/smtp[6314]: < relay.example.com[10.255.255.217]: 250-ETRN
Jan 10 10:41:46 makholm postfix/smtp[6314]: < relay.example.com[10.255.255.217]: 250-AUTH LOGIN PLAIN
Jan 10 10:41:46 makholm postfix/smtp[6314]: < relay.example.com[10.255.255.217]: 250-AUTH=LOGIN PLAIN
Jan 10 10:41:46 makholm postfix/smtp[6314]: < relay.example.com[10.255.255.217]: 250 8BITMIME
Jan 10 10:41:46 makholm postfix/smtp[6314]: server features: 0x102f size 10240000
Jan 10 10:41:46 makholm postfix/smtp[6314]: Using ESMTP PIPELINING, TCP send buffer size is 4096
Jan 10 10:41:46 makholm postfix/smtp[6314]: maps_find: smtp_sasl_passwd: hash:/etc/postfix/sasl_password(0,lock|fold_fix): relay.example.com = sslug@sslug:foobar
Jan 10 10:41:46 makholm postfix/smtp[6314]: smtp_sasl_passwd_lookup: host `relay.example.com' user sslug@sslug' pass `foobar'
Jan 10 10:41:46 makholm postfix/smtp[6314]: starting new SASL client 
Jan 10 10:41:46 makholm postfix/smtp[6314]: smtp_sasl_authenticate: relay.example.com[10.255.255.217]: SASL mechanisms LOGIN PLAIN
Jan 10 10:41:46 makholm postfix/smtp[6314]: warning: SASL authentication failure: No worthy mechs found
Jan 10 10:41:46 makholm postfix/smtp[6314]: connect to subsystem private/defer
Jan 10 10:41:46 makholm postfix/smtp[6314]: send attr nrequest = 0
Jan 10 10:41:46 makholm postfix/smtp[6314]: send attr flags = 0
Jan 10 10:41:46 makholm postfix/smtp[6314]: send attr queue_id = 19B2C140593C7
Jan 10 10:41:46 makholm postfix/smtp[6314]: send attr original_recipient = sslug@sslug
Jan 10 10:41:46 makholm postfix/smtp[6314]: send attr recipient = sslug@sslug
Jan 10 10:41:46 makholm postfix/smtp[6314]: send attr offset = 181
Jan 10 10:41:46 makholm postfix/smtp[6314]: send attr dsn_orig_rcpt =
Jan 10 10:41:46 makholm postfix/smtp[6314]: send attr notify_flags = 0
Jan 10 10:41:46 makholm postfix/smtp[6314]: send attr status = 4.7.0 
Jan 10 10:41:46 makholm postfix/smtp[6314]: send attr diag_type = x-sasl
Jan 10 10:41:46 makholm postfix/smtp[6314]: send attr diag_text = no mechanism available
Jan 10 10:41:46 makholm postfix/smtp[6314]: send attr mta_type =  
Jan 10 10:41:46 makholm postfix/smtp[6314]: send attr mta_mname =
Jan 10 10:41:46 makholm postfix/smtp[6314]: send attr action = delayed
Jan 10 10:41:46 makholm postfix/smtp[6314]: send attr reason = SASL authentication failed; cannot authenticate to server relay.example.com[10.255.255.217]: no mechanism available


Nogen der har en ide til hvad jeg gør galt?

//Peter Makholm


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2007-02-01, 02:01 CET [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *