Log inUsernamePassword
Log me on automatically each visit    
Log in to check your private messages
Log in to check your private messages
SMS Forum Index » SMS User Support

Post new topic   Reply to topic
Mail server - Adduser
View previous topic :: View next topic  
Author Message
Junior Member

Joined: 11 Aug 2008
Posts: 1

PostPosted: Mon Aug 11, 2008 8:15 pm    Post subject: Mail server - Adduser Reply with quote

Hello, i wanted to know how can i create an imap server with this software so i can store emails inside this server. How should i add an user in order to use an account? I tried with adduser from the shell and with webmin but i'm getting an error with thunderbird saying "The login information is incorrect"..

If anyone here have a link with documentation about this?

Regards, Christian.
Back to top
View user's profile Send private message
Site Admin

Joined: 09 Aug 2007
Posts: 1753
Location: Greece

PostPosted: Tue Aug 12, 2008 5:46 am    Post subject: Reply with quote

The reason that imap (dovecot) can't see your user is that looks in ldap database for authentication.
You can see that topic

just replace your dovecot.conf and main.cf with those:
mail_location = maildir:~/Maildir
log_path = /var/log/dovecot.log
info_log_path = /var/log/dovecot-info.log
protocols = imap pop3 imaps
listen = [::]
ssl_disable = no
disable_plaintext_auth = no
login_user = dovecot
#valid_chroot_dirs = /var/vmail
#default_mail_env = maildir:/var/vmail/%u
mail_log_prefix = "%Us(%u):%i:%h "
first_valid_uid = 100
last_valid_uid = 5002
first_valid_gid = 100
last_valid_gid = 5002
pop3_uidl_format = %v.%u
protocol imap {

protocol pop3 {
protocol lda {
postmaster_address = postmaster@sms.org
auth_verbose = yes
auth_debug = yes
auth default {
  mechanisms = plain

  userdb passwd {
  passdb shadow {
user = root
dict {
plugin {

ssl_cert_file = /etc/ssl/certs/dovecot.pem
ssl_key_file = /etc/ssl/private/dovecot.pem

alias_database = hash:/etc/mail/aliases
alias_maps = hash:/etc/mail/aliases, nis:mail.aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin/
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
header_checks = regexp:/etc/postfix/header_checks
home_mailbox = Maildir/
local_recipient_maps = $alias_maps unix:passwd.byname $virtual_mailbox_maps
mail_owner = postfix
mail_spool_directory = /var/spool/mail
mailq_path = /usr/sbin/mailq
manpage_directory = /usr/man
milter_default_action = accept
mydestination = $mydomain, localhost.$mydomain, $myhostname
mydomain = org
myhostname = sms.org
newaliases_path = /usr/sbin/newaliases
queue_directory = /var/spool/postfix
sample_directory = /etc/postfix/sample
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtp_use_tls = yes
smtpd_milters = unix:/var/run/clamav-milter/milter.sock
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, defer
smtpd_reject_unlisted_recipient = no
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_tls_cert_file = /etc/ssl/certs/dovecot.pem
smtpd_tls_key_file = /etc/ssl/certs/dovecot.pem
smtpd_use_tls = yes
unknown_local_recipient_reject_code = 550
virtual_alias_maps = $alias_maps, hash:/etc/postfix/virtual

and final do
sed -e "s,/usr/sbin/saslauthd -a ldap,/usr/sbin/saslauthd -a shadow,g" -i /etc/rc.d/rc.saslauthd
/etc/rc.d/rc.saslauthd restart
/etc/rc.d/rc.dovecot restart
postfix reload

That should be enough. The above configuration is set for Maildir format, if you want the classic mailbox format replace in dovecot.conf
mail_location = maildir:~/Maildir
mail_location = mbox:/var/mail/%u/:INBOX=/var/mail/%u
and in main.cf
home_mailbox = Maildir/
home_mailbox = Mailbox


Superb! Mini Server Project Manager
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SMS Forum Index » SMS User Support All times are GMT + 2 Hours
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

SMS - Superb! Mini Server Project © 2016
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional