Shaun T. Erickson wrote:
... I was wondering if there is a way that I can have courier-imap listen on a third port, just like it does on port 143, but without enforcing STARTTLS there.
I'm still curious about the answer, but it's not needed now, as the problem was that my mod_php4 wasn't compiled with openssl.
Fairly straightforward... First create a file called copy ${sysconfdir}/imapd to ${sysconfdir}/imapd-local. All that needs to be in it are the differences from the standard imapd config, so the following should be fine:
ADDRESS=127.0.0.1 PORT=16143 IMAP_CAPABILITY="IMAP4rev1 UIDPLUS CHILDREN NAMESPACE \ THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT \ QUOTA IDLE AUTH=PLAIN" PIDFILE=/var/spool/courier/tmp/imapd-local.pid IMAPDLOCALSTART=YES
Next, copy ${sbindir}/imapd to ${sbindir}/imapd-local. In this new file, you need to "source" the imapd-local file last, so add one line after the lines for imapd-ssl and imapd:
. /etc/courier/imapd-local
Last, edit the init script... You'll need to add a few lines to start and stop the "local-only" imapd. In the start section, there's a group of lines like the following that start the normal imapd. Following those lines, insert these:
. ${sysconfdir}/imapd-local case x$IMAPDLOCALSTART in x[yY]*) ${sbindir}/imapd-local start echo -n " imapd-local" ;; esac
Then fix the stop section by inserting these lines after the normal imapd stop lines:
if test -x ${sbindir}/imapd-local then ${sbindir}/imapd-local stop echo -n " imapd" fi
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users