LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-10-2003, 01:42 AM   #1
roofy
Member
 
Registered: Apr 2003
Location: Florida
Distribution: Redhat 7.2
Posts: 222

Rep: Reputation: 30
IMAP hell


ok all i want is a mail server to work thru http, well i have that part down (http://underscore.no-ip.com/mail) with apache/php and squirell mail....ive gone thru 3 imap server, binc, uw, and cyrus....NONE WORK...well they work i just dont kno how to add users....anyone have a link to a good imap/squirellmail guide or just an imap guide? thanks.
 
Old 05-10-2003, 01:47 AM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
have you tried using useradd or adduser?
 
Old 05-10-2003, 02:07 AM   #3
roofy
Member
 
Registered: Apr 2003
Location: Florida
Distribution: Redhat 7.2
Posts: 222

Original Poster
Rep: Reputation: 30
yea i add users but i cant login
 
Old 05-10-2003, 02:15 AM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
set the users password as root with

passwd username
 
Old 05-10-2003, 02:16 AM   #5
roofy
Member
 
Registered: Apr 2003
Location: Florida
Distribution: Redhat 7.2
Posts: 222

Original Poster
Rep: Reputation: 30
still doesnt work..i changed thier passwords and still didnt work
 
Old 05-10-2003, 02:25 AM   #6
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
so the problem is nothing to do with mail but with creating a user?
 
Old 05-10-2003, 02:28 AM   #7
roofy
Member
 
Registered: Apr 2003
Location: Florida
Distribution: Redhat 7.2
Posts: 222

Original Poster
Rep: Reputation: 30
i think its with creating the MAILDIRs for the user becuase ive created endless accounts...and they all work for ftp and for ssh but none for imap...but yea imap is working fine, i just cant get into it
 
Old 05-10-2003, 10:04 PM   #8
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
send some test mail to the new user like this

cat /etc/hosts | mail username

then check /var/log/maillog

I have never configured anything for imap, so I don't think it's the problem.
 
Old 05-10-2003, 10:39 PM   #9
roofy
Member
 
Registered: Apr 2003
Location: Florida
Distribution: Redhat 7.2
Posts: 222

Original Poster
Rep: Reputation: 30
ok i did it, and the log confirmed that i sent a message to user mailtest

May 10 18:36:51 gir sendmail[2288]: h4AMapG02285: to=mailtest, ctladdr=root (0/$

hmm
 
Old 05-11-2003, 07:06 PM   #10
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
now you can read the mail you sent with this command as the user

mail

or you can use this as root

mail -u username

now that mail is working you can test imap like this


telnet localhost imap

or

telnet localhost 143

Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
* OK [CAPABILITY IMAP4REV1 LOGIN-REFERRALS STARTTLS AUTH=LOGIN] localhost.localdomain IMAP4rev1 2001.315rh at Sun, 11 May 2003 18:14:27 -0500 (CDT)



now if you still can't access it from another computer and you are sure dns is working, the hosts file is correct, or you are using the ip address in your mail client setup for imap server, I would make sure that port 143 is open.


Now that we have this going I would suggest using secure imap for remote connections. Never allow imap over the internet or you risk your passwords getting seen.
 
Old 05-11-2003, 08:06 PM   #11
roofy
Member
 
Registered: Apr 2003
Location: Florida
Distribution: Redhat 7.2
Posts: 222

Original Poster
Rep: Reputation: 30
how can i make sure port 143 is open, i ran both your tests, the mail one and telnet one...and both worked, thanks dave you are being extremly helpful
 
Old 05-11-2003, 10:37 PM   #12
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Run telnet on windows.

In 95 based systems you have a window with a menu that you can click on Connect.. Remote System..
put in the server and port 143 and click connect

On nt based systems use the telnet prompt like this

open hostname 143

The response from the server will be displayed


If you can't connect by hostname try the ip address instead.

This really depends on your network and server. If the server has a valid dns entry and you are using dns on windows then hostname will work.

If the server is not registered in dns then you can still use the hostname if you setup windows with a hosts file

assuming the server ip is 192.168.0.1 the hosts file should be in the path and contain this

127.0.0.1 localhost
192.168.0.1 servername

search your windows system for a hosts file, if it has one use it if not just put one in c:\ c:\windows or somewhere in the path

if the ip address fails I would say the port is closed.
 
Old 05-11-2003, 10:46 PM   #13
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Also on the linux box run

netstat -l

this shows the status on ports
 
Old 05-12-2003, 12:16 AM   #14
roofy
Member
 
Registered: Apr 2003
Location: Florida
Distribution: Redhat 7.2
Posts: 222

Original Poster
Rep: Reputation: 30
yea it seems that the 143 port is open, i still cant login
 
Old 05-12-2003, 01:36 AM   #15
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
what was the problem?

telnet does not work

try this command

chkconfig imap on
 
  


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
qmail-ldap + courier-imap woes (imap capability) syahid Linux - General 1 10-12-2005 01:03 AM
rpm hell installing php-imap boardtc Mandriva 11 07-08-2005 06:01 AM
IMAP and Cyrus-IMAP on Slackware 10 cyberjames Slackware 2 01-10-2005 02:07 AM
IMAP works but IMAP TLS doesn't under PHP (Horde IMP) theparadigm Linux - Software 0 11-17-2003 01:35 AM
UW IMAP problem downloading IMAP folders nuzzy Linux - Software 1 04-17-2003 05:25 AM


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