2 msgDeliver mail using my ISP server
3 msgHow can I avoid mime 8-bit errors in incoming e...
3 msgnon standard .forward location
2 msgCannot send mail from command line
2 msgAddress rewriting - converting an old domain to...
4 msgEmail routing like MX functionality
4 msg3rd party spam filter and virtual users
2 msgI don't understand how does postfix work with a...
2 msgSanitize 'Undelivered Mail Returned to Sender'
5 msgSuggestion

Virtual alias query question
\ Andrei-Florian Staicu (15 May 2007)
. \ Magnus Bäck (15 May 2007)
. \ mouss (15 May 2007)

4 msgHow to force Postfix to rewrite (or masquerade)...
4 msgUnknown error
9 msgTrouble with mailbox_transport=error:foo
1 msgper domain reporting ?
7 msgmake error
1 msgpostfix + procmail delivery
3 msgWhere's snapshot -20070511?
1 msgtlsmgr on solaris9
6 msgsasl problem
Subject:Re: Virtual alias query question
Group:Postfix-users
From:mouss
Date:15 May 2007


 
Andrei-Florian Staicu wrote:
> 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