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
"#criticalema...@mydomain.com"   ms23/007/000/002/106/@mail.dir
"#criticalema...@mydomain.another.com"  ms23/007/000/002/106/@mail.dir

postmap creates virtual_users.db file using virtual_users and uses for lookup.

My perception is during the lookup it is not able to resolve the email to 
corresponding maildir, hence routing to fallback maildir rather than bouncing 
it back.(we don't want it to get bounce that part is fine).


Please let me know for more info.


________________________________
From: Brian Evans - Postfix List <grkni...@scent-team.com>
To: postfix-users@postfix.org
Sent: Tuesday, November 15, 2011 2:58 PM
Subject: Re: Special character in email ID

On 11/15/2011 3:48 PM, Justin wrote:
> New to postfix please bare with us. :)
>
> We like to accept special characters in email id so surrounding the 
> email names with "", but still these emails are sent to fallback maildir.
>
> Followed this man page --> http://www.postfix.org/aliases.5.html
> The name is a local address (no domain part).  Use  double quotes 
> when the name contains any special characters such
You missed this valuable part of this line   "(no domain part)"

> as whitespace, `#', `:', or `@'. The  name  is  folded  to lowercase,
> in order to make database lookups case insensi- tive.
>
>
> E.g., $firstem...@box.com <mailto:firstem...@box.com>,
> &tes...@mail.com <mailto:tes...@mail.com>, #t...@ju.com
> <mailto:t...@ju.com>
>
> Wrapped them as "$firstemail"@box.com, "&testem"@mail.com,
> "#test"@ju.com as well    "$firstem...@box.com"  - but no use.
Aliases allows "$firstemail" or "&testem" or "#test". You MUST NOT
include the domain part.

As always, aliases(5) maps are only used for those users that are
delivered by the local(8) delivery agent.

Brian

Reply via email to