LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-29-2010, 09:36 PM   #1
raspino
Member
 
Registered: Jul 2010
Posts: 38

Rep: Reputation: 1
how to access mailserver


I recently set up a mailserver on ubuntu using postfix. I set up the MX record with my router's ip address and I have port 25 forwarding all the mails to the ubuntu server. Everything works fine but I am unable to access my email using example.com/squirrelmail from any other machine apart from the server.
I will appreciate any information that will be helpful.
 
Old 08-29-2010, 11:35 PM   #2
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
No experience with mail servers.

However, some points that I can quickly come up with
can the hostname (example.com) be resolved on the problematic machines?
are there firewalls (on the server or on the problematic machines) that block access?
 
1 members found this post helpful.
Old 08-30-2010, 12:05 AM   #3
feinbein
Member
 
Registered: Jan 2010
Location: Norway
Posts: 76

Rep: Reputation: 12
You also have to open external port 80 to your server to give access to the web-interface of squirrelmail.
Check http://mxtoolbox.com/ for external dns-issues and openrelay-testing.
Try the same with the IP-adress of the server - if it works there you have a dns-issue.
 
1 members found this post helpful.
Old 08-30-2010, 12:32 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Exactly. But for that you will I think need to forward the port 80 connections the same way to need to for smtp connections.
 
1 members found this post helpful.
Old 08-30-2010, 02:04 AM   #5
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 14.0, 14.1, current
Posts: 417

Rep: Reputation: 52
I have squirrel mail and I have a separate VirtualHost for webmail in web-server configuration.
How are you trying to access your webmail (squirrel mail)? By? >
The Virtual Host can be managed in your web server configuration (apache). There are some useful .htaccess configurations for squirrelmail. In .htaccess you set up what files can be accessed in the squirrelmail web-directory.

Last edited by hua; 08-30-2010 at 02:07 AM.
 
1 members found this post helpful.
Old 08-30-2010, 09:24 AM   #6
raspino
Member
 
Registered: Jul 2010
Posts: 38

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by feinbein View Post
You also have to open external port 80 to your server to give access to the web-interface of squirrelmail.
Check http://mxtoolbox.com/ for external dns-issues and openrelay-testing.
Try the same with the IP-adress of the server - if it works there you have a dns-issue.
How to do I do that? Any info will be helpful. I mean, how do I open port 80 on the server?

Last edited by raspino; 08-30-2010 at 09:45 AM. Reason: clarify question
 
Old 08-30-2010, 06:12 PM   #7
raspino
Member
 
Registered: Jul 2010
Posts: 38

Original Poster
Rep: Reputation: 1
I have been able to open the port using the following code:
iptables -A INPUT -p tcp -d 0/0 -s 0/0 --dport 80 -j ACCEPT

Now I am able to access the web interface from outside the lan and within the LAN.

Are there dangers in opening port 80 ?
 
Old 08-31-2010, 12:35 AM   #8
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
There is always a danger in opening your server on the internet. What you can do is restrict the connections to port 80 from the known addresses. And block the all others. And because your server is open on internet, make sure your ssh and telnet and all other remote connection services are either turned off or have restricted access.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Do i really need a mailserver Datakraft Linux - Server 3 06-24-2009 10:28 AM
mailserver tamia Linux - Server 1 05-20-2009 12:19 PM
MailServer Help nixinbarrie Linux - Networking 3 04-22-2004 12:51 PM
LAN internal mailserver no internet access guanyu Linux - Networking 8 11-14-2002 11:44 PM
About Mailserver RKris Linux - Software 1 08-23-2002 08:07 AM


All times are GMT -5. The time now is 01:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration