>From main.cf comments for local_recipient_maps:

# The right-hand side of the lookup tables is conveniently ignored.
# In the left-hand side, specify a bare username, an @domain.tld
# wild-card, or specify a [EMAIL PROTECTED] address.

So that would already work if you didn't put the @ in the alias,
and it would also work with the [EMAIL PROTECTED] addresses.
If you need to save the @ in the alias for whatever reason, you
could probably even make the lookup query cut it out for you
(use mysql's substr_index() or something), which may not
be a cross-database compatible call, but we're talking mta config,
not dbmail code, so that's fine.



---- Original Message ----
From: Aaron Stone <dbmail-dev@dbmail.org>
To: "DBMAIL Developers Mailinglist" <dbmail-dev@dbmail.org>
Subject: Re: [Dbmail-dev] [DBMail 0000105]: Global addresses needed
Sent: Tue, 19 Oct 2004 22:18:00 -0000

> The issue is that you have Postfix pre-checking the addresses against the
> database, and only if they exist does Postfix pass the message to DBMail
> for delivery?
> 
> If that's the case, perhaps we can extend Postfix with the same address
> and domain logic? I wonder if Wietse would choke on adding this... (is the
> MySQL lookup part of stock Postfix as it is, or is it a patch anyways?)
> 
> Aaron
> 
> 
> Blake Mitchell <[EMAIL PROTECTED]> said:
> 
> > Yeah, it would likely necessitate an alias lookup daemon. I have seen a 
> > couple requests for such a thing on the list already, so that may be the 
> > direction things end up anyway. Of course that adds just that much more 
> > complexity to the whole thing, which has to be weighed against the benefits.
> > 
> > Micah wrote:
> > 
> >>The only downside of this I see is that I use the alias table as a lookup 
> >>table for postfix to accept/deny addresses at the smtp stage, which is much 
> >>more efficient, I have a feeling that it would barf on a regexp address. 
> >>
> >>Actually, now that I think about it, would it handle a [EMAIL PROTECTED] 
> >>style 
> >>address? I'll dig around and see about this. 
> >>
> >>I don't know anything about sendmail, that would be a valid question there 
> >>if 
> >>anyone uses similar function for that MTA. 
> >>
> >>-Micah 
> >>  
> >>
> > 
> > _______________________________________________
> > Dbmail-dev mailing list
> > Dbmail-dev@dbmail.org
> > http://twister.fastxs.net/mailman/listinfo/dbmail-dev
> > 
> 
> -- 
> 
> 
> 
> _______________________________________________
> Dbmail-dev mailing list
> Dbmail-dev@dbmail.org
> http://twister.fastxs.net/mailman/listinfo/dbmail-dev
> 
-- End Original Message --


--
Jesse Norell

[EMAIL PROTECTED] is not my email address;
change "administrator" to my first name.
--

Reply via email to