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 14th July 2010, 06:03
Doles Doles is offline
Junior Member
 
Join Date: Jul 2010
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 10.04

Hi there.
I have run through this Howto, and at the end result I get the following error from squirrelmail.
Code:
Error connecting to IMAP server: tls://localhost.
0 :
It is happening before any authentication is done because I've put bogus details in and get the same result.

I've done everything according to the HowTo, and sent the Welcome email with mailx. This didn't work :/ I tried to send an email to my gmail from mailx but no luck. Could that be a clue?

Squirrelmail configtest shows this at the end
Code:
Checking outgoing mail service....
    SMTP server OK (220 server1.example.com ESMTP Postfix (Ubuntu))
Checking IMAP service....

    ERROR: Error connecting to IMAP server "localhost:143".Server error: (0)
So there is definitely something wrong with courier-imap

Code:
doles@server1:~$ sudo netstat -tap
[sudo] password for doles: 
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 *:www                   *:*                     LISTEN      3685/apache2    
tcp        0      0 *:cisco-sccp            *:*                     LISTEN      3535/asterisk   
tcp        0      0 *:32112                 *:*                     LISTEN      1209/sshd       
tcp        0      0 *:x11-1                 *:*                     LISTEN      3893/Xvnc4      
tcp        0      0 *:x11-2                 *:*                     LISTEN      3949/Xvnc4      
tcp        0      0 localhost:domain        *:*                     LISTEN      2896/dnsmasq    
tcp        0      0 server1:domain           *:*                     LISTEN      2896/dnsmasq    
tcp        0      0 localhost:ipp           *:*                     LISTEN      3627/cupsd      
tcp        0      0 *:smtp                  *:*                     LISTEN      19029/master    
tcp        0      0 *:microsoft-ds          *:*                     LISTEN      566/smbd        
tcp        0      0 localhost:imaps         *:*                     LISTEN      17671/couriertcpd
tcp        0      0 *:nfs                   *:*                     LISTEN      -               
tcp        0      0 *:4002                  *:*                     LISTEN      3401/rpc.mountd 
tcp        0      0 localhost:10024         *:*                     LISTEN      17891/amavisd (mast
tcp        0      0 localhost:10025         *:*                     LISTEN      19029/master    
tcp        0      0 *:33641                 *:*                     LISTEN      -               
tcp        0      0 *:mysql                 *:*                     LISTEN      1246/mysqld     
tcp        0      0 *:netbios-ssn           *:*                     LISTEN      566/smbd        
tcp        0      0 *:57772                 *:*                     LISTEN      1249/rpc.statd  
tcp        0      0 localhost:5038          *:*                     LISTEN      3535/asterisk   
tcp        0      0 *:sunrpc                *:*                     LISTEN      1220/portmap    
tcp6       0      0 localhost:domain        [::]:*                  LISTEN      2896/dnsmasq    
tcp6       0      0 fe80::219:d1ff:f:domain [::]:*                  LISTEN      2896/dnsmasq    
tcp6       0      0 localhost:ipp           [::]:*                  LISTEN      3627/cupsd      
tcp6       0      0 [::]:smtp               [::]:*                  LISTEN      19029/master    
tcp6       0      0 [::]:pop3s              [::]:*                  LISTEN      17733/couriertcpd
tcp6       0      0 [::]:5900               [::]:*                  LISTEN      3953/vino-server
tcp6       0      0 [::]:5901               [::]:*                  LISTEN      3893/Xvnc4      
tcp6       0      0 [::]:pop3               [::]:*                  LISTEN      17700/couriertcpd
tcp6       0      0 [::]:5902               [::]:*                  LISTEN      3949/Xvnc4      
tcp6       0      0 [::]:imap2              [::]:*                  LISTEN      19371/couriertcpd
tcp6       0      0 server1:5901             192.168.0.139%150:34759 ESTABLISHED 3893/Xvnc4
Any ideas?

I've tried dovecot as a replacement, but got a different error, still IMAP related but error:111. I'm unsure how to set up dovecot to replace courier like this

Thanks for any help
Reply With Quote
Sponsored Links
  #2  
Old 14th July 2010, 08:57
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

i don't see anything on port 143?
Reply With Quote
  #3  
Old 14th July 2010, 11:18
Doles Doles is offline
Junior Member
 
Join Date: Jul 2010
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Mark_NL View Post
i don't see anything on port 143?
Yes, you're right. What about the ones that say
Code:
localhost:imaps
and
Code:
[::]:imap2
Are one of those 143?
Reply With Quote
  #4  
Old 14th July 2010, 11:27
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

imap2 = 143 .. but it's on ipv6
Reply With Quote
The Following User Says Thank You to Mark_NL For This Useful Post:
Doles (14th July 2010)
  #5  
Old 14th July 2010, 11:51
Doles Doles is offline
Junior Member
 
Join Date: Jul 2010
Posts: 6
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Mark_NL View Post
imap2 = 143 .. but it's on ipv6
Ahh I see now. But where do I change it? I remember seeing it, but I can't find it now.

Thanks mate
Reply With Quote
  #6  
Old 14th July 2010, 13:05
Mark_NL Mark_NL is offline
Senior Member
 
Join Date: Sep 2008
Location: The Netherlands
Posts: 912
Thanks: 12
Thanked 100 Times in 96 Posts
Default

run: /etc/init.d/courier-imap start

Code:
netstat -tapn | grep :143
Reply With Quote
Reply

Bookmarks

Tags
courier, imap problem, postfix, squirrelmail, ubuntu

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
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 9.10) keyslapper HOWTO-Related Questions 4 20th April 2010 15:46
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 9.04) Master One HOWTO-Related Questions 4 1st July 2009 15:38
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 8.10) VTCop HOWTO-Related Questions 9 9th April 2009 16:17
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail Ubuntu 8.10 slohning HOWTO-Related Questions 5 5th March 2009 19:08
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 8.04 superman HOWTO-Related Questions 3 23rd October 2008 09:19


All times are GMT +2. The time now is 17:33.


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