Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 26th October 2008, 21:22
mangecelle mangecelle is offline
Junior Member
 
Join Date: Oct 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Help wiht Postfix and dovecot

Dear people,

I hope you can give me a hand on this. I am trying to learn about linux. I want to setup a simple solution with postfix and dovecot, eg using text files for users and passwords. I want to do this with virtual users and virtual domains. For now i am on setting up a mail server. I have postfix running and i am able to send emails. My next step is dovecot. I thought i had it all but when trying to login it fails to authenticate.

in the message log i have this entry.

dovecot: Oct 26 19:22:45 Info: auth(default): passwd-file(user@domain.com,::ffff:xxx.xxx.xxx.xxx): no passwd file: username_format=user /var/mail/vhosts/domain.com/shadow

I have a hard time to understand the relationship between userdb, passdb and shadow if someone could direct me to an article or maybe recommend a book i would be greatful

Thanks in advance

Last edited by mangecelle; 26th October 2008 at 21:40.
Reply With Quote
Sponsored Links
  #2  
Old 27th October 2008, 12:29
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

If you're using system users, Dovecot should look up the passwords in /etc/shadow.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 27th October 2008, 15:08
mangecelle mangecelle is offline
Junior Member
 
Join Date: Oct 2008
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

This is my dovecot.conf file


log_path: /var/log/dovecot.log
info_log_path: /var/log/dovecot-info.log
ssl_disable: yes
verbose_ssl: yes
login_dir: /var/run/dovecot/login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
mail_location: maildir: /var/mail/vhosts/%d/%n
mail_debug: yes
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugin_dir(default): /usr/lib64/dovecot/imap
mail_plugin_dir(imap): /usr/lib64/dovecot/imap
mail_plugin_dir(pop3): /usr/lib64/dovecot/pop3
auth default:
mechanisms: plain login CRAM-MD5
verbose: yes
debug: yes
debug_passwords: yes
passdb:
driver: passwd-file
args: username_format=%n /var/mail/vhosts/%d/shadow
userdb:
driver: passwd-file
args: username_format=%n /var/mail/vhosts/%d/passwd
userdb:
driver: passwd
socket:
type: listen
client:
path: /var/spool/postfix/private/auth
mode: 432


I am trying to setup virtual users and domains.

What is the difference between these two settings

passdb passwd-file {
}

userdb passwd-file {
}

Thanks in advance
Reply With Quote
Reply

Bookmarks

Tags
dovecot user auth

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail server using Postfix, Dovecot, Mysql... Postfix virtual maps doesn't work?? tarasbuljba HOWTO-Related Questions 33 28th May 2010 14:33
Emails not working [URGENT] AusHell General 8 2nd July 2008 04:07
getting problem with postfix and dovecot ayush1440 Server Operation 16 1st February 2008 16:00
Postfix + Dovecot + Mysql + Postfix admin 4integration Server Operation 2 3rd July 2007 23:15
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47


All times are GMT +2. The time now is 15:59.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.