| Main Archive Page > Month Archives > postfix-users archives |
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 but when i say
postmap -q #criticalemail1@mydomain.com/etc/postfix/virtual_users --- syntax wrong
postmap -q "#criticalemail1@mydomain.com"/etc/postfix/virtual_users --- no result
postmap -q ""#criticalemail1@mydomain.com""/etc/postfix/virtual_users --- no result
Now the question boils down to how to give escape characters in this case to query the map??
Here is my sample virtual_users fragment
"#criticalemail1@mydomain.com" ms23/007/000/002/106/@mail.dir
"#criticalemail1@mydomain.another.com" ms23/007/000/002/106/@mail.dir
testuser@mydomain.com ms11/007/000/002/108/@mail.dir
________________________________
From: Jeroen Geilman <jeroen@adaptr.nl>
To: postfix-users@postfix.org
Sent: Tuesday, November 15, 2011 4:38 PM
Subject: Re: Special character in email ID
On 2011-11-15 23:36, Justin wrote:
Thanks a lot, mean while i will validate using postmap command,iassume the bold text is the reference ??
>
Yes, it is; it was buried beneath the irrelevance.
As I said before, virtual_alias_maps does not concern virtual
*mailboxes*.
>
>virtual_alias_maps = regexp:/etc/postfix.myd/my_domain_aliases.regexp,hash:/etc/postfix.myd/virtual_users, hash:/etc/postfix.myd/virtual_dlists, hash:/etc/postfix.myd/dropboxes, regexp:/etc/postfix.myd/dropboxes.subdomains.regexp, regexp:/etc/postfix.myd/unrewrite.regexp
>
>
>
>________________________________
>From: Jeroen Geilman <jeroen@adaptr.nl>
>To: postfix-users@postfix.org
>Sent: Tuesday, November 15, 2011 4:18 PM
>Subject: Re: Special character in email ID
>
>
>On 2011-11-15 23:14, Justin wrote:
>Brian, Thanks for the reply.
>>
>>
>>We have put quotes surrounded the mail name part only excluded the domain and made sure that main.cf has
>>
>>resolve_dequoted_address as yes
>>
>>
>>
>>We receive email from external sources and postfix forwards to our local mail store, here is the value of
>>"virtual_alias_maps" in main.cf
>>
>>
>>
>>virtual_alias_maps = regexp:/etc/postfix.myd/my_domain_aliases.regexp, hash:/etc/postfix.myd/virtual_users, hash:/etc/postfix.myd/virtual_dlists, hash:/etc/postfix.myd/dropboxes, regexp:/etc/postfix.myd/dropboxes.subdomains.regexp, regexp:/etc/postfix.myd/unrewrite.regexp
>>
>>
>>Sample virtual_users fragment
>>"#criticalemail1@mydomain.com" ms23/007/000/002/106/@mail.dir
>>"#criticalemail1@mydomain.another.com" ms23/007/000/002/106/@mail.dir
>>
>>
>>postmap creates virtual_users.db file using virtual_users and uses for lookup.
>There is no reference to virtual_users in the above
virtual_alias_maps.
>
>I think you are confusing virtual_alias_maps and
virtual_mailbox_maps; this is not uncommon.
>
>For a virtual address to be delivered to a virtual
mailbox, the domain in question must be present in
virtual_mailbox_domains AND the address must resolve to
a mailbox in virtual_mailbox_maps.
>
>Use
>
> postmap -q "query" maptype:/map/location
>
>to validate your maps.
>
>
>--
J.
>
>
--
J.