Community Discussions and Support
How to use the PMGATE.SYS file

Thomas,

Actually, I just figured it out. What I did was to set the flag in the PMGATE.SYS to force all mail through the gateway. Then, I went into the internet settings on the SMTP page and set the "Use in preference to LAN mailer for internet mail", and presto, internet mail goes through the SMTP process, getting my internet address as a reply to, and local mail goes through the gateway and gets my local address as a reply to.

In explanation, we have a WAN, and some users have internaet mail access, and some do not, so the reply to address becomes important.

 I'll check out Han's website. Thanks for the pointer. Thanks also for your patience & help.

Ed

<P>Thomas,</P> <P>Actually, I just figured it out. What I did was to set the flag in the PMGATE.SYS to force all mail through the gateway. Then, I went into the internet settings on the SMTP page and set the "Use in preference to LAN mailer for internet mail", and presto, internet mail goes through the SMTP process, getting my internet address as a reply to, and local mail goes through the gateway and gets my local address as a reply to.</P> <P>In explanation, we have a WAN, and some users have internaet mail access, and some do not, so the reply to address becomes important.</P> <P> I'll check out Han's website. Thanks for the pointer. Thanks also for your patience & help. </P> <P>Ed</P>

I have now setup pegasus to use IMAP for email by adding the -A to the commandline and, of course, adding the IMAP profile. That works great, solving the performance problems of attachments. (See my previous post).

I have set up my SMTP server to point at the Mercury32 running on my networ. My problem now is that all outgoing messages are being sent with a reply to address of my internet address, even fot local mail. I would like local mail to have a reply address of my local network address.

I'm trying to set up the gateway file to process the local mail, instead of the SMTP definition in the internet settings section. Here is the content of the file:

           Gateway name : MERCURY

*New mail path :

Is ^ a program to run? : N

*New mail search mask :

*Outgoing mail path : \\xxx.xxx.xxx.xxx\mercuryqueue * shared drive on mercury server, xxx.xxx.xxx.xxx is the IP address of the server on the setwork.

 *Run for outgoing mail :

*Filename format : ~d~d.101

Run to validate address :

*Reply address format : "~p" ~L~L~8@server1

Accepts SMTP addresses? : Y

Simple message headers? : 'Glue' headers

UUEncode attachments? : Y

Burst messages? : N Gateway processes BCC? : N

Strip gateway name? : Y

Force all mail through? : Y * to force local mail through the gateway

 The problem is that when I try to sebd an email with the file active, Pegasus seems to just hang up and doesn't send the message. I can map a drive to the above path on my workstation, so I know the UNC path is correct.
Anyone have any ideas?
<P>I have now setup pegasus to use IMAP for email by adding the -A to the commandline and, of course, adding the IMAP profile. That works great, solving the performance problems of attachments. (See my previous post).</P> <P>I have set up my SMTP server to point at the Mercury32 running on my networ. My problem now is that all outgoing messages are being sent with a reply to address of my internet address, even fot local mail. I would like local mail to have a reply address of my local network address. </P> <P>I'm trying to set up the gateway file to process the local mail, instead of the SMTP definition in the internet settings section. Here is the content of the file:</P><PRE> Gateway name : MERCURY *New mail path : Is ^ a program to run? : N *New mail search mask : *Outgoing mail path : <A href="file://xxx.xxx.xxx.xxx/mercuryqueue">\\xxx.xxx.xxx.xxx\mercuryqueue</A> * shared drive on mercury server, xxx.xxx.xxx.xxx is the IP address of the server on the setwork.</PRE><PRE> *Run for outgoing mail : *Filename format : ~d~d.101 Run to validate address : *Reply address format : "~p" <A href="mailto:~L~L~8@server1">~L~L~8@server1</A> Accepts SMTP addresses? : Y Simple message headers? : 'Glue' headers UUEncode attachments? : Y Burst messages? : N Gateway processes BCC? : N Strip gateway name? : Y Force all mail through? : Y * to force local mail through the gateway</PRE><PRE> The problem is that when I try to sebd an email with the file active, Pegasus seems to just hang up and doesn't send the message. I can map a drive to the above path on my workstation, so I know the UNC path is correct.</PRE><PRE>Anyone have any ideas?</PRE>

>
> I have now setup pegasus to use IMAP for email by adding the -A to the
> commandline and, of course, adding the IMAP profile. That works great,
> solving the performance problems of attachments. (See my previous
> post).
>
> I have set up my SMTP server to point at the Mercury32 running on my
> networ. My problem now is that all outgoing messages are being sent
> with a reply to address of my internet address, even fot local mail. I
> would like local mail to have a reply address of my local network
> address.
>
> I'm trying to set up the gateway file to process the local mail,
> instead of the SMTP definition in the internet settings section. Here
> is the content of the file:
>
>            Gateway name : MERCURY
>          *New mail path :
>  Is ^ a program to run? :  N
>   *New mail search mask :
>     *Outgoing mail path :  \\xxx.xxx.xxx.xxx\mercuryqueue * shared
> drive on mercury server, xxx.xxx.xxx.xxx is the IP address of the
> server on the setwork.

This must be a directory path.  It can be a UNC path like \\server\volume\path but it cannot be an IP address unless that is the name you used when you shared the volume.  For example, the name of my server is tstephenson, the hard drive is shared with the name c_drive and so I use \\tstephenson\c_drive\mercury\queue when specifying this queue directory.
.

>  *Run for outgoing mail :
>        *Filename format :  ~d~d.101
> Run to validate address :
>   *Reply address format :  "~p" ~L~L~8@server1
> Accepts SMTP addresses? :  Y
> Simple message headers? :  'Glue' headers
>   UUEncode attachments? :  Y
>         Burst messages? :  N    Gateway processes BCC? : N
>     Strip gateway name? :  Y
> Force all mail through? :  Y * to force local mail through the gateway
>
>  The problem is that when I try to sebd an email with the file active,
> Pegasus seems to just hang up and doesn't send the message. I can map a
> drive to the above path on my workstation, so I know the UNC path is
> correct.
>
> Anyone have any ideas?
>

> > I have now setup pegasus to use IMAP for email by adding the -A to the > commandline and, of course, adding the IMAP profile. That works great, > solving the performance problems of attachments. (See my previous > post). > > I have set up my SMTP server to point at the Mercury32 running on my > networ. My problem now is that all outgoing messages are being sent > with a reply to address of my internet address, even fot local mail. I > would like local mail to have a reply address of my local network > address. > > I'm trying to set up the gateway file to process the local mail, > instead of the SMTP definition in the internet settings section. Here > is the content of the file: > >            Gateway name : MERCURY >          *New mail path : >  Is ^ a program to run? :  N >   *New mail search mask : >     *Outgoing mail path :  \\xxx.xxx.xxx.xxx\mercuryqueue * shared > drive on mercury server, xxx.xxx.xxx.xxx is the IP address of the > server on the setwork. This must be a directory path.  It can be a UNC path like \\server\volume\path but it cannot be an IP address unless that is the name you used when you shared the volume.  For example, the name of my server is tstephenson, the hard drive is shared with the name c_drive and so I use \\tstephenson\c_drive\mercury\queue when specifying this queue directory. . >  *Run for outgoing mail : >        *Filename format :  ~d~d.101 > Run to validate address : >   *Reply address format :  "~p" ~L~L~8@server1 > Accepts SMTP addresses? :  Y > Simple message headers? :  'Glue' headers >   UUEncode attachments? :  Y >         Burst messages? :  N    Gateway processes BCC? : N >     Strip gateway name? :  Y > Force all mail through? :  Y * to force local mail through the gateway > >  The problem is that when I try to sebd an email with the file active, > Pegasus seems to just hang up and doesn't send the message. I can map a > drive to the above path on my workstation, so I know the UNC path is > correct. > > Anyone have any ideas? >

OK, that works better, thanks. I still have a problem with the return address, though. When I have the gateway active, all of my mail has a local return address, i.e. server1/ejr, even the internet mail. How do I setup the gateway to only process local mail, but let the internet mail run trhough the SMTP, so that it ends up with my internet email address as the reply to address?

I tried changing the "Force all mail through? :  Y " parameter above to "N", thinking it would only process local mail, but that doesn't seem to be what's happening. Also, Pegasus will not accept a simple local address, such as "ejr". If I set the paraneter to "Y", it forces internet based email through the gateway, and the reply to address is incorrect, even with the "Accepts SMTP addresses? :  " parameter set to "N".

<P>OK, that works better, thanks. I still have a problem with the return address, though. When I have the gateway active, all of my mail has a local return address, i.e. server1/ejr, even the internet mail. How do I setup the gateway to only process local mail, but let the internet mail run trhough the SMTP, so that it ends up with my internet email address as the reply to address? </P> <P>I tried changing the "Force all mail through? :  Y " parameter above to "N", thinking it would only process local mail, but that doesn't seem to be what's happening. Also, Pegasus will not accept a simple local address, such as "ejr". If I set the paraneter to "Y", it forces internet based email through the gateway, and the reply to address is incorrect, even with the "Accepts SMTP addresses? :  " parameter set to "N". </P>

