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: mouss (moussnetoyen.net)
Date: Mon Mar 10 2008 - 04:12:35 CDT


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