Community Discussions and Support
Pickup directory

Hi everyone,

I'm hoping someone is kind enough to help me out.  I'm writing a C# program and I'm trying to send an email from the program.  I can successfully send via SMTP (make a connection to Mercury etc etc) however I'm not having any success sending via a pickup directory. 

I've read the docs (and maybe I'm blind), but I can't seem to work this one out.  If anyone has managed to do this, or would point me in the right direction, I'd be most grateful

Thanks in advance.

Allan

<P>Hi everyone,</P> <P>I'm hoping someone is kind enough to help me out.  I'm writing a C# program and I'm trying to send an email from the program.  I can successfully send via SMTP (make a connection to Mercury etc etc) however I'm not having any success sending via a pickup directory.  </P> <P>I've read the docs (and maybe I'm blind), but I can't seem to work this one out.  If anyone has managed to do this, or would point me in the right direction, I'd be most grateful</P> <P>Thanks in advance.</P> <P>Allan</P>

> Hi everyone,
>
> I'm hoping someone is kind enough to help me out.  I'm writing a C#
> program and I'm trying to send an email from the program.  I can
> successfully send via SMTP (make a connection to Mercury etc etc)
> however I'm not having any success sending via a pickup directory.
>
> I've read the docs (and maybe I'm blind), but I can't seem to work
> this one out.  If anyone has managed to do this, or would point me in
> the right direction, I'd be most grateful

In order to send via the queue you need to send the message in "Glue" header format.  This is simply a RFC 2822 message with the SMTP addresses added.  Here's a sample.

------------------------   spam.101 ----------------------------
$$ cslaw@indirect.com
tstephen@mtshasta.lmms.lmco.com
support@tstephenson.com

From: swallace@cyberpromo.com (Sanford Wallace)
Organization: Ambulance Chasing, Inc.
To: "Laurence A Canter" <spamford@wilhelp.com>
Date: Fri, 17 Oct 2003 12:55:34 -0400
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Subject: Test Message
Reply-to: "Taylor Jimenez" <taylor@wilhelp.com>
CC: "Martha S Siegel" <Martha@smartbotpro.net>
Priority: normal
Message-id: <399917090.3123.1066456430@persephone.pmail.gen.nz>
X-mailer: Pegasus Mail for Win32 (v3.12c)

This is a test of the mail servers settings for spammers.

Here's a little text file that you can use to test Mercury/32
or Pegasus Mail.   With Mercury or Mercury/32 you save the
file in the Mercury queue with the 101 extension.  With Pegasus
Mail you save the message in the HOME mail directory with the
PMX file extension.
 
This is a file in "Glue" headers format, the $$ line is the
SMTP MAIL FROM: address, the next two lines are RCPT TO:
addresses and the blank line is the separator from the RFC 2822
message body.  You can delete the Date: or Message-ID line in
the message body, the SMTP relay host is expected to add these
to the file.  Copy and paste the file to Notepad and then save
it with the correct extension it the correct queue.  Modify the
RCPT TO: "Glue" headers to use your own addresses.
---------------------------- cut here ----------------------------



>
> Thanks in advance.

&amp;gt; Hi everyone, &amp;gt; &amp;gt; I&#039;m hoping someone is kind enough to help me out.&amp;nbsp; I&#039;m writing a C# &amp;gt; program and I&#039;m trying to send an email from the program.&amp;nbsp; I can &amp;gt; successfully send via SMTP (make a connection to Mercury etc etc) &amp;gt; however I&#039;m not having any success sending via a pickup directory. &amp;gt; &amp;gt; I&#039;ve read the docs (and maybe I&#039;m blind), but I can&#039;t seem to work &amp;gt; this one out.&amp;nbsp; If anyone has managed to do this, or would point me in &amp;gt; the right direction, I&#039;d be most grateful In order to send via the queue you need to send the message in &quot;Glue&quot; header format.&amp;nbsp; This is simply a RFC 2822 message with the SMTP addresses added.&amp;nbsp; Here&#039;s a sample. ------------------------&amp;nbsp;&amp;nbsp; spam.101 ---------------------------- $$ cslaw@indirect.com tstephen@mtshasta.lmms.lmco.com support@tstephenson.com From: swallace@cyberpromo.com (Sanford Wallace) Organization: Ambulance Chasing, Inc. To: &quot;Laurence A Canter&quot; &amp;lt;spamford@wilhelp.com&amp;gt; Date: Fri, 17 Oct 2003 12:55:34 -0400 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Test Message Reply-to: &quot;Taylor Jimenez&quot; &amp;lt;taylor@wilhelp.com&amp;gt; CC: &quot;Martha S Siegel&quot; &amp;lt;Martha@smartbotpro.net&amp;gt; Priority: normal Message-id: &amp;lt;399917090.3123.1066456430@persephone.pmail.gen.nz&amp;gt; X-mailer: Pegasus Mail for Win32 (v3.12c) This is a test of the mail servers settings for spammers. Here&#039;s a little text file that you can use to test Mercury/32 or Pegasus Mail.&amp;nbsp;&amp;nbsp; With Mercury or Mercury/32 you save the file in the Mercury queue with the 101 extension.&amp;nbsp; With Pegasus Mail you save the message in the HOME mail directory with the PMX file extension. &amp;nbsp; This is a file in &quot;Glue&quot; headers format, the $$ line is the SMTP MAIL FROM: address, the next two lines are RCPT TO: addresses and the blank line is the separator from the RFC 2822 message body.&amp;nbsp; You can delete the Date: or Message-ID line in the message body, the SMTP relay host is expected to add these to the file.&amp;nbsp; Copy and paste the file to Notepad and then save it with the correct extension it the correct queue.&amp;nbsp; Modify the RCPT TO: &quot;Glue&quot; headers to use your own addresses. ---------------------------- cut here ---------------------------- &amp;gt; &amp;gt; Thanks in advance.

Thomas,

Can you elaborate more?  I tried your suggestion but I can not make it work.  Here is my specific problem:

1. My content control rule is set to "move the message to a directory as a file."

2. I ocasionally find a legitimate massage in the directory.  I adjust my filters to allow the specific sender.

Where do I move that file so Mercury/32 can re-process it?  I tried the Queue directory but it sits there forever.  Is the good message lost forever?

 FYI: I am using the latest Mercury/32 in a Win32 platform.

 Thanks.

&lt;P&gt;Thomas,&lt;/P&gt; &lt;P&gt;Can you elaborate more?&amp;nbsp; I tried your suggestion but I can not make it work.&amp;nbsp; Here is my specific problem:&lt;/P&gt; &lt;P&gt;1. My content control rule is set to &quot;move the message to a directory as a file.&quot;&lt;/P&gt; &lt;P&gt;2. I ocasionally find a legitimate massage in the directory.&amp;nbsp; I adjust my filters to allow the specific sender.&lt;/P&gt; &lt;P&gt;Where do I move that file so Mercury/32 can re-process it?&amp;nbsp; I tried the Queue directory but it sits there forever.&amp;nbsp; Is the good message lost forever?&lt;/P&gt; &lt;P&gt;&amp;nbsp;FYI: I am using the latest Mercury/32 in a Win32 platform.&lt;/P&gt; &lt;P&gt;&amp;nbsp;Thanks.&lt;/P&gt;

Did you add the glue headers & change the extension to .101 ?

 

&lt;p&gt;Did you add the glue headers &amp;amp; change the extension to .101 ?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;

No.  What are the “glue headers” and what structure should they have?  I did rename the file to have extension .101 and placed it in the \queue directory but it sat there for 10 minutes before I manually deleted it.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

 

The bigger question is why can't I just take the file that Mercury's rule created and simply move it to a folder for it to be re-processed?  I would expect the file that Mercury creates to have all the necessary information.  When I open one of those files with a text editor I can see all the pertinent information.

 Eric

