Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 44241 - courier-mta rewrites percenthack address on outbound mail
Summary: courier-mta rewrites percenthack address on outbound mail
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Scott Taylor (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-10 05:43 UTC by Scott Taylor (RETIRED)
Modified: 2004-04-01 12:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
stops courier from rewriting percenthack addresses (norewrite.patch,489 bytes, patch)
2004-03-10 05:49 UTC, Scott Taylor (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Scott Taylor (RETIRED) gentoo-dev 2004-03-10 05:43:34 UTC
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
Comment 1 Scott Taylor (RETIRED) gentoo-dev 2004-03-10 05:49:43 UTC
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.
Comment 2 Scott Taylor (RETIRED) gentoo-dev 2004-04-01 12:21:58 UTC
USE="norewrite"

as of courier-0.45.3