Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Courier-IMAP Problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
twam
Apprentice
Apprentice


Joined: 15 Feb 2005
Posts: 189
Location: Ammerbuch, Germany

PostPosted: Sun Mar 13, 2005 7:44 pm    Post subject: Courier-IMAP Problems Reply with quote

Hi,

Just emerged Courier-IMAP, but it won't start.

Code:
pluto /usr/lib/courier-imap # /etc/init.d/courier-pop3d start
 * Starting courier-authlib: authdaemond ...                                                                   [ ok ]
 * Starting courier-pop3d ...                                                                                  [ !! ]


A can't see any hints in /var/log/mail/* and /var/log/everything/*. pop3d-ssl, imap und imap-ssl are acting the same way. Any suggestions?

Regards Tobias
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sun Mar 13, 2005 8:14 pm    Post subject: Reply with quote

any messages in /var/log/messages?
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
twam
Apprentice
Apprentice


Joined: 15 Feb 2005
Posts: 189
Location: Ammerbuch, Germany

PostPosted: Sun Mar 13, 2005 8:19 pm    Post subject: Reply with quote

No, absolutely not. :(
Back to top
View user's profile Send private message
twam
Apprentice
Apprentice


Joined: 15 Feb 2005
Posts: 189
Location: Ammerbuch, Germany

PostPosted: Mon Mar 14, 2005 6:27 pm    Post subject: Reply with quote

Nobody any hints?
Back to top
View user's profile Send private message
peppy
Tux's lil' helper
Tux's lil' helper


Joined: 13 May 2004
Posts: 76

PostPosted: Mon Mar 14, 2005 7:56 pm    Post subject: Reply with quote

i would re-emerge it, if you are configuring it with ssl check to see that you didn't mess anything up in the pop3d.cnf and imapd.cnf files, make sure that your network is up and you haven an internet access. :? ehh sorry I am having problems with courier-imap as well.
_________________
SERVER.................DESKTOP
MSI k7...................Abit kx7-333R
Duron 1.4ghz..........Athlon 1.8ghz
320mb mem............768mb mem
200gb HD................80GB HD
no vid.....................Radeon 9200
all on udev:nptl:stage 1/3
Back to top
View user's profile Send private message
twam
Apprentice
Apprentice


Joined: 15 Feb 2005
Posts: 189
Location: Ammerbuch, Germany

PostPosted: Mon Mar 14, 2005 8:01 pm    Post subject: Reply with quote

I already reemerged it. The pop3d.cnf and imapd.cnf files are the original ones. Network and Internet is working well.
Back to top
View user's profile Send private message
twam
Apprentice
Apprentice


Joined: 15 Feb 2005
Posts: 189
Location: Ammerbuch, Germany

PostPosted: Tue Mar 15, 2005 12:49 pm    Post subject: Reply with quote

Maybe the start scripts are wrong. In /etc/init.d/courier-pop3d i find

Code:
start() {
        checkconfig || return 1
        ebegin "Starting courier-pop3d"
        start-stop-daemon --quiet --start --exec /usr/bin/env - /usr/lib/courier-imap/gentoo-pop3d.rc \
                --pidfile $PIDFILE
        eend $?
}


When I start /usr/lib/courier-imap/gentoo-pop3d.rc by hand, the pop-service is listening on port 110, but the script fails!
Back to top
View user's profile Send private message
twam
Apprentice
Apprentice


Joined: 15 Feb 2005
Posts: 189
Location: Ammerbuch, Germany

PostPosted: Tue Mar 15, 2005 2:35 pm    Post subject: Reply with quote

Installed an older baselayout. Now it's working.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6838
Location: Blighty

PostPosted: Tue Mar 15, 2005 3:26 pm    Post subject: Reply with quote

twam wrote:
Installed an older baselayout. Now it's working.


Um - you didn't install baselayout-1.12.0-alpha1 by chance did you?
It's package masked for a good reason (although there's not that much breakage with it) - and you just found one of the reasons.

courier-imap init scripts abuse the use of start-stop-daemon and cause this error. Here's their current logic

start-stop-daemon calls env calls shell script.

Cookies to anyone who can see the flaw
(hint shell scripts cannot be daemons - a daemon can call a shell script though)

In summary - it's a problem with the courier-imap init scripts!
Back to top
View user's profile Send private message
twam
Apprentice
Apprentice


Joined: 15 Feb 2005
Posts: 189
Location: Ammerbuch, Germany

PostPosted: Tue Mar 15, 2005 3:51 pm    Post subject: Reply with quote

I did install the 1.12.0alpha because I hat problems with my old 1.9 regarding VLAN. Now I'm running 1.11 and both is working fine.

