OSEC

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

From: Jan-Hendrik Heuing (jhk1net.de)
Date: Thu May 01 2003 - 12:37:55 CDT


Hi !

I set it up, here I show you an example of what I did:

> > If you've got any ideas how to set it up in a virtual user environment,
that
> > would be great.
> Script a wrapper around vacation, and add it as an additional forwarding
> address for the virtual user?
>
> recipient_delimiter = +
as you say...

>
> /etc/postfix/virtual (translate to your ldap map)
> userdomain userremote, virt_vacation+user
This is in the mysql-table...
col address: jhk1net.de deliver+jhk1net.de
col goto: virt_vacation+jhk1net.de
As I didn't know about the remote, I asked Simon Loader, he said generaly
it's a good idea, but maybe it would onle work this way with mysql-lookup.
This is while there is a user jhk1net.de beside that in the user-table.
WHich sould be as this is vacation, not only a forwarder.

>
> alias_maps = regexp:/etc/vacation
alias_maps = regexp:/etc/postfix/vacation

>
> /etc/vacation
> virt_vacation+(.*): "|/usr/local/bin/vacation-wrapper $1"

virt_vacation+(.*): "|/data/mail/mail-vacation.php $1"
The php-script can be run at command line. If I do that manualy, it just
adds a record to the database, so I know, it works. The file's owner is
postfix:postdrop (vacation as well as the php-script).

No forwarding or anything else is done here, I'd do it as soon as this
script is run at all.

Finaly: Nothing happens, nothing in the logs realy. No entries in the
database, the script is not run at all. Nothing in the logs about the
scripts or anything (smpt -v is enabled)

Any help appreciated... Thansk a lot !

jhh