> OK, that works better, thanks. I still have a problem with the return
> address, though. When I have the gateway active, all of my mail has a
> local return address, i.e. server1/ejr, even the internet mail. How do
> I setup the gateway to only process local mail, but let the internet
> mail run through the SMTP, so that it ends up with my internet email
> address as the reply to address?

What I do is set the *Reply address format : to use the Reply To: address with the ~r.  Each user must have a Reply To: for each identity set for this to work but the best thing is the user can send as any of their addresses without problems.

             Gateway name :  MERCURY
           *New mail path :
   Is ? a program to run? :  N
    *New mail search mask :
      *Outgoing mail path :  \\thomas\maxtor\MERCURY\QUEUE
   *Run for outgoing mail :
         *Filename format :  ~d~d.101
  Run to validate address :
    *Reply address format : ["~p" <~r>                   ]
  Accepts SMTP addresses? :  Y
  Simple message headers? :  'Glue' headers
    UUEncode attachments? :  Y
          Burst messages? :  N    Gateway processes BCC? : N
      Strip gateway name? :  Y
  Force all mail through? :  Y

 Format Pegasus Mail should use to compose the 'From' field for the message. ~8 or ~n indicate where the name should be placed.

>
> I tried changing the "Force all mail through? :  Y " parameter above to
> "N", thinking it would only process local mail, but that doesn't seem
> to be what's happening. Also, Pegasus will not accept a simple local
> address, such as "ejr". If I set the paraneter to "Y", it forces
> internet based email through the gateway, and the reply to address is
> incorrect, even with the "Accepts SMTP addresses? :  " parameter set to
> "N".
>


&amp;gt; OK, that works better, thanks. I still have a problem with the return &amp;gt; address, though. When I have the gateway active, all of my mail has a &amp;gt; local return address, i.e. server1/ejr, even the internet mail. How do &amp;gt; I setup the gateway to only process local mail, but let the internet &amp;gt; mail run through the SMTP, so that it ends up with my internet email &amp;gt; address as the reply to address? What I do is set the *Reply address format : to use the Reply To: address with the ~r.&amp;nbsp; Each user must have a Reply To: for each identity set for this to work but the best thing is the user can send as any of their addresses without problems. &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Gateway name :&amp;nbsp; MERCURY &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *New mail path : &amp;nbsp;&amp;nbsp; Is ? a program to run? :&amp;nbsp; N &amp;nbsp;&amp;nbsp;&amp;nbsp; *New mail search mask : &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Outgoing mail path :&amp;nbsp; \\thomas\maxtor\MERCURY\QUEUE &amp;nbsp;&amp;nbsp; *Run for outgoing mail : &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *Filename format :&amp;nbsp; ~d~d.101 &amp;nbsp; Run to validate address : &amp;nbsp;&amp;nbsp;&amp;nbsp; *Reply address format : [&quot;~p&quot; &amp;lt;~r&amp;gt;&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; Accepts SMTP addresses? :&amp;nbsp; Y &amp;nbsp; Simple message headers? :&amp;nbsp; &#039;Glue&#039; headers &amp;nbsp;&amp;nbsp;&amp;nbsp; UUEncode attachments? :&amp;nbsp; Y &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Burst messages? :&amp;nbsp; N&amp;nbsp;&amp;nbsp;&amp;nbsp; Gateway processes BCC? : N &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Strip gateway name? :&amp;nbsp; Y &amp;nbsp; Force all mail through? :&amp;nbsp; Y &amp;nbsp;Format Pegasus Mail should use to compose the &#039;From&#039; field for the message. ~8 or ~n indicate where the name should be placed. &amp;gt; &amp;gt; I tried changing the &quot;Force all mail through? :&amp;nbsp; Y &quot; parameter above to &amp;gt; &quot;N&quot;, thinking it would only process local mail, but that doesn&#039;t seem &amp;gt; to be what&#039;s happening. Also, Pegasus will not accept a simple local &amp;gt; address, such as &quot;ejr&quot;. If I set the paraneter to &quot;Y&quot;, it forces &amp;gt; internet based email through the gateway, and the reply to address is &amp;gt; incorrect, even with the &quot;Accepts SMTP addresses? :&amp;nbsp; &quot; parameter set to &amp;gt; &quot;N&quot;. &amp;gt;

OK, I'll admit I'm a dummy.

I don't see how this will place the internet address as the reply to for internet addressed messages, and teh local mail address for local addressed messages. My users don't use multiple identities (Most of them can barely type!). I would never get them to switch identities depending on whether they were replying to an internet email of an internal one. Is there a way to tell pegasus to automatically use one identity for local mail and another for internet mail?

>What I do is set the *Reply address format : to use the Reply To: address with the ~r.  Each user must have a Reply To: for each identity set for this to work but the best thing is the user >can send as any of their addresses without problems.

 I assume ~r is the Default "reply to" address" that appears under tools>outgoing mail>sending mail. Again, won't this simply place what erver I place in this field as the reply to regardless of the message final destination (ie, local of internet)?

>Format Pegasus Mail should use to compose the 'From' field for the message. ~8 or ~n indicate where the name should be placed.

I'm afraid I don't follow. What does this comment relate to?

Is there a way to make the gateway process any address but an internet address, and let the SMTP function process any internet destined email?

Also, is there a resource that defined all of the command substitution codes? I've seen bits and pieces of it here and there, but no comprehensive listing.

I'm so sorry to be so thick headed, but this is reeally getting serious to me.

Ed

&lt;P&gt;OK, I&#039;ll admit I&#039;m a dummy. &lt;/P&gt; &lt;P&gt;I don&#039;t see how this will place the internet address as the reply to for internet addressed messages, and teh local mail address for local addressed messages. My users don&#039;t use multiple identities (Most of them can barely type!). I would never get them to switch identities depending on whether they were replying to an internet email of an internal one. Is there a way to tell pegasus to automatically use one identity for local mail and another for internet mail?&lt;/P&gt; &lt;P&gt;&amp;gt;What I do is set the *Reply address format : to use the Reply To: address with the ~r.&amp;nbsp; Each user must have a Reply To: for each identity set for this to work but the best thing is the user &amp;gt;can send as any of their addresses without problems. &amp;nbsp;I assume&amp;nbsp;~r is the Default &quot;reply to&quot; address&quot; that appears under tools&amp;gt;outgoing mail&amp;gt;sending mail. Again, won&#039;t this simply place what erver I place in this field as the reply to regardless of the message final destination (ie, local of internet)?&lt;/P&gt; &lt;P&gt;&amp;gt;Format Pegasus Mail should use to compose the &#039;From&#039; field for the message. ~8 or ~n indicate where the name should be placed.&lt;/P&gt; &lt;P&gt;I&#039;m afraid I don&#039;t follow. What does this comment relate to?&lt;/P&gt; &lt;P&gt;Is there a way to make the gateway process any address but an internet address, and let the SMTP function process any internet destined email?&lt;/P&gt; &lt;P&gt;Also, is there a resource that defined all of the command substitution codes? I&#039;ve seen bits and pieces of it here and there, but no comprehensive listing.&lt;/P&gt; &lt;P&gt;I&#039;m so sorry to be so thick headed, but this is reeally getting serious to me.&lt;/P&gt; &lt;P&gt;Ed&lt;/P&gt;

> OK, I'll admit I'm a dummy.
>
> I don't see how this will place the internet address as the reply to
> for internet addressed messages, and teh local mail address for
> local addressed messages. My users don't use multiple identities
> (Most of them can barely type!). I would never get them to switch
> identities depending on whether they were replying to an internet
> email of an internal one. Is there a way to tell pegasus to
> automatically use one identity for local mail and another for
> internet mail?

I guess I'm the one that is confused. If you are sending the mail via the local Mercury/32 queue your reply to address is the same for both local and internet mail.  If I send to the local using [SERVER]/USER form and deposit it as a *.CNM file in their new mail directory they are going to reply to thomas@tstephenson.com and Mercury/32 then will see this as a local domain and put the mail directly into my local mailbox.


>
> >What I do is set the *Reply address format : to use the Reply To:
> address with the ~r.  Each user must have a Reply To: for each
> identity set for this to work but the best thing is the user >can
> send as any of their addresses without problems.
>
>  I assume ~r is the Default "reply to" address" that appears under
> tools>outgoing mail>sending mail. Again, won't this simply place
> what erver I place in this field as the reply to regardless of the
> message final destination (ie, local of internet)?

Yes, that is correct.  And it should not make any difference at all if you are using Mercury/32 as the mail gateway.  All local mail stays local no matter what the address.

>
> >Format Pegasus Mail should use to compose the 'From' field for the
> message. ~8 or ~n indicate where the name should be placed.
>
> I'm afraid I don't follow. What does this comment relate to?

This comment is a note in the system when you are viewing the subject field in PCONFIG.

>
> Is there a way to make the gateway process any address but an
> internet address, and let the SMTP function process any internet
> destined email?

Huh?  The gateway does not process the local mail unless you force all mail through Mercury/32 or the built-in mailer.  Local mail normally completely bypasses the UDG and built-in mailer and is delivered directly user to user.  


>
> Also, is there a resource that defined all of the command
> substitution codes? I've seen bits and pieces of it here and there,
> but no comprehensive listing.

I've not seen one.  Checkout Han v.d. Bogaerde's Pegasus mail Links at http://www.vandenbogaerde.net/pegasusmail/ He has provided a lot of information on Pegasus Mail for Windows, might have a listing of the code.   

>
> I'm so sorry to be so thick headed, but this is reeally getting
> serious to me.
>
> Ed
>

&amp;gt; OK, I&#039;ll admit I&#039;m a dummy. &amp;gt; &amp;gt; I don&#039;t see how this will place the internet address as the reply to &amp;gt; for internet addressed messages, and teh local mail address for &amp;gt; local addressed messages. My users don&#039;t use multiple identities &amp;gt; (Most of them can barely type!). I would never get them to switch &amp;gt; identities depending on whether they were replying to an internet &amp;gt; email of an internal one. Is there a way to tell pegasus to &amp;gt; automatically use one identity for local mail and another for &amp;gt; internet mail? I guess I&#039;m the one that is confused. If you are sending the mail via the local Mercury/32 queue your reply to address is the same for both local and internet mail.&amp;nbsp; If I send to the local using [SERVER]/USER form and deposit it as a *.CNM file in their new mail directory they are going to reply to thomas@tstephenson.com and Mercury/32 then will see this as a local domain and put the mail directly into my local mailbox. &amp;gt; &amp;gt; &amp;gt;What I do is set the *Reply address format : to use the Reply To: &amp;gt; address with the ~r.&amp;nbsp; Each user must have a Reply To: for each &amp;gt; identity set for this to work but the best thing is the user &amp;gt;can &amp;gt; send as any of their addresses without problems. &amp;gt; &amp;gt; &amp;nbsp;I assume&amp;nbsp;~r is the Default &quot;reply to&quot; address&quot; that appears under &amp;gt; tools&amp;gt;outgoing mail&amp;gt;sending mail. Again, won&#039;t this simply place &amp;gt; what erver I place in this field as the reply to regardless of the &amp;gt; message final destination (ie, local of internet)? Yes, that is correct.&amp;nbsp; And it should not make any difference at all if you are using Mercury/32 as the mail gateway.&amp;nbsp; All local mail stays local no matter what the address. &amp;gt; &amp;gt; &amp;gt;Format Pegasus Mail should use to compose the &#039;From&#039; field for the &amp;gt; message. ~8 or ~n indicate where the name should be placed. &amp;gt; &amp;gt; I&#039;m afraid I don&#039;t follow. What does this comment relate to? This comment is a note in the system when you are viewing the subject field in PCONFIG. &amp;gt; &amp;gt; Is there a way to make the gateway process any address but an &amp;gt; internet address, and let the SMTP function process any internet &amp;gt; destined email? Huh?&amp;nbsp; The gateway does not process the local mail unless you force all mail through Mercury/32 or the built-in mailer.&amp;nbsp; Local mail normally completely bypasses the UDG and built-in mailer and is delivered directly user to user. &amp;nbsp; &amp;gt; &amp;gt; Also, is there a resource that defined all of the command &amp;gt; substitution codes? I&#039;ve seen bits and pieces of it here and there, &amp;gt; but no comprehensive listing. I&#039;ve not seen one.&amp;nbsp; Checkout Han v.d. Bogaerde&#039;s Pegasus mail Links at http://www.vandenbogaerde.net/pegasusmail/ He has provided a lot of information on Pegasus Mail for Windows, might have a listing of the code.&amp;nbsp; &amp;nbsp; &amp;gt; &amp;gt; I&#039;m so sorry to be so thick headed, but this is reeally getting &amp;gt; serious to me. &amp;gt; &amp;gt; Ed &amp;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