Hi there:

I finally understood and fixed previous problems with my Postfix
installation. Now I'm invoking gnarwl from a transport, something like
this:

transport_maps = hash:/etc/postfix/transport
virtual_alias_maps = ldap:/etc/postfix/phamm_alias.cf,
ldap:/etc/postfix/phamm_vacation.cf

/etc/postfix/transport contains this:

autoreply.domain.com gnarwl:

/etc/postfix/phamm_vacation.cf always returns or "u...@domain.com" or
"u...@domain.com,u...@autoreply.domain.com" depending on the value of
vacationActive=TRUE of the user in the corresponding LDAP entry.
In /etc/postfix/master.cf I added gnarwl:

gnarwl    unix  -       n       n       -       -       pipe
  flags=F user=gnarwl argv=/usr/local/bin/gnarwl -c
/usr/local/etc/gnarwl.cfg -s ${sender} -a ${us...@{nexthop}

When I send an email to u...@domain.com (having vacationActive=TRUE)
postfix logs show me that is sending two mails: one for
u...@domain.com and the other one to u...@autoreply.domain.com
delivered via gnarwl service (as expected). No error logs, no
warnings, everything OK

But I can see that gnarwl isn't receiving the email from Postfix, then
I query my processes:

# ps aux | grep gnarwl
postfix  30245  0.0  0.3   6836  1804 ?        S    16:23   0:00 pipe
-n gnarwl -t unix flags=F user=gnarwl argv=/usr/local/bin/gnarwl -c
/usr/local/etc/gnarwl.cfg -s ${sender} -a ${us...@{nexthop}
root     30255  0.0  0.1   2996   708 pts/1    R+   16:24   0:00 grep gnarwl

and I see that the pipe process is still running, it seems that pipe
is busy with gnarwl or doesn't end its communication with gnarwl.
I query my processes many times and the pipe process is still there
and then after a minute approximately the pipe process just
dissapears, and gnarwl wasn't never invoked ... aparently.
Normally everytime gnarwl is invoked (with debug options enabled) I
can see a log of its activity, but this time I can't see any gnarwl
log. I am pretty sure that pipe isn't sending the email to gnarwl.

Does anybody here was able to setup gnarwl with Postfix trough the use
of transport?

Reply via email to