Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 23rd February 2007, 08:46
lampaddict lampaddict is offline
Junior Member
 
Join Date: Feb 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Can't Get Postfix/Courier Working

I have really come to HATE Postfix and Courier. This has been the most frustrating ordeal I've ever gone through.

I have followed the tutorial http://www.howtoforge.com/virtual_po..._quota_courier to the letter, several times over, and have yet to get this working. No matter what I do, I am unable to send/receive mail through my client (tried both Evolution Mail and Kontact - and tried every possible setting in both). All I get is an error stating that my login failed.

Can someone PLEASE help me figure this out so that I can get my email working. I'd appreciate any help I can get on this issue.

Thanks
Sean
Reply With Quote
Sponsored Links
  #2  
Old 23rd February 2007, 08:50
martinfst martinfst is offline
Senior Member
 
Join Date: Dec 2006
Location: Hilversum, The Netherlands
Posts: 880
Thanks: 1
Thanked 18 Times in 17 Posts
Send a message via MSN to martinfst Send a message via Skype™ to martinfst
Default

If you want help, please help us by providing more info.
I understand your frustration, but we can't help without specific error codes (log files !) and what your trying to do that fails.

Could you please help us?
Reply With Quote
  #3  
Old 23rd February 2007, 09:18
lampaddict lampaddict is offline
Junior Member
 
Join Date: Feb 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well, I'm not sure what more I can offer. When I try to use a client program, such as Evolution or Kontact, to send or receive email, all I get is the login window telling me that my login was incorrect (though it isn't). I've tried nearly everything I can think of, but it just doesn't work.

If you tell me what log file will be helpful, I'll post it. The only entries that I can see which may be related are as follows:

auth.log
Code:
Feb 22 22:26:26 dns1 saslauthd[31824]: pam_mysql - SELECT returned no result.
Feb 22 22:26:26 dns1 saslauthd[31824]: DEBUG: auth_pam: pam_authenticate failed: User not known to the underlying authentication module
Feb 22 22:26:26 dns1 saslauthd[31824]: do_auth         : auth failure: [user=sean] [service=smtp] [realm=] [mech=pam] [reason=PAM auth error]
Feb 22 22:27:59 dns1 saslauthd[31825]: pam_mysql - SELECT returned no result.
Feb 22 22:27:59 dns1 saslauthd[31825]: DEBUG: auth_pam: pam_authenticate failed: User not known to the underlying authentication module
Feb 22 22:27:59 dns1 saslauthd[31825]: do_auth         : auth failure: [user=sean] [service=smtp] [realm=] [mech=pam] [reason=PAM auth error]
Feb 22 22:28:53 dns1 saslauthd[31824]: pam_mysql - SELECT returned no result.
Feb 22 22:28:53 dns1 saslauthd[31824]: DEBUG: auth_pam: pam_authenticate failed: User not known to the underlying authentication module
Feb 22 22:28:53 dns1 saslauthd[31824]: do_auth         : auth failure: [user=sean] [service=smtp] [realm=] [mech=pam] [reason=PAM auth error]
mail.log
Code:
Feb 22 23:56:04 dns1 postfix/virtual[11622]: 884E12202455: to=<sean [at ] lamp******.com>, relay=virtual, delay=0.13, delays=0.09/0.02/0/0.02, dsn=2.0.0, status=s$
Feb 22 23:56:04 dns1 postfix/qmgr[3480]: 884E12202455: removed
Feb 22 23:59:04 dns1 imapd: Connection, ip=[::ffff:24.17.104.248]
Feb 22 23:59:04 dns1 imapd: LOGIN FAILED, user=sean, ip=[::ffff:24.17.104.248]
But again, the username and password I am using are fine, so I can't understand what is going on. Also, I followed the instructions in the tutorial to the letter, so things should be setup correctly.

I've yet to be able to get Postfix/Courier working using ANY tutorial. I'm extremely frustrated (been at this for three days) and am considering trying Sendmail and/or Dovecot.

Hopefully someone can help me get this figured out, I hate it when things don't work and it's even more upsetting because I'm too stubborn to just walk away, lol.

Sean

Last edited by lampaddict; 23rd February 2007 at 19:34.
Reply With Quote
  #4  
Old 23rd February 2007, 10:45
martinfst martinfst is offline
Senior Member
 
Join Date: Dec 2006
Location: Hilversum, The Netherlands
Posts: 880
Thanks: 1
Thanked 18 Times in 17 Posts
Send a message via MSN to martinfst Send a message via Skype™ to martinfst
Default

Your auth.log indicates the problem. For some reason the user sean does not exit in the database. I'm not familiar with this tutorial, but how are users storedin the database table? As 'sean' or as 'sean at userdomain.com'. Maybe you need to change the select statement in the authentication module or need to add the user to the table. HTH

Last edited by martinfst; 23rd February 2007 at 22:29.
Reply With Quote
  #5  
Old 23rd February 2007, 10:54
lampaddict lampaddict is offline
Junior Member
 
Join Date: Feb 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The user is stored as "sean [at ] lamp******.com" in the database which is how I perceived things needed to be in reading the tutorial. I could be wrong, but I can try changing this to see if it works. Though, I should note that I did try entering in sean [at ] lamp******.com in both clients and that failed as well.

Sean

Last edited by lampaddict; 23rd February 2007 at 19:34.
Reply With Quote
  #6  
Old 23rd February 2007, 11:10
martinfst martinfst is offline
Senior Member
 
Join Date: Dec 2006
Location: Hilversum, The Netherlands
Posts: 880
Thanks: 1
Thanked 18 Times in 17 Posts
Send a message via MSN to martinfst Send a message via Skype™ to martinfst
Default

In the table "sean at userdomain.com" is stored.
The the select statement seem to look for "sean".

That's why you cannot authenticate as the users does not match. I'd recheck the select statement auth_pam_mysql : /etc/courier/authmysqlrc

Last edited by martinfst; 23rd February 2007 at 22:29.
Reply With Quote
  #7  
Old 23rd February 2007, 19:39
lampaddict lampaddict is offline
Junior Member
 
Join Date: Feb 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Well, you were right. The server was looking for the full email address. The weird thing here is that I DID in fact try using the full email in both clients, but it still didn't work; why it's all working now is a mystery.

I did go back and re-do a few things, but nothing major. I'll need to investigate this further and see what I did. I'll be sure to post back here when I get it figured out, it seems others are having the same issues I had, so hopefully the suggestions you've made (and the hacks/edits that I did, when I figure out which ones did the trick) will help others.

Would you be so kind as to edit two of your posts and just mask the email address for me (I didn't think of this last night) so spammers don't grab it.

Thanks again for your help, I really appreciate it. Your response was both rapid and informative, and you were very patient. Now, if you could possible bottle your knowledge up into a nice energy drink, that would be nice as well, lol.

Sean
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
Getting e-mail working hansoffate Installation/Configuration 29 13th August 2008 16:33
DNS stop working MZH General 3 22nd February 2008 11:10
1 email working, but others arent? lipp9000 Installation/Configuration 8 22nd July 2006 16:35
PHP & MySQL working, but AREN'T WORKING???? lipp9000 Installation/Configuration 4 21st July 2006 17:01
ftp not working pesja Installation/Configuration 3 17th July 2006 12:37


All times are GMT +2. The time now is 10:56.


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