Hi there,
When you mentioned : it seems he gets a virtual_map that splits [EMAIL PROTECTED] [EMAIL PROTECTED],[EMAIL PROTECTED] I tried to do that in virtual_alias_map but the result is that just the first gets delivered (that in my case was the autoresponder) This address expansion is 'based' on your 'alias' table, when the user 'set' the auto-response a wrong address is added to that table. It means than the postfixadmin script when the user click on 'active my out of office'. the insertion is wrongly done (/usr/share/../plugins/posftixadmin/..) On Sun, Jul 13, 2008 at 6:53 PM, mouss <[EMAIL PROTECTED]> wrote: > Alessandro Dentella wrote: > >> hi, >> >> I'setting up vacatio for a *virtual* setup. I have a database where >> vacation >> mesages have start/stop date. virtual_*_maps are o postgres and >> postgresql >> views return values depending on the data, so you can program in advance. >> >> I made 2 different approach: >> >> 1. using transport_maps per user I use an alternate transport >> "vacation". I get the message delivered to a script that can use >> mailbot to send to the sender an advice.... >> But how am i supposed to deliver also to the real maildir? >> I thought to use maildrop but I'm unsere how I should use it from >> within a script: how can maildrop know the correct maildir? >> >> > > do the opposite. run the script from within maildrop. maildrop has a CC > command to pass a copy to a program or to an address... > >> 2. reading Pavo's CDA Autoresponders >> http://unwin.org/postfix/vda-autoresponder.html i got a little bit >> confused. >> >> it seems he gets a virtual_map that splits [EMAIL PROTECTED] >> [EMAIL PROTECTED],[EMAIL PROTECTED] >> I tried to do that in virtual_alias_map but the result is that >> just the >> first gets delivered (that in my case was the autoresponder) >> >> > > only @autoreply.example.com mail should be delivered to the responder. use > transport_maps for that. > >> In fact my (probably naive) understanding was that if postfix find an >> alias it does not continue to look for an accoutn with the same >> name. Correct? In this case the alias expansion returns something that >> in my schema would loop indefinitely (but really it does not...). >> >> > > no, there is no loop. if the result contains the expanded address, > expansion stops. so > [EMAIL PROTECTED] [EMAIL PROTECTED], [EMAIL PROTECTED] > will forward mail to foo _and_ bar. This is somewhat similar to a recipient > bcc. > > with the second approach, you can enable auto-responses for selected users > (user on vacation and wants auto-responder...) from within postfix. if you > use the maildrop approach, you will need to check the user "status" yourself > (you can use a file to enable vacation for a given user). > > yet a third approach is to "tag" the recipient address using virtual > aliases: > [EMAIL PROTECTED] [EMAIL PROTECTED] <[EMAIL PROTECTED]> > then use maildrop to CC the auto-responder if the tag ("absent") is found. > this way, only one delivery is done (by postfix) but you don't need to check > user "status" in maildrop. unfortunately, this will break if further rewrite > is performed... > > > > > > >