Community Discussions and Support
MercuryD.dat - add optional headers

From David Harris:

It's stored as part of the encoded string in MercuryD.dat. There's
basically no way of getting at it outside the program's UI at this point.

 

<p>From David Harris: </p><p>It's stored as part of the encoded string in MercuryD.dat. There's basically no way of getting at it outside the program's UI at this point.  </p>

Hello,

 I have an webapplication to configure my Mailuser and so on.

There I also have a posibility to add pop3 client requests, in the file mercuryd.dat

; Example entry
; styx.pmail.gen.nz,username,password,-,david

Now I like to add optional header information. How can I do that?

I had the idee to add this with mercury and then look in the file.. but I've

seen that the new mercury version (4.52) will encrypt the content.

Will mercury the non ecrypted version support in the future? Or is there

a posibility to encrypt this content in php?

 

Thanks
 



 

<p>Hello,</p><p> I have an webapplication to configure my Mailuser and so on.</p><p>There I also have a posibility to add pop3 client requests, in the file mercuryd.dat</p><p>; Example entry ; styx.pmail.gen.nz,username,password,-,david </p><p>Now I like to add optional header information. How can I do that?</p><p>I had the idee to add this with mercury and then look in the file.. but I've</p><p>seen that the new mercury version (4.52) will encrypt the content.</p><p>Will mercury the non ecrypted version support in the future? Or is there </p><p>a posibility to encrypt this content in php?</p><p> </p><p>Thanks  </p><p>  </p>

I'm working from memory here since I've not done this for some time.  You can create a mercuryd.dat with unencrypted data and it will be used but I'm not sure it does not require a "reload users" to get the system to look at the file.  Also, IIRC, the first time you manage the file in Mercury/32 and save it it will encrypt the data.

I'm working from memory here since I've not done this for some time.  You can create a mercuryd.dat with unencrypted data and it will be used but I'm not sure it does not require a "reload users" to get the system to look at the file.  Also, IIRC, the first time you manage the file in Mercury/32 and save it it will encrypt the data.

Yes, it works without a "reaload user" command, I've implemented it succesfull..

But today I added only the retrieve information like userlogin, password, host and default user.

I'd like to add also more optional headers (<tt>X-Destination-ID,x-envelope-to...)</tt>, but I don't know how

I have to add this information to the mercuryd.dat

 


 

&lt;p&gt;Yes, it works without a &quot;reaload user&quot; command, I&#039;ve implemented it succesfull..&lt;/p&gt;&lt;p&gt;But today I added only the retrieve information like userlogin, password, host and default user.&lt;/p&gt;&lt;p&gt;I&#039;d like to add also more optional headers (&lt;tt&gt;X-Destination-ID,x-envelope-to...)&lt;/tt&gt;, but I don&#039;t know how&lt;/p&gt;&lt;p&gt;I have to add this information to the mercuryd.dat&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt; &amp;nbsp;&lt;/p&gt;

You can't, all that goes into this file is the data required to get the mail from the host and setup the local and default users.

That said, even if you could you would have nothing to work with since the mail is being received from a POP3 mailbox you do not have access to the original SMTP headers.  Now if the owner of the POP3 mailbox is using one of the systems to add the RCPT TO: and MAIL FROM: addresses as a header in the RFC 2822 message body this would be possible, however redundant.  You can't even do this with a daemon since there is nothing to work with.

You can add headers via filtering to a mail message though.  The problem is how do you know what to put in the X-Destination-ID if it's not in the message?

&lt;p&gt;You can&#039;t, all that goes into this file is the data required to get the mail from the host and setup the local and default users. &lt;/p&gt;&lt;p&gt;That said, even if you could you would have nothing to work with since the mail is being received from a POP3 mailbox you do not have access to the original SMTP headers.&amp;nbsp; Now if the owner of the POP3 mailbox is using one of the systems to add the RCPT TO: and MAIL FROM: addresses as a header in the RFC 2822 message body this would be possible, however redundant.&amp;nbsp; You can&#039;t even do this with a daemon since there is nothing to work with.&lt;/p&gt;&lt;p&gt;You can add headers via filtering to a mail message though.&amp;nbsp; The problem is how do you know what to put in the X-Destination-ID if it&#039;s not in the message? &lt;/p&gt;

ok, sorry.. I didn't mean add more header information to the downloaded message. :)

In the GUI MercuryD->add-> exists a section ("optional special header processing") to add non-standard headers, which mercury should also check

to delivering the message in the correct mailbox.

now my questions: How can I add this non-standard headers manually to the mercuryd.dat (without GUI)?

 

thanks :) 

 

 

