[cvs] [Wiki] changed: SorkVacationWithGnarwl
Wiki Guest
wikiguest at horde.org
Tue Sep 5 11:24:58 PDT 2006
guest [128.83.155.230] Tue, 05 Sep 2006 11:24:58 -0700
Modified page: http://wiki.horde.org/SorkVacationWithGnarwl
New Revision: 1.1
Change log: add <code> tags
@@ -1,38 +1,48 @@
This HowTo is from an e-mail exchange on the Sork mailing list.
-The setup is:
+The server setup is:
MTA: postfix
vacation program: gnarwl
Horde: 3.1.3
Vacation: 3.0
openldap: 2.2.13-4
-First, define a postfix transport map for your specific internal
-autoreply domain.
+First, define a postfix transport map for your specific internal autoreply domain.
For example /etc/postfix/transport:
+
+<code>
autoreply.example.com gnarwl:
+</code>
create the database:
+
+<code>
postmap hash:transport # this should create the transport.db file
-
+</code>
Add the transport to the postfix main.cf:
+
+<code>
<snip>
# TRANSPORT MAPS
#
transport_maps = hash:/etc/postfix/transport
</snip>
+</code>
Add a new service to /etc/postfix/master.cf:
+<code>
</snip>
# gnarwl autoresponder
gnarwl unix - n n - - pipe
flags=F user=gnarwl argv=/usr/bin/gnarwl -a $user
</snip>
+</code>
Add a vacation alias map (ldap-virtual_alias_maps-vacation.cf):
+<code>
<snip>
server_host = ldap://ldap.example.com
version = 3
server_port = 389
@@ -42,24 +52,31 @@
result_attribute = mail
result_filter = %s,%s at autoreply.example.com
bind = no
</snip>
+</code>
Of course, the above needs to reflect your ldap environment...
Append the alias map to main.cf (make sure it's the first map):
+<code>
<snip>
virtual_alias_maps =
ldap:/etc/postfix/ldap-virtual_alias_maps-vacation.cf,
ldap:/etc/postfix/ldap-virtual_alias_maps.cf
</snip>
+</code>
after those changes, reload postfix:
+<code>
postfix reload
+</code>
Extend your ldap with the vacation schema and setup a test account,
example ldif:
-<snip>>
+
+<code>
+<snip>
dn:mail=vacationtest at example.com,...
objectClass: top
objectClass: Vacation
mail: vacationtest at example.com
@@ -68,25 +85,30 @@
vacationActive: TRUE
vacationInfo:: [vacation message has to be utf-8 encoded and also base64
if necessary]
</snip>
+</code>
After loading the above ldif, test your postfix alias vacation lookup map:
+<code>
postmap -v -q vacationtest at example.com
ldap:/etc/postfix/ldap-virtual_alias_maps-vacation.cf
+</code>
+
+This should return the following if the vacation has been enabled, otherwise nothing.
-This should return the following if the vacation has been enabled,
-otherwise nothing.
+<code>
<snip>
vacationtest at example.com,vacationtest at example.com@autoreply.example.com
</snip>
+</code>
-If this works so far, configure gnawrl to suit your needs (only the ldap
-part and the header config is included):
+If this works so far, configure gnawrl to suit your needs (only the ldap part and the header config is included):
gnarwl.cfg
edit gnarwl.cfg and change the following lines:
+<code>
<snip>
server ldap.example.com
protocol 3
base ou=mail...
@@ -96,11 +118,13 @@
charset
forceheader /var/lib/gnarwl/header-utf8.txt
loglevel 3
</snip>
+</code>
Create the file /var/lib/gnarwl/header-utf8.txt and add the content
shown below:
+<code>
<snip>
From: $fullname <$recepient>
To: $sender
X-mailer: GNARWL
@@ -108,11 +132,10 @@
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Subject: Re: $subject
</snip>
+<code>
-Finally you will have to configure the sork vacation app with the ldap
-driver. This should be an easy task now ;)
-Remember, that you have to configure/specify the vacation related
-attributes.
+Finally you will have to configure the sork vacation app with the ldap driver. This should be an easy task now ;)
+Remember, that you have to configure/specify the vacation related attributes.
More information about the cvs
mailing list