&lt;P class=MsoNormal style=&quot;MARGIN: 0in 0in 0pt&quot;&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial&quot;&gt;No.&amp;nbsp; What are the &ldquo;glue headers&rdquo; and what structure should they have?&amp;nbsp;&lt;SPAN style=&quot;mso-spacerun: yes&quot;&gt;&amp;nbsp;&lt;/SPAN&gt;I did rename the file to have extension .101 and placed it in the \queue directory but it sat there for 10 minutes before I manually deleted it.&lt;/SPAN&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial&quot;&gt;&lt;?xml:namespace prefix = o ns = &quot;urn:schemas-microsoft-com:office:office&quot; /&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: &#039;Times New Roman&#039;; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA&quot;&gt;The bigger question is why can&#039;t I just take the file that Mercury&#039;s rule created and simply move it to a folder for it to be re-processed?&amp;nbsp; I would expect the file that Mercury creates to have all the necessary information.&amp;nbsp; When I open&amp;nbsp;one&amp;nbsp;of those files&amp;nbsp;with a text editor I can see all the pertinent information.&lt;/SPAN&gt;&lt;/P&gt; &lt;P&gt;&lt;SPAN style=&quot;FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-fareast-font-family: &#039;Times New Roman&#039;; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA&quot;&gt;&lt;/SPAN&gt;&amp;nbsp;Eric&lt;/P&gt;

[quote user="ereichard"]

No.  What are the “glue headers” and what structure should they have?

 

[/quote]

 

Reread Thomas's post above, he has explained the process clearly and given an example

 

[quote]

 

I did rename the file to have extension .101 and placed it in the \queue directory but it sat there for 10 minutes before I manually deleted it.

 

The bigger question is why can't I just take the file that Mercury's rule created and simply move it to a folder for it to be re-processed?

[/quote]

Because that's not how it works

[quote]

I would expect the file that Mercury creates to have all the necessary information.  When I open one of those files with a text editor I can see all the pertinent information.

 Eric

[/quote]

What about a mail with 20 recipients of which you are 1? Should Mercury resend it to all of them?

What about a BCC where there is no address in the message?

The glue headers take the place of the SMTP envelope information, which is not included in the RFC2822 message body.

[quote user=&quot;ereichard&quot;] &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;No.&amp;nbsp; What are the &ldquo;glue headers&rdquo; and what structure should they have?&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&amp;nbsp;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;[/quote]&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&amp;nbsp;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;&lt;span style=&quot;&quot;&gt;Reread Thomas&#039;s post above, he has explained the process clearly and given an example&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&amp;nbsp;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;[quote] &lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;&lt;span style=&quot;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;&lt;span style=&quot;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&amp;nbsp;&lt;/p&gt; &lt;p class=&quot;MsoNormal&quot; style=&quot;margin: 0in 0in 0pt;&quot;&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;I did rename the file to have extension .101 and placed it in the \queue directory but it sat there for 10 minutes before I manually deleted it.&lt;/span&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;&lt;o:p&gt;&amp;nbsp;&lt;/o:p&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;The bigger question is why can&#039;t I just take the file that Mercury&#039;s rule created and simply move it to a folder for it to be re-processed?&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;[/quote]&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;&lt;span style=&quot;&quot;&gt;Because that&#039;s not how it works&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; [quote] &lt;p&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;I would expect the file that Mercury creates to have all the necessary information.&amp;nbsp; When I open&amp;nbsp;one&amp;nbsp;of those files&amp;nbsp;with a text editor I can see all the pertinent information.&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;span style=&quot;font-size: 10pt; font-family: Arial;&quot;&gt;&lt;/span&gt;&amp;nbsp;Eric&lt;/p&gt; &lt;p&gt;[/quote]&lt;/p&gt; &lt;p&gt;What about a mail with 20 recipients of which you are 1? Should Mercury resend it to all of them?&lt;/p&gt; &lt;p&gt;What about a BCC where there is no address in the message?&lt;/p&gt; &lt;p&gt;The glue headers take the place of the SMTP envelope information, which is not included in the RFC2822 message body. &lt;/p&gt;

is there any documentation on these "glue headers?"  I edited the .101 file and added the email address exactly like Thomas showed (with some $$ in front) but the file still sits in the \queue directory forever.  What are the $$$ why only on the first line and not on all the lines?  Are all the lines the various recipients?

is there any documentation on these &quot;glue headers?&quot;&amp;nbsp; I edited the .101 file and added the email address exactly like Thomas showed (with some $$ in front) but the file still sits in the \queue directory forever.&amp;nbsp; What are the $$$ why only on the first line and not on all the lines?&amp;nbsp; Are all the lines the various recipients?

The (two & only two followed by a space) $$ signify the MAIL FROM: address.

The other lines are all RCPT TO: addresses (I have used a 'T ' to prefix these lines but it just tested OK without)

