Community Discussions and Support
copy all inbound mail to another server on internet lan

> Could I have a second Mercury install, that POPs a domain mailbox from my original Mercury?
>
>  And then have this second Mercury forward with mercuryE to the server I'm trying to reach internally?

Sure but you might be able to do the same thing with WSMTPEx without the second instance.


The program WSMTPEx.exe (SMTPEX.NLM for Netware)  and this 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 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.  

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  


> Could I have a second Mercury install, that POPs a domain mailbox from my original Mercury? > >  And then have this second Mercury forward with mercuryE to the server I'm trying to reach internally? Sure but you might be able to do the same thing with WSMTPEx without the second instance. The program WSMTPEx.exe (SMTPEX.NLM for Netware)  and this 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 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.   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  

I am currently using (live) an install of Mercury 4.52

with modules: MercuryS, MercuryC, MercuryP, MercuryI

 

we use MercuryC to send outbound mail to "MessageLabs" who handles our mail relaying.

 

I want my users to continue getting / sending their mail with Pegasus POP3/SMTP & this Mercury install.

 I also want a COPY of all inbound mail (from outside the local lan) to go to another mail server I am testing.

 searching the forums, I did find this: http://community.pmail.com/forums/thread/17837.aspx

but, 1) I do not want to forward only or move, i want to copy

2) I tried sending mail through mercury user@IP but it only tried to deliver through MercuryC and onto our mail relayer, instead of sending it locally.

 

-jason


<p>I am currently using (live) an install of Mercury 4.52</p><p>with modules: MercuryS, MercuryC, MercuryP, MercuryI</p><p> </p><p>we use MercuryC to send outbound mail to "MessageLabs" who handles our mail relaying.</p><p> </p><p>I want my users to continue getting / sending their mail with Pegasus POP3/SMTP & this Mercury install.</p><p> I also want a COPY of all inbound mail (from outside the local lan) to go to another mail server I am testing.</p><p> searching the forums, I did find this: http://community.pmail.com/forums/thread/17837.aspx</p><p>but, 1) I do not want to forward only or move, i want to copy</p><p>2) I tried sending mail through mercury user@IP but it only tried to deliver through MercuryC and onto our mail relayer, instead of sending it locally.</p><p> </p><p>-jason </p><p> </p>

1. If the other server can collect mail from a POP3 mailbox you could use a global filtering rule to do this. The tricky part will be to decide which messages originate externally, but you could perhaps simply check if header Sender contains the name of your domain. If not then copy message to a mailbox where it can be retrieved by the other server. Other than that it would of course be possible to do it with a daemon, but that will require some programming.

2. Two things: did you remember the brackets (user @[IPaddress])? And did you include the IP address in local domains in Mercury core configuration (again with brackets)?

/Rolf

<p>1. If the other server can collect mail from a POP3 mailbox you could use a global filtering rule to do this. The tricky part will be to decide which messages originate externally, but you could perhaps simply check if header Sender contains the name of your domain. If not then copy message to a mailbox where it can be retrieved by the other server. Other than that it would of course be possible to do it with a daemon, but that will require some programming.</p><p>2. Two things: did you remember the brackets (user @[IPaddress])? And did you include the IP address in local domains in Mercury core configuration (again with brackets)?</p><p>/Rolf </p>

I did try with and without the brackets, but I did NOT include the IP address in local domains in Mercury core.

 

should I put it in like this:

Local Host or server                                     Internet Name

----------------------------                                     ---------------------
domain1                                                     domain1
domain1                                                     domain1.com
domain1                                                     mail.domain1.com
domain2                                                     [192.168.x.x]

 

<p>I did try with and without the brackets, but I did NOT include the IP address in local domains in Mercury core.</p><p> </p><p>should I put it in like this:</p>Local Host or server                                     Internet Name <p>----------------------------                                     --------------------- domain1                                                     domain1 domain1                                                     domain1.com domain1                                                     mail.domain1.com domain2                                                     [192.168.x.x] </p><p> </p>

that did not work -because MercuryC still tries to deliver the message.

 

 

<p>that did not work -because MercuryC still tries to deliver the message.</p><p> </p><p> </p>

A local domain change will probably require a restart of Mercury. If it still doesn't work, please post the relevant part of the core log.

Unless you are in a Netware environment the left part of the local domain definition should always be the same (it's actually ignored otherwise, but to avoid confusion it's usually better to just use one name).

/Rolf

<p>A local domain change will probably require a restart of Mercury. If it still doesn't work, please post the relevant part of the core log.</p><p>Unless you are in a Netware environment the left part of the local domain definition should always be the same (it's actually ignored otherwise, but to avoid confusion it's usually better to just use one name).</p><p>/Rolf </p>

Could I do this?

 Could I have a second Mercury install, that POPs a domain mailbox from my original Mercury?

 And then have this second Mercury forward with mercuryE to the server I'm trying to reach internally?

 

 

<p>Could I do this?</p><p> Could I have a second Mercury install, that POPs a domain mailbox from my original Mercury?</p><p> And then have this second Mercury forward with mercuryE to the server I'm trying to reach internally?</p><p> </p><p> </p>
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