On Fri, Jan 14, 2005, Ondrej Sury <[EMAIL PROTECTED]> said: > I think that whole problem is more deeper than it seems. Maybe it is > silly to have alias for each username, but if you use postfix > local_recipient_maps to prevent backscatter mail then it will broke when > you don't add alias equaling to username to alias table.
This is easily resolved because the Postfix-MySQL lookup patch allows you to specify your own query (although I think it's split up into pieces in the config file, but it can be done). So it's simply a matter of writing an OR into the query: SELECT 1 FROM dbmail_aliases,dbmail_users WHERE dbmail_users.userid = 'address' OR dbmail_aliases.alias = 'address' Aaron