On Sat, Jan 16, 2010 at 11:06 AM, Charles Boling
<junk01+post...@boling.us> wrote:
> I've been a postfix user for nearly 10 years, but in many ways I'm still
> quite the newbie.  That's the problem with Postfix being such a solid
> MTA: I don't mess with it much. :-)
>
> For a good chunk of that time, I have wrestled on and off with this
> problem off and on, playing with it for a bit, giving up, then returning
> to it a year or two later.  After all this time, I've finally gotten
> smart enough to specifically ask for help!
>
> I love "+" addressing, the ability to append ad-hoc suffixes to an email
> address (like the one used to post to this list).  The problem is, a lot
> of web sites don't.  They tend to take the lazy route to preventing SQL
> injection attacks, and reject any address with a "+" in it.
>
> To address that issue, I would like to be able to use another character
> ("_" or ".") that is commonly accepted as part of email addresses, instead.
>
> When an email comes into Postfix (v2.2 currently), I would like it to
> search for, e.g. "_" in the recipient address, and replace it with "+".
>  This, of course, needs to happen before it does recipient checking.
> The validated message is eventually passed on to the MDA (Cyrus, in my
> case) with the "+" in it.
>
> How might be the best way to accomplish this?
>

You might want to look at the recipient_delimiter configuration
directive, which you can use to change the delimiter.  It doesn't
search and replace like what you are specifically looking for, but it
might solve your problem.

Reply via email to