Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 09-26-2007, 11:47 AM   #1
Registered: Oct 2005
Location: Sri Lanka
Distribution: Red Hat, Cent OS
Posts: 38

Rep: Reputation: 16
Smile !!!!!!!!!!!!!!!virtual users config in dovecot !!!!!!!!!!!!!!!!!

I am having CentOS 4.4 server installed sendmail(rpm based) ,dovecot(rpm based) and DNS-namd(rpm based) working fine for test domain in my office. All are default configuratons and working fine for 79 email accounts as system users with no login shell.

I need to remove system user accounts and config virtual users in dovecot for first part and need to set various size of email boxes of each virtual user. So I have removed default dovecot and installed from compiled source code to accomplish my goal.

My dovecot location is /usr/local/ and donfig file is at /usr/local/etc/dovecot.conf shown bellow.

# Dovecot configuration file
protocols = imap
listen = *:143
# We can use plain text passwords
disable_plaintext_auth = no
# Logging
log_path = /var/log/dovecot.log
info_log_path = /var/log/
log_timestamp = "%b %d %H:%M:%S "
# SSL settings
# Without ssl
ssl_disable = yes
# Login processes
login_user = dovecot
login_greeting = Hi buddy, have an account ?
login_log_format = %$: %s
# Mailbox locations and namespaces
mail_extra_groups = mail
# Mailbox locations and namespaces
# Clients Inbox at /var/mail, Clients Folders at /var/mail/folders/username/
mail_location = mbox:/var/mail/folders/%u/:INBOX=/var/mail/%u
# Mail processes
mail_debug = yes
mail_log_prefix = "%Us(%u): "
verbose_proctitle = yes
first_valid_uid = 1000
last_valid_uid = 5000
max_mail_processes = 2048
# mbox-specific settings
mbox_read_locks = dotlock fcntl
mbox_write_locks = dotlock fcntl
# IMAP specific settings
protocol imap {
# LDA specific settings
protocol lda {
postmaster_address =
hostname =
# Sieve plugin for local delivery agent
mail_plugins = cmusieve
log_path = /var/log/dovecot-local-deliver.log
auth_socket_path = /usr/local/var/run/dovecot-auth-master
# Authentication processes
auth_verbose = yes
auth_debug = yes
auth_debug_passwords = yes
auth default {
mechanisms = plain
passdb passwd-file {
# Virtual Users from file
args = /usr/local/etc/dovecot.passdb
userdb passwd-file {
# Virtual Users from file
args = /usr/local/etc/dovecot.passdb
user = root
# It's possible to export the authentication interface to other programs:
# For example getmail with MDA external
socket listen {
master {
path = /usr/local/var/run/dovecot-auth-master
mode = 0660
user = dovecot
group = mail
Mail authentication is done by file at same directory dovecot.passdb
user1:{PLAIN}pass1:1001:1001:User 1 Name:/var/mail/folders/user1
user2:{PLAIN}pass2:1002:1002:User 2 Name:/var/mail/folders/user2
user3:{PLAIN}pass3:1003:1003:User 3 Name:/var/mail/folders/user3
user4:{PLAIN}pass4:1004:1004:User 4 Name:/var/mail/folders/user4
Finally I can telnet to both dovecot IMAP and sendmail smtp servers and log r using outlook express to CentOS server. When I trying to send email to server using out look it gives error
The message could not be sent because one of the recipients was rejected by the server. 
The rejected e-mail address was ''. Subject 'test', 
Account: '', Server: '', Protocol: SMTP, Server Response:
 '550 5.1.1 <>... User unknown', Port: 25, Secure(SSL): 
No, Server Error: 550, Error Number: 0x800CCC79
What was the error ?


Pls give me any good guide(url) to configure virtual users using dovecot ?
Old 10-03-2007, 02:31 PM   #2
Registered: May 2007
Distribution: Debian
Posts: 103

Rep: Reputation: 15

Am i wrong here .. but you are trying to send mails which is sendmail's task. For what i can see sendmail doesnt know how to lookup the virtual users or doesnt know where to look up them for.

Old 01-15-2008, 04:47 PM   #3
LQ Newbie
Registered: Jan 2008
Posts: 2

Rep: Reputation: 0
Thumbs down

its too hard to tell where to make the change... dont waste your time next time and dont reply !!!!!
Old 01-16-2008, 05:52 AM   #4
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Why did you dredge up an old thread and not give a useful reply?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How To Install & Set Up Dovecot Mail Server With Sieve And Virtual Users LXer Syndicated Linux News 0 09-08-2007 04:21 AM
“virtual mail” in Dovecot ???? HOW TO ? ps.nepali Linux - Software 0 03-14-2006 04:25 AM
virtual users and virtual host need to stay at /home nephish Linux - Networking 3 01-14-2006 01:36 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:56 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration