| |||||||||||||||||||||||||||||||
|
> Hello > > I use postfix with virtual domains, mysql backend. > I have virtual_alias_maps = > proxy:mysql:$config_directory/mysql_virtual_alias_maps.cf > mysql_virtual_alias_maps.cf is as follows: > user = postfix > password = <password> > hosts = localhost > dbname = postfix > query = SELECT goto FROM alias WHERE address='%s' AND active > = '1' > > I would like to create some "groups" in the mailbox table, adding a > column with the list of groups the specific address belong to. > Therefore, I will "complicate" the query to select from that table also. > The problems is the I would like these groups (that is departments) to > be accesible only when the sender is within that specific domain. > > To and with the real question: I see that the query uses %s to specify > the "send to" address. Is there an option for the "from" address? > no, '%s' is not a recipient or sender address. it is the "argument" of the query. so in check_sender_access, '%s' is the sender. > I also have a second question: is there a straightforward way to > create an all@domain alias and restrict access to it from within that > domain only? see Magnus reply. > > Thanks (sorry for the fuzzy description of what I would like to do) >
| ||||||||||||||||||||||||||||||
© 2004-2008 readlist.com