Re: [newbie] Courier-imap in xinetd (was Bad gateway)
On Tuesday 22 February 2005 05:54, Paul wrote: SNIP Derek wrote: In squirrelmail did you set $domain = 'cp143764-a.mill1.nb.home.nl'; That is what I tried last night, and that at least got me to the loginscreen of Squirrelmail. From there I got the problem that the connection was refused (error message 111) which started this thread. So to paraphrase your problem : You need to tell squirrelmail to use the domain cp143764-a.mill1.nb.home.nl or else you do not get the squirrelmail login, but when you do, then you get code=DNS_HOST_NOT_FOUND when you try to log in? Does your Apache access/error logs throw any light on what it is trying to do? Also if you set DEBUG_LOGIN=2 in /etc/courier/imapd and restart courier-imap then you will get detailed log in messages in the log including passwords. That may give you a clue. And can you confirm what version of squirrelmail you are using? Mine is squirrelmail-1.4.3a-10mdk derek -- www.jennings.homelinux.net http://twiki.mdklinuxfaq.org Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Courier-imap in xinetd (was Bad gateway)
That is what I tried last night, and that at least got me to the loginscreen of Squirrelmail. From there I got the problem that the connection was refused (error message 111) which started this thread. So to paraphrase your problem : You need to tell squirrelmail to use the domain cp143764-a.mill1.nb.home.nl or else you do not get the squirrelmail login, but when you do, then you get code=DNS_HOST_NOT_FOUND when you try to log in? Indeed. Does your Apache access/error logs throw any light on what it is trying to do? I'd have to look into that (am at work now, not near my own pc). And can you confirm what version of squirrelmail you are using? Mine is squirrelmail-1.4.3a-10mdk Mine is 1.4.4. as downloaded from www.squirrelmail.org. I just got the tar.gz file and unpacked that. Paul Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
[newbie] Courier-imap in xinetd (was Bad gateway)
Op Mon, 21 Feb 2005 09:40:52 + schreef Derek Jennings: Hi Derek, It seems to be working now, but not using the filepath you list http://www.nlpagan.net/squirrelmail/ gives me a squirrelmail login. *grin* Thanks for trying, but the nlpagan.net part is a place on a hosting system that I use for my domain. I already set the imapservername in Squirrelmail to the cp4... address. That helps a little. At least I get a welcome screen from Squirrelmail. Now it seems that I have to figure out how to add courier-imap to xinetd to make the 'connection refused' message go away. If someone can help me there, that would be much appreciated! Paul -- Arachnoleptic fit (n.): The frantic dance performed just after you've accidentally walked through a spider web. http://www.nlpagan.net Running on Linux Mandrake and Brooks Addiction 5. Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Courier-imap in xinetd (was Bad gateway)
I already set the imapservername in Squirrelmail to the cp4... address. That helps a little. At least I get a welcome screen from Squirrelmail. Now it seems that I have to figure out how to add courier-imap to xinetd to make the 'connection refused' message go away. If someone can help me there, that would be much appreciated! Things become interesting. In the Courier-imap I read that couries does NOT go in xinetd (fine, it is not there anyway) but also /etc/services should not have entries for port 143 (imap). I #'d them out, restarted xinetd services but still no joy. The firewall allows port 143 for both tcp and udp, so that can't be it: Firewall script: $iptables -A INPUT -p tcp --dport 143 -j ACCEPT $iptables -A INPUT -p udp --dport 143 -j ACCEPT iptables -L: ACCEPT tcp -- anywhereanywheretcp dpt:143 ACCEPT udp -- anywhereanywhereudp dpt:143 The problem must be something VERY simple... Paul Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Courier-imap in xinetd (was Bad gateway)
Paul wrote: I already set the imapservername in Squirrelmail to the cp4... address. That helps a little. At least I get a welcome screen from Squirrelmail. Now it seems that I have to figure out how to add courier-imap to xinetd to make the 'connection refused' message go away. If someone can help me there, that would be much appreciated! Things become interesting. In the Courier-imap I read that couries does NOT go in xinetd (fine, it is not there anyway) but also /etc/services should not have entries for port 143 (imap). I #'d them out, restarted xinetd services but still no joy. The firewall allows port 143 for both tcp and udp, so that can't be it: Firewall script: $iptables -A INPUT -p tcp --dport 143 -j ACCEPT $iptables -A INPUT -p udp --dport 143 -j ACCEPT iptables -L: ACCEPT tcp -- anywhereanywheretcp dpt:143 ACCEPT udp -- anywhereanywhereudp dpt:143 The problem must be something VERY simple... Paul /etc/services is just a lookup table for service names and ports. Entries in there do not control what is run. It is used by some programs to check what port to use. That way, you can specify ssh in your filewall configuration, instead of having to specify port 22. As far as xinetd, what it starts is controlled in 2 places. The first is /etc/einetd.conf, and the second is the /etc/xinetd.d directory. (The directory is included because of an entry in xinetd.conf.) Changes made to /etc/services do not affect what it controlls. Now, if Courier-imap is a stand-alone daemn, as what you say makes it sound like, then it is controlled by the services and chkconfig commands. It should have a file in /etc/rc.d/init.d that controlls starting and stopping it. If you can access it localy, then it is probably being started. The next problem is that it probably looks at /etc/hosts.allow and /etc/hosts.deny to see if it should allow outside hosts to connect. It may have an entry in its config file for this, but hosts.allow control is fairly standard. Run man hosts.allow for more information on this. Mikkel -- Do not meddle in the affairs of dragons, for you are crunchy and taste good with Ketchup! Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Courier-imap in xinetd (was Bad gateway)
On Monday 21 February 2005 18:39, Paul wrote: Op Mon, 21 Feb 2005 09:40:52 + schreef Derek Jennings: Hi Derek, It seems to be working now, but not using the filepath you list http://www.nlpagan.net/squirrelmail/ gives me a squirrelmail login. *grin* Thanks for trying, but the nlpagan.net part is a place on a hosting system that I use for my domain. I already set the imapservername in Squirrelmail to the cp4... address. That helps a little. At least I get a welcome screen from Squirrelmail. Now it seems that I have to figure out how to add courier-imap to xinetd to make the 'connection refused' message go away. If someone can help me there, that would be much appreciated! Paul Mandrake's courier-imap runs as a daemon. Start it with service courier-imap start and you can make it start at boot with chkconfig courier-imap on You should not have port 143 open on the firewall, because squirrelmail communicates to port 143 on localhost. (In /etc/squirrelmailconfig.php set '$imapServerAddress = 'localhost';' ) derek -- www.jennings.homelinux.net http://twiki.mdklinuxfaq.org Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Courier-imap in xinetd (was Bad gateway)
Op Mon, 21 Feb 2005 20:33:09 + schreef Derek Jennings: I already set the imapservername in Squirrelmail to the cp4... address. That helps a little. At least I get a welcome screen from Squirrelmail. Now it seems that I have to figure out how to add courier-imap to xinetd to make the 'connection refused' message go away. If someone can help me there, that would be much appreciated! Paul Mandrake's courier-imap runs as a daemon. Start it with service courier-imap start and you can make it start at boot with chkconfig courier-imap on Yes, I already set up a symlink in /etc/rc.d/rc3.d for that. It is running, I can use it on the pc where it is installed, through any e-mail program. You should not have port 143 open on the firewall, because squirrelmail communicates to port 143 on localhost. (In /etc/squirrelmailconfig.php set '$imapServerAddress = 'localhost';' ) That was the default. If I set that back, I can't even get to the login-page of Squirrelmail. My normal pc's name is 'nwyfre', that is also how it is set in /etc/hosts. When I access the main page of apache from 'outside', that is okay (using http://cp143764-a.mill1.nb.home.nl/ . When I want to access Squirrelmail, the addressbar translates to http://nwyfre/squirrel. It looks as if the localhost setting from /etc/hosts is then used to point to the location of Squirrelmail. And since nwyfre is not in any DNS, that is where everything seems to keel over. But more trial and error another day, it's late now. Thanks for the help (also to Mikkel!) Paul Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Courier-imap in xinetd (was Bad gateway)
Paul wrote: Op Mon, 21 Feb 2005 20:33:09 + schreef Derek Jennings: I already set the imapservername in Squirrelmail to the cp4... address. That helps a little. At least I get a welcome screen from Squirrelmail. Now it seems that I have to figure out how to add courier-imap to xinetd to make the 'connection refused' message go away. If someone can help me there, that would be much appreciated! Paul Mandrake's courier-imap runs as a daemon. Start it with service courier-imap start and you can make it start at boot with chkconfig courier-imap on Yes, I already set up a symlink in /etc/rc.d/rc3.d for that. It is running, I can use it on the pc where it is installed, through any e-mail program. You should not have port 143 open on the firewall, because squirrelmail communicates to port 143 on localhost. (In /etc/squirrelmailconfig.php set '$imapServerAddress = 'localhost';' ) That was the default. If I set that back, I can't even get to the login-page of Squirrelmail. My normal pc's name is 'nwyfre', that is also how it is set in /etc/hosts. When I access the main page of apache from 'outside', that is okay (using http://cp143764-a.mill1.nb.home.nl/ . When I want to access Squirrelmail, the addressbar translates to http://nwyfre/squirrel. It looks as if the localhost setting from /etc/hosts is then used to point to the location of Squirrelmail. And since nwyfre is not in any DNS, that is where everything seems to keel over. But more trial and error another day, it's late now. Thanks for the help (also to Mikkel!) Paul Paul, What generates the web page? From what you say here, I think you may be looking in the wrong place for the problem. The problem is not in accessing imap, but in the address the web page generates for the link. Is there a config file that controls generating the web page, or is it a static page? In ether case, you need to change the link being generates to point to http://cp143764-a.mill1.nb.home.nl/squirrel instead of http://nwyfre/squirrel. Mikkel -- Do not meddle in the affairs of dragons, for you are crunchy and taste good with Ketchup! Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Courier-imap in xinetd (was Bad gateway)
On Monday 21 February 2005 22:30, Paul wrote: Op Mon, 21 Feb 2005 20:33:09 + schreef Derek Jennings: I already set the imapservername in Squirrelmail to the cp4... address. That helps a little. At least I get a welcome screen from Squirrelmail. Now it seems that I have to figure out how to add courier-imap to xinetd to make the 'connection refused' message go away. If someone can help me there, that would be much appreciated! Paul Mandrake's courier-imap runs as a daemon. Start it with service courier-imap start and you can make it start at boot with chkconfig courier-imap on Yes, I already set up a symlink in /etc/rc.d/rc3.d for that. It is running, I can use it on the pc where it is installed, through any e-mail program. You should not have port 143 open on the firewall, because squirrelmail communicates to port 143 on localhost. (In /etc/squirrelmailconfig.php set '$imapServerAddress = 'localhost';' ) That was the default. If I set that back, I can't even get to the login-page of Squirrelmail. My normal pc's name is 'nwyfre', that is also how it is set in /etc/hosts. When I access the main page of apache from 'outside', that is okay (using http://cp143764-a.mill1.nb.home.nl/ . When I want to access Squirrelmail, the addressbar translates to http://nwyfre/squirrel. It looks as if the localhost setting from /etc/hosts is then used to point to the location of Squirrelmail. And since nwyfre is not in any DNS, that is where everything seems to keel over. But more trial and error another day, it's late now. Thanks for the help (also to Mikkel!) Paul In squirrelmail did you set $domain = 'cp143764-a.mill1.nb.home.nl'; If not give it a try. Also if you go to dyndns.org you can get yourself a slightly more meaningful domain name for free. derek -- www.jennings.homelinux.net http://twiki.mdklinuxfaq.org Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
Re: [newbie] Courier-imap in xinetd (was Bad gateway)
Op Mon, 21 Feb 2005 16:49:58 -0600 schreef Mikkel L. Ellertson: Hi Mikkel, What generates the web page? From what you say here, I think you may be looking in the wrong place for the problem. The problem is not in accessing imap, but in the address the web page generates for the link. Is there a config file that controls generating the web page, or is it a static page? In ether case, you need to change the link being generates to point to http://cp143764-a.mill1.nb.home.nl/squirrel instead of http://nwyfre/squirrel. It is a static page (frames with PHP). I'll give your idea a try and change the page. From work I can then try to get to it. Derek wrote: In squirrelmail did you set $domain = 'cp143764-a.mill1.nb.home.nl'; That is what I tried last night, and that at least got me to the loginscreen of Squirrelmail. From there I got the problem that the connection was refused (error message 111) which started this thread. Also if you go to dyndns.org you can get yourself a slightly more meaningful domain name for free. Thanks for the tip! :-) Paul -- Beelzebug (n.): Satan in the form of a mosquito that gets into your bedroom at three in the morning and cannot be cast out. http://www.nlpagan.net/linux.php Have you visited http://twiki.mdklinuxfaq.org yet? Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Join the Club : http://www.mandrakeclub.com
[newbie] Courier-imap
Hi Guys Am I being dim as usual, or is Courier-imap not included with 9.1 ? If not, does anyone know where there's a handy rpm for it. I've done a google for the package and can only find a.bz2 package. regards Mark Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
Re: [newbie] Courier-imap
hi Mark, courier-imap wasn't included with mandrake 8.2 and 9.0, dunno about before that, but some kind soul always makes mandrake specific rpms, you can find it in the contribs directory of most mandrake FTP mirrors or at rpmfind.net ps. remember to vote for it during voting season for the next release of mandrake. :) - Original Message - From: Mark Annandale [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, April 04, 2003 20:03 Subject: [newbie] Courier-imap Hi Guys Am I being dim as usual, or is Courier-imap not included with 9.1 ? If not, does anyone know where there's a handy rpm for it. I've done a google for the package and can only find a.bz2 package. regards Mark Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
[newbie] courier-imap pop3d says AUTHFAILURE
Every time I try to start courier-imap's pop3, I get a message AUTHFAILURE, and that was all. I did a search on their FAQ, I can only come up with it's a authentication problem. Can anyone give a me clue? Thanks Robin Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com