On Fri, 4 Jun 2004, RYAN vAN GINNEKEN wrote:
>Think I am in over my head here could someone give me the specifics on
>how to run one of these configurations.  About all i can understand is
>that i need two instances of binc running is that correct?? but how do i
>make another directory like the imap and imaps directories with some
>make code in them.  Is there going to be 2 bincimap config files like
>changing the above mentioned files to contain the lines
>--conf=/usr/local/etc/bincimap/bincimap.conf.in and could one file would
>contain   --conf=/usr/local/etc/bincimap/bincimap.conf.out but how do i
>get one to bind to the internal interface 127.0..0.1 please help

No need to keep a separate conf file. :-)

Create a new service directory called bincimap-allowplain or something:

mkdir /etc/opt/bincimap/service/bincimap-allowplain

Then copy the run file from the old service file for plain connection:

cp /etc/opt/bincimap/service/bincimap/run \
   /etc/opt/bincimap/service/bincimap-allowplain

Then edit this file. Look for "0 143", and replace with "127.0.0.1 143".
This makes the service bind to localhost, so it will not serve external
connections. Now add --allow-plain as an argument to bincimap-up. This
overrides the conf file settings.

You will probably want to create a "log" directory and copy over the "run"
file from the old service directory also. Remember to edit the run file to
use a different log directory than the original, or multilog will not
cooperate.

Finally, before starting this new service, edit the
/etc/opt/bincimap/service/bincimap/run file and replace "0 143" with your
external IP address followed by 143, fex "4.2.2.1 143". Then restart this
service.

Start the new service you created by symlinking it to /service:

ln -s /etc/opt/bincimap/service/bincimap-allowplain \
      /service/bincimap-allowplain

And test it! See if it works for you.

Andy :-)

--
Andreas Aardal Hanssen   | http://www.andreas.hanssen.name/gpg
Author of Binc IMAP      |  "It is better not to do something
http://www.bincimap.org/ |        than to do it poorly."

Reply via email to