Thanks for your explanation!
Back to top
View user's profile Send private message
rolweber
n00b
n00b


Joined: 20 Nov 2005
Posts: 21
Location: Stuttgart, Germany

PostPosted: Sat Aug 12, 2006 5:26 am    Post subject: courier-imap won't start Reply with quote

I updated to the new baselayout-1.12.4-r2 and now courier-imap won't start.
This thread explains the problem (broken init script of courier-imap), but how do I fix it?
Patch something in the init script? Unpatch something that came with the new baselayout?

Any help will be appreciated.

cheers,
Roland
Back to top
View user's profile Send private message
rolweber
n00b
n00b


Joined: 20 Nov 2005
Posts: 21
Location: Stuttgart, Germany

PostPosted: Sat Aug 12, 2006 6:15 am    Post subject: Reply with quote

Ok, I found the bug in the init script after reading
https://forums.gentoo.org/viewtopic-t-371375-start-2-highlight-courierimap+baselayout.html
It's not exactly the one described there, but almost. The command in my /etc/init.d/courier-imap looked like:
Code:
   start-stop-daemon --quiet --start --exec /usr/bin/env - /usr/lib/courier-imap/gentoo-imapd.rc \
      --pid=$PIDFILE

and I changed the single dash "-" after /usr/bin/env to a double dash "--"
Code:
   start-stop-daemon --quiet --start --exec /usr/bin/env -- /usr/lib/courier-imap/gentoo-imapd.rc \
      --pid=$PIDFILE

I've checked once more, "emerge -uD world" does not want to update anything. I hope the next version of courier-imap fixes this problem.

cheers,
Roland
Back to top
View user's profile Send private message
amigafan
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jul 2003
Posts: 134
Location: Ahrensburg, Germany

PostPosted: Sat Aug 12, 2006 10:42 am    Post subject: Reply with quote

rolweber wrote:

and I changed the single dash "-" after /usr/bin/env to a double dash "--"
Code:
   start-stop-daemon --quiet --start --exec /usr/bin/env -- /usr/lib/courier-imap/gentoo-imapd.rc \
      --pid=$PIDFILE

I've checked once more, "emerge -uD world" does not want to update anything. I hope the next version of courier-imap fixes this problem.


This fix doesn't work here - is there something more I have to do after adding a second "-" ?
Back to top
View user's profile Send private message
amigafan
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jul 2003
Posts: 134
Location: Ahrensburg, Germany

PostPosted: Sat Aug 12, 2006 12:11 pm    Post subject: Reply with quote

amigafan wrote:
rolweber wrote:

and I changed the single dash "-" after /usr/bin/env to a double dash "--"
Code:
   start-stop-daemon --quiet --start --exec /usr/bin/env -- /usr/lib/courier-imap/gentoo-imapd.rc \
      --pid=$PIDFILE

I've checked once more, "emerge -uD world" does not want to update anything. I hope the next version of courier-imap fixes this problem.


This fix doesn't work here - is there something more I have to do after adding a second "-" ?

My solution was to use the unstable 4.0.6 build of courier-imap. They really should mark this one as stable.
Back to top
View user's profile Send private message
hanj
Veteran
Veteran


Joined: 19 Aug 2003
Posts: 1500

PostPosted: Sun Aug 13, 2006 5:44 am    Post subject: Reply with quote

I wanted to chime in with a 'me too'. Double dash didn't fix the init script for me.

Code:
[ebuild   R   ] sys-apps/baselayout-1.12.4-r2  USE="-bootstrap -build -static -unicode" 0 kB
[ebuild   R   ] net-mail/courier-imap-4.0.1  USE="berkdb gdbm -debug -fam -ipv6 -nls" 2,961 kB


Thanks
hanji
Back to top
View user's profile Send private message
fcgreg
Apprentice
Apprentice


Joined: 17 May 2003
Posts: 264
Location: California, USA

PostPosted: Sun Aug 13, 2006 8:08 am    Post subject: Related bug on Bugzilla Reply with quote

FYI: This bug on Bugzilla appears to be related and is being referenced by other threads in the forums. Apparently this is a known bug in the init-scripts that was fixed in (testing) version 4.0.4 or Courier-IMAP. The bug has been reopened due to the many problems we are all having.

In my case, I upgraded to the latest testing version (4.0.6) and it is working well. Hope that helps...
_________________
Greg T.
Back to top
View user's profile Send private message
hanj
Veteran
Veteran


Joined: 19 Aug 2003
Posts: 1500

PostPosted: Sun Aug 13, 2006 3:11 pm    Post subject: Reply with quote

Hello

I was worried with introducing additional problems by upgrading to 4.0.4. Based off of the bug, it appears to be an issue with baselayout and just the init scripts. I'm not sure if version 4.0.4 only addresses this.. or has other changes. I thought I'd try modifying the start/stop using the 4.0.4 templates.. and it works. For those that don't want to upgrade.. but just change the existing init scripts.. here is what I changed.

/etc/init.d/courier-pop3d-ssl
Code:
start() {
        checkconfig || return 1
        ebegin "Starting courier-pop3d over SSL"
        /usr/bin/env - /usr/lib/courier-imap/gentoo-pop3d-ssl.rc \
                --pidfile $SSLPIDFILE
        eend $?
}

stop() {
        ebegin "Stopping courier-pop3d over SSL"
        start-stop-daemon --quiet --stop --pidfile $SSLPIDFILE
        eend $?
}

/etc/init.d/courier-pop3d
Code:
start() {
        checkconfig || return 1
        ebegin "Starting courier-pop3d"
        /usr/bin/env - /usr/lib/courier-imap/gentoo-pop3d.rc \
                --pidfile $PIDFILE
        eend $?
}

stop() {
        ebegin "Stopping courier-pop3d"
        start-stop-daemon --quiet --stop --pidfile $PIDFILE
        eend $?
}

I'm not currently running imap, but if you needed to grab the right values look at the following files
Code:
/usr/portage/net-mail/courier-imap/files/courier-imap-4.0.4-courier-imapd-ssl.rc6
/usr/portage/net-mail/courier-imap/files/courier-imap-4.0.4-courier-imapd.rc6


Hope this helps.
hanji
Back to top
View user's profile Send private message
Quincy
Apprentice
Apprentice


Joined: 02 Jun 2005
Posts: 203
Location: Germany

PostPosted: Mon Aug 14, 2006 12:13 am    Post subject: Reply with quote

I was wondering why people complain about using gentoo on a production server...these "stable" updates are surely a reason. I can't understand why these things have to become clear in the forums after a packet has marked stable and all known bugs concerning this were ignored...
Thanks hanj....
Back to top
View user's profile Send private message
Biffen
n00b
n00b


Joined: 23 Nov 2004
Posts: 32

PostPosted: Tue Aug 15, 2006 11:52 am    Post subject: Reply with quote

Had same problem with the new latest stable: (using courier-imap-ssl)

[ebuild R ] sys-apps/baselayout-1.12.4-r2 USE="-bootstrap -build -static -unicode" 0 kB
[ebuild R ] net-mail/courier-imap-4.0.1 USE="berkdb gdbm nls -debug -fam -ipv6" 0 kB

I modifyed the:

/etc/init.d/courier-imapd-ssl

Copied the start/stop part from:

/usr/portage/net-mail/courier-imap/files/courier-imap-4.0.4-courier-imapd-ssl.rc6



Works fine now, thanks hanj!
Back to top
View user's profile Send private message
mobian
n00b
n00b


Joined: 17 Dec 2004
Posts: 72

PostPosted: Wed Aug 16, 2006 6:21 am    Post subject: Reply with quote

This is ridiculous !! Why is stable baselayout breaking things like this?
Back to top
View user's profile Send private message
mrness
Retired Dev
Retired Dev


Joined: 17 Feb 2004
Posts: 375
Location: bucharest.ro

PostPosted: Wed Aug 16, 2006 7:00 am    Post subject: Reply with quote

the broken thing is the courier init script, not the new baselayout.
Back to top
View user's profile Send private message
MrNugget
Tux's lil' helper
Tux's lil' helper


Joined: 15 Nov 2003
Posts: 144
Location: Germany

PostPosted: Wed Aug 16, 2006 9:19 am    Post subject: Reply with quote

Always funny when my stable gentoo system is broken and i need to look in these forums...

But i fixed it, thanks to hanj. Just copied the start/stop-sections of those files, that did it.
Back to top
View user's profile Send private message
ShALLaX
n00b
n00b


Joined: 29 Mar 2003
Posts: 34

PostPosted: Fri Aug 18, 2006 5:03 pm    Post subject: Reply with quote

Absolutely terrible. I think a new Gentoo specific definition of "Stable" needs to be added to the dictionary.
Back to top
View user's profile Send private message
DJEMiVT
n00b
n00b


Joined: 10 Jan 2005
Posts: 8

PostPosted: Mon Sep 11, 2006 7:55 pm    Post subject: Reply with quote

Agreed,

This is the kind of stuff that makes me want to switch to freebsd or debian. It really shouldn't matter if it's the packages fault, or baselayouts fault, or whatever. As it stands my initscripts are still broken, and I have had to write my own scripts to start and stop the services. This is very frustrating... :?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum