|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Angelos Karageorgiou (angelos
unix.gr)
Date: Wed Aug 22 2007 - 06:25:57 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I did not know that always_bcc existed , so this is how I did it
Note: the extensions to the ldap schema are my own , please adjust !
virtual_alias_maps = ldap:/etc/postfix/ldap-virtual-vacation.cf,
ldap:/etc/postfix/ldap-forwarding.cf,
ldap:/etc/postfix/ldap-virtual.cf,
ldap:/etc/postfix/ldap-catchall.cf
for gnarwl and vacation
----------
/etc/postfix/ldap-virtual-vacation.cf
bind=no
domain=hash:/etc/postfix/domains.hash
server_host = ldap://ldap01:389 ldap://ldap02:389
search_base = ou=%d,ou=domains,o=top
query_filter =
(&(|(mail=%s)(mailAlternateAddress=%s))(VacationStatus=active))
result_attribute = mail
result_format = %u+%d
autoreply,%u
%d
scope = sub
version = 3
----------
/etc/postfix/ldap-forwarding.cf
domain=hash:/etc/postfix/domains.hash
bind=no
server_host = ldap://ldap01:389 ldap://ldap02:389
search_base = ou=%d,ou=domains,o=top
query_filter = (|(mail=%s)(mailalternateaddress=%s))
result_attribute = mailForwardingAddress
scope = one
version = 3
----------
/etc/postfix/ldap-virtual.cf
bind=no
domain=hash:/etc/postfix/domains.hash
server_host = ldap://ldap01:389 ldap://ldap02:389
search_base = ou=%d,ou=domains,o=top
query_filter = (|(mail=%s)(mailAlternateAddress=%s))
result_attribute = mail
scope = sub
version = 3
----------
/etc/postfix/ldap-catchall.cf
domain=hash:/etc/postfix/domains.hash
bind=no
server_host = ldap://ldap01:389 ldap://ldap02:389
search_base = ou=%d,ou=domains,o=top
query_filter = (mailalternateaddress=catchall
%d)
result_attribute = mail
scope = sub
version = 3
O/H Darragh Gammell έγραψε:
> 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 <http://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:
.... deleted ...
>
> 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
>
>
>
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]