The problem I'm having with courier was described quite well here: http://www.copilotconsulting.com/mail-archives/courier.2003/5583.html I enabled the percent hack for a hosteddomain this weekend. My machine is called ivb.sil.org and sil.org is a hosteddomain. "ivb.sil.org" is already a local domain so I added "sil.org" to the esmtppercentrelay file and executed makepercentrelay. Everything worked fine and mail addressed to <user%sil.org_at_ivb.sil.org> now got properly delivered to the "user_at_sil.org" account. The problem is that now ANY sil.org address is getting rewritten by courier into the form of user%sil.org_at_ivb.sil.org. So when user_at_sil.org sends a message to anyone, to deliver it courier issues a "MAIL FROM: <user%sil.org_at_ivb.sil.org>" and also alters the From: header in the actual message to say "user%sil.org_at_ivb.sil.org". Man makepercentrelay says that "percent-hack domains are a list of domains for which Courier accepts mail via ESMTP addressed as local%percent.hack.domain_at_local.domain". I understand the _accept_ part, but why is courier seemingly doing the reverse - forcibly rewriting user_at_sil.org into user%sil.org_at_ivb.sil.org? Is there some way to set it up so that it will accept mail addressed this way but not also rewrite the "normal" address into the percent version? It was eventually answered with this: http://www.copilotconsulting.com/mail-archives/courier.2003/5662.html
Created attachment 27153 [details, diff] stops courier from rewriting percenthack addresses Would be great if this were a configurable option, or at least available by use flag. Percenthack is a great way to identify virtual users. The rewriting is not just ugly, but it often gets outgoing mail rejected, and makes customers look like they are just a ridiculously long address @my domain instead of their own.
USE="norewrite" as of courier-0.45.3