First dovecot install

Jason Pruim pruimj at gmail.com
Tue Mar 29 01:58:44 UTC 2016


Hey Everyone,

I am trying to get postfix and dovecot to talk to each other… postfix is up and running, dovecot allows me to telnet into it both locally and remotely, but when I try to do: “a login “username” “password” I get an authentication failed error… Here is my dovecot -n:

[ec2-user at ip-172-31-24-2 dovecot]$ dovecot -n
# 2.2.10: /etc/dovecot/dovecot.conf
# OS: Linux 4.1.17-22.30.amzn1.x86_64 x86_64  
auth_debug_passwords = yes
auth_mechanisms = plain login
first_valid_uid = 200
lda_mailbox_autocreate = yes
lda_mailbox_autosubscribe = yes
mail_debug = yes
mail_gid = 12
mail_home = /mnt/vmail/%d/%n
mail_location = maildir:~
mail_uid = 200
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave
mbox_write_locks = fcntl
passdb {
  args = /etc/dovecot/dovecot-sql.conf
  driver = sql
}
plugin {
  autocreate = Trash
  autocreate2 = Sent
  autocreate3 = Junk
  autosubscribe = Trash
  autosubscribe2 = Sent
  autosubscribe3 = Junk
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
  sieve_global_dir = /etc/dovecot/sieve/global/
  sieve_global_path = /etc/dovecot/sieve/default.sieve
  sieve_max_script_size = 1M
}
protocols = imap lmtp sieve pop3
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0660
    user = ec2-user
  }
  unix_listener auth-userdb {
    group = mail
    mode = 0600
    user = mailreader
  }
}
service lmtp {
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
    group = postfix
    mode = 0600
    user = postfix
  }
}
service managesieve-login {
  inet_listener sieve {
    port = 4190
  }
}
ssl = required
ssl_cert = </etc/pki/tls/certs/server.pem
ssl_key = </etc/pki/tls/private/server.pem
userdb {
  driver = prefetch
}
userdb {
  args = /etc/dovecot/dovecot-sql.conf
  driver = sql
}
protocol lmtp {
  hostname = mail.primelashdiva.info
  mail_plugins = " autocreate sieve quota"
  postmaster_address = postmaster at primelashdiva.info
}
protocol lda {
  auth_socket_path = /var/run/dovecot/auth-master
  info_log_path = /var/log/dovecot-lda.log
  log_path = /var/log/dovecot-lda-errors.log
  mail_plugins = " sieve"
}
protocol sieve {
  info_log_path = /var/log/dovecot-sieve.log
  log_path = /var/log/dovecot-sieve-errors.log
  managesieve_implementation_string = dovecot
  managesieve_max_line_length = 65536
}




I’m planning to use user accounts for it to connect to… I’m guessing I’m missing something simple, but I don’t know where to look… Any pointers?

Thanks in advance!

Jason Pruim
pruimj at gmail.com




More information about the dovecot mailing list