ubuntuusers.de

Postfix smtp auth mit Dovecot

Status: Gelöst | Ubuntu-Version: Server 9.04 (Jaunty Jackalope)
Antworten |

bacarni

Anmeldungsdatum:
23. September 2009

Beiträge: Zähle...

Hallo, ich weiß, dass dieses Thema schon häufiger besprochen wurde. Leider bekomme ich den Fehler nicht beseitigt.

Ich habe Postfix und Dovecot mit MySQL aufgesetzt. Und zwar nach dieser Anleitung (http://workaround.org/articles/ispmail-etch/). Ich habe alle Schritte erfolgreich bis Schritt 9 absolviert. Das Anmelden will einfach nicht klappen.

Ich habe gelesen, dass das Passwort nur im Klartext funktionieren soll. Tut es aber leider nicht. Ich bekomme immmer folgenden Fehler in /var/log/mail.log:

 postfix/smtpd[19070]: warning: ***[127.0.1.1]: SASL plain authentication failed:

Mehr leider nicht. Im Moment weiß ich einfach nicht weiter...

main.cf:

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

append_dot_mydomain = no

readme_directory = no

smtpd_sasl_type=dovecot
smtpd_sasl_path=private/auth
smtpd_sasl_auth_enable=yes
smtpd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination

myhostname = ***
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = ***, , localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf,mysql:/etc/postfix/mysql-email2email.cf
local_transport = dovecot
dovecot_destination_recipient_limit = 1

dovecot.conf:

protocols = imap imaps

mail_location = maildir:/home/vmail/%d/%n

mail_privileged_group = mail

protocol imap {
}

protocol pop3 {
  pop3_uidl_format = %08Xu%08Xv

}

protocol managesieve {
  sieve=~/.dovecot.sieve

  sieve_storage=~/sieve

}

protocol lda {
  postmaster_address = ***
  log_path = /home/vmail/dovecot-deliver.log
  global_script_path = /home/vmail/globalsieverc

  mail_plugins = cmusieve

  auth_socket_path = /var/run/dovecot/auth-master
}


auth default {
  mechanisms = plain login

  passdb pam {
  }

  passdb sql {
    args = /etc/dovecot/dovecot-sql.conf
  }

  userdb passwd {
  }

  userdb static {
    args = uid=5000 gid=5000 home=/home/vmail/%d/%n allow_all_users=yes
  }

  user = root

  socket listen {
    master {
      path = /var/run/dovecot/auth-master
      mode = 0600
      user = vmail
    }
    client {
      path = /var/spool/postfix/private/auth
      mode = 0660
      user = postfix
      group = postfix
    }
  }
}

Hier noch die Versionen, die ich benutze.

ii  postfix                                   2.5.5-1.1                    High-performance mail transport agent
ii  postfix-mysql                             2.5.5-1.1                    MySQL map support for Postfix
ii  dovecot-common                            1:1.1.11-0ubuntu4            secure mail server that supports mbox and ma
ii  dovecot-imapd                             1:1.1.11-0ubuntu4            secure IMAP server that supports mbox and ma

bacarni

(Themenstarter)

Anmeldungsdatum:
23. September 2009

Beiträge: 3

Hat sich erledigt. Es war ein Problem mit der SQL-Abfrage. Dovecot hatte bei %d einen leeren String, weshalb immer die domain gefehlt hat. Hier kann man es nachlesen.

Antworten |