Solved

postfix & courier-imap - canno connect

Posted on 2003-10-30
14
684 Views
Last Modified: 2013-12-15
I have been at this for hours, and am going boss-eyed.  

I have (through the help of mburdick) got postfix working, and am trying to get courier-imap working too.

I'm running Mandrake 9.1.

I dowloaded courier-imap-2.2.0 and built the rpm using rpmbuild (I had to install a lot of dependencies to get this far).

I installed courier and then found that I could telnet to port 143.  I could not connect with Mozilla mail client or Kmail from localhost.

I then worked out I need to do some authentication setup using userdb as documented at http://www.inter7.com/courierimap/INSTALL.html  I have set up the server, but it still will not authenticate.

I do not know where the courier-imap logs are stored so cannot trace that way.

Any help greatly appreciated.
0
Comment
Question by:thomaswp
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
14 Comments
 
LVL 12

Expert Comment

by:paullamhkg
ID: 9655309
Typically IMAP are controlled by the inet daemon. To activate the IMAP system, the service must be available as follows:

The network port must be defined in the /etc/services file:
    imap2           143/tcp         imap            # Interim Mail Access Proto v2
    imap2           143/udp         imap
   
inet / xinetd configuration:
xinetd (Red Hat 7.x): The service is defined by the file: /etc/xinetd.d/imap. To turn the service on, edit the line and change from the default:
    disable                 = yes
    TO:
    disable                 = no
   

inetd (Red Hat 6.x and older): The service must be defined in the /etc/inetd.conf file:
    imap    stream  tcp     nowait  root    /usr/sbin/tcpd imapd
   
By default, the RedHat installation may have a "#" at the beginning of the line to comment out the definition. Remove the "#" to define the service.

Restart the inet daemon to re-read the configuration file and enable the service.
xinetd (Red Hat 7.x or above):
    /etc/rc.d/init.d/xinetd restart
   

inetd (Red Hat 6.x and older):
    /etc/rc.d/init.d/inet restart

so have you got your imap up and running?
0
 
LVL 12

Expert Comment

by:paullamhkg
ID: 9655588
or have a look here http://www.experts-exchange.com/Operating_Systems/Linux/Q_20313504.html may give you some hints also.
0
 
LVL 1

Author Comment

by:thomaswp
ID: 9656124
paullamhkg - IMAP is running - I can telnet to the server no problem

The IMAP entries look like

imap            143/tcp            imap2            # Interim Mail Access Proto v2
imap            143/udp            imap2


I can start/stop the process with /etc/init.d/courier-imap start/stop

When I try to log in I get "login failed".

I will look at the other PAQ and report back.
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
LVL 12

Expert Comment

by:paullamhkg
ID: 9656204
I'm thinking of may be there is some setting you need to set for you imap to access, I donno much about your courier-imap, but I got the info abt the Postfix-Cyrus-Web-cyradm-HOWTO which is the postfix with the Cyrus IMAP, have a heck here http://www.tldp.org/HOWTO/Postfix-Cyrus-Web-cyradm-HOWTO/tech.html and when you go to the postfix configuration, you will find there are some entry for postfix with the Cyrus IMAP, so may be you need to setup the same for your courier-imap, and I think you can have a try.

Hope this can help
0
 
LVL 12

Expert Comment

by:paullamhkg
ID: 9656220
or have a look on this one which I think you may already read http://kirb.insanegenius.net/postfix.html, is a postfix + courier-imap + mysql HOW-TO, and there is some hint about how to conifg postfix and courier-imap, will this also help :)
0
 
LVL 12

Expert Comment

by:mburdick
ID: 9736314
Thomas,

How are you making out?
0
 
LVL 1

Author Comment

by:thomaswp
ID: 9738327
mburdick

I have had a bit of a nightmare.  Bouyed by my success with you, I got courier installed, but could not get it to allow me in to the postfix server.  I do not know whether it was postfix or me that was responsible.  None of the above helped at all.

I then got cocky and decided to do som disk work on my server (I was still running FAT32 for my fileshares from my old Windows days and decided it was time to move to full on Linux).

In the process I wiped my /homes partition (not sure if this was my fault,  it happened when I deleted an NTFS partition on my main HDD.  I probably should have rebooted but didn't).  Losing /homes was not a total disaster since I do all my development on another server.

Anyway, I have stopped the mail experiment for now.  I will rebuild a new server in the next few days if I can find the time and try anew with that.  Maybe you'll see another question here.  I still have all the settings and the postfix setup, so should be able to get it running pretty quickly.  I think that I will probably try getting it working in vmware this time though before bashing about with the live server...

BTW, I have an open question in apache servers at the moment, but I answered it myself, so if you want some easy points email me at thomas[at]william-powlett.net and I'll tell you the answer!

Cheers

Thomas

P.S.  Feeling quite smug though because I worked out how to get an ISA NIC to work with my smoothwall firewall...  I am much better with hardware than software!
0
 
LVL 12

Expert Comment

by:paullamhkg
ID: 9744436
Actually there will be a prossible way to recover your deleted files in linux have a look here http://www.experts-exchange.com/Operating_Systems/Linux/Q_20637500.html, and I'm sure it can work, because I tried. so that you no need to re install your linux.

Hope this will help
0
 
LVL 1

Author Comment

by:thomaswp
ID: 9747501
Thanks

I had a look at that but I had not been clear on the above.  My /home directory was on an ext3 Linux partition and it is that that has disappeared.  I think I killed off the partition in my efforts to recover it.  But I can live with that.  Anything important was backed up, all that I lost should probably have been deleted anyway!

I'll come back to this when I work try courier again...
0
 
LVL 1

Author Comment

by:thomaswp
ID: 11089415
Gentlemen, I thought I had closed this question.  I hadn't for which I apologise.

I never solved the problem.  I gave up and installed ClarkConnect instead.  I have a beutiful working IMAP, Fetchmail, procmail solution that works, and I am pretty clueless as to how it all works in the background.  

I am going to request that this question is closed.
0
 
LVL 12

Expert Comment

by:paullamhkg
ID: 11103822
why delete just PAQ and points refund since there is some hints can use by others.
0
 

Accepted Solution

by:
AnnieMod earned 0 total points
ID: 11128364
PAQ'd and 250 points refunded

AnnieMod
EE Admin
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Why  my code (program) build with old compiler? 11 108
Upgrade BIOS / EUFI at Scale 4 71
Advice on ESXi 5.1 Health / Storage 1 43
UM7 Stop Sending packets with GPS Sensor 1 19
This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question