mouss wrote:
so your check_recipient_access returns 'b.cn', which is not a valid
action.
what are you trying to do? you cannot implement checks based on
multiple fields at a time, so your table design is suspicious
(username and restricteddomain are independent).
Thanks mouss. :)
i want to restrict this user, and 'internal_deliver_only' means user
'[EMAIL PROTECTED]' can *ONLY* send mail to restricteddomain (b.cn).
In my record:
----cut<<----
mysql> select username,restriction_class,restricteddomain from
restrictions;
+----------+-----------------------+------------------+
| username | restriction_class | restricteddomain |
+----------+-----------------------+------------------+
| [EMAIL PROTECTED] | internal_deliver_only | b.cn |
+----------+-----------------------+------------------+
----cut<<----
Replace mysql lookup by hash file, it works:
----cut<<----
b.cn OK
----cut<<----
So, what SQL query should i use in mysql lookup file?
Thanks very much. :)
--
Best Regards.
Zhang Huangbin
- iRedMail: Mail Server Solution for Red Hat(R) Enterprise Linux &
CentOS 5.x: http://iRedMail.googlecode.com/