<div dir="ltr">Hi, <div><br></div><div>Thanks a lot for your quick answer.</div><div> Then, in this case, one admin can see all other domains records. </div><div><br></div><div>How can I grant <a href="mailto:admin@example.com">admin@example.com</a> to view only his own domain records and <a href="mailto:admin@client1.com">admin@client1.com</a> to view only his own domain records? </div><div><br></div><div>how can I grant permission? all tables have all hosted domain records. </div><div><br></div><div>How can I reach my goal with mysql while having one database? </div><div><br></div><div>Can you explain it to me?</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 30, 2020 at 12:44 PM Damian <<a href="mailto:amavis@arcsin.de">amavis@arcsin.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> I need *one mysql database per domain with amavisd-new while having multiple domains*. Is it possible?<br>
> <br>
> Let's say i have a domain called *<a href="http://example.com" rel="noreferrer" target="_blank">example.com</a>*. I want everything for that domain to be stored in mysql database called *db_example*.<br>
> Now, Let's say I have another domain called *<a href="http://client1.com" rel="noreferrer" target="_blank">client1.com</a>*. I want everything for that domain to be stored in mysql database <br>
> called *db_client1*.<br>
> <br>
> in amavisd.conf, Will these lines reach my goal?<br>
> <br>
> @lookup_sql_dsn = ( ['DBI:mysql:database=db_example;host=127.0.0.1;port=3306', 'admin_db_example', 'secret'],<br>
> ['DBI:mysql:database=db_client1;host=127.0.0.1;port=3306', 'admin_db_client1', 'secret']);<br>
> @storage_sql_dsn = @lookup_sql_dsn;<br>
<br>
README.sql says:<br>
<br>
> - a list can contain one or more triples: [dsn,user,passw]; more than one<br>
> triple may be specified to specify multiple (backup) SQL servers - the first<br>
> that responds will be used as long as it works, then search is retried<br>
Additionally @*_sql_dsn are global confvars, so one cannot use different values in different policy banks.<br>
<br>
So, no.<br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr">cat /etc/motd<br><br>Thank you<br>Indunil Jayasooriya <br><a href="http://www.theravadanet.net/" target="_blank">http://www.theravadanet.net/</a><br><br></div></div></div></div>