The BLANK LINE between the glue headers & the message body is also required.

Edit: Alternatively, you could just drop the .cnm file from your "MOVED' directory into the users mail folder.


&lt;p&gt;The (two &amp;amp; only two followed by a space) $$ signify the MAIL FROM: address.&lt;/p&gt;&lt;p&gt;The other lines are all RCPT TO: addresses (I have used a &#039;T &#039; to prefix these lines but it just tested OK without)&lt;/p&gt;&lt;p&gt;The BLANK LINE between the glue headers &amp;amp; the message body is also required.&lt;/p&gt;&lt;p&gt;Edit: Alternatively, you could just drop the .cnm file from your &quot;MOVED&#039; directory into the users mail folder. &lt;/p&gt;&lt;p&gt; &lt;/p&gt;

[quote user="Thomas R. Stephenson"]> Hi everyone,

> $$ cslaw@indirect.com
>
> From: swallace@cyberpromo.com (Sanford Wallace)
> To: "Laurence A Canter" <spamford@wilhelp.com>
> Date: Fri, 17 Oct 2003 12:55:34 -0400
> CC: "Martha S Siegel" <Martha@smartbotpro.net>

[/quote]

cslaw and Laurence Canter and Martha Siegel and Sanford Wallace? I insist you wash your mouth with soap.

 

&lt;p&gt;[quote user=&quot;Thomas R. Stephenson&quot;]&amp;gt; Hi everyone, &lt;/p&gt;&lt;p&gt;&amp;gt; $$ cslaw@indirect.com &amp;gt; &amp;gt; From: swallace@cyberpromo.com (Sanford Wallace) &amp;gt; To: &quot;Laurence A Canter&quot; &amp;lt;spamford@wilhelp.com&amp;gt; &amp;gt; Date: Fri, 17 Oct 2003 12:55:34 -0400 &amp;gt; CC: &quot;Martha S Siegel&quot; &amp;lt;Martha@smartbotpro.net&amp;gt; &lt;/p&gt;&lt;p&gt;[/quote]&lt;/p&gt;&lt;p&gt;cslaw and Laurence Canter and Martha Siegel and Sanford Wallace? I insist you wash your mouth with soap.&lt;/p&gt;&lt;p&gt;&amp;nbsp; &lt;/p&gt;

[quote user="subelman"]

[quote user="Thomas R. Stephenson"]> Hi everyone,

> $$ cslaw@indirect.com
>
> From: swallace@cyberpromo.com (Sanford Wallace)
> To: "Laurence A Canter" <spamford@wilhelp.com>
> Date: Fri, 17 Oct 2003 12:55:34 -0400
> CC: "Martha S Siegel" <Martha@smartbotpro.net>

[/quote]

cslaw and Laurence Canter and Martha Siegel and Sanford Wallace? I insist you wash your mouth with soap.[/quote]

Hey, this is my spam test message.  It's got them all in the message.  ;-)  It should never get into any users mailbox!

 

 

&lt;blockquote&gt;[quote user=&quot;subelman&quot;]&lt;/blockquote&gt;&lt;blockquote&gt;&lt;blockquote&gt;&lt;p&gt;[quote user=&quot;Thomas R. Stephenson&quot;]&amp;gt; Hi everyone, &lt;/p&gt;&lt;p&gt;&amp;gt; $$ cslaw@indirect.com &amp;gt; &amp;gt; From: swallace@cyberpromo.com (Sanford Wallace) &amp;gt; To: &quot;Laurence A Canter&quot; &amp;lt;spamford@wilhelp.com&amp;gt; &amp;gt; Date: Fri, 17 Oct 2003 12:55:34 -0400 &amp;gt; CC: &quot;Martha S Siegel&quot; &amp;lt;Martha@smartbotpro.net&amp;gt; &lt;/p&gt;&lt;p&gt;[/quote]&lt;/p&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;&lt;blockquote&gt;&lt;p&gt;cslaw and Laurence Canter and Martha Siegel and Sanford Wallace? I insist you wash your mouth with soap.[/quote]&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Hey, this is my spam test message.&amp;nbsp; It&#039;s got them all in the message.&amp;nbsp; ;-)&amp;nbsp; It should never get into any users mailbox!&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