OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
mysql access maps

From: Alexander Brill (kiowaproject23.no)
Date: Fri Sep 12 2003 - 07:06:34 CDT


I was trying to configure postfix to use mysql with
check_recipient_access. The problem I am having is that according to
access(5) I can set an address like user and it will match all
addresses to that user.

So I have this table:
+----+-------------+--------+--------+
| id | address | action | status |
+----+-------------+--------+--------+
| 1 | postmaster | OK | 1 |
| 2 | abuse | OK | 1 |
+----+-------------+--------+--------+

But when I try to check it with postmap it doesn't work. It only matches
on the exact address.
'postmap -q postmasterfoobar.com mysql:/etc/postfix/mysql-recipients'
returns 0
'postmap -q postmaster mysql:/etc/postfix/mysql-recipients' returns OK

Am I doing something wrong?

--
Alexander Brill <kiowaproject23.no>
http://www.project23.no
PGP-key: http://www.nettstudio.no/firma/Library/PGP/alex_pgp/view

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQA/YbbJjzte1jvbmFERAk1ZAJ9Cgma43J1WRLd8RJCWkcDIMiFEFwCbBFER
IJw3LyITCNwmdWzUseBNqYo=
=W6SG
-----END PGP SIGNATURE-----