LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-22-2004, 04:50 PM   #1
Breezwell
Member
 
Registered: Apr 2001
Location: Chicago
Distribution: Gentoo 1.4
Posts: 214

Rep: Reputation: 30
Internal Mail Server Question


I want desperately to rid myself of using online mail servers.
Having never run a mail server ( and knowing little about the whole process ) I was wondering if the following idea is possible.

If I set up Sendmail on one of my internal machines as an MTA and use Pine as my MUA, change the listening port that Sendmail uses and give my IP address to friends and coworkers, could I recieve mail directly from them without leaving a message trail on public servers?

I am thinking that as long as my server is accessible from the outside, it should be doable.

Thanks gang.
 
Old 01-22-2004, 05:05 PM   #2
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440

Rep: Reputation: 52
Hi there,

I was just like you! I was tired of using hotmail and such and so I too setup a mail server. A couple of comments:

1. *I* (others disagree) wouldn't use sendmail as I heard that it is a horror to configure and such. Everyone has their own opinion. I use exim. It's very simple. Others like using postfix which I heard is simple as well....

Quote:
change the listening port that Sendmail uses and give my IP address to friends and coworkers
2. If you change the listening port on your smtp server...then you will never be able to receive mail. Smtp can only talk to smtp and the inbound port is 25. If you change that, again, you will never see mail.

Curious, why would you want to change your inbound port? Are you afraid that people might use your smtp server as a relay?

-twantrd
 
Old 01-22-2004, 05:20 PM   #3
Breezwell
Member
 
Registered: Apr 2001
Location: Chicago
Distribution: Gentoo 1.4
Posts: 214

Original Poster
Rep: Reputation: 30
Cool

twantrd,

Thanks for the suggestions.

After spending some time installing and playing around with Sendmail, I agree with you about the level of complexity involved. It looks like it is overkill for what I would like to do.

I thought that changing my listening port might afford me some extra level of security because it is a well-known port. If I did change the port number wouldn't it work if the people who sent me mail adjusted thier MUA to point to the port number on my server? Probably talking major headache there .......

Like I said, I know very little about mail servers at this point.

Thanks again.
 
Old 01-22-2004, 06:28 PM   #4
di11rod
Member
 
Registered: Jan 2004
Location: Austin, TEXAS
Distribution: CentOS 6.5
Posts: 211

Rep: Reputation: 32
security through obscurity != secure

For starters, forget your idea about switching the port from 25. That's not going to work and if it did work, it wouldn't increase security. The people looking to exploit services are scanning ALL your ports and noting what services are listening on each.

Here's what you ought to do. Install Postfix via RPM. Install courier-imap via RPM. Install Squirrelmail by downloading it from http://www.squirrelmail.org and unzip it into your html directory. If you've got webmin installed, you can easily modify the postfix config to work for your domain. As for security, the only thing you don't want to allow is relaying for hosts outside your subnet. This is disabled by default.

Squirrelmail will give you and your pals a web-based email interface like what you've got with hotmail, etc... but without advertising or limits on mail box storage. Plus you can hook up spamassassin as well.

good luck,

di11rod
 
Old 01-24-2004, 07:25 PM   #5
Breezwell
Member
 
Registered: Apr 2001
Location: Chicago
Distribution: Gentoo 1.4
Posts: 214

Original Poster
Rep: Reputation: 30
Well I managed to get everything I supposedly would need installed and working,

Apache
PHP4
Courier-IMAP
Webmin
Squirrelmail

and ran conf.pl according to the Squirrelmail website, I get the following whenever I load the login page:

Output:

Warning: session_start(): open(/root/phpSessionInfo/sess_a281adbbd4ae828b7e445ae8c089a60b, O_RDWR) failed: Permission denied (13) in /var/www/localhost/htdocs/squirrelmail/functions/global.php on line 295

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /var/www/localhost/htdocs/squirrelmail/functions/global.php:295) in /var/www/localhost/htdocs/squirrelmail/functions/global.php on line 295

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/www/localhost/htdocs/squirrelmail/functions/global.php:295) in /var/www/localhost/htdocs/squirrelmail/functions/global.php on line 295

Warning: Cannot modify header information - headers already sent by (output started at /var/www/localhost/htdocs/squirrelmail/functions/global.php:295) in /var/www/localhost/htdocs/squirrelmail/functions/i18n.php on line 1616

Warning: Cannot modify header information - headers already sent by (output started at /var/www/localhost/htdocs/squirrelmail/functions/global.php:295) in /var/www/localhost/htdocs/squirrelmail/src/login.php on line 49


The actual login interface sits at the bottom of the screen after the previous error messages.
It is obvious it has something to do with global.php. It mentions a permissions problem and to check /root/phpSessionInfo but there are no files in that directory. If that is the problem, I have no idea what to do. Googling hasn't helped at all.


Thanks gang.
 
  


Reply



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
Internal/External Mail Server Aeiedil Linux - Software 27 10-13-2009 09:16 AM
SUSE as an internal mail server Sarcha SUSE / openSUSE 2 11-29-2005 08:51 AM
How to Setup an Internal Mail Server in Linux? denu_love Linux - Newbie 1 09-04-2004 06:03 AM
How to Setup an Internal Mail Server with Linux? denu_love Linux - Software 1 09-04-2004 06:02 AM
Postfix relaying mail to internal mail server tradecraft1 Linux - Networking 2 10-28-2003 03:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:40 PM.

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
Open Source Consulting | Domain Registration