Announcements
Sv: Domain Forwarding

Download Links:

1. No download required, included in Mercury

2. MercFwd.Dll - Daemon to forward all email for one domain: Download from the community click here or from the author site then click here

3. SmtpEx.Nlm and Wsmtpex.Exe: Forwards domain based email as separate program.

<P>Download Links:</P> <P>1. No download required, included in Mercury</P> <P>2. MercFwd.Dll - Daemon to forward all email for one domain: Download from the community <A class="" title=mercfwd href="http://community.pmail.com/files/folders/mercadd/entry14130.aspx" mce_href="/files/folders/mercadd/entry14130.aspx">click here</A> or from the author site then <A class="" title="Petr Jaklin downloads" href="http://www.3net.cz/software/softe.htm" target=_blank mce_href="http://www.3net.cz/software/softe.htm">click here</A></P> <P>3. <A class="" href="http://community.pmail.com/files/folders/mercadd/entry14132.aspx" target=_blank mce_href="/files/folders/mercadd/entry14132.aspx">SmtpEx.Nlm</A> and <A class="" href="http://community.pmail.com/files/folders/mercadd/entry14131.aspx" target=_blank mce_href="/files/folders/mercadd/entry14131.aspx">Wsmtpex.Exe</A>: Forwards domain based email as separate program.</P>

There have been a number of questions about forwarding domains in Mercury/32.  This includes forwarding all main for specific domains to servers on the same internal lan and to external addresses.  I have been working with Petr Jaklin and he has come up with 3 ways to do this. This is NOT a true MX host function since it does not queue and wait for the system to be online to send the mail.  That said, WSMTPEx will keep retrying if the connection to the server and port cannot be made.  I have not tested how long it will continue retrying.

1.  First of all is the simplest, you simply re-write the domain in the mercury.ini [Rewrite] section.

[Rewrite]
none-tstephenson.com: [192.168.1.3]

I really was surprised when this one worked since it truely simple and has been there all along.  You learn something new every day.  The brackets are required when using an IP address.  This forwards all mail for anyuser@none-stephenson.com to anyuser@[192.168.1.3] using the normal Mercury/32 send process via port 25.  Works quite well when using MercuryE, cannot work when using MercuryC unless the IP address is a routable IP address.  You must re-boot Mercury/32 for each change since this is only read at start up.

2.  The second one is the daemon MercFwd and it essentially does the same thing as the rewrite but this can be done dynamically by changing the domains section.  The [Domains] entry of

daemon:c:\mercury\mercfwd.dll;[192.168.1.3]: none-tstephenson.com

does essentially the same thing as the rewrite above.  Again it uses Mercury ro deliver the mail via port 25 and so you cannot use this with MercuryC when using non-routable IP addresses.

Edit:  There appears to be a problem with the MercFwd daemon when the sender uses <email@address> form since the username does not get the leading < removed.   Petr Jaklin has been notified

Edit: Problem has been fixed.  Make sure you run the latest version

