Community Discussions and Support
Dynamic user accounts

I think I have found the option.  Checking "Suppress validation of "From" field when processing mail" in Mercury Core/General seems to allow any (invalid) "From:" address.

Gordon

<P>I think I have found the option.  Checking "Suppress validation of "From" field when processing mail" in Mercury Core/General seems to allow any (invalid) "From:" address.</P> <P>Gordon</P>

I have been running an application called from Mercury Global Filtering which examines incoming mail and, through a set of rules, decides whether to send a notification to my mobile phone.  The notification comes to the phone in the form of a test message, after sending an e-mail to the phone's e-mail address, which invites me to read the message.  The notification provides the e-mail address of the sender of the original e-mail.  So that I can decide whether or not to check the e-mail (and incur the cost involved), my application provides a tailored notification which generates a From address containing some basic information about the sender and the subject.  An example might be an address of the form JohnSmith_at_email.com@invite_dinner.com.  The domain name is, of course totally artificial, but gives me a clue as to whether I want to immediately read the mail or wait until I get home.  The ISP SMTP server that I have been using has been accepting e-mails of this nature without using AUTHoriization and without any checking of the validity of the domain.  This has now stopped, presumably as a result of tightened security.

I have been wondering whether I could replace this lost service by using my own Mercury SMTP server.  However, to do this, I may have to allow the server to provide open relaying, which I obviously don't want to do.  I have also investigated whether I could generate new Mercury users on-the-fly with my application, by automatically editing the user details in Mercury\Mail, e.g. a user called JohnSmith_at_email.com, which I could remove after the notification has been sent.  However, so far as I can see, Mercury has to be re-started after making changes in the Mercury\Mail directory for such changes to come into effect, which is not a practical or an attractive thing to do automatically.

Maybe, I could allow open relaying but block access from outside with my firewall.  I am not sure that this would help or how practical it might be.

Can anyone offer any advice about this (perhaps a bit strange) requirement.

Thank you

Gordon

<P>I have been running an application called from Mercury Global Filtering which examines incoming mail and, through a set of rules, decides whether to send a notification to my mobile phone.  The notification comes to the phone in the form of a test message, after sending an e-mail to the phone's e-mail address, which invites me to read the message.  The notification provides the e-mail address of the sender of the original e-mail.  So that I can decide whether or not to check the e-mail (and incur the cost involved), my application provides a tailored notification which generates a From address containing some basic information about the sender and the subject.  An example might be an address of the form <A href="mailto:JohnSmith_at_email.com@invite_dinner.com">JohnSmith_at_email.com@invite_dinner.com</A>.  The domain name is, of course totally artificial, but gives me a clue as to whether I want to immediately read the mail or wait until I get home.  The ISP SMTP server that I have been using has been accepting e-mails of this nature without using AUTHoriization and without any checking of the validity of the domain.  This has now stopped, presumably as a result of tightened security.</P> <P>I have been wondering whether I could replace this lost service by using my own Mercury SMTP server.  However, to do this, I may have to allow the server to provide open relaying, which I obviously don't want to do.  I have also investigated whether I could generate new Mercury users on-the-fly with my application, by automatically editing the user details in Mercury\Mail, e.g. a user called JohnSmith_at_email.com, which I could remove after the notification has been sent.  However, so far as I can see, Mercury has to be re-started after making changes in the Mercury\Mail directory for such changes to come into effect, which is not a practical or an attractive thing to do automatically.</P> <P>Maybe, I could allow open relaying but block access from outside with my firewall.  I am not sure that this would help or how practical it might be.</P> <P>Can anyone offer any advice about this (perhaps a bit strange) requirement.</P> <P>Thank you</P> <P>Gordon</P>

In the MercS config - Connection Control, you can add the IP address of your applications machine and tick the box "Connections from this range may relay", while still denying relaying without AUTH for everyone else.

In the MercS config - Connection Control, you can add the IP address of your applications machine and tick the box "Connections from this range may relay", while still denying relaying without AUTH for everyone else.

That's great, DLN.  I had missed that option.  I'll check it out.

Gordon

<P>That's great, DLN.  I had missed that option.  I'll check it out.</P> <P>Gordon</P>

Well, unfortunately, this didn't work.  The message failed because "User XXXXX not known at this site".  Maybe this is because the mail is being sent from the machine running Mercury and not another one trying to relay through it.  I had checked the "allow relaying" box for 127.0.0.1

Gordon

 

<P>Well, unfortunately, this didn't work.  The message failed because "User XXXXX not known at this site".  Maybe this is because the mail is being sent from the machine running Mercury and not another one trying to relay through it.  I had checked the "allow relaying" box for 127.0.0.1</P> <P>Gordon</P> <P mce_keep="true"> </P>

That looks like a "RCPT TO" failure. Is the To: address a local user on your Merc server?

Maybe a bit more detail for the actual addresses & some headers would help explain what you are really trying to do.

<p>That looks like a "RCPT TO" failure. Is the To: address a local user on your Merc server?</p><p>Maybe a bit more detail for the actual addresses & some headers would help explain what you are really trying to do. </p>

You have to tell us what module you're using, MercuryE or MercuryC - there are more flags involved when stopping/allowing relaying than just the connection control at the IP-level.

You have to tell us what module you're using, MercuryE or MercuryC - there are more flags involved when stopping/allowing relaying than just the connection control at the IP-level.

DLN - I have tried sending to both local and remote users and the result is the same failure. 

I think that the bottom line here is whether MercuryS can send mail from a local user who does not exist.

Gordon

<P>DLN - I have tried sending to both local and remote users and the result is the same failure. </P> <P>I think that the bottom line here is whether MercuryS can send mail from a local user who does not exist.</P> <P>Gordon</P>

Peter - I stand to be corrected, but I don't believe that the SMTP client is the point at issue here.  It seems to be the SMTP server that is rejecting the (non-existent) local user, when using msendto.

However, if I telnet (25) to MercuryS, the MAIL FROM:<unknown_local_user> input results in a Sender OK response, but I don't know whether this proves anything.

Gordon

P.S. (Edited) I have just tried to send mail manually and, though Mercury S doesn't show any signs of complaining, the From: name is still being rejected as unknown.  Maybe the SMTP client is doing this.

&lt;P&gt;Peter - I stand to be corrected, but I don&#039;t believe that the SMTP client is the point at issue here.&amp;nbsp; It seems to be the SMTP server that is rejecting the (non-existent) local user, when using msendto.&lt;/P&gt; &lt;P&gt;However, if I telnet (25) to MercuryS, the MAIL FROM:&amp;lt;unknown_local_user&amp;gt; input results in a Sender OK response, but I don&#039;t know whether this proves anything.&lt;/P&gt; &lt;P&gt;Gordon&lt;/P&gt; &lt;P mce_keep=&quot;true&quot;&gt;P.S. (Edited) I have just tried to send mail manually and, though Mercury S doesn&#039;t show any signs of complaining, the From: name is still being rejected as unknown.&amp;nbsp; Maybe the SMTP client is doing this.&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