Community Discussions and Support
X-Envelope

Looks like it will work if I set it to deliver to a special header only!

 Thanks!

<P>Looks like it will work if I set it to deliver to a special header only! </P> <P> Thanks!</P>

We are running Mercury/32 4.01b.  Mercury connects to our ISP using MercuryC (SMTP) & MercuryD (POP3).  We are NDS aware.

 

All users email at our ISP is forwarded to a single email account (mickey.mouse@wcaslab.com) , Mercury connects to this box and downloads all email.

The problem (?) is that there is an alias web server in the middle (before it hits our ISP) that aliases from <user>@waltdisney.com to <user>@wcaslab.com

When does Mercury add the X-Envelope-To: header? 

It seems like that if Mercury doesn't like the original To: header (it's not seeing the aliased address) it doesn't know who to deliver it to, it sets the X-Envelope-To: recipient to the 'default user' field in the Mercury setup (mmouse.WCAS, who gets it) and not the original To: header recipient.  If the email is originally addressed to daffy.duck@wcaslab.com the X-Envelope-To: recipient would read daffy.duck@wcaslab.com and be delivered to Daffy.

Mercury delivers the mail to the X-Envelope-To: recipient?

See below for an example:

==================================

Received: from spooler by wcaslab.com (Mercury/32 v4.01b); 26 Jul 2007 12:30:56 -0700

X-Envelope-To: mmouse.WCAS

Return-Path: <minnie.mouse@webmail.com>

Delivered-To: mickey.mouse@wcaslab.com

Received: (qmail 1813 invoked by uid 508); 26 Jul 2007 19:30:16 -0000

X-Mail-Scanner: (n/a)

Delivered-To: daffy.duck@wcaslab.com

...edited.....

Date: Thu, 26 Jul 2007 12:29:43 -0700 (PDT)

From: Minnie Mouse <minnie.mouse@webmail.com>

Subject: test for delivery

To: daffy.duck@waltdisney.com

 

&lt;P&gt;We are running Mercury/32 4.01b.&amp;nbsp; Mercury connects to our ISP using MercuryC (SMTP) &amp;amp; MercuryD (POP3).&amp;nbsp; We are NDS aware.&lt;/P&gt; &lt;P mce_keep=&quot;true&quot;&gt;&amp;nbsp;&lt;/P&gt; &lt;P&gt;All users email at our ISP is forwarded&amp;nbsp;to a single email account (&lt;A href=&quot;mailto:mickey.mouse@wcaslab.com&quot;&gt;mickey.mouse@wcaslab.com&lt;/A&gt;) , Mercury connects to this box and downloads all email.&lt;/P&gt; &lt;P&gt;The&amp;nbsp;problem (?)&amp;nbsp;is that there is an alias web server in the middle (before it hits our ISP) that aliases from &amp;lt;&lt;A href=&quot;mailto:user@waltdisney.com&quot;&gt;user&amp;gt;@waltdisney.com&lt;/A&gt; to &amp;lt;user&amp;gt;@wcaslab.com &lt;/P&gt; &lt;P&gt;When does Mercury add the X-Envelope-To: header?&amp;nbsp; &lt;/P&gt; &lt;P&gt;It seems like that if Mercury doesn&#039;t like the original To: header&amp;nbsp;(it&#039;s not seeing the aliased address) it doesn&#039;t know who to deliver it to, it sets the X-Envelope-To: recipient&amp;nbsp;to the &#039;default user&#039; field in the Mercury setup (mmouse.WCAS, who gets it) and not the original To: header recipient.&amp;nbsp; If the email is originally addressed to &lt;A href=&quot;mailto:daffy.duck@wcaslab.com&quot;&gt;daffy.duck@wcaslab.com&lt;/A&gt; the X-Envelope-To: recipient would read &lt;A href=&quot;mailto:daffy.duck@wcaslab.com&quot;&gt;daffy.duck@wcaslab.com&lt;/A&gt; and be delivered to Daffy.&lt;/P&gt; &lt;P&gt;Mercury delivers the mail to the X-Envelope-To: recipient?&lt;/P&gt; &lt;P&gt;See below for an example:&lt;/P&gt; &lt;P&gt;==================================&lt;/P&gt;&lt;FONT size=2&gt; &lt;P align=left&gt;Received: from spooler by wcaslab.com (Mercury/32 v4.01b); 26 Jul 2007 12:30:56 -0700&lt;/P&gt; &lt;P align=left&gt;X-Envelope-To: mmouse.WCAS&lt;/P&gt; &lt;P align=left&gt;Return-Path: &amp;lt;minnie.mouse@webmail.com&amp;gt;&lt;/P&gt; &lt;P align=left&gt;Delivered-To: &lt;A href=&quot;mailto:mickey.mouse@wcaslab.com&quot;&gt;mickey.mouse@wcaslab.com&lt;/A&gt;&lt;/P&gt; &lt;P align=left&gt;Received: (qmail 1813 invoked by uid 508); 26 Jul 2007 19:30:16 -0000&lt;/P&gt; &lt;P align=left&gt;X-Mail-Scanner: (n/a)&lt;/P&gt; &lt;P align=left&gt;Delivered-To: &lt;A href=&quot;mailto:daffy.duck@wcaslab.com&quot;&gt;daffy.duck@wcaslab.com&lt;/A&gt;&lt;/P&gt; &lt;P align=left&gt;...edited.....&lt;/P&gt; &lt;P align=left&gt;Date: Thu, 26 Jul 2007 12:29:43 -0700 (PDT)&lt;/P&gt; &lt;P align=left&gt;From:&amp;nbsp;Minnie Mouse&amp;nbsp;&amp;lt;minnie.mouse@webmail.com&amp;gt;&lt;/P&gt; &lt;P align=left&gt;Subject: test for delivery&lt;/P&gt; &lt;P&gt;To: &lt;A href=&quot;mailto:daffy.duck@waltdisney.com&quot;&gt;daffy.duck@waltdisney.com&lt;/A&gt;&lt;/P&gt;&lt;/FONT&gt; &lt;P mce_keep=&quot;true&quot;&gt;&amp;nbsp;&lt;/P&gt;