3.  The third one is the program WSMTPEx.exe (SMTPEX.NLM for Netware)  and this a a separate program that takes mail for a email account and forwards it to any port and any hostname/IP address.  I use this with my domains to forward the mail to a Linux system (must use high ports as non-root) and to a second instance of Mercury/32 running on my system (can't share port 25)  Here's a sample of the ini file I use for forwarding all mail to Mercury/32 running on Ubuntu v8.10 and Wine.

 #  You can rename this tool, but name of following section must remain [WSMTPEx]
[WSMTPEx]
Version=0.10
#  TCP port, on which SMTP server listens
Port=8025
#  Number of seconds to delay between searches for emails
LoopDelay=30
#  Folder, under which is most of user's mailboxes
UserFolder=
Domains=1
# Users mail address domain part
Domain1=linux-tstephenson.com
LogName=c:\Mercury\WSMTPEx.log
SMTPServer=192.168.1.4
MailBoxes=1
Badmails=c:\pmail\mail\BadMail

[linux-tstephenson.com]
# When user name start with "DM:", WSMTPEx will try to find SMTP envelope address in mail file
Mb1addr=dm:ubunto
Mb1dir=c:\pmail\mail\ubunto

This takes all the mail in the domain account "UBUNTO"  and sends it to port 8025 on 192.168.1.4 to be received by MercuryS.  The directory BADMAIL I have specified must exist.  You can run multiple instances of this tool and and it can be run as a service.  If run as a service and running multiple instances the name of the program should be changed.  I use WSE-UBUNTO to rename the program and ini file for this one.

Edit:  Latest version allows for multiple domain forwarding in one service.

Many thanks to Petr Jaklin for the development of these tools.  You can get these tools at the community download areas or directly from Petr Jaklin's site http://www.3net.cz/software/softe.htm

 

&lt;p&gt;There have been a number of questions about forwarding domains in Mercury/32.&amp;nbsp; This includes forwarding all main for specific domains to servers on the same internal lan and to external addresses.&amp;nbsp; I have been working with Petr Jaklin and he has come up with 3 ways to do this. This is NOT a true MX host function since it does not queue and wait for the system to be online to send the mail.&amp;nbsp; That said, WSMTPEx will keep retrying if the connection to the server and port cannot be made.&amp;nbsp; I have not tested how long it will continue retrying. &lt;/p&gt;&lt;p&gt;1.&amp;nbsp; First of all is the simplest, you simply re-write the domain in the mercury.ini [Rewrite] section.&lt;/p&gt;&lt;p&gt;[Rewrite] none-tstephenson.com: [192.168.1.3]&lt;/p&gt;&lt;p&gt;I really was surprised when this one worked since it truely simple and has been there all along.&amp;nbsp; You learn something new every day.&amp;nbsp; The brackets are required when using an IP address.&amp;nbsp; This forwards all mail for anyuser@none-stephenson.com to anyuser@[192.168.1.3] using the normal Mercury/32 send process via port 25.&amp;nbsp; Works quite well when using MercuryE, cannot work when using MercuryC unless the IP address is a routable IP address.&amp;nbsp; You must re-boot Mercury/32 for each change since this is only read at start up.&lt;/p&gt;&lt;p&gt;2.&amp;nbsp; The second one is the daemon MercFwd and it essentially does the same thing as the rewrite but this can be done dynamically by changing the domains section.&amp;nbsp; The [Domains] entry of&lt;/p&gt;&lt;p&gt;daemon:c:\mercury\mercfwd.dll;[192.168.1.3]: none-tstephenson.com &lt;/p&gt;&lt;p&gt;does essentially the same thing as the rewrite above.&amp;nbsp; Again it uses Mercury ro deliver the mail via port 25 and so you cannot use this with MercuryC when using non-routable IP addresses.&lt;/p&gt;&lt;p&gt;&lt;b&gt;Edit:&amp;nbsp; There appears to be a problem with the MercFwd daemon when the sender uses &amp;lt;email@address&amp;gt; form since the username does not get the leading &amp;lt; removed. &amp;nbsp;&lt;/b&gt; &lt;b&gt;Petr Jaklin has been notified&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Edit: Problem has been fixed.&amp;nbsp; Make sure you run the latest version &lt;/b&gt; &lt;/p&gt;&lt;p&gt;3.&amp;nbsp; The third one is the program WSMTPEx.exe (SMTPEX.NLM for Netware)&amp;nbsp; and this a a separate program that takes mail for a email account and forwards it to any port and any hostname/IP address.&amp;nbsp; I use this with my domains to forward the mail to a Linux system (must use high ports as non-root) and to a second instance of Mercury/32 running on my system (can&#039;t share port 25)&amp;nbsp; Here&#039;s a sample of the ini file I use for forwarding all mail to Mercury/32 running on Ubuntu v8.10 and Wine.&lt;/p&gt;&lt;p&gt;&amp;nbsp;#&amp;nbsp; You can rename this tool, but name of following section must remain [WSMTPEx] [WSMTPEx] Version=0.10 #&amp;nbsp; TCP port, on which SMTP server listens Port=8025 #&amp;nbsp; Number of seconds to delay between searches for emails LoopDelay=30 #&amp;nbsp; Folder, under which is most of user&#039;s mailboxes UserFolder= Domains=1 # Users mail address domain part Domain1=linux-tstephenson.com LogName=c:\Mercury\WSMTPEx.log SMTPServer=192.168.1.4 MailBoxes=1 Badmails=c:\pmail\mail\BadMail [linux-tstephenson.com] # When user name start with &quot;DM:&quot;, WSMTPEx will try to find SMTP envelope address in mail file Mb1addr=dm:ubunto Mb1dir=c:\pmail\mail\ubunto &lt;/p&gt;&lt;p&gt;This takes all the mail in the domain account &quot;UBUNTO&quot;&amp;nbsp; and sends it to port 8025 on 192.168.1.4 to be received by MercuryS.&amp;nbsp; The directory BADMAIL I have specified must exist.&amp;nbsp; You can run multiple instances of this tool and and it can be run as a service.&amp;nbsp; If run as a service and running multiple instances the name of the program should be changed.&amp;nbsp; I use WSE-UBUNTO to rename the program and ini file for this one.&lt;/p&gt;&lt;p&gt;&lt;b&gt;Edit:&amp;nbsp; Latest version allows for multiple domain forwarding in one service. &lt;/b&gt; &lt;/p&gt;&lt;p&gt;Many thanks to Petr Jaklin for the development of these tools.&amp;nbsp; You can get these tools at the community download areas or directly from Petr Jaklin&#039;s site &lt;a href=&quot;http://www.3net.cz/software/softe.htm&quot; title=&quot;http://www.3net.cz/software/softe.htm&quot; mce_href=&quot;http://www.3net.cz/software/softe.htm&quot;&gt;http://www.3net.cz/software/softe.htm&lt;/a&gt; &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