Community Discussions and Support
using Mercury to send to multiple user specific smtp relay servers possible

> Hello Mr. Stephenson,
> your mail domain tstephenson.com is registered with the DNS system.

Yes, it is registered.  But I also have some DynDNS domains registered as well and there is no problem using the GMail servers as long as I authenticate and use the proper setup.

(b) -SMTP STARTTLS -

  Server host name: smtp.gmail.com
  Server TCP/IP port: 587
  SSL/TLS: via STARTTLS
  Enable server certificate fingerprint tracking: checked
  SMTP Authentication: Login to the SMTP server using POP3
  username/password (the GMAIL-POP3-definition has been chosen)

(c) - SMTP via SSL -

  Server host name: smtp.gmail.com
  Server TCP/IP port: 465
  SSL/TLS: via direct ssl connection
  Enable server certificate fingerprint tracking: unchecked
  SMTP Authentication: Login to the SMTP server using POP3
  username/password (the GMAIL-POP3-definition has been chosen)


> I guess you have a fixed IP or something better than the free SynDNS service (including MX records).

I have MX records with DynDNS as well, GMail does not care if I have a fixed IP address or not.  They do require a valid SMTP connection.


> I did not check with Gmail (as i have no account there) what happens, if you have a dynamic IP and a fantasy local mail domain name.

No problem.

> I tried it with web.de (a german provider) and they refused relaying - even if i authenticate correctly (i have a account there) - because the
> FROM was not that of my account there, but something like user1@fantasydomain.net (the account of my local mail server).

Are you sure you properly authenticated?  

Did you register the e-mail address you used for sending?  

What is the actual domain being used?  Is you IP address on any blacklists?

Be specific and use real data otherwise I'm simply guessing as to why it failed.

>
>
> > I have no idea about this server, I do know that Mercury has no
> > problems sending any message using any address the sender wants to
> > use with either MercuryC or MercuryE.
>
> I was asking if Mercury could be configured, so that dependent of the
> local user, it chooses a different relay server and if Mercury could
> rewrite the FROM in external send mail to something configurable for
> the fore mentioned relay (configurable for the local user).

No it cannot.

> Hello Mr. Stephenson, > your mail domain tstephenson.com is registered with the DNS system. Yes, it is registered.  But I also have some DynDNS domains registered as well and there is no problem using the GMail servers as long as I authenticate and use the proper setup. (b) -SMTP STARTTLS -   Server host name: smtp.gmail.com   Server TCP/IP port: 587   SSL/TLS: via STARTTLS   Enable server certificate fingerprint tracking: checked   SMTP Authentication: Login to the SMTP server using POP3   username/password (the GMAIL-POP3-definition has been chosen) (c) - SMTP via SSL -   Server host name: smtp.gmail.com   Server TCP/IP port: 465   SSL/TLS: via direct ssl connection   Enable server certificate fingerprint tracking: unchecked   SMTP Authentication: Login to the SMTP server using POP3   username/password (the GMAIL-POP3-definition has been chosen) > I guess you have a fixed IP or something better than the free SynDNS service (including MX records). I have MX records with DynDNS as well, GMail does not care if I have a fixed IP address or not.  They do require a valid SMTP connection. > I did not check with Gmail (as i have no account there) what happens, if you have a dynamic IP and a fantasy local mail domain name. No problem. > I tried it with web.de (a german provider) and they refused relaying - even if i authenticate correctly (i have a account there) - because the > FROM was not that of my account there, but something like user1@fantasydomain.net (the account of my local mail server). Are you sure you properly authenticated?   Did you register the e-mail address you used for sending?   What is the actual domain being used?  Is you IP address on any blacklists? Be specific and use real data otherwise I'm simply guessing as to why it failed. > > > > I have no idea about this server, I do know that Mercury has no > > problems sending any message using any address the sender wants to > > use with either MercuryC or MercuryE. > > I was asking if Mercury could be configured, so that dependent of the > local user, it chooses a different relay server and if Mercury could > rewrite the FROM in external send mail to something configurable for > the fore mentioned relay (configurable for the local user). No it cannot.

Hi,

