Hello.
This is the first time I'm using Dovecot...
I'm using Debian Etch (updated), and all bundled (Postfix + OpenLDAP +
Dovecot + SASL), and Jamm.
This is the guide I'm using:
http://wanderingbarque.com/howtos/mailserver/mailserver.html
# dovecot --version
1.0.rc15
# tail -4 /etc/passwd
cyrus:x:107:8:Cyrus Mailsystem User,,,:/var/spool/cyrus:/bin/sh
vmail:x:1001:1001::/home/vmail:/bin/sh
dovecot:x:108:109:Dovecot mail server,,,:/usr/lib/dovecot:/bin/false
dovecot-auth:x:1002:1002::/usr/lib/dovecot:/bin/sh
# tail -4 /etc/group
postdrop:x:108:
vmail:x:1001:
dovecot:x:109:
dovecot-auth:x:1002:
# id dovecot
uid=108(dovecot) gid=109(dovecot) grupos=109(dovecot)
# id vmail
uid=1001(vmail) gid=1001(vmail) grupos=1001(vmail)
# dovecot -n
# /etc/dovecot/dovecot.conf
log_path: /var/log/dovecot.log
info_log_path: /var/log/dovecot-info.log
log_timestamp: %Y-%m-%d %H:%M:%S
ssl_disable: yes
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable: /usr/lib/dovecot/imap-login
valid_chroot_dirs: /home/vmail/domains
verbose_proctitle: yes
first_valid_uid: 108
last_valid_uid: 108
first_valid_gid: 109
last_valid_gid: 109
mail_privileged_group: vmail
mail_location: maildir:/home/vmail/domains/%d/%n
auth default:
user: dovecot-auth
verbose: yes
debug: yes
debug_passwords: yes
passdb:
driver: ldap
args: /etc/dovecot/dovecot-ldap.conf
userdb:
driver: ldap
args: /etc/dovecot/dovecot-ldap.conf
# grep -v '^ *\(#.*\)\?$' dovecot-ldap.conf
hosts = localhost
dn = cn=dovecot,dc=XXXXXX,dc=ce,dc=gov,dc=br
dnpass = XXXXXX
ldap_version = 3
base = o=hosting,dc=XXXXX,dc=ce,dc=gov,dc=br
deref = never
scope = subtree
user_attrs = mail,homeDirectory,,,,
user_filter
(&(objectClass=JammMailAccount)(mail=%u)(accountActive=TRUE)(delete=FALSE))
pass_attrs = mail,userPassword
pass_filter
(&(objectClass=JammMailAccount)(mail=%u)(accountActive=TRUE)(delete=FALSE))
default_pass_scheme = CRYPT
user_global_uid = 108
user_global_gid = 109
# testsaslauthd -u rodrigo2 at XXXXXX.ce.gov.br -p XXXXXX
0: OK "Success."
Here is tha Dovecot log:
dovecot: 2008-07-17 11:31:30 Error: Logins with login process UID 108 (user
rodrigo2 at XXXXXX.ce.gov.br) not permitted (see login_user in config file).
dovecot: 2008-07-17 11:31:30 Error: IMAP(rodrigo2 at XXXXXX.ce.gov.br):
mkdir(/home/vmail/domains/XXXXXX.ce.gov.br/rodrigo2/.Trash) failed:
Permission denied
dovecot: 2008-07-17 11:31:33 Error: IMAP(rodrigo2 at XXXXXX.ce.gov.br):
mkdir(/home/vmail/domains/XXXXXX.ce.gov.br/rodrigo2/.Trash) failed:
Permission denied
dovecot: 2008-07-17 11:31:34 Error: Logins with login process UID 108 (user
rodrigo2 at XXXXXX.ce.gov.br) not permitted (see login_user in config file).
dovecot: 2008-07-17 11:31:34 Error: IMAP(rodrigo2 at XXXXXX.ce.gov.br):
file_dotlock_open() failed with file /home/vmail/domains/
XXXXXX.ce.gov.br/rodrigo2/dovecot.index.log: Permission denied
dovecot: 2008-07-17 11:31:34 Error: IMAP(rodrigo2 at XXXXXX.ce.gov.br):
file_dotlock_open() failed with file /home/vmail/domains/
XXXXXX.ce.gov.br/rodrigo2/dovecot.index.log: Permission denied
As it says in the guide, I create the dir (domain/user -
XXXXX.ce.gov.br/rodrigo2) and send an "greeting" e-mail for the
creation of
directories.
Then I can login to the account, but can't retrieve mail from them.
Can anyone help me?
Regards,
Rodrigo.
ps: sorry about my english.
--
M. Rodrigo Monteiro
falecom at rodrigomonteiro.net
"Free as in Freedom, not free as in free beer"
Linux User # 403730