En/Na "Abu @ Trabas Dot Com" ha escrit:
> 
> Where can I find document about Cyrus working together
> with Qmail, maybe anybody have experience install on
> linux box.


Don't know if it is the ideal solution but it works well for me.

in /var/qmail/users/assign 

------------[cut here]----------------------------
+:alias:104:12:/var/qmail/alias:-::
.
------------[cut here]----------------------------

substitute 104 with your alias user id and 12 with your mail group id.
don't forget to run qmail-newu

then I have a file /var/qmail/alias/.qmail-default with the line
------------[cut here]----------------------------
| ./entrega
------------[cut here]----------------------------


and in /var/qmail/alias the script "entrega":

------------[cut here]----------------------------
###############################################
# Local delivery through cyrus
#
# get the userid (before the first dash)
#
userid="`echo "${LOCAL%%-*}" | tr "A-Z" "a-z"`"
# change dashes with dots
mailbox="`echo "$EXT2" | tr "A-Z" "a-z" | sed "s/-/./g"`"


if [ "$mailbox" = "" ]
then
# deliver to INBOX
  /usr/cyrus/bin/deliver -e -Q "$userid"
else
# deliver to a folder
  /usr/cyrus/bin/deliver -e -Q -m "$mailbox" -a "$userid" "$userid"
fi

#change deliver result to suit what qmail is expecting
case $? in
     64|65|66|67|68|76|77|78)
         exit 100
         ;;
     0)
         exit 0
         ;;
     *)
         exit 111
         ;;
esac

------------[cut here]----------------------------


you should remove the -Q option to deliver (is a local modification so that deliver 
gets
the envelope addresses from qmail environment variables, to have a working sieve
vacation without using lmtp


Bye
-- 
Luca Olivetti
Wetron Automatizaci�n S.A. http://www.wetron.es/
Tel. +34 93 5883004      Fax +34 93 5883007

Reply via email to