OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: Postfix gnarwl LDAP Alias

From: Andrea Gabellini (andrea.gabellinitelecomitalia.sm)
Date: Wed Aug 22 2007 - 08:05:18 CDT


Hi,

I have a similar setup, but I use a different approach, without always_bcc.

In the main configuration file, in virtual_alias_maps, I have many config file for all action via
LDAP (gnarwl, alias, forward). I think you are using a similar setup.

In the configuration file for gnarwl, I use:

result_format = %s,%uautoreply.mydomain

and in the transport file:

autoreply.mydomain gnarwl:

With this setup I don't have any problems, and gnarwl is used only when the user setup the vacation

Andrea

Darragh Gammell wrote:
> Hi
>
> Ive recently setup gnarwl as my email autoresponder.
>
> Configuration highlights are:
>
> Vacation schema added to LDAP
> gnarwl added as local system user
> always_bcc=gnarwl parameter added to main.cf
> gnarwl runs LDAP query to determine if recipient is on holidays: queryfilter
> (&(mail=$recepient)(vacationActive=TRUE))
>
> Basically followed:
> http://anothersysadmin.wordpress.com/2007/07/28/how-to-on-vacation-autoreply-with-postfixldap-and-gnarwl/
>
>
>
> This works great for virtual mailboxes in that it sends the details from the
> vacationinfo back to the sender.
>
> Log highlights:
>
> Sender blocked so doesnt get repeated mails:
> Aug 22 15:24:03 fez gnarwl[25511]: DEBUG/MAIL blocked: senderother.net.au &
> userblah.net.au
>
> Mail sent to gnarwl with sender details: gnarwl responds to sender with
> vacation details:
> Aug 22 15:24:03 fez postfix/local[24127]: 5812C1378142: to=<
> gnarwlmx.blah.net.au>, relay=local, delay=0, status=sent (delivered to
> command: /usr/bin/gnarwl)
> Aug 22 15:24:03 fez gnarwl[24420]: INFO/MAIL sent mail: userblah.net.au ->
> senderother.net.au
>
>
>
> My issue is as follows:
>
> If a mail is sent to an alias the bcc occurs prior to the alias being
> resolved to the real destination. The gnarwl LDAP query therefore uses the
> alias details for the lookup and finds no vacationActive.
>
> Log highlights:
>
> Mail sent to alias gets sent on to real mailbox:
> Aug 22 16:10:56 fez postfix/smtp[9933]: E145713780E3: to=<userblah.net.au>,
> orig_to=<aliased_userblah.net.au>, relay=127.0.0.1[127.0.0.1], delay=62,
> status=sent (250 2.6.0 Ok, id=10404-04, from MTA([127.0.0.1]:10025): 250 Ok:
> queued as 457581378151)
>
> Mail also sent to gnarwl with alias address. gnarwl checks alias address and
> find no vactionActive parameter so no response is sent to sender.
>
> Aug 22 16:10:56 fez postfix/local[9181]: 457581378151: to=<
> gnarwlmx.vicnet.net.au>, relay=local, delay=0, status=sent (delivered to
> command: /usr/bin/gnarwl)
> Aug 22 16:10:56 fez gnarwl[10617]: DEBUG/LDAP No match: (&(mail=
> aliased_userblah.net.au)(vacationActive=TRUE))
>
>
>
> Has anyone encountered and fixed this or set up gnarwl a different way so
> that this doesnt occur?
> If you have a different email autoresponder which doesnt have this issue
> please indicate and ill try that
>
> Thanks in advance
>
> Darragh
>

--

---------------------------------------
Old MacDonald had a PC, with EIA I/O.
---------------------------------------
Ing. Andrea Gabellini
Email: andrea.gabellinitelecomitalia.sm
Skype: andreagabellini
Tel: (+378) 0549 886111
Fax: (+378) 0549 886188

Telecom Italia San Marino S.p.A.
Strada degli Angariari, 3
47891 Rovereta
Republic of San Marino

http://www.telecomitalia.sm