[quote user="gregrshaw"]

We are running Mercury/32 4.01b.  Mercury connects to our ISP using MercuryC (SMTP) & MercuryD (POP3).  We are NDS aware.

 

All users email at our ISP is forwarded to a single email account (mickey.mouse@wcaslab.com) , Mercury connects to this box and downloads all email.

The problem (?) is that there is an alias web server in the middle (before it hits our ISP) that aliases from <user>@waltdisney.com to <user>@wcaslab.com

When does Mercury add the X-Envelope-To: header? 

 

When writing the *.CNM file to the users new mail directory.


 

It seems like that if Mercury doesn't like the original To: header (it's not seeing the aliased address) it doesn't know who to deliver it to, it sets the X-Envelope-To: recipient to the 'default user' field in the Mercury setup (mmouse.WCAS, who gets it) and not the original To: header recipient.  If the email is originally addressed to daffy.duck@wcaslab.com the X-Envelope-To: recipient would read daffy.duck@wcaslab.com and be delivered to Daffy.

Mercury delivers the mail to the X-Envelope-To: recipient?

See below for an example:

==================================

Received: from spooler by wcaslab.com (Mercury/32 v4.01b); 26 Jul 2007 12:30:56 -0700

X-Envelope-To: mmouse.WCAS

Return-Path: <minnie.mouse@webmail.com>

Delivered-To: mickey.mouse@wcaslab.com

Received: (qmail 1813 invoked by uid 508); 26 Jul 2007 19:30:16 -0000

X-Mail-Scanner: (n/a)

Delivered-To: daffy.duck@wcaslab.com

 

Here's a header to work with.  Tell MercuryD to use this for delivery only in the MercuryD setup, level the user name blank  and set the default user to the postmasters address.  I believe that this will be properly delivered to the correct user.  The only problem I can see is that there is two Delivered-To: lines and this will be a problem if these are actual headers. 

 

 

...edited.....

Date: Thu, 26 Jul 2007 12:29:43 -0700 (PDT)

From: Minnie Mouse <minnie.mouse@webmail.com>

Subject: test for delivery

To: daffy.duck@waltdisney.com

 

