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 18th February 2011, 14:05
OpenSauce OpenSauce is offline
Junior Member
 
Join Date: Feb 2011
Posts: 8
Thanks: 0
Thanked 2 Times in 2 Posts
Default Squirrelmail blank email list on virtual server install

Hi all this is my first post and your help would be appreciated. I have been browsing and Googling for three days trying to solve this problem!

I have installed "Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 9.04)" according to the tutorial but have a couple of issues which I cannot solve and would appreciate your help.

Problem 1
I can login to Squirrelmail with a virtual account.
SquirrelMail shows the folders on the left but no emails in the main space. It does not say "No emails found" but just a blank frame. If there is new mail then a number appears next to Inbox which suggests that it does know where the folders are but will not display them! If I search for emails then they appear in a list and I can view them. I can send emails from the virtual account and recieve them (thanks Falko, that works well!). I have come across many suggestions about different settings for the folder prefix and tried them all but with no joy.

Problem 2
This may or may not be connected. If I connect to the server remotely using Thuderbird I can receive and read email with no problem. However I cannot send email (SMTP) as it does not like the password. As far as I can make out this should be the same password as is entered into the user account in MySQL as there isn't anywhere else to enter a password. As I am not yet an expert in what connects to what using this virtual server setup, I am not sure where to look to see what is not connecting properly.
Here is the mail log entry which suggests an authorisation problem but I don't know how to resolve it.
Code:
Feb 18 12:00:05 server77-68-61-224 postfix/smtpd[14779]: connect from mail.steveportertransport.com[86.63.4.43]
Feb 18 12:00:09 server77-68-61-224 postfix/smtpd[14779]: warning: SASL authentication failure: Password verification failed
Feb 18 12:00:09 server77-68-61-224 postfix/smtpd[14779]: warning: mail.steveportertransport.com[86.63.4.43]: SASL PLAIN authentication failed: authentication failure
Feb 18 12:00:09 server77-68-61-224 postfix/smtpd[14779]: warning: mail.steveportertransport.com[86.63.4.43]: SASL LOGIN authentication failed: authentication failure
Feb 18 12:00:11 server77-68-61-224 postfix/smtpd[14779]: disconnect from mail.steveportertransport.com[86.63.4.43]
I don't know what further information you may need to assist me but any help and pointers would be appreciated.

Many thanks in advance and thanks to everyone who has posted so far.
Mike
Isle of Wight
Reply With Quote
Sponsored Links
  #2  
Old 19th February 2011, 12:19
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Quote:
Originally Posted by OpenSauce View Post
Problem 1
I can login to Squirrelmail with a virtual account.
SquirrelMail shows the folders on the left but no emails in the main space. It does not say "No emails found" but just a blank frame. If there is new mail then a number appears next to Inbox which suggests that it does know where the folders are but will not display them! If I search for emails then they appear in a list and I can view them. I can send emails from the virtual account and recieve them (thanks Falko, that works well!). I have come across many suggestions about different settings for the folder prefix and tried them all but with no joy.
Please make sure that you introduced no PHP syntax errors when you modified any SquirrelMail files. Also take a look at your mail log if there are any errors related to this issue.

Quote:
Problem 2
This may or may not be connected. If I connect to the server remotely using Thuderbird I can receive and read email with no problem. However I cannot send email (SMTP) as it does not like the password. As far as I can make out this should be the same password as is entered into the user account in MySQL as there isn't anywhere else to enter a password. As I am not yet an expert in what connects to what using this virtual server setup, I am not sure where to look to see what is not connecting properly.
Here is the mail log entry which suggests an authorisation problem but I don't know how to resolve it.
Code:
Feb 18 12:00:05 server77-68-61-224 postfix/smtpd[14779]: connect from mail.steveportertransport.com[86.63.4.43]
Feb 18 12:00:09 server77-68-61-224 postfix/smtpd[14779]: warning: SASL authentication failure: Password verification failed
Feb 18 12:00:09 server77-68-61-224 postfix/smtpd[14779]: warning: mail.steveportertransport.com[86.63.4.43]: SASL PLAIN authentication failed: authentication failure
Feb 18 12:00:09 server77-68-61-224 postfix/smtpd[14779]: warning: mail.steveportertransport.com[86.63.4.43]: SASL LOGIN authentication failed: authentication failure
Feb 18 12:00:11 server77-68-61-224 postfix/smtpd[14779]: disconnect from mail.steveportertransport.com[86.63.4.43]
Do you use the email address as the username? Does the left part of the email address (before @) exist as a local user account on the server?
__________________
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 19th February 2011, 20:01
OpenSauce OpenSauce is offline
Junior Member
 
Join Date: Feb 2011
Posts: 8
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Thanks for the reply Falko.
I will check those points and get back to you
Mike
Reply With Quote
  #4  
Old 20th February 2011, 22:27
OpenSauce OpenSauce is offline
Junior Member
 
Join Date: Feb 2011
Posts: 8
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Hi again Falko.
Ref: Problem 1
I have been fault finding through the PHP scripts by adding echo statements to filter out where the programme stopped. I ended up in right_main.php at the line
Code:
do_hook('right_main_after_header');
I have commented out this one line and as if by magic, all the messages have appeared!
Now my question is what does that line do and is it safe to leave it commented out?

Ref Problem 2
The username is the email address as entered in the virtual users table of the database with the relevant password. The user does not exist as a user on the local system.

Thanks for your help so far.
Mike

Last edited by OpenSauce; 20th February 2011 at 22:33.
Reply With Quote
  #5  
