Wietse Venema:

> Alas, as documented tcp_table(5) is an insecure table (no secure
> communication) so Postfix probably will not allow you to look up
> mailbox pathnames with this.

You are right it doesn't work:
fatal: tcp:127.0.0.1:2527 map is not allowed for security sensitive data

Is there an option how to allow it?

> 
> Maybe you can periodically "dump" the database to local file,
> massage that and "postmap" the result?
> 

Something similar was my original plan.. Unfortunately I cannot make dump to 
file, because the the DB contains about 8 millions users, however only few of 
them get some mail (there is few thousands mails per month). That's why I 
wanted to redirect the inbound mail to script which would set eg. some 
environmental variable with mailbox patch name (if it is possible) and then 
re-injected the message back to postfix considering the variable. 
Another option would be that the scrip would update the lookup table..

Does postfix has some command line option to re-inject message? (something 
similar to qmail-inject)

Thanks!
Vaclav

Reply via email to