multiple instances?

websrvr websrvr at macftphttp.serverbox.org
Fri May 27 13:17:34 EDT 2005


On May 27, 2005, at 12:38 PM, Alexander Dalloz wrote:

> Am Fr, den 27.05.2005 schrieb Simon Matter um 18:05:
>
>
>>> "host is either the hostname or bracket-enclosed IP address of a  
>>> network
>>> interface" [man cyrus.conf]
>>>
>>
>> Where do you read about the brackets? Just check the examples  
>> discussed
>> today on this list, everybody seems to use ip adresses without  
>> brackets.
>>
>> Simon
>>
>
> Sorry, maybe I was not clear enough. Above is a quote from "man
> cyrus.conf" which is equal both on FC3 (the cyrus-imapd on FC is  
> mainly
> based on your great packaging work, as you know) and on OpenBSD 3.7.
> Ok, if it works without problems not using [IP] syntax, this is fine.
> Though putting plain IPs into squared brackets is a usual thing in the
> mail area ;) A close look at the source code should show up how the
> master deals with this configuration.
>
> Regards
>
> Alexander

I tried adding the brackets and it seems to work with or without,  
since the man page recommends the brackets I'll leave them in.

Because I'm running on a Mac, I need a seperate instance if  
imapd.conf so I can set a switch (use_apple_auth = no).

What I'm  is if I also need to have a seperate lmtp socket and if so  
how do I achieve this?

I'm also using a second instance of postfix that is using the alt  
imap so I can run it without the Apple auth stuff as well and I want  
to be sure that lmtp isn't associated with libsasl so it doesn't have  
an issue with authentication between the two different modes.

Would I specify the socket in cyrus.conf with something like (and  
specify "lmtpaltsocket = var/imap/socket/lmtpalt" in imapdalt.conf):

   lmtpaltunix    cmd="lmtpd" listen="/var/imap/socket/lmtpalt"  
prefork=0

Other than generating the configuration and having it run I have not  
assigned users or sent any e-mail until I get a basic configuration  
worked out.

This is what I currently have that runs (courtesy of Simon M.)  
without crashing, I'm not sure if I need the second instance of sieve  
or not but what I am trying to achive are two completely separate   
mail configurations with one using the apple auth stuff on one IP and  
one using the upstream configuration (for virtual user/domains) on  
the other IP.

# UNIX sockets start with a slash and are put into /var/imap/socket
SERVICES {

   # add or remove based on preferences
   imap        cmd="imapd" listen="[10.1.100.20]:imap" prefork=0
#  imaps        cmd="imapd -s" listen="imaps" prefork=0
   pop3        cmd="pop3d" listen="[10.1.100.20]:pop3" prefork=0
#  pop3s        cmd="pop3d -s" listen="[10.1.100.20]:pop3s" prefork=0
   sieve        cmd="timsieved" listen="[10.1.100.20]:sieve" prefork=0
# at least one LMTP is required for delivery
#  lmtp        cmd="lmtpd" listen="[10.1.100.20]:lmtp" prefork=0
   lmtpunix    cmd="lmtpd" listen="/var/imap/socket/lmtp" prefork=0

# using imapdalt.conf and "use_apple_auth" is off
   imapalt        cmd="imapd -C /etc/imapdalt.conf"  
listen="[10.1.100.11]:imap" prefork=0
   pop3alt        cmd="pop3d -C /etc/imapdalt.conf"  
listen="[10.1.100.11]:pop3" prefork=0
   # at least one LMTP is required for delivery
#  lmtp        cmd="lmtpd" listen="10.1.100.11:lmtp" prefork=0
   sievealt        cmd="timsieved -C /etc/imapdalt.conf "  
listen="[10.1.100.11]:sieve" prefork=0

# this is only necessary if using notifications
#  notify    cmd="notifyd" listen="/var/imap/socket/notify"  
proto="udp" prefork=1
}

---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list