[/quote]
[quote user=&quot;gregrshaw&quot;]&lt;p&gt;We are running Mercury/32 4.01b.&amp;nbsp; Mercury connects to our ISP using MercuryC (SMTP) &amp;amp; MercuryD (POP3).&amp;nbsp; We are NDS aware.&lt;/p&gt; &lt;p mce_keep=&quot;true&quot;&gt;&amp;nbsp;&lt;/p&gt; &lt;p&gt;All users email at our ISP is forwarded&amp;nbsp;to a single email account (&lt;a href=&quot;mailto:mickey.mouse@wcaslab.com&quot; mce_href=&quot;mailto:mickey.mouse@wcaslab.com&quot;&gt;mickey.mouse@wcaslab.com&lt;/a&gt;) , Mercury connects to this box and downloads all email.&lt;/p&gt; &lt;p&gt;The&amp;nbsp;problem (?)&amp;nbsp;is that there is an alias web server in the middle (before it hits our ISP) that aliases from &amp;lt;&lt;a href=&quot;mailto:user@waltdisney.com&quot; mce_href=&quot;mailto:user@waltdisney.com&quot;&gt;user&amp;gt;@waltdisney.com&lt;/a&gt; to &amp;lt;user&amp;gt;@wcaslab.com &lt;/p&gt; &lt;p&gt;When does Mercury add the X-Envelope-To: header?&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;When writing the *.CNM file to the users new mail directory.&lt;/p&gt;&lt;p&gt; &amp;nbsp;&lt;/p&gt; &lt;p&gt;It seems like that if Mercury doesn&#039;t like the original To: header&amp;nbsp;(it&#039;s not seeing the aliased address) it doesn&#039;t know who to deliver it to, it sets the X-Envelope-To: recipient&amp;nbsp;to the &#039;default user&#039; field in the Mercury setup (mmouse.WCAS, who gets it) and not the original To: header recipient.&amp;nbsp; If the email is originally addressed to &lt;a href=&quot;mailto:daffy.duck@wcaslab.com&quot; mce_href=&quot;mailto:daffy.duck@wcaslab.com&quot;&gt;daffy.duck@wcaslab.com&lt;/a&gt; the X-Envelope-To: recipient would read &lt;a href=&quot;mailto:daffy.duck@wcaslab.com&quot; mce_href=&quot;mailto:daffy.duck@wcaslab.com&quot;&gt;daffy.duck@wcaslab.com&lt;/a&gt; and be delivered to Daffy.&lt;/p&gt; &lt;p&gt;Mercury delivers the mail to the X-Envelope-To: recipient?&lt;/p&gt; &lt;p&gt;See below for an example:&lt;/p&gt; &lt;p&gt;==================================&lt;/p&gt;&lt;font size=&quot;2&quot;&gt; &lt;p align=&quot;left&quot;&gt;Received: from spooler by wcaslab.com (Mercury/32 v4.01b); 26 Jul 2007 12:30:56 -0700&lt;/p&gt; &lt;p align=&quot;left&quot;&gt;X-Envelope-To: mmouse.WCAS&lt;/p&gt; &lt;p align=&quot;left&quot;&gt;Return-Path: &amp;lt;minnie.mouse@webmail.com&amp;gt;&lt;/p&gt; &lt;p align=&quot;left&quot;&gt;Delivered-To: &lt;a href=&quot;mailto:mickey.mouse@wcaslab.com&quot; mce_href=&quot;mailto:mickey.mouse@wcaslab.com&quot;&gt;mickey.mouse@wcaslab.com&lt;/a&gt;&lt;/p&gt; &lt;p align=&quot;left&quot;&gt;Received: (qmail 1813 invoked by uid 508); 26 Jul 2007 19:30:16 -0000&lt;/p&gt; &lt;p align=&quot;left&quot;&gt;X-Mail-Scanner: (n/a)&lt;/p&gt; &lt;p align=&quot;left&quot;&gt;Delivered-To: &lt;a href=&quot;mailto:daffy.duck@wcaslab.com&quot; mce_href=&quot;mailto:daffy.duck@wcaslab.com&quot;&gt;daffy.duck@wcaslab.com&lt;/a&gt;&lt;/p&gt;&lt;p align=&quot;left&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p align=&quot;left&quot;&gt;Here&#039;s a header to work with.&amp;nbsp; Tell MercuryD to use this for delivery only in the MercuryD setup, level the user name blank&amp;nbsp; and set the default user to the postmasters address.&amp;nbsp; I believe that this will be properly delivered to the correct user.&amp;nbsp; The only problem I can see is that there is two Delivered-To: lines and this will be a problem if these are actual headers.&amp;nbsp; &lt;/p&gt;&lt;p align=&quot;left&quot;&gt;&amp;nbsp;&lt;/p&gt;&lt;p align=&quot;left&quot;&gt;&amp;nbsp;&lt;/p&gt; &lt;p align=&quot;left&quot;&gt;...edited.....&lt;/p&gt; &lt;p align=&quot;left&quot;&gt;Date: Thu, 26 Jul 2007 12:29:43 -0700 (PDT)&lt;/p&gt; &lt;p align=&quot;left&quot;&gt;From:&amp;nbsp;Minnie Mouse&amp;nbsp;&amp;lt;minnie.mouse@webmail.com&amp;gt;&lt;/p&gt; &lt;p align=&quot;left&quot;&gt;Subject: test for delivery&lt;/p&gt; &lt;p&gt;To: &lt;a href=&quot;mailto:daffy.duck@waltdisney.com&quot; mce_href=&quot;mailto:daffy.duck@waltdisney.com&quot;&gt;daffy.duck@waltdisney.com&lt;/a&gt;&lt;/p&gt;&lt;/font&gt; &lt;p mce_keep=&quot;true&quot;&gt;&amp;nbsp;&lt;/p&gt;[/quote]

Yes there are two Delivered-To Headers, the one closest to the top is always mickey.mouse - this is the email box that ALL email is forwarded to at the ISP and where Mercury connects for downloading.

The only time there is one instance is when the email is originaly addressed to mickey.mouse (doesn't need to be forwarded).

 

&lt;P&gt;Yes there are two Delivered-To Headers, the one closest to the top is always mickey.mouse - this is the email box that ALL email is forwarded to at the ISP and where Mercury connects for downloading.&lt;/P&gt; &lt;P&gt;The only time there is one instance is when the email is originaly addressed to mickey.mouse (doesn&#039;t need to be forwarded).&lt;/P&gt; &lt;P mce_keep=&quot;true&quot;&gt;&amp;nbsp;&lt;/P&gt;
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft