Postfix Virtual Hosting With LDAP Backend With Dovecot As IMAP/POP3 Server On Ubuntu Hardy Heron 8.04 TLS - Page 5

Want to support HowtoForge? Become a subscriber!
 
Submitted by Miguel (Contact Author) (Forums) on Mon, 2008-07-28 18:17. ::

Step 6: install and configure gnarwl

Well after the last pages you're in for a surprise. If you tought that configuring everything before was difficult you're in for a treat.

Let's install gnarwl:

apt-get install gnarwl

Now let's configure gnarwl.

First we're going to backup the original configuration file and replace it with a new one.

mv /etc/gnarwl.conf /etc/gnarwl.conf.bck

Now we create the new conf file:

vi /etc/gnarwl.conf

And insert the following:

map_sender $sender
map_receiver $recepient
map_subject $subject
map_field $begin vacationStart
map_field $end vacationEnd
map_field $fullname cn
map_field $deputy vacationForward
map_field $reply mail
server localhost
port 389
scope sub
login cn=admin,dc=example,dc=tld
password secret
protocol 0
base dc=example,dc=tld
queryfilter (&(mailAutoreply=$recepient)(vacationActive=TRUE))
result vacationInfo
blockfiles /var/lib/gnarwl/block/
umask 0644
blockexpire 48
mta /usr/sbin/sendmail -F $recepient -t $sender
maxreceivers 64
maxheader 512
charset ISO8859-1
badheaders /var/lib/gnarwl/badheaders.db
blacklist /var/lib/gnarwl/blacklist.db
forceheader /var/lib/gnarwl/header.txt
forcefooter /var/lib/gnarwl/footer.txt
recvheader To Cc
loglevel 3

Change the default to your actual configuration.

Last but not least execute the following command to make gnarwl work:

chown -R vmail:vmail /var/lib/gnarwl/

Well that's it. You should now have a postfix, dovecot, gnarwl working with an LDAP backend and Phamm as management interface.

For additonal configuration see the respective sites of the software developers to further tune or adapt this to your requirements and needs.

Enjoy.


Please do not use the comment function to ask for help! If you need help, please use our forum.
Comments will be published after administrator approval.
Submitted by Matthew Cho (not registered) on Mon, 2008-09-29 17:58.

i always try to read the whole tutorial before attempting to try it out on my test server.

So, I cannot confirm, but is gnarwl spelled wrong at the top of this page?

apt-get install gnawl