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 22nd June 2009, 10:16
zwelabantu zwelabantu is offline
Junior Member
 
Join Date: Jun 2009
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default Dovecot fails to deliver to all mail clients

Hello everyone

I am new to linux and recently created a mail server on a SusE linux 10.2 Machine using POstfix and Dovecot.

Postfix seems to be working fine as mail gets delivered to all user's mail boxes and on checking mail on thbe mboxes it is there. However I am unable to read mail using a client such Kmail, Mutt, Outlook, Outlook Express.

When I use Telnet on port 110 I am able to loging using user's login credentials, but on running the command 'stat' it shows that there is no mail. but mail is there cause I have checked manually and /var/log/dovecot.log shows the following.

dovecot: Jun 19 14:29:08 Info: pop3-login: Aborted login: user=<root>, method=PLAIN, rip=10.29.128.164, lip=10.29.128.164, secured
dovecot: Jun 19 14:29:08 Info: auth(default): passwd-file(zwelabantu,10.29.128.164): unknown user
dovecot: Jun 19 14:29:10 Info: pop3-login: Aborted login: user=<zwelabantu>, method=PLAIN, rip=10.29.128.164, lip=10.29.128.164, secured
dovecot: Jun 19 14:39:10 Info: auth(default): passwd-file(root,10.29.128.164): unknown user
dovecot: Jun 19 14:39:12 Info: pop3-login: Aborted login: user=<root>, method=PLAIN, rip=10.29.128.164, lip=10.29.128.164, secured
dovecot: Jun 19 14:39:12 Info: auth(default): passwd-file(zwelabantu,10.29.128.164): unknown user
dovecot: Jun 19 14:39:14 Info: pop3-login: Aborted login: user=<zwelabantu>, method=PLAIN, rip=10.29.128.164, lip=10.29.128.164, secured
dovecot: Jun 19 14:49:14 Info: auth(default): passwd-file(root,10.29.128.164): unknown user
dovecot: Jun 19 14:49:16 Info: pop3-login: Aborted login: user=<root>, method=PLAIN, rip=10.29.128.164, lip=10.29.128.164, secured
dovecot: Jun 19 14:49:16 Info: auth(default): passwd-file(zwelabantu,10.29.128.164): unknown user
dovecot: Jun 19 14:49:18 Info: pop3-login: Aborted login: user=<zwelabantu>, method=PLAIN, rip=10.29.128.164, lip=10.29.128.164, secured
dovecot: Jun 19 14:59:18 Info: auth(default): passwd-file(root,10.29.128.164): unknown user
dovecot: Jun 19 14:59:18 Info: pop3-login: Aborted login: user=<root>, method=PLAIN, rip=10.29.128.164, lip=10.29.128.164, secured
dovecot: Jun 19 14:59:18 Info: auth(default): passwd-file(zwelabantu,10.29.128.164): unknown user
dovecot: Jun 19 14:59:20 Info: pop3-login: Aborted login: user=<zwelabantu>, method=PLAIN, rip=10.29.128.164, lip=10.29.128.164, secured
dovecot: Jun 19 15:09:20 Info: auth(default): passwd-file(root,10.29.128.164): unknown user
dovecot: Jun 19 15:09:22 Info: pop3-login: Aborted login: user=<root>, method=PLAIN, rip=10.29.128.164, lip=10.29.128.164, secured
dovecot: Jun 19 15:09:22 Info: auth(default): passwd-file(zwelabantu,10.29.128.164): unknown user
dovecot: Jun 19 15:09:24 Info: pop3-login: Aborted login: user=<zwelabantu>, method=PLAIN, rip=10.29.128.164, lip=10.29.128.164, secured
dcmailserver:/var/log # tail -20 dovecot.log

I have now been struggling with this for 2 months, anyone who can help me with this will be much appreciated.
Reply With Quote
Sponsored Links
  #2  
Old 22nd June 2009, 14:33
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

Thats because your dovecot is not properly configured (it is configured to use a passwd file for authentication)
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #3  
Old 22nd June 2009, 16:16
zwelabantu zwelabantu is offline
Junior Member
 
Join Date: Jun 2009
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by topdog View Post
Thats because your dovecot is not properly configured (it is configured to use a passwd file for authentication)
If I don't use a passwd file for authentication what do I need to use and how should I configure that.
Reply With Quote
  #4  
Old 22nd June 2009, 16:33
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

Code:
auth default {
  mechanisms = plain login
  passdb pam {
  }
  userdb passwd {
  }
}
Which uses pam
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #5  
Old 26th June 2009, 10:57
zwelabantu zwelabantu is offline
Junior Member
 
Join Date: Jun 2009
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by topdog View Post
Code:
auth default {
  mechanisms = plain login
  passdb pam {
  }
  userdb passwd {
  }
}
Which uses pam
After implementing changes to my dovecot.conf this is the error message I get. Tried a few solution to no avail. what should I configure further.

Info: auth(default): pam(zzzzzzzzzzz@xxxxxxxxx.co.za,127.0.0.1): pam_authenticate() failed: User not known to the underlying authentication module
Reply With Quote
  #6  
Old 26th June 2009, 11:01
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

How did you create your users ? are they system users ?
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #7  
Old 26th June 2009, 11:27
zwelabantu zwelabantu is offline
Junior Member
 
Join Date: Jun 2009
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Unhappy Dovecot fails to deliver to mail clients

Quote:
Originally Posted by topdog View Post
How did you create your users ? are they system users ?
I am using system users created manually and still have my passwd with all their login details. Here is a sample of the passwd file.

zwelabantu@dariunhouse.co.za:{PLAIN}blablabla.

I have just added the following

zwelabantu:{PALIN}blablabla

and tested the POP3 login using telnet and it log in without error, but now when i run the stat or list command I get

+0K 0 messages.
Reply With Quote
  #8  
Old 26th June 2009, 11:29
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

In that case you are not using system users, your users are in a passwd file.

Okay can you post the following files, main.cf and dovecot.conf.
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
The Following User Says Thank You to topdog For This Useful Post:
zwelabantu (26th June 2009)
  #9  
Old 26th June 2009, 12:17
zwelabantu zwelabantu is offline
Junior Member
 
Join Date: Jun 2009
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by topdog View Post
In that case you are not using system users, your users are in a passwd file.

Okay can you post the following files, main.cf and dovecot.conf.
Well my mail work fine now and all mail is now being delivered to mail clients such as outlook and outlook express.

Thanks for your help. the changes i made suddenly had an impact. Users are able to send and receive mails using their local mail clients.
Reply With Quote
Reply

Bookmarks

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
Dovecot fails to deliver to all mail clients zwelabantu Installation/Configuration 3 19th June 2009 16:57
procmail can't write Hellbound General 27 8th June 2009 21:51
just the last step...and it works. Postfix...need help config. ubuntusr Installation/Configuration 1 5th January 2009 09:50
Problem with dcc-client installation (Postfix) swap-as Installation/Configuration 9 18th September 2008 20:47
Core 4: Error Messages on Fresh Install re CTX/SSL jjw Installation/Configuration 30 6th September 2006 12:16


All times are GMT +2. The time now is 13:12.


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