&lt;p&gt;ok, sorry.. I didn&#039;t mean add more header information to the downloaded message. :)&lt;/p&gt;&lt;p&gt;In the GUI MercuryD-&amp;gt;add-&amp;gt; exists a section (&quot;optional special header processing&quot;) to add non-standard headers, which mercury should also check&lt;/p&gt;&lt;p&gt;to delivering the message in the correct mailbox.&lt;/p&gt;&lt;p&gt;now my questions: How can I add this non-standard headers manually to the mercuryd.dat (without GUI)?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;thanks :)&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;

Not sure, it's not in the mercuryD.dat nor in the mercury.ini that I can see.  I think this one needs to go to David.

 

;
; Sample MERCURYD.DAT file
; Mercury Mail Transport System,
; Copyright (c) 1993-99, David Harris, All Rights Reserved.
;
; MERCURYD.DAT is parsed by the MercuryD Distributing POP3 client to
; determine the sources from which it should obtain mail using the
; POP3 client protocol for distribution to local users.
;
; Each non-comment line in this file represents a single host/account
; combination MercuryD should contact to retrieve mail, using the
; following format:
;
;   host<,>username<,>password<,>local_user<,>default
;
;      "host"       - the domain name of the machine running the POP3
;                     server MercuryD should contact.
;      "username"   - the name MercuryD should use to login to the server
;      "password"   - the password matching "username" in plain text
;      "local_user" - The local user to whom mail downloaded from the
;                     specified account should be delivered.
;      "default"    - The user to whom mail should be delivered if no
;                     local recipients are found in a message.
;
;   Empty or blank parameters must be set to a single dash character, '-'.
;   Spaces are significant - only the ',' character is a valid delimiter.
;
;   If "local_user" is set to a single dash, MercuryD will attempt to
;   distribute the mail based on the "to:", "cc:" and "bcc:" fields in
;   each message. This is useful for sites running so-called "domain
;   mailboxes" - the first example entry below demonstrates this option.
;
;   "default" is only meaningful for domain mailbox entries, and is
;   intended to deal with problems like mailing list subscriptions,
;   where the local addressee often will not appear anywhere in the
;   message headers.
;
; Example entry
; styx.pmail.gen.nz,username,password,-,david

 

 

 

&lt;p&gt;Not sure, it&#039;s not in the mercuryD.dat nor in the mercury.ini that I can see.&amp;nbsp; I think this one needs to go to David. &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;; ; Sample MERCURYD.DAT file ; Mercury Mail Transport System, ; Copyright (c) 1993-99, David Harris, All Rights Reserved. ; ; MERCURYD.DAT is parsed by the MercuryD Distributing POP3 client to ; determine the sources from which it should obtain mail using the ; POP3 client protocol for distribution to local users. ; ; Each non-comment line in this file represents a single host/account ; combination MercuryD should contact to retrieve mail, using the ; following format: ; ;&amp;nbsp;&amp;nbsp; host&amp;lt;,&amp;gt;username&amp;lt;,&amp;gt;password&amp;lt;,&amp;gt;local_user&amp;lt;,&amp;gt;default ; ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;host&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - the domain name of the machine running the POP3 ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; server MercuryD should contact. ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;username&quot;&amp;nbsp;&amp;nbsp; - the name MercuryD should use to login to the server ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;password&quot;&amp;nbsp;&amp;nbsp; - the password matching &quot;username&quot; in plain text ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;local_user&quot; - The local user to whom mail downloaded from the ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; specified account should be delivered. ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;default&quot;&amp;nbsp;&amp;nbsp;&amp;nbsp; - The user to whom mail should be delivered if no ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; local recipients are found in a message. ; ;&amp;nbsp;&amp;nbsp; Empty or blank parameters must be set to a single dash character, &#039;-&#039;. ;&amp;nbsp;&amp;nbsp; Spaces are significant - only the &#039;,&#039; character is a valid delimiter. ; ;&amp;nbsp;&amp;nbsp; If &quot;local_user&quot; is set to a single dash, MercuryD will attempt to ;&amp;nbsp;&amp;nbsp; distribute the mail based on the &quot;to:&quot;, &quot;cc:&quot; and &quot;bcc:&quot; fields in ;&amp;nbsp;&amp;nbsp; each message. This is useful for sites running so-called &quot;domain ;&amp;nbsp;&amp;nbsp; mailboxes&quot; - the first example entry below demonstrates this option. ; ;&amp;nbsp;&amp;nbsp; &quot;default&quot; is only meaningful for domain mailbox entries, and is ;&amp;nbsp;&amp;nbsp; intended to deal with problems like mailing list subscriptions, ;&amp;nbsp;&amp;nbsp; where the local addressee often will not appear anywhere in the ;&amp;nbsp;&amp;nbsp; message headers. ; ; Example entry ; styx.pmail.gen.nz,username,password,-,david&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&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