Hello everybody,

I hope you can help me, Ik have a FreeBSD server set up for mail handling. I would realy like to activate an autoresponder.
This is my config in a nutshell:
- FreeBSD v8
- postfix 2.7.1 (with amavis/spamasassin/dovecot)
- I use ldap for validation, mail addresses/aliassses, forwarding etc.

I hope this is the right way to go (since this is the first time I do a contibution to the list). If not, please let me know what I did wrong.

I installed gnarwl via ports, and set everything up.. but I can't get it to work, this is what I confugured so far:

I set the folowing files to the owner vmail:vmail:
chown -R vmail:vmail /usr/local/var/lib/gnarwl/
chown vmail:vmail /usr/local/etc/gnarwl.cfg

appended /usr/local/etc/postfix/master.cf
# gnarwl autoresponder
gnarwl    unix  -       n       n       -       -       pipe
flags=F user=vmail argv=/usr/local/bin/gnarwl -a ${user}@${nexthop} -s ${sender}

edited /usr/local/etc/postfix/main.cf
transport_maps = hash:/usr/local/etc/postfix/transport
to
transport_maps = hash:/usr/local/etc/postfix/autoresponder,hash:/usr/local/etc/postfix/transport

in transport there are the usual transport rules, in autoresponder I have set up:
autoresponder.domain.tld        gnarwl:
in de zone file this domain points to the mailserver

I build the autoresponder.db via postmap autoresponder

My /usr/local/etc/gnarwl.cfg looks like this:
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
login cn=admin,dc=domain,dc=tld
password XXXXX
protocol 3
base ou=accounts,dc=domain,dc=tld
queryfilter (&(objectClass=Vacation)(|(mail=$recepient)(mailAlias=$recepient))(vacationActive=TRUE))
result vacationInfo
blockfiles /usr/local/var/lib/gnarwl/block/
umask 0644
blockexpire 48
mta /usr/sbin/sendmail -f $recepient
maxreceivers 64
maxheader 512
charset ISO8859-1
badheaders
blacklist
forceheader /usr/local/var/lib/gnarwl/header.txt
forcefooter /usr/local/var/lib/gnarwl/footer.txt
recvheader To Cc
loglevel 3

In LDAP I set up the objectclass Vacation with vacationActive=TRUE and some text for vacationInfo. Also I set LDAP to send a mail for popbox domaintest to be delevered to domaint...@autoresponder.domain.tld and domaint...@domain.tld

then I send the mail.....:
Jul 14 15:26:19 s02 postfix/smtpd[57478]: 4B8E578C21: client=XXX.com[195.321.321.321] Jul 14 15:26:19 s02 postfix/cleanup[57498]: 4B8E578C21: message-id=<4e15b3da.6030...@domain.tld> Jul 14 15:26:19 s02 postfix/qmgr[55395]: 4B8E578C21: from=<sen...@domain.tld>, size=3487, nrcpt=2 (queue active) Jul 14 15:26:21 s02 postfix/smtpd[57674]: 53A5478C23: client=localhost[127.0.0.1] Jul 14 15:26:21 s02 postfix/cleanup[57278]: 53A5478C23: message-id=<4e15b3da.6030...@domain.tld> Jul 14 15:26:21 s02 postfix/qmgr[55395]: 53A5478C23: from=<sen...@domain.tld>, size=3819, nrcpt=2 (queue active) Jul 14 15:26:21 s02 amavis[56664]: (56664-09) Passed CLEAN, [195.121.247.6] [92.65.20.65] <sen...@domain.tld> -> <domaint...@autoresponder.domain.tld>,<domaint...@domain.tld>, Message-ID: <4e15b3da.6030...@domain.tld>, mail_id: qmU6WFVKwaCw, Hits: -0.844, size: 3486, queued_as: 53A5478C23, 2076 ms Jul 14 15:26:21 s02 amavis[56664]: (56664-09) Passed CLEAN, <sen...@domain.tld> -> <domaint...@autoresponder.domain.tld>, Hits: -0.844, tag=12, tag2=12, kill=12, queued_as: 53A5478C23, 0/0/0/0 Jul 14 15:26:21 s02 amavis[56664]: (56664-09) Passed CLEAN, <sen...@domain.tld> -> <domaint...@domain.tld>, Hits: -0.844, tag=12, tag2=12, kill=12, queued_as: 53A5478C23, 0/0/0/0 Jul 14 15:26:21 s02 postfix/smtp[57281]: 4B8E578C21: to=<domaint...@autoresponder.domain.tld>, relay=127.0.0.1[127.0.0.1]:10024, delay=2.3, delays=0.21/0/0.01/2.1, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 53A5478C23) Jul 14 15:26:21 s02 postfix/smtp[57281]: 4B8E578C21: to=<domaint...@domain.tld>, relay=127.0.0.1[127.0.0.1]:10024, delay=2.3, delays=0.21/0/0.01/2.1, dsn=2.0.0, status=sent (250 2.0.0 from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 53A5478C23) Jul 14 15:26:21 s02 postfix/virtual[57385]: 53A5478C23: to=<domaint...@domain.tld>, relay=virtual, delay=0.08, delays=0.01/0.02/0/0.04, dsn=2.0.0, status=sent (delivered to maildir)
Jul 14 15:26:21 s02 postfix/qmgr[55395]: 4B8E578C21: removed
Jul 14 15:26:21 s02 postfix/pipe[57675]: 53A5478C23: to=<domaint...@autoresponder.domain.tld>, relay=gnarwl, delay=0.35, delays=0.01/0.21/0/0.13, dsn=2.0.0, status=sent (delivered via gnarwl service)
Jul 14 15:26:21 s02 postfix/qmgr[55395]: 53A5478C23: removed

The mail is delivered to the folder, the relay=gnarwl is only visible when I want to ('queryfilter' seems to be correct), I get no errors, no warnings.. but also no autoresponce! What have I set up wrong?

Hope you can help.

Eesger

Reply via email to