> Why not: > if (address is username) > put username on delivery list > if (address has aliases) > resolve aliases into deliveries and forwards > > The only difficulty is that double delivery should be prevented in case > username is [EMAIL PROTECTED] and there is an alias > [EMAIL PROTECTED]>[EMAIL PROTECTED]
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. I don't consider it silly to have one table with ALL valid email addresses, so you don't have to do double lookups. It could be solved by SP on dbmail_users table which automatically adds or deletes delivery for each creation or delete of user, but this is solution only for pgsql. -- Ondrej Sury <[EMAIL PROTECTED]>