i would like to run Mercury as a centralized mail archive on my workstation (clients will access via IMAP).

I have just one workstation (at that moment) behind a DSL router (Fritz!box 7240).

I have no fixed IP from my provider, it is dynamic and changed at least every night.

I have only a local (mail, the Mercury server on the workstation) domain not known to the outside DNS system (e.g. local.org).

I have configured the Fritz!box to use DynDNS.com to have a fixed DNS name (for free, No-IP did not work/respond).

I guess that my DynDNS entry has no MX record to point to the workstation that will run Mercury.

(I think that having a MX record in DNS is not possible with dynamic IPs.)

There are at least 4 people who can log in to that workstation (e.g.: user1...user4).

The users of the workstation will use different mail clients.

The users have accounts at multiple mail providers (e.g.: user11@isp11.net, user12@isp12.net, user21@insp21.net ...).

The users should be able to send locally between each other.

All send mail should be archived localy in the IMAP folders.


Fetching the mails from the multiple mail providers of all the users and saving them in the IMAP folder of each user will be no problem.

Can Mercury fetch with IMAP or only with POP3?

(I want to get all mail in all folders the webinterfaces of the mail providers show.

Some of the mail providers classify incomming mail by puting them in to different folders in the webinterfaces e.g. known, unknown, spam.)


The big problem is sending mails out:

1. If i try to deliver directly to the mailserver responsible for the recipients domain, all servers will reject, because i only have dynamic IP and may not have a mail account

on that server (and can not autenticate).


So i need to go over a relay server.


2. I can not find a relay server that accepts the mail for all of my users, because even when i authenticate correctly they reject, because the FROM address is for a account

not hosted by them (it would only work for one of the users, that one who has a account on that mail server).


So i thought, Mercury has to find out from which user the mail is, choose the relay server (from the mail provider accounts this user has) and send over it.

I would choose the REPLY TO field in the header that the mail clients send to Mercury as the indication what relay server Mercury should take for non local recipients.

If that field is for e.g. REPLY TO: user12@isp12.net Mercury should use the smtp.isp12.net as the relay,

authenticate there as user12@isp12.net,

excange FROM: user1@local.org to FROM: user12@isp12.net,

exchange Reply-Path: user1@local.org to Reply-Path: user12@isp12.net,

and send.

For local recipients Mercury should exchange the REPLY TO: user12@isp12.net to by REPLY TO: user1@local.org.

(Reply-Path: user1@local.org would be ok. If it is not so, it should excange that to Reply-Path: user1@local.org.)

 

So Mercury should also take over the identity that is choosen in the mail clients by indication of REPLY TO: when

contacting the individual relay servers.


The configuration of all the mail clients for all users and their identities would be straight forward.

They all have to use Mercury server for IMAP and SMTP and authenticate with the local user account.

The only changing item would be the REPLY TO: field. This has to be choosen depending on the identity the user wants to have.


Is something like that possible in Mercury and where do i start?


Many Thanks in Advance


PS: I was using Hamster in the past and never figured this out.

I let the mail clients send directly to the mail providers and had no copy of send emails in Hamster.

At the moment i am fighting with hMailServer (Routes, Rules, VB-Scripting) to get this done, but i am stuck.

<P>Hi,</P><P>i would like to run Mercury as a centralized mail archive on my workstation (clients will access via IMAP).</P><P>I have just one workstation (at that moment) behind a DSL router (Fritz!box 7240).</P><P>I have no fixed IP from my provider, it is dynamic and changed at least every night.</P><P>I have only a local (mail, the Mercury server on the workstation) domain not known to the outside DNS system (e.g. local.org).</P><P>I have configured the Fritz!box to use DynDNS.com to have a fixed DNS name (for free, No-IP did not work/respond).</P><P>I guess that my DynDNS entry has no MX record to point to the workstation that will run Mercury.</P><P>(I think that having a MX record in DNS is not possible with dynamic IPs.)</P><P>There are at least 4 people who can log in to that workstation (e.g.: user1...user4).</P><P>The users of the workstation will use different mail clients.</P><P>The users have accounts at multiple mail providers (e.g.: user11@isp11.net, user12@isp12.net, user21@insp21.net ...).</P><P>The users should be able to send locally between each other.</P><P>All send mail should be archived localy in the IMAP folders.</P><P> </P><P><P>Fetching the mails from the multiple mail providers of all the users and saving them in the IMAP folder of each user will be no problem.</P><P>Can Mercury fetch with IMAP or only with POP3?</P><P>(I want to get all mail in all folders the webinterfaces of the mail providers show.</P><P>Some of the mail providers classify incomming mail by puting them in to different folders in the webinterfaces e.g. known, unknown, spam.)</P><P> </P><P></P><P>The big problem is sending mails out:</P><P>1. If i try to deliver directly to the mailserver responsible for the recipients domain, all servers will reject, because i only have dynamic IP and may not have a mail account</P><P>on that server (and can not autenticate).</P><P> </P><P>So i need to go over a relay server.</P><P> </P><P>2. I can not find a relay server that accepts the mail for all of my users, because even when i authenticate correctly they reject, because the FROM address is for a account</P><P>not hosted by them (it would only work for one of the users, that one who has a account on that mail server).</P><P> </P><P>So i thought, Mercury has to find out from which user the mail is, choose the relay server (from the mail provider accounts this user has) and send over it.</P><P>I would choose the REPLY TO field in the header that the mail clients send to Mercury as the indication what relay server Mercury should take for non local recipients.</P><P>If that field is for e.g. REPLY TO: user12@isp12.net Mercury should use the smtp.isp12.net as the relay,</P><P>authenticate there as user12@isp12.net,</P><P>excange FROM: user1@local.org to FROM: user12@isp12.net,</P><P>exchange Reply-Path: user1@local.org to Reply-Path: user12@isp12.net,</P><P>and send.</P><P>For local recipients Mercury should exchange the REPLY TO: user12@isp12.net to by REPLY TO: user1@local.org.</P><P>(Reply-Path: user1@local.org would be ok. If it is not so, it should excange that to Reply-Path: user1@local.org.)</P><P> </P><P>So Mercury should also take over the identity that is choosen in the mail clients by indication of REPLY TO: when</P><P>contacting the individual relay servers.</P><P> </P><P>The configuration of all the mail clients for all users and their identities would be straight forward.</P><P>They all have to use Mercury server for IMAP and SMTP and authenticate with the local user account.</P><P>The only changing item would be the REPLY TO: field. This has to be choosen depending on the identity the user wants to have.</P><P> </P><P>Is something like that possible in Mercury and where do i start?</P><P> </P><P>Many Thanks in Advance</P><P> </P><P>PS: I was using Hamster in the past and never figured this out.</P><P>I let the mail clients send directly to the mail providers and had no copy of send emails in Hamster.</P><P>At the moment i am fighting with hMailServer (Routes, Rules, VB-Scripting) to get this done, but i am stuck.</P>

> I have configured the Fritz!box to use DynDNS.com to have a fixed DNS name (for free, No-IP did not work/respond). I guess that my DynDNS
> entry has no MX record to point to the workstation that will run Mercury. (I think that having a MX record in DNS is not possible with
> dynamic IPs.)

It's possible using the DynDNS to receive mail via MercuryS.  There may be a port 25 blocking problem with your ISP though so you might want to look at the DynDNS mail forwarding that can send to a port other than port 25. Checkout their Mailhop services.  These are for fee services (~$50/year) but they do solve all the problems with using a randomly assigned IP address and port 25 blocking.

http://www.dyndns.com/services/mailhop/

The IMAP4 users would send via your MercuryS using ESMTP authentication and mercury would send via the DynDNS servers using MercuryC.

<p>> I have configured the Fritz!box to use DynDNS.com to have a fixed DNS name (for free, No-IP did not work/respond). I guess that my DynDNS > entry has no MX record to point to the workstation that will run Mercury. (I think that having a MX record in DNS is not possible with > dynamic IPs.) It's possible using the DynDNS to receive mail via MercuryS.  There may be a port 25 blocking problem with your ISP though so you might want to look at the DynDNS mail forwarding that can send to a port other than port 25. Checkout their Mailhop services.  These are for fee services (~$50/year) but they do solve all the problems with using a randomly assigned IP address and port 25 blocking. <a href="http://www.dyndns.com/services/mailhop/" title="http://www.dyndns.com/services/mailhop/" mce_href="http://www.dyndns.com/services/mailhop/">http://www.dyndns.com/services/mailhop/</a></p><p>The IMAP4 users would send via your MercuryS using ESMTP authentication and mercury would send via the DynDNS servers using MercuryC. </p>

Hello Mr. Stephenson,


Thank you for your suggestion.

Saddly none of these services at DynDNS are free. Even i had to pay each and every year.

I'm looking still for a solution within Mercury.


Best Regards

Michael


<P>Hello Mr. Stephenson,</P><P> </P><P>Thank you for your suggestion.</P><P>Saddly none of these services at DynDNS are free. Even i had to pay each and every year.</P><P>I'm looking still for a solution within Mercury.</P><P> </P><P>Best Regards</P><P>Michael</P><P> </P>

Thank you for your suggestion.

Saddly none of these

services at DynDNS are free. Even i had to pay each and every year.

Correct, about $50/year, a few cents a day.  They are a solid solution though for the randomly assigned IP address and it's a lot cheaper than getting a fixed IP address.

I'm

looking still for a solution within Mercury.

There is no free solution within Mercury.  You might be able to use the GMail server with MercuryC and add the addresses that will be used in sending to this account.  Not sure this will work and maintain the correct From: address but it will not bounce authenticated connections. 

 

<blockquote><p>Thank you for your suggestion.</p><p>Saddly none of these services at DynDNS are free. Even i had to pay each and every year.</p></blockquote><p>Correct, about $50/year, a few cents a day.  They are a solid solution though for the randomly assigned IP address and it's a lot cheaper than getting a fixed IP address. </p><blockquote><p>I'm looking still for a solution within Mercury.</p></blockquote><p>There is no free solution within Mercury.  You might be able to use the GMail server with MercuryC and add the addresses that will be used in sending to this account.  Not sure this will work and maintain the correct From: address but it will not bounce authenticated connections.  </p><p> </p>

Hello Mr. Stephenson,

i googled around and found that postfix has something named:
sender_dependent_relayhost_maps
(http://www.postfix.org/postconf.5.html# ... yhost_maps)

postfix even has something to do the renaming i would require, its called:
address mapping
http://www.postfix.org/SOHO_README.html#fantasy
address rewriting
http://www.postfix.org/ADDRESS_REWRITING_README.html

Could that be implemented to a much lesser degree also in hMailServer?


> You might be able to use the GMail server with MercuryC and add the addresses that will be used in sending to this account.

> Not sure this will work and maintain the correct From: address but it will not bounce authenticated connections. 

I'm almost certain that Gmail will refuse to be used as a relay, because the FROM: is not hosted by them even when authentication is correct.

So all my users will be forced to use the same FROM: field (of the one account at Gmail). The REPLY TO: field may point to their own accounts at their own mail providers.

This will confuse every recipient i fear.


Thanks in Advance

Michael

Thanks in Advance

<P>Hello Mr. Stephenson,</P><P>i googled around and found that postfix has something named: sender_dependent_relayhost_maps (http://www.postfix.org/postconf.5.html# ... yhost_maps) </P><P>postfix even has something to do the renaming i would require, its called: address mapping http://www.postfix.org/SOHO_README.html#fantasy address rewriting http://www.postfix.org/ADDRESS_REWRITING_README.html Could that be implemented to a much lesser degree also in hMailServer? </P><P> </P><P>> You might be able to use the GMail server with MercuryC and add the addresses that will be used in sending to this account.</P><P>> Not sure this will work and maintain the correct From: address but it will not bounce authenticated connections. </P><P>I'm almost certain that Gmail will refuse to be used as a relay, because the FROM: is not hosted by them even when authentication is correct.</P><P>So all my users will be forced to use the same FROM: field (of the one account at Gmail). The REPLY TO: field may point to their own accounts at their own mail providers.</P><P>This will confuse every recipient i fear.</P><P> </P><P>Thanks in Advance</P><P>Michael</P><P>Thanks in Advance</P>


> Hello Mr. Stephenson,
> i googled around and found that postfix has something named: sender_dependent_relayhost_maps
> (http://www.postfix.org/postconf.5.html# ... yhost_maps)
>
> postfix even has something to do the renaming i would require, its called: address mapping
> http://www.postfix.org/SOHO_README.html#fantasy address rewriting
> http://www.postfix.org/ADDRESS_REWRITING_README.html
>
> Could that be implemented to a much lesser degree also in hMailServer?

I have no idea about this server, I do know that Mercury has no problems sending any message using any address the sender wants to use with either MercuryC or MercuryE.
 
>
>
> > You might be able to use the GMail server with MercuryC and add the addresses that will be used in sending to this account. Not sure
> > this will work and maintain the correct From: address but it will not bounce authenticated connections.
>
> I'm almost certain that Gmail will refuse to be used as a relay,

I know for a fact you can relay of the GMail hosts.  I setup one of the Mercury hosts using MercuryC to send via GMail.  I just did it with WinPMail again in relaying off one of my test GMail accounts using an e-mail address I registered with the account.  Here are the displayed Pegasus Mail headers of a received message I sent through the GMail servers.

From:    "Thomas R. Stephenson " <support@tstephenson.com>
    To:    support@tstephenson.com
    Subject:    Test Message as support
    Reply to:    support@tstephenson.com
    Date:    Wed, 24 Mar 2010 20:00:46 -0700
    X-Mailer:    Pegasus Mail for Windows (4.52)
    Priority:    normal
    Message-id:    <4BAAD1DE.12199.440DE772@support.tstephenson.com>
    Sender:    Thomas Stephenson <thomas.tstephenson@gmail.com>

Note,  the only thing in these headers that says it came through the GMail server is the sender address.  This is not going to change since they in fact are the sender.

> because the FROM: is not hosted by them even when authentication is correct.

The From: address is not pertinent.  GMail will relay as long as you authenticate.  It will change the From: address the the address of the account if you have not registered the e-mail address with the GMail account.


> So all my users will be forced to use the same FROM: field (of the one account at Gmail). The REPLY TO: field may point to their own accounts
> at their own mail providers. This will confuse every recipient i fear.

The From: and Reply To: fields shown here were set by Pegasus Mail in the Pegasus Mail options.

 

&lt;p&gt; &amp;gt; Hello Mr. Stephenson, &amp;gt; i googled around and found that postfix has something named: sender_dependent_relayhost_maps &amp;gt; (http://www.postfix.org/postconf.5.html# ... yhost_maps) &amp;gt; &amp;gt; postfix even has something to do the renaming i would require, its called: address mapping &amp;gt; http://www.postfix.org/SOHO_README.html#fantasy address rewriting &amp;gt; http://www.postfix.org/ADDRESS_REWRITING_README.html &amp;gt; &amp;gt; Could that be implemented to a much lesser degree also in hMailServer? I have no idea about this server, I do know that Mercury has no problems sending any message using any address the sender wants to use with either MercuryC or MercuryE. &amp;nbsp; &amp;gt; &amp;gt; &amp;gt; &amp;gt; You might be able to use the GMail server with MercuryC and add the addresses that will be used in sending to this account. Not sure &amp;gt; &amp;gt; this will work and maintain the correct From: address but it will not bounce authenticated connections. &amp;gt; &amp;gt; I&#039;m almost certain that Gmail will refuse to be used as a relay, I know for a fact you can relay of the GMail hosts.&amp;nbsp; I setup one of the Mercury hosts using MercuryC to send via GMail.&amp;nbsp; I just did it with WinPMail again in relaying off one of my test GMail accounts using an e-mail address I registered with the account.&amp;nbsp; Here are the displayed Pegasus Mail headers of a received message I sent through the GMail servers. From:&amp;nbsp;&amp;nbsp; &amp;nbsp;&quot;Thomas R. Stephenson &quot; &amp;lt;support@tstephenson.com&amp;gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;To:&amp;nbsp;&amp;nbsp; &amp;nbsp;support@tstephenson.com &amp;nbsp;&amp;nbsp; &amp;nbsp;Subject:&amp;nbsp;&amp;nbsp; &amp;nbsp;Test Message as support &amp;nbsp;&amp;nbsp; &amp;nbsp;Reply to:&amp;nbsp;&amp;nbsp; &amp;nbsp;support@tstephenson.com &amp;nbsp;&amp;nbsp; &amp;nbsp;Date:&amp;nbsp;&amp;nbsp; &amp;nbsp;Wed, 24 Mar 2010 20:00:46 -0700 &amp;nbsp;&amp;nbsp; &amp;nbsp;X-Mailer:&amp;nbsp;&amp;nbsp; &amp;nbsp;Pegasus Mail for Windows (4.52) &amp;nbsp;&amp;nbsp; &amp;nbsp;Priority:&amp;nbsp;&amp;nbsp; &amp;nbsp;normal &amp;nbsp;&amp;nbsp; &amp;nbsp;Message-id:&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;4BAAD1DE.12199.440DE772@support.tstephenson.com&amp;gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;Sender:&amp;nbsp;&amp;nbsp; &amp;nbsp;Thomas Stephenson &amp;lt;thomas.tstephenson@gmail.com&amp;gt; Note,&amp;nbsp; the only thing in these headers that says it came through the GMail server is the sender address.&amp;nbsp; This is not going to change since they in fact are the sender. &amp;gt; because the FROM: is not hosted by them even when authentication is correct. The From: address is not pertinent.&amp;nbsp; GMail will relay as long as you authenticate.&amp;nbsp; It will change the From: address the the address of the account if you have not registered the e-mail address with the GMail account. &amp;gt; So all my users will be forced to use the same FROM: field (of the one account at Gmail). The REPLY TO: field may point to their own accounts &amp;gt; at their own mail providers. This will confuse every recipient i fear. The From: and Reply To: fields shown here were set by Pegasus Mail in the Pegasus Mail options.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;

Hello Mr. Stephenson,

your mail domain tstephenson.com is registered with the DNS sytem.

I guess you have a fixed IP or something better than the free SynDNS service (including MX records).

I did not check with Gmail (as i have no account there) what happens, if you have a dynamic IP and a fantasy local mail domain name.

I tried it with web.de (a german provider) and they refused relaying - even if i authenticate correctly (i have a account there) - because

the FROM was not that of my account there, but something like user1@fantasydomain.net (the account of my local mail server).


> I have no idea about this server, I do know that Mercury has no problems sending any message using any address the sender wants to use with either MercuryC or MercuryE.

I was asking if Mercury could be configured, so that dependent of the local user, it chooses a different relay server and if Mercury could rewrite the FROM in external send mail to something

configurable for the fore mentioned relay (configurable for the local user).


Thank you Very Much

Michael

&lt;P&gt;Hello Mr. Stephenson,&lt;/P&gt;&lt;P&gt;your mail domain tstephenson.com is registered with the DNS sytem.&lt;/P&gt;&lt;P&gt;I guess you have a fixed IP or something better than the free SynDNS service (including MX records).&lt;/P&gt;&lt;P&gt;I did not check with Gmail (as i have no account there) what happens, if you have a dynamic IP and a fantasy local mail domain name.&lt;/P&gt;&lt;P&gt;I tried it with web.de (a german provider) and they refused relaying - even if i authenticate correctly (i have a account there) - because&lt;/P&gt;&lt;P&gt;the FROM was not that of my account there, but something like user1@fantasydomain.net (the account of my local mail server).&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&amp;gt; I have no idea about this server, I do know that Mercury has no problems sending any message using any address the sender wants to use with either MercuryC or MercuryE.&lt;/P&gt;&lt;P&gt;I was asking if Mercury could be configured, so that dependent of the local user, it chooses a different relay server and if Mercury could rewrite the FROM in external send mail to something&lt;/P&gt;&lt;P&gt;configurable for the fore mentioned relay (configurable for the local user).&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Thank you Very Much&lt;/P&gt;&lt;P&gt;Michael&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