OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: about the use of characters "%" and "!" in email address

From: Alain Spineux (aspineuxgmail.com)
Date: Mon Mar 10 2008 - 08:30:24 CDT


On Mon, Mar 10, 2008 at 10:12 AM, mouss <moussnetoyen.net> wrote:
>
> Alain Spineux wrote:
> > Hello
> >
> > When I try to send email to a%bexample.com or a!bexample.com
> > I get a Relay access denied
> >
> > Mar 10 04:00:26 eg01 <info> postfix/smtpd[13466]: NOQUEUE: reject:
> > RCPT from localhost.localdomain[127.0.0.1]: 554 5.7.1
> > <a%bmydomain.loc>: Relay access denied; from=<asxmydomain.loc>
> > to=<a%bmydomain.loc> proto=SMTP helo=<my>
> >
> > The virtual_map is working
> >
> > # postmap -q a%bmydomain.loc ldap:/kolab/etc/postfix/ldapvirtual.cf
> > asxmydomain.loc
> >
> > and sending to any a?bmydomain.loc where ? is another valid RFC 2822
> > character works !
> >
> > On the other end, my postfix relay server accept to relay these
> > addresses, but get an error when
> > trying to forward them to the "destination" one
> >
> > My analysis is that maybe the ldap part in postfix refuse to manage
> > addresses including these characters,
> > probably to prevent abuse or exploit.
> >
> > Any comment on how to handle these addresses correctly ?
> >
> >
>
> you may want to read
> http://www.postfix.org/postconf.5.html#allow_untrusted_routing
> http://www.postfix.org/postconf.5.html#allow_percent_hack
> http://www.postfix.org/postconf.5.html#swap_bangpath

Thanks, this helped a lot.
I decided to not try to support these char in email addresses !

>
>
>
>

--
Alain Spineux
aspineux gmail com
May the sources be with you