Old 21st February 2011, 00:10
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Can you restart saslauthd and Postfix and check if the authentication problem still exists?
__________________
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
  #6  
Old 21st February 2011, 10:12
OpenSauce OpenSauce is offline
Junior Member
 
Join Date: Feb 2011
Posts: 8
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Hi Falko
I've restarted saslauthd and postfix but I get the same error. I can receive email in Thunderbird (IMAP) but cannot send (SMTP). Mail log shows:
Code:
Feb 21 08:06:03 server77-68-61-224 imapd: LOGIN, user=sales@ejumblesale.com, ip=[::ffff:86.63.4.43], port=[39329], protocol=IMAP
Feb 21 08:07:08 server77-68-61-224 postfix/smtpd[1103]: connect from mail.steveportertransport.com[86.63.4.43]
Feb 21 08:07:17 server77-68-61-224 postfix/smtpd[1103]: warning: SASL authentication failure: Password verification failed
Feb 21 08:07:17 server77-68-61-224 postfix/smtpd[1103]: warning: mail.steveportertransport.com[86.63.4.43]: SASL PLAIN authentication failed: authentication failure
Feb 21 08:07:17 server77-68-61-224 postfix/smtpd[1103]: warning: mail.steveportertransport.com[86.63.4.43]: SASL LOGIN authentication failed: authentication failure
Feb 21 08:07:21 server77-68-61-224 postfix/smtpd[1103]: warning: SASL authentication failure: Password verification failed
Feb 21 08:07:21 server77-68-61-224 postfix/smtpd[1103]: warning: mail.steveportertransport.com[86.63.4.43]: SASL PLAIN authentication failed: authentication failure
Feb 21 08:07:21 server77-68-61-224 postfix/smtpd[1103]: warning: mail.steveportertransport.com[86.63.4.43]: SASL LOGIN authentication failed: authentication failure
Feb 21 08:07:23 server77-68-61-224 postfix/smtpd[1103]: disconnect from mail.steveportertransport.com[86.63.4.43]
Feb 21 08:07:29 server77-68-61-224 imapd: LOGOUT, user=sales@ejumblesale.com, ip=[::ffff:86.63.4.43], headers=0, body=0, rcvd=216, sent=962, time=86
Any further ideas?

Regarding the other problem with SquirrelMail, I have had a good look through the files and it appears that the offending line
Code:
do_hook('right_main_after_header');
relates to the plugins registered (compatibility and the password change one). I have uninstalled them and reinstalled them but it still doesn't work. I shall try uninstalling them and running it without them to see if that works.

Mike
Reply With Quote
  #7  
Old 21st February 2011, 10:17
OpenSauce OpenSauce is offline
Junior Member
 
Join Date: Feb 2011
Posts: 8
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I have used /usr/sbin/squirrelmail-configure to disable the two plugins and now Squirrelmail behaves normally with the hook line active again so it looks like it's something to do with the plugins that is causing me grief.

Mike
Reply With Quote
  #8  
Old 21st February 2011, 10:28
OpenSauce OpenSauce is offline
Junior Member
 
Join Date: Feb 2011
Posts: 8
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Well I'm still at it!
I have reinstalled compatibility and activated using
Code:
/usr/sbin/squirrelmail-configure
and squirrelmail is fine.
As soon as I activate change_sqlpass it kills off squirrelmail so it looks like it is a problem relating to that file.
I shall try a complete uninstall and clean up of the plugin and reinstall it.
Mike
Reply With Quote
  #9  
Old 21st February 2011, 10:35
OpenSauce OpenSauce is offline
Junior Member
 
Join Date: Feb 2011
Posts: 8
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Solved!!
For future reference, I uninstalled the change_sqlpass plugin but also deleted the folder with the plugin files in it. I reinstalled it and activated the plugin and it works fine.
This suggests that there was a problem with one of the files in the plugin directory which has now been deleted or I introduced an error when editing the confiig.php file of the plugin.
Thank you for pointing me in the right direction, Falko.

Now, all that remains is to work out why I cannot login using SMTP from Thunderbird....
Answers on a postcard please

Mike
Reply With Quote
The Following User Says Thank You to OpenSauce For This Useful Post:
falko (21st February 2011)
  #10  
Old 21st February 2011, 10:54
OpenSauce OpenSauce is offline
Junior Member
 
Join Date: Feb 2011
Posts: 8
Thanks: 0
Thanked 2 Times in 2 Posts
 
Default

Solved part2!!

This was caused by human error (mine of course!).
In section 6 of the guide where you need to edit /etc/default/saslauthd, I missed off the -r at the end of teh OPTIONS line. I have no idea what it does but when I added it and restarted saslauthd everything worked fine.

My apologies to you Falko for creating work for you but thanks for pointing me in the direction that I needed to look to solve these issues.
A great tutorial!
Mike
Reply With Quote
The Following User Says Thank You to OpenSauce For This Useful Post:
falko (21st February 2011)
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
Vmware server 2.0.2-x with Ubuntu server 10.04 VMware Remote Console Plug-in letsharehowto HOWTO-Related Questions 12 6th December 2011 21:23
php Apps email not going through palkat General 8 21st September 2011 06:35
FTP cannot open remote folder!?! andysm849 Server Operation 23 17th October 2008 00:34
The Perfect Setup - Debian Etch (Debian 4.0) some trouble daniel80 HOWTO-Related Questions 26 1st February 2008 17:30
Can the squirrelmail webserver different then email server? ejkeebler Server Operation 2 4th November 2005 20:28


All times are GMT +2. The time now is 04:09.


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