It should be @somedomain.co.uk (i.e. without the leading period)<br><br>-kent<br><br>Sent from my Verizon Wireless 4GLTE smartphone<br><br>----- Reply message -----<br>From: "Benedict White" <Benedict.White@cse-ltd.co.uk><br>To: "amavis-users@amavis.org" <amavis-users@amavis.org><br>Subject: Query on sql lookups and order of searches<br>Date: Wed, Aug 7, 2013 5:32 pm<br><br><br><br>I am running some tests on a server, and have an sql server (MariaDB) running the <br>schema that comes with the latest version of Amavisd-new. I use the same dsn for<br>storage and lookups.<br><br>What I'm trying to achieve is this:<br><br>I want to apply policy 1 to a user with an email of bob@somedomain.co.uk, and<br>A different policy (as it happens 12) to all other users at the same domain.<br><br>As I understand it from http://www.ijs.si/software/amavisd/README.lookups I can do this <br>by having an entry (users:email)  I presume in users with @.somedomain.co.uk with a policy ID of 12<br>and another user with an email address bob@somedomain.co.uk with a policy id of 1. <br><br>However it seems if I do it like that the policy of 12 applies regardless.  I've also tried <br>.@somedomain.co.uk but that just makes the policy for bob@somedomain.co.uk apply to all users.<br><br>Kindest regards,<br><br>Benedict White<br><br>