Postfix out-of-office autoreply

Discussion in 'Server Operation' started by Paladinemishakal, Jan 3, 2008.

  1. Paladinemishakal

    Paladinemishakal New Member

    Hi All,

    I am new to this forum. I have a problem with installing the out-of-office autoreply feature in Postfix.

    My server configuration are:
    1. Debian Sarge+Postfix+Dovecot+Slapd+Jamm+SASL+Squirrelmail

    I have search on the web and found that this software GNARWL can actually do the virtual users autoreply in postfix together with LDAP.

    I have installed GNARWL from apt-get install gnarwl ed. I edited the config file /etc/ldap/slapd.conf to include the ISPEnv.schema but when I try to start the Slapd, it show the error
    Stopping OpenLDAP: slapd.
    Starting OpenLDAP: running BDB recovery, slapd - failed:
    /etc/ldap/schema/ISPEnv.schema: line 83: AttributeType inappropriate matching rule: "caseExactIA5SubstringsMatch"

    Config of /etc/ldap/Slapd.conf
    allow bind_v2
    include /etc/ldap/schema/core.schema
    include /etc/ldap/schema/cosine.schema
    include /etc/ldap/schema/nis.schema
    include /etc/ldap/schema/inetorgperson.schema
    include /etc/ldap/schema/jamm.schema
    #include /etc/ldap/schema/ISPEnv.schema
    password-hash {CRYPT}
    schemacheck on
    pidfile /var/run/slapd/
    argsfile /var/run/slapd.args
    loglevel 256
    modulepath /usr/lib/ldap
    moduleload back_ldbm
    backend ldbm
    database ldbm
    suffix "dc=test,dc=com"
    rootdn "cn=admin,dc=test,dc=com"
    rootpw XXXXXXXXXX
    directory "/var/lib/ldap"
    index objectClass pres,eq
    index mail,cn eq,sub
    lastmod on

    access to dn.regex=".*,jvd=([^,]+),o=hosting,dc=test,dc=com"
    by self write
    by group/jammPostmaster/roleOccupant.expand="cn=postmaster,jvd=$1,o=hosting,dc=test,dc=com" write
    by dn="cn=dovecot,dc=test,dc=com" read
    by anonymous auth
    by * none

    access to dn.regex=".*,jvd=([^,]+),o=hosting,dc=test,dc=com"
    by self write
    by group/jammPostmaster/roleOccupant.expand="cn=postmaster,jvd=$1,o=hosting,dc=test,dc=com" write
    by * read

    access to *
    by * read

    Config of /etc/gnarwl.cfg
    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
    server localhost
    port 389
    scope sub
    protocol 0
    base ou=hosting,dc=test,dc=com
    queryfilter (&(mail=$recepient)(vacationActive=TRUE))
    result vacationInfo
    blockfiles /var/lib/gnarwl/block/
    umask 0644
    blockexpire 48
    mta /usr/sbin/sendmail -F $recepient
    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 1

    1. Can someone advise how I can do the GNARWL installation, beside doing the apt-get, what else I need to change?
    2. Also if after getting GNARWL to work, how do I use it in Squirrelmail? Any other plugins I need to add?


Share This Page