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 6th October 2006, 19:57
jka/v jka/v is offline
Junior Member
 
Join Date: Oct 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation HowTo Squirrelmail in 10 easy steps with Perfect Ubuntu Setup

Hi,

I've followed the steps and have the squirrelmail configured per the instructions. I can't seem to log into the squirrelmail though, when I go to my http://webmail.xxxxxx.org it just goes to my apache site, and gives me a link saying webmail.xxxx.org, but that just takes me to folders.

Need a little help with getting this working all the way, and I appreciate it. Please ask me for whatever information needed to help out.
Reply With Quote
Sponsored Links
  #2  
Old 6th October 2006, 20:11
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 210
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default

On an ISPConfig server the default Apache screen is only available when you did not define any website (yet).

(Normally when you try to visit a website on your server which does not exists, you'll see the default "Shared IP" site.

Is http://www.xxxxxx.org or http://xxxxxx.org an existing domain on your server? Create this first and then http://webmail.xxxxxx.org !

Is webmail.xxxxxx.org available in the DNS records of your DNS provider?
(webmail.xxxxxx.org or *.xxxxxx.org must point to your server).
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005
Reply With Quote
  #3  
Old 6th October 2006, 20:18
jka/v jka/v is offline
Junior Member
 
Join Date: Oct 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I added the website per the instructions for the squirrelmail information (easy setup). so webmail.bestdealcables.org is a site.

My domain is bestdealcables.org, and my dns settings point to that.

when I go to http://webmail.bestdealcables.org all I get is the shared IP site now, before it was taking me to the default apache screen with links to folders on the left.

I'm new to this, so trying to learn and setup a mail server for my own company. I've gotten everything setup, but I can not send emails through the server for some reason, (setting it up in an outlook on another pc), nor can I get to the squirrelmail page...

What info would you need from me to help out, and I appreciate the input!
Reply With Quote
  #4  
Old 6th October 2006, 20:42
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 210
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default

If you have the Shared IP site on screen in stead of the site you expect (http://webmail.bestdealcables.org) it means that the co-domain does not exist or the CNAME *.bestdealcables.org does not point to your server.

Did you create a site for Squirrelmail in ISPConfig with webmail as the hostname and bestdealcables.org as the domain name?
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005
Reply With Quote
  #5  
Old 6th October 2006, 21:06
jka/v jka/v is offline
Junior Member
 
Join Date: Oct 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I set this info in ispconfig per the instructions:

Step 1 - Create a website:
In ISPConfig, create a website via “New site” in the main menu. On the tab called “Basis” use webmail for the hostname and myhostingcompany.tld for the domain name. Enable MySQL and PHP scripts for this website but disable PHP Safe Mode. (Enabling MySQL for the site can be necessary for future plugins you might need).



Step 2 – Create a Administator user for the website:
In ISPConfig, create a Administrator user, so you can upload the website later via FTP:
In the main menu select “ISP Manager”, select your new website called webmail.myhostingcompany.tld in the structure tree and press the tab “User and Email”.
Press “new” and define a new user and its email address. Give this user administrator rights and press “Save”.


I didn't use the myhostingcompany.tld (instead used the bestdealcables.org) and I set that in ISPConfig

In my ISPConfig ISP Manager settings, I have the following 2 items only:

67.106.14.226 Host: webmail Domain: bestdealcables.org set to my server (server1.bestdealcables.org) Under codomain, there is :

IP Hostname Domain
67.106.14.226 bestdealcables.org
Reply With Quote
  #6  
Old 6th October 2006, 22:05
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 210
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Smile

Right now, when i visit your site http://webmail.bestdealcables.org/ i see the default index.html page of webmail.bestdealcables.org.

You have to delete this index.html page.

And have a look here too: http://webmail.bestdealcables.org/index.php
(this index.php will automaticly come up if you remove index.html)

You have done it!

Hint:

Create a co-domain for http://bestdealcables.org/
(Your site can not be visited by http://www.bestdealcables.org/)
You can do this with:
hostname = www
domain name = bestdealcables.org
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005

Last edited by Hans; 6th October 2006 at 22:12.
Reply With Quote
  #7  
Old 6th October 2006, 22:21
jka/v jka/v is offline
Junior Member
 
Join Date: Oct 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Wow, guess I did something right

Only thing is when I try to log in, I get this error:

Error connecting to IMAP server: tls://localhost.
0 :

Go to the login page


Any idea what is going on with that?
Reply With Quote
  #8  
Old 6th October 2006, 22:31
jka/v jka/v is offline
Junior Member
 
Join Date: Oct 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

And removing the index.html page in:

/var/www/webmail.bestdealcables.org is what your saying?

(btw, still new to linux, so what is the command to delete a file? rm?)

Thanks.
Reply With Quote
  #9  
Old 6th October 2006, 22:35
Hans Hans is offline
Moderator
 
Join Date: Dec 2005
Location: Montfoort, The Netherlands
Posts: 2,256
Thanks: 210
Thanked 648 Times in 294 Posts
Send a message via Skype™ to Hans
Default

What is in your /etc/postfix/main.cf ?
What is in your /var/log/mail.log ?
Any errors?
__________________
Hans

BB-Hosting | Quality Web Hosting since 2005
Reply With Quote
  #10  
Old 6th October 2006, 22:42
jka/v jka/v is offline
Junior Member
 
Join Date: Oct 2006
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Interesting, here's my tail of sending a command line message on the server:


root@server1:~# echo foo | /usr/sbin/sendmail -f root root && tail -f /var/log/mail.log
Oct 6 13:24:58 server1 imaplogin: Connection, ip=[::ffff:127.0.0.1]
Oct 6 13:24:58 server1 imaplogin: DISCONNECTED, ip=[::ffff:127.0.0.1], time=0
Oct 6 13:30:04 server1 imaplogin: Connection, ip=[::ffff:127.0.0.1]
Oct 6 13:31:12 server1 postfix/smtpd[23526]: warning: cannot get certificate from file /etc/postfix/ssl/smtpd.crt
Oct 6 13:31:12 server1 postfix/smtpd[23526]: warning: TLS library problem: 23526:error:02001002:system library:fopen:No such file or directory:bss_file.c:349:fopen('/etc/postfix/ssl/smtpd.crt','r'):
Oct 6 13:31:12 server1 postfix/smtpd[23526]: warning: TLS library problem: 23526:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:351:
Oct 6 13:31:12 server1 postfix/smtpd[23526]: warning: TLS library problem: 23526:error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib:ssl_rsa.c:720:
Oct 6 13:31:12 server1 postfix/smtpd[23526]: cannot load RSA certificate and key data
Oct 6 13:31:12 server1 postfix/smtpd[23526]: connect from localhost[127.0.0.1]
Oct 6 13:33:30 server1 postfix/smtpd[23526]: disconnect from localhost[127.0.0.1]
Oct 6 13:34:27 server1 postfix/pickup[23356]: E02C1182B76: uid=0 from=<root>
Oct 6 13:34:27 server1 postfix/cleanup[23573]: E02C1182B76: message-id=<20061006203427.E02C1182B76@server1.bestdealcab les.org>
Oct 6 13:34:27 server1 postfix/qmgr[23357]: E02C1182B76: from=<root@server1.bestdealcables.org>, size=319, nrcpt=1 (queue active)
Oct 6 13:34:29 server1 postfix/local[23576]: E02C1182B76: to=<jkuenkler@server1.bestdealcables.org>, orig_to=<root>, relay=local, delay=2, status=sent (delivered to command: procmail -a "$EXTENSION")
Oct 6 13:34:29 server1 postfix/qmgr[23357]: E02C1182B76: removed

Here's my /var/mail/jkuenkler log after sending the above:

From root@server1.bestdealcables.org Fri Oct 6 13:34:28 2006
Return-Path: <root@server1.bestdealcables.org>
X-Original-To: root
Delivered-To: root@server1.bestdealcables.org
Received: by server1.bestdealcables.org (Postfix, from userid 0)
id E02C1182B76; Fri, 6 Oct 2006 13:34:27 -0700 (PDT)
Message-Id: <20061006203427.E02C1182B76@server1.bestdealcables .org>
Date: Fri, 6 Oct 2006 13:34:27 -0700 (PDT)
From: root@server1.bestdealcables.org (root)
To: undisclosed-recipients:;

foo


Here's my /var/log/mail.log output:

Oct 5 23:59:03 server1 postfix/master[8095]: daemon started -- version 2.2.10, configuration /etc/postfix
Oct 6 01:32:41 server1 postfix/smtpd[9333]: warning: cannot get certificate from file /etc/postfix/ssl/smtpd.crt
Oct 6 01:32:41 server1 postfix/smtpd[9333]: warning: TLS library problem: 9333:error:02001002:system library:fopen:No such file or directory:bss_file.c:349:fopen('/etc/postfix/ssl/sm$
Oct 6 01:32:41 server1 postfix/smtpd[9333]: warning: TLS library problem: 9333:error:20074002:BIO routines:FILE_CTRL:system lib:bss_file.c:351:
Oct 6 01:32:41 server1 postfix/smtpd[9333]: warning: TLS library problem: 9333:error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib:ssl_rsa.c:720:
Oct 6 01:32:41 server1 postfix/smtpd[9333]: cannot load RSA certificate and key data
Oct 6 01:32:41 server1 postfix/smtpd[9333]: connect from unknown[205.177.75.10]
Oct 6 01:32:41 server1 postfix/smtpd[9333]: lost connection after CONNECT from unknown[205.177.75.10]
Oct 6 01:32:41 server1 postfix/smtpd[9333]: disconnect from unknown[205.177.75.10]
Oct 6 01:36:01 server1 postfix/anvil[9336]: statistics: max connection rate 1/60s for (smtp:205.177.75.10) at Oct 6 01:32:41
Oct 6 01:36:01 server1 postfix/anvil[9336]: statistics: max connection count 1 for (smtp:205.177.75.10) at Oct 6 01:32:41
Oct 6 01:36:01 server1 postfix/anvil[9336]: statistics: max cache size 1 at Oct 6 01:32:41
Oct 6 08:49:59 server1 postfix/master[8095]: terminating on signal 15
Oct 6 08:50:00 server1 postfix/master[17090]: daemon started -- version 2.2.10, configuration /etc/postfix
Oct 6 08:50:55 server1 postfix/master[17090]: terminating on signal 15
Oct 6 08:50:56 server1 postfix/master[17386]: daemon started -- version 2.2.10, configuration /etc/postfix
Oct 6 09:12:25 server1 courierpop3login: Connection, ip=[::ffff:127.0.0.1]
Oct 6 09:12:25 server1 postfix/smtpd[18254]: warning: cannot get certificate from file /etc/postfix/ssl/smtpd.crt
Oct 6 09:12:25 server1 postfix/smtpd[18254]: warning: TLS library problem: 18254:error:02001002:system library:fopen:No such file or directory:bss_file.c:349:fopen('/etc/postfix/ssl/$

Here's my /etc/postfix/main.cf

myhostname = server1.bestdealcables.org
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
#mydestination = server1.bestdealcables.org, localhost.bestdealcables.org, , localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

virtual_maps = hash:/etc/postfix/virtusertable

mydestination = /etc/postfix/local-host-names
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
How stable/secure is the server after the Perfect Setup (Ubuntu 6.06) install? carloscastaneda HOWTO-Related Questions 6 3rd February 2007 18:34
Squirrelmail 10 Easy Steps Howto EvdM Installation/Configuration 9 11th October 2006 13:26
Help with The Perfect Setup - Ubuntu 6.06 LTS Server LinuxNewb HOWTO-Related Questions 6 30th July 2006 13:43
HOWTO The Perfect Setup - Ubuntu 6.06 LTS Server mikeeblau Installation/Configuration 4 12th June 2006 14:08
Ubuntu "the perfect setup with RAID 1" Hans Installation/Configuration 1 16th January 2006 17:50


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


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