postfix-users November 2011 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Re: Special character in email ID

Re: Special character in email ID

From: Jeroen Geilman <jeroen_at_nospam>
Date: Tue Nov 15 2011 - 23:29:20 GMT
To: postfix-users@postfix.org

On 2011-11-16 00:20, Justin wrote:
> Thank Jeroen.
>
> I have executed the postmap command against the virtual_users, when i
> issue
>
> postmap -q testuser@mydomain.com /etc/postfix/virtual_users it gives
> me the corresponding maildir value

No, it does not - since this is a virtual ALIAS map, and not a mailbox map.

> but when i say
>
> postmap -q #criticalemail1@mydomain.com
> <mailto:#criticalemail1@mydomain.com>/etc/postfix/virtual_users ---
> syntax wrong

You'd need to quote the address localpart, as per the RFC.

>
> postmap -q "#criticalemail1@mydomain.com"
> <mailto:#criticalemail1@mydomain.com>/etc/postfix/virtual_users ---
> no result

Meaning no match was found.

>
> postmap -q ""#criticalemail1@mydomain.com""
> <mailto:#criticalemail1@mydomain.com>/etc/postfix/virtual_users ---
> no result

Meaning no match was found.

>
>
> Now the question boils down to how to give escape characters in this
> case to query the map??

The first example - double qoutes - will work fine.

I am still unclear what it is you want to achieve with all this; it is
difficult to advise you to do anything until you explain this.

-- J.