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 testu...@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 #criticalema...@mydomain.com
<mailto:#criticalema...@mydomain.com>/etc/postfix/virtual_users ---
syntax wrong
You'd need to quote the address localpart, as per the RFC.
postmap -q "#criticalema...@mydomain.com"
<mailto:#criticalema...@mydomain.com>/etc/postfix/virtual_users ---
no result
Meaning no match was found.
postmap -q ""#criticalema...@mydomain.com""
<mailto:#criticalema...@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.