Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 27th August 2012, 00:41
Monotoba Monotoba is offline
Member
 
Join Date: May 2009
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Can not log into Squirrelmail

I've tried everything I can think of and cannot log into squirel mail. I've checked the mail.err log and it is empty.
Any attempt to log into squirrelmail results in a message telling me the username or password is incorrect.
I am sure they are and have even changed the password and created a new user and still I recieve this error.

I have the following in my mail.log:

Aug 26 14:25:01 www1 postfix/smtpd[21729]: connect from localhost.localdomain[127.0.0.1]
Aug 26 14:25:01 www1 dovecot: imap-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
Aug 26 14:25:01 www1 dovecot: pop3-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
Aug 26 14:25:01 www1 postfix/smtpd[21729]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
Aug 26 14:25:01 www1 postfix/smtpd[21729]: disconnect from localhost.localdomain[127.0.0.1]
Aug 26 14:28:31 www1 postfix/qmgr[2999]: D42F42C3B10: from=<[CUT- EMAILADDRESS]>, size=2521, nrcpt=1 (queue active)
Aug 26 14:29:03 www1 postfix/smtp[21819]: connect to gmail-smtp-in.l.google.com[74.125.127.26]:25: Connection timed out
Aug 26 14:29:0ww1 postfix/smtp[21819]: connect to alt1.gmail-smtp-in.l.google.com[209.85.225.26]:25: Connection timed out
Aug 26 14:29:33 www1 postfix/smtp[21819]: connect to alt1.gmail-smtp-in.l.google.com[2001:4860:b007::1b]:25: Network is unreachable
Aug 26 14:30:01 www1 dovecot: imap-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
Aug 26 14:30:01 www1 postfix/smtpd[21885]: connect from localhost.localdomain[127.0.0.1]
Aug 26 14:30:01 www1 postfix/smtpd[21885]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
Aug 26 14:30:01 www1 postfix/smtpd[21885]: disconnect from localhost.localdomain[127.0.0.1]
Aug 26 14:30:01 www1 dovecot: pop3-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
Aug 26 14:30:03 www1 postfix/smtp[21819]: connect to alt2.gmail-smtp-in.l.google.com[74.125.45.26]:25: Connection timed out
Aug 26 14:30:03 www1 postfix/smtp[21819]: D42F42C3B10: to=<[CUT- EMAILADDRESS]>, relay=none, delay=70078, delays=69987/0.06/91/0, dsn=4.4.1, status=deferred (connect to alt2.gmail-smtp-in.l.google.com[74.125.45.26]:25: Connection timed out)
Aug 26 14:35:01 www1 dovecot: imap-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
Aug 26 14:35:01 www1 postfix/smtpd[22018]: connect from localhost.localdomain[127.0.0.1]
Aug 26 14:35:01 www1 postfix/smtpd[22018]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
Aug 26 14:35:01 www1 postfix/smtpd[22018]: disconnect from localhost.localdomain[127.0.0.1]
Aug 26 14:35:01 www1 dovecot: pop3-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured3 www1 postfix/smtp[21819]: connect to gmail-smtp-in.l.google.com[2001:4860:8005::1b]:25: Network is unreachable
Aug 26 14:29:33 w

Does anyone have any ideas one what to check first?

Last edited by Monotoba; 27th August 2012 at 00:44.
Reply With Quote
Sponsored Links
  #2  
Old 27th August 2012, 10:48
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,501 Times in 4,330 Posts
Default

None of these lines is from a auth attempt from squirrelmail. So either ou confgured squirrelmail to connect to a different server or you posted the wrong part of the log file.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 27th August 2012, 16:47
Monotoba Monotoba is offline
Member
 
Join Date: May 2009
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Question

I know I followed the HOW TO perfect server for ubuntu 12.04. I also just ran the squirrelmail-configure script again and followed the tutorial. Next I opened the /var/log/mail.log file and emptied it. Then I opened Squirrelmail in the browser and tried logging in. The mail.log file is still empty and I cannot log in to squirrelmail. I am sure the squirrelmail confiuration was set for devecot as per the tutorial.

This is a different machine than the one I had the ftp issue with. That machine is working perfectly now. But I need to get this one up and running and email is the only thing not working...

I do not truly understand the way all the applications work together for email. I do understand that squirrelmail is simply a web front end for the underlying mail system. Dovecot is the actual application providing the mail system but it uses other applications for authentication right?

So if Squirrelmail is not talking to Dovecot or the authentication agent, then is this a squirrelmail issue? Can I uninstall squirrelmail and reinstall it without messing up ISPConfig?

Last edited by Monotoba; 27th August 2012 at 16:49.
Reply With Quote
  #4  
Old 27th August 2012, 16:55
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,501 Times in 4,330 Posts
Default

Quote:
but it uses other applications for authentication right?
No, the authentication is done by dovecot, there are no other applications involved.

Quote:
So if Squirrelmail is not talking to Dovecot or the authentication agent, then is this a squirrelmail issue? Can I uninstall squirrelmail and reinstall it without messing up ISPConfig?
Check your squirrelmail config if the imap server is set to "localhost". then check the /etc/hosts file if there is a line for IP 127.0.0.1 in it for the domain "localhost". Then check with:

netstat -tap

if dovecot is listeing on all network interfaces (*) or at least "localhost" and your server hostname.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 27th August 2012, 17:20
Monotoba Monotoba is offline
Member
 
Join Date: May 2009
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Question

netstat -tap shows four entries for dovecot: pop3, imap2, pop3s, imaps and says listening for each entry.

tcp 0 0 *op3 *:* LISTEN 1256/dovecot
tcp 0 0 *:imap2 *:* LISTEN 1256/dovecot
tcp6 0 0 [::]:imaps [::]:* LISTEN 1256/dovecot
tcp6 0 0 [::]op3s [::]:* LISTEN 1256/dovecot


My squirrelmail config file has localhost set as the imap server address and dovecot set as the imap application:

<?php

/**
* SquirrelMail Configuration File
* Created using the configure script, conf.pl
*/

global $version;
$config_version = '1.4.0';
$config_use_color = 1;

$org_name = "SquirrelMail";
$org_logo = SM_PATH . 'images/sm_logo.png';
$org_logo_width = '308';
$org_logo_height = '111';
$org_title = "SquirrelMail $version";
$signout_page = '';
$frame_top = '_top';

$provider_uri = 'http://squirrelmail.org/';

$provider_name = 'SquirrelMail';

$motd = "";

$squirrelmail_default_language = 'en_US';
$default_charset = 'iso-8859-1';
$lossy_encoding = false;

$domain = trim(implode('', file('/etc/'.(file_exists('/etc/mailname')?'mail':'host').'name')));
$imapServerAddress = 'localhost';
$imapPort = 143;
$useSendmail = false;
$smtpServerAddress = 'localhost';
$smtpPort = 25;
$sendmail_path = '/usr/sbin/sendmail';
$sendmail_args = '-i -t';
$pop_before_smtp = false;
$pop_before_smtp_host = '';
$imap_server_type = 'dovecot';
$invert_time = false;
$optional_delimiter = 'detect';
$encode_header_key = '';

$default_folder_prefix = '';
$trash_folder = 'Trash';
$sent_folder = 'Sent';
$draft_folder = 'Drafts';
$default_move_to_trash = true;
$default_move_to_sent = true;
$default_save_as_draft = true;
$show_prefix_option = false;
$list_special_folders_first = true;
$use_special_folder_color = true;
$auto_expunge = true;
$default_sub_of_inbox = false;
$show_contain_subfolders_option = false;
$default_unseen_notify = 2;
$default_unseen_type = 1;
$auto_create_special = true;
$delete_folder = false;
$noselect_fix_enable = false;

$data_dir = '/var/lib/squirrelmail/data/';
$attachment_dir = '/var/spool/squirrelmail/attach/';
$dir_hash_level = 0;
$default_left_size = '150';
$force_username_lowercase = true;
$default_use_priority = true;
$hide_sm_attributions = false;
$default_use_mdn = true;
$edit_identity = true;
$edit_name = true;
$hide_auth_header = false;
$allow_thread_sort = false;
$allow_server_sort = false;
$allow_charset_search = true;
$uid_support = true;

$plugins[0] = 'view_as_html';

$theme_css = '';
$theme_default = 0;
$theme[0]['PATH'] = SM_PATH . 'themes/default_theme.php';
$theme[0]['NAME'] = 'Default';
$theme[1]['PATH'] = SM_PATH . 'themes/plain_blue_theme.php';
$theme[1]['NAME'] = 'Plain Blue';
$theme[2]['PATH'] = SM_PATH . 'themes/sandstorm_theme.php';
$theme[2]['NAME'] = 'Sand Storm';
$theme[3]['PATH'] = SM_PATH . 'themes/deepocean_theme.php';
$theme[3]['NAME'] = 'Deep Ocean';
$theme[4]['PATH'] = SM_PATH . 'themes/slashdot_theme.php';
$theme[4]['NAME'] = 'Slashdot';
$theme[5]['PATH'] = SM_PATH . 'themes/purple_theme.php';
$theme[5]['NAME'] = 'Purple';
$theme[6]['PATH'] = SM_PATH . 'themes/forest_theme.php';
$theme[6]['NAME'] = 'Forest';
$theme[7]['PATH'] = SM_PATH . 'themes/ice_theme.php';
$theme[7]['NAME'] = 'Ice';
$theme[8]['PATH'] = SM_PATH . 'themes/seaspray_theme.php';
$theme[8]['NAME'] = 'Sea Spray';
$theme[9]['PATH'] = SM_PATH . 'themes/bluesteel_theme.php';
$theme[9]['NAME'] = 'Blue Steel';
$theme[10]['PATH'] = SM_PATH . 'themes/dark_grey_theme.php';
$theme[10]['NAME'] = 'Dark Grey';
$theme[11]['PATH'] = SM_PATH . 'themes/high_contrast_theme.php';
$theme[11]['NAME'] = 'High Contrast';
$theme[12]['PATH'] = SM_PATH . 'themes/black_bean_burrito_theme.php';
$theme[12]['NAME'] = 'Black Bean Burrito';
$theme[13]['PATH'] = SM_PATH . 'themes/servery_theme.php';
$theme[13]['NAME'] = 'Servery';
$theme[14]['PATH'] = SM_PATH . 'themes/maize_theme.php';
$theme[14]['NAME'] = 'Maize';
$theme[15]['PATH'] = SM_PATH . 'themes/bluesnews_theme.php';
$theme[15]['NAME'] = 'BluesNews';
$theme[16]['PATH'] = SM_PATH . 'themes/deepocean2_theme.php';
$theme[16]['NAME'] = 'Deep Ocean 2';
$theme[17]['PATH'] = SM_PATH . 'themes/blue_grey_theme.php';
$theme[17]['NAME'] = 'Blue Grey';
$theme[18]['PATH'] = SM_PATH . 'themes/dompie_theme.php';
$theme[18]['NAME'] = 'Dompie';
$theme[19]['PATH'] = SM_PATH . 'themes/methodical_theme.php';
$theme[19]['NAME'] = 'Methodical';
$theme[20]['PATH'] = SM_PATH . 'themes/greenhouse_effect.php';
$theme[20]['NAME'] = 'Greenhouse Effect (Changes)';
$theme[21]['PATH'] = SM_PATH . 'themes/in_the_pink.php';
$theme[21]['NAME'] = 'In The Pink (Changes)';
$theme[22]['PATH'] = SM_PATH . 'themes/kind_of_blue.php';
$theme[22]['NAME'] = 'Kind of Blue (Changes)';
$theme[23]['PATH'] = SM_PATH . 'themes/monostochastic.php';
$theme[23]['NAME'] = 'Monostochastic (Changes)';
$theme[24]['PATH'] = SM_PATH . 'themes/shades_of_grey.php';
$theme[24]['NAME'] = 'Shades of Grey (Changes)';
$theme[25]['PATH'] = SM_PATH . 'themes/spice_of_life.php';
$theme[25]['NAME'] = 'Spice of Life (Changes)';
$theme[26]['PATH'] = SM_PATH . 'themes/spice_of_life_lite.php';
$theme[26]['NAME'] = 'Spice of Life - Lite (Changes)';
$theme[27]['PATH'] = SM_PATH . 'themes/spice_of_life_dark.php';
$theme[27]['NAME'] = 'Spice of Life - Dark (Changes)';
$theme[28]['PATH'] = SM_PATH . 'themes/christmas.php';
$theme[28]['NAME'] = 'Holiday - Christmas';
$theme[29]['PATH'] = SM_PATH . 'themes/darkness.php';
$theme[29]['NAME'] = 'Darkness (Changes)';
$theme[30]['PATH'] = SM_PATH . 'themes/random.php';
$theme[30]['NAME'] = 'Random (Changes every login)';
$theme[31]['PATH'] = SM_PATH . 'themes/midnight.php';
$theme[31]['NAME'] = 'Midnight';
$theme[32]['PATH'] = SM_PATH . 'themes/alien_glow.php';
$theme[32]['NAME'] = 'Alien Glow';
$theme[33]['PATH'] = SM_PATH . 'themes/dark_green.php';
$theme[33]['NAME'] = 'Dark Green';
$theme[34]['PATH'] = SM_PATH . 'themes/penguin.php';
$theme[34]['NAME'] = 'Penguin';
$theme[35]['PATH'] = SM_PATH . 'themes/minimal_bw.php';
$theme[35]['NAME'] = 'Minimal BW';
$theme[36]['PATH'] = SM_PATH . 'themes/redmond.php';
$theme[36]['NAME'] = 'Redmond';
$theme[37]['PATH'] = SM_PATH . 'themes/netstyle_theme.php';
$theme[37]['NAME'] = 'Net Style';
$theme[38]['PATH'] = SM_PATH . 'themes/silver_steel_theme.php';
$theme[38]['NAME'] = 'Silver Steel';
$theme[39]['PATH'] = SM_PATH . 'themes/simple_green_theme.php';
$theme[39]['NAME'] = 'Simple Green';
$theme[40]['PATH'] = SM_PATH . 'themes/wood_theme.php';
$theme[40]['NAME'] = 'Wood';
$theme[41]['PATH'] = SM_PATH . 'themes/bluesome.php';
$theme[41]['NAME'] = 'Bluesome';
$theme[42]['PATH'] = SM_PATH . 'themes/simple_green2.php';
$theme[42]['NAME'] = 'Simple Green 2';
$theme[43]['PATH'] = SM_PATH . 'themes/simple_purple.php';
$theme[43]['NAME'] = 'Simple Purple';
$theme[44]['PATH'] = SM_PATH . 'themes/autumn.php';
$theme[44]['NAME'] = 'Autumn';
$theme[45]['PATH'] = SM_PATH . 'themes/autumn2.php';
$theme[45]['NAME'] = 'Autumn 2';
$theme[46]['PATH'] = SM_PATH . 'themes/blue_on_blue.php';
$theme[46]['NAME'] = 'Blue on Blue';
$theme[47]['PATH'] = SM_PATH . 'themes/classic_blue.php';
$theme[47]['NAME'] = 'Classic Blue';
$theme[48]['PATH'] = SM_PATH . 'themes/classic_blue2.php';
$theme[48]['NAME'] = 'Classic Blue 2';
$theme[49]['PATH'] = SM_PATH . 'themes/powder_blue.php';
$theme[49]['NAME'] = 'Powder Blue';
$theme[50]['PATH'] = SM_PATH . 'themes/techno_blue.php';
$theme[50]['NAME'] = 'Techno Blue';
$theme[51]['PATH'] = SM_PATH . 'themes/turquoise.php';
$theme[51]['NAME'] = 'Turquoise';

$default_use_javascript_addr_book = false;
$abook_global_file = '';
$abook_global_file_writeable = false;
$abook_global_file_listing = true;
$abook_file_line_length = 2048;

$addrbook_dsn = '';
$addrbook_table = 'address';

$prefs_dsn = '';
$prefs_table = 'userprefs';
$prefs_user_field = 'user';
$prefs_key_field = 'prefkey';
$prefs_val_field = 'prefval';
$addrbook_global_dsn = '';
$addrbook_global_table = 'global_abook';
$addrbook_global_writeable = false;
$addrbook_global_listing = false;

$no_list_for_subscribe = false;
$smtp_auth_mech = 'none';
$imap_auth_mech = 'login';
$smtp_sitewide_user = '';
$smtp_sitewide_pass = '';
$use_imap_tls = false;
$use_smtp_tls = false;
$session_name = 'SQMSESSID';
$only_secure_cookies = true;
$disable_security_tokens = false;
$check_referrer = '';

$config_location_base = '';

@include SM_PATH . 'config/config_local.php';

My host file has localhost.localdomain localhost set ip 127.0.0.1

/etc/hosts file:

127.0.0.1 localhost.localdomain localhost
[CUT - EXTERNAL IP] www1.[CUT - DOMAINNAME] www1

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters


So what is the next step to take? What should I check next?

BTW: Thank you for all your help over the passed few days.

Last edited by Monotoba; 27th August 2012 at 17:23.
Reply With Quote
  #6  
Old 27th August 2012, 18:22
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,501 Times in 4,330 Posts
Default

This looks fine so far. And the squirrelmail installation is on the same server that also runs the imap server?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 27th August 2012, 18:44
Monotoba Monotoba is offline
Member
 
Join Date: May 2009
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes, all on the same machine.
Reply With Quote
  #8  
Old 28th August 2012, 04:34
Monotoba Monotoba is offline
Member
 
Join Date: May 2009
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Question

I installed mailutils and tried sending a message with mailx (I read on another site that an email must be sent to the account before you can log into it). It looks like the message was sent. Next I tried logging in to the users account using squirrelmail and got the following in the log file:

Aug 27 18:23:35 www1 dovecot: imap-login: Aborted login (auth failed, 1 attempts): user=<CUT - EMAILADDRESS>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Aug 27 18:25:01 www1 dovecot: imap-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
Aug 27 18:25:01 www1 postfix/smtpd[30935]: connect from localhost.localdomain[127.0.0.1]
Aug 27 18:25:01 www1 postfix/smtpd[30935]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
Aug 27 18:25:01 www1 postfix/smtpd[30935]: disconnect from localhost.localdomain[127.0.0.1]
Aug 27 18:25:01 www1 dovecot: pop3-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
Aug 27 18:25:02 www1 dovecot: imap-login: Aborted login (auth failed, 1 attempts): user=<[CUT- USERNAME]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured

Note that I tried using the username only and also the complete email address including the domain. So it looks like I can now get to the login stage but authentication fails and I am sure I am using the proper password. I have changed it and tried again with the same results. But at least I am getting something in the log file....

So where do I go from here to locate the actual cause of this issue?
Reply With Quote
  #9  
Old 28th August 2012, 04:51
Monotoba Monotoba is offline
Member
 
Join Date: May 2009
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Question

In the following portion of the mail.log I notice that the auth method is set to plain. Yet the email passwords in the database are encrypted. I'm not sure plain means clear text or not. But could this have anything to do with login failure?


Aug 27 18:45:01 www1 postfix/smtpd[31334]: connect from localhost.localdomain[127.0.0.1]
Aug 27 18:45:01 www1 dovecot: imap-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
Aug 27 18:45:01 www1 postfix/smtpd[31334]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
Aug 27 18:45:01 www1 postfix/smtpd[31334]: disconnect from localhost.localdomain[127.0.0.1]
Aug 27 18:45:01 www1 dovecot: pop3-login: Disconnected (no auth attempts): rip=127.0.0.1, lip=127.0.0.1, secured
Aug 27 18:45:10 www1 dovecot: auth-worker: mysql(localhost): Connected to database dbispconfig
Aug 27 18:45:12 www1 dovecot: imap-login: Aborted login (auth failed, 1 attempts): user=<[CUT - EMAILADDRESS]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Reply With Quote
  #10  
Old 28th August 2012, 10:54
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,501 Times in 4,330 Posts
 
Default

Plaintext authentication is the default authentication, it does not mean that passwords are stored in plaintext.

Are you sure that you used the correct username for logging into squirrelmail? The username is the complete email address e.g. "user@domain.tld" and not just "user". Have you altered any dovecot config files manually or reinstalled dovecot after you installed ispconfig? If yes, then do a manual ispconfig update as described in the release notes and select to reconfigure services.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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
SMTP error Dovecot postfix aberrio Server Operation 26 3rd February 2011 15:25
MyDNS Segfaults crypted General 19 22nd July 2010 23:49
FTP Problems wabz Installation/Configuration 6 11th January 2010 19:51
Unable to receve email aberrio Server Operation 16 8th July 2009 11:26
slow download through webserver problem snewp Technical 14 9th May 2008 06:25


All times are GMT +2. The time now is 05:52.


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