LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-23-2003, 04:28 PM   #1
Nerd2
Member
 
Registered: Apr 2003
Location: Brissle, England
Posts: 97

Rep: Reputation: 19
Question Can someone please help a newbie installa SIMPLE IMAP server!


Hi all,
I've got a P3 700 machine running RH8 (and fluxbox ) that I want to run as an IMAP server. Nothing too difficult. All I want to do is to use Outlook Express or KMail to read my mail on this PC from another PC 50 miles away?

Not too difficult surely?

I've tried a few already, but i've always got stuck somewhee along the line.

So, can someone please link me too, or guide me through a smple install, and expect panics along the way!

Thanks!

Samuel
 
Old 05-23-2003, 05:02 PM   #2
nuzzy
Member
 
Registered: Aug 2001
Location: New Hampshire, USA
Distribution: Ubuntu 6.06 LTS
Posts: 204

Rep: Reputation: 31
have you tried UW IMAP? It has a good INSTALL and README file.
 
Old 05-23-2003, 05:09 PM   #3
Nerd2
Member
 
Registered: Apr 2003
Location: Brissle, England
Posts: 97

Original Poster
Rep: Reputation: 19
I'm getting a wonderful sense of deja-vu, so i think i must have done this before.

When running 'make slx' it does some making and then I get:

Code:
cat osdepbas.c osdepckp.c osdeplog.c > osdep.c
cc -g -fno-omit-frame-pointer -O6 -DNFSKLUDGE    -c -o mail.o mail.c
cc -g -fno-omit-frame-pointer -O6 -DNFSKLUDGE    -c -o misc.o misc.c
cc -g -fno-omit-frame-pointer -O6 -DNFSKLUDGE    -c -o newsrc.o newsrc.c
cc -g -fno-omit-frame-pointer -O6 -DNFSKLUDGE    -c -o smanager.o smanager.c
cc -g -fno-omit-frame-pointer -O6 -DNFSKLUDGE  `cat OSCFLAGS` -c osdep.c
In file included from osdep.c:57:
env_unix.c: In function `do_date':
env_unix.c:307: warning: initialization makes pointer from integer without a cast
env_unix.c:308: dereferencing pointer to incomplete type
env_unix.c:308: dereferencing pointer to incomplete type
env_unix.c:309: dereferencing pointer to incomplete type
env_unix.c:310: warning: assignment makes pointer from integer without a cast
env_unix.c:312: dereferencing pointer to incomplete type
env_unix.c:312: dereferencing pointer to incomplete type
env_unix.c:320: dereferencing pointer to incomplete type
env_unix.c:323: dereferencing pointer to incomplete type
env_unix.c:327: dereferencing pointer to incomplete type
env_unix.c:327: dereferencing pointer to incomplete type
env_unix.c:327: dereferencing pointer to incomplete type
env_unix.c:328: dereferencing pointer to incomplete type
env_unix.c:328: dereferencing pointer to incomplete type
env_unix.c:328: dereferencing pointer to incomplete type
In file included from osdep.c:61:
tz_sv4.c: In function `rfc822_timezone':
tz_sv4.c:45: `tzname' undeclared (first use in this function)
tz_sv4.c:45: (Each undeclared identifier is reported only once
tz_sv4.c:45: for each function it appears in.)
tz_sv4.c:45: `daylight' undeclared (first use in this function)
tz_sv4.c:45: dereferencing pointer to incomplete type
osdep.c: In function `checkpw':
osdep.c:111: warning: initialization makes pointer from integer without a cast
osdep.c:112: dereferencing pointer to incomplete type
osdep.c:112: dereferencing pointer to incomplete type
osdep.c:113: dereferencing pointer to incomplete type
osdep.c:114: warning: assignment makes pointer from integer without a cast
osdep.c:116: dereferencing pointer to incomplete type
osdep.c:116: dereferencing pointer to incomplete type
osdep.c:124: dereferencing pointer to incomplete type
make[3]: *** [osdep.o] Error 1
make[3]: Leaving directory `/home/Nerd2/downloads/imap-4.7/c-client'
make[2]: *** [slx] Error 2
make[2]: Leaving directory `/home/Nerd2/downloads/imap-4.7/c-client'
make[1]: *** [OSTYPE] Error 2
make[1]: Leaving directory `/home/Nerd2/downloads/imap-4.7'
make: *** [slx] Error 2
Any ideas?

Thanks
 
Old 05-24-2003, 06:37 AM   #4
nuzzy
Member
 
Registered: Aug 2001
Location: New Hampshire, USA
Distribution: Ubuntu 6.06 LTS
Posts: 204

Rep: Reputation: 31
what distro are you using? try 'make lnx' or 'make lnx --nopwd'
 
Old 05-24-2003, 07:25 AM   #5
Nerd2
Member
 
Registered: Apr 2003
Location: Brissle, England
Posts: 97

Original Poster
Rep: Reputation: 19
Redhat 8.

make lnx gives the same thing, as does sl4 and sl5

it doesn't seem to recognise "make lnx --nopwd" as an option
 
Old 05-24-2003, 07:48 AM   #6
Nerd2
Member
 
Registered: Apr 2003
Location: Brissle, England
Posts: 97

Original Poster
Rep: Reputation: 19
OK, I think I have successfully installed a different version (2002-c1).

When I connect to the server with KMail (using 127.0.0.1) it connects and I get a list of directories in my /home/Username

a) How do I tell the IMAP server where I want my messages stored
b) How do I tell it what type of store I want it to use (I ideally want maildir)

Cheers
 
Old 05-24-2003, 08:53 AM   #7
nuzzy
Member
 
Registered: Aug 2001
Location: New Hampshire, USA
Distribution: Ubuntu 6.06 LTS
Posts: 204

Rep: Reputation: 31
http://www.washington.edu/imap/IMAP-FAQs/index.html

Section 3 should answer your questions
 
Old 05-24-2003, 11:27 AM   #8
Nerd2
Member
 
Registered: Apr 2003
Location: Brissle, England
Posts: 97

Original Poster
Rep: Reputation: 19
OK thanks, its going well now. I can add folders and stuff, and my POP mail is being dumped there like i want.

Next question, how do I configure the iptables firewall (installed by REDHAT) to allow IMAP in (port 143?)

My iptables currently look like this:

Code:
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
RH-Lokkit-0-50-INPUT  all  --  anywhere             anywhere

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

Chain RH-Lokkit-0-50-INPUT (1 references)
target     prot opt source               destination
ACCEPT     udp  --  vnsc-bak.sys.gtei.net  anywhere           udp spt:domain dpts:1025:65535
ACCEPT     udp  --  vnsc-pri.sys.gtei.net  anywhere           udp spt:domain dpts:1025:65535
ACCEPT     all  --  anywhere             anywhere
REJECT     tcp  --  anywhere             anywhere           tcp flags:SYN,RST,ACK/SYN reject-with icmp-port-unreachable
REJECT     udp  --  anywhere             anywhere           udp reject-with icmp-port-unreachable
All I have to do is open port 143 through tcp yeh? So can I just add to the bottom of the tables to ACCEPT a 143 thingy?

Will that work? Or will the REJECT anywhere above it stop it?

Will I have to restart the iptables or something afterwards?

Cheers again

Nerd2
 
Old 05-24-2003, 03:29 PM   #9
nuzzy
Member
 
Registered: Aug 2001
Location: New Hampshire, USA
Distribution: Ubuntu 6.06 LTS
Posts: 204

Rep: Reputation: 31
You can do ths:

iptables -A INPUT -i eth0 -p tcp --dport imap -j ACCEPT

service iptables restart

I put mine above the REJECT. I just did my editing of the FW thru Webmin (GREAT Web tool).

Last edited by nuzzy; 05-24-2003 at 03:30 PM.
 
Old 05-24-2003, 05:42 PM   #10
Nerd2
Member
 
Registered: Apr 2003
Location: Brissle, England
Posts: 97

Original Poster
Rep: Reputation: 19
Cheers, thanks a million
 
  


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
Newbie Question - IMAP/POP3 Linux ajaye1971 Linux - Networking 2 09-06-2005 08:07 PM
IMAP server Gomi Linux - Networking 1 08-30-2004 12:11 AM
IMAP Qmail help for a 7k post newbie MasterC Linux - Networking 7 06-17-2003 04:20 AM
Newbie Simple Help proxis2 Linux - Newbie 1 03-30-2002 11:30 AM
IMAP Server thb Linux - Newbie 0 02-07-2002 12:27 PM


All times are GMT -5. The time now is 03:10 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