Community Discussions and Support

The perfect forum for general discussions or technical questions about Mercury Mail Server.

0
-1
closed
subelman posted Aug 6 '09 at 3:29 am

The setup is Pegasus sending mail using SMTP and START TLS, and Mercury S receiving it. Sender and receiver are on different different ISPs. Most of the time this works perfectly.

Once in a while, the sender's internet connection becomes heavily congested (too many YouTube users) and 'ping' response times from the sender PC to its nearest ISP router are 3000 milliseconds or more (normally it's 3-5 milliseconds).

When this kind of congestion is happening, Mercury S consistently times out on receiving. TCP timeout for Pegasus and Mercury S is set to 90 seconds, and yet the TCP log for Mercury S shows an error after only 6 seconds. If I disable START TLS on the sender (Pegasus), email flows without error, so there seems to be a problem with how the Mercury SSL code handles timeouts.

Below are the first three lines and the tail ends of the Mercury and Pegasus Session logs. The first few lines show that the sender and receiver clocks are in synch, so the times at the tail end are meaningful. You can see Mercury gave up way before 90 seconds had elapsed, and that some packets were taking about 3 seconds to travel between sender and receiver (the '354 OK' line was received by Pegasus 3 seconds after it was sent) . Actual IP addresses have been changed.

Mercury S log:

15:47:47.282: Connection from 999.999.210.200, Wed Aug 05 15:47:47 2009<lf>
15:47:47.282: << 220-mail.receiver.com ESMTP server ready.<cr><lf>220-Use of this server for unauthorised relaying of mail is forbidden.<cr><lf>
15:47:50.625: >> EHLO cedar.sender.com<cr><lf>

[stuff deleted]

15:48:08.511: << 235 Authentication successful.<cr><lf>
15:48:10.235: >> MAIL FROM:<subelman@sender.com.com><cr><lf>
15:48:10.235: << 250 Sender OK - send RCPTs.<cr><lf>
15:48:14.559: >> RCPT TO:<subelman@receiver.com><cr><lf>
15:48:14.559: << 250 Recipient OK - send RCPT or DATA.<cr><lf>
15:48:17.125: >> DATA<cr><lf>
15:48:17.125: << 354 OK, send data, end with CRLF.CRLF<cr><lf>
15:48:23.083: 18: SSL read error -25 (locus 0, type 0, code 0, 'Timeout on read (select()) after 1 secon')
15:48:24.514: --- Connection closed normally at Wed Aug 05 15:48:24 2009. ---
15:48:24.514:

Pegasus Log:

15:47:47.421 [*] Connection established to 000.000.145.173
15:47:50.781 >> 0045 220-mail.receiver.com ESMTP server ready.\0D\0A
15:47:50.781 >> 0072 220-Use of this server for unauthorised relaying of mail is forbidden.\0D\0A
15:47:50.781 << 0023 EHLO cedar.sender.com\0D\0A

[Stuff deleted]

 15:48:10.375 >> 0032 235 Authentication successful.\0D\0A
15:48:10.375 << 0037 MAIL FROM:<subelman@sender.com>\0D\0A
15:48:14.703 >> 0029 250 Sender OK - send RCPTs.\0D\0A
15:48:14.703 << 0031 RCPT TO:<subelman@receiver.com>\0D\0A
15:48:17.265 >> 0039 250 Recipient OK - send RCPT or DATA.\0D\0A
15:48:17.265 << 0006 DATA\0D\0A
15:48:20.656 >> 0039 354 OK, send data, end with CRLF.CRLF\0D\0A
15:48:20.656 << 0052 From: "Eduardo Subelman" <subelman@sender.com>\0D\0A
15:48:20.656 << 0052 Organization: No organization at all..\0D\0A
  [about 500 more lines of email body deleted from here]
15:48:20.656 << 0020 <div align="left">\0D\0A
15:48:20.656 << 0014 &nbsp;</div>\0D\0A
15:48:20.656 << 0009 </body>\0D\0A
15:48:20.656 << 0009 </html>\0D\0A
15:48:20.656 << 0003 .\0D\0A
15:48:26.187 24: SSL flush error -42 (locus 0, type 0, code 10054, 'WSAECONNRESET: Connection was reset by the remote host executing a close')
15:48:26.187 18: SSL read error -42 (locus 0, type 0, code 10054, 'WSAECONNRESET: Connection was reset by the remote host executing a close')
15:48:28.406 << 0006 QUIT\0D\0A
15:48:28.406 19: SSL write error -42 (locus 0, type 0, code 10054, 'WSAECONNRESET: Connection was reset by the remote host executing a close')

 

0
-1
closed
msafi posted Aug 5 '09 at 11:53 pm

Yeah, I put "admin" and it worked. As the next filter, I also told it: "delete the message" because I didn't want it to try to resolve the domains and relay it.

That should help me a lot.

Thanks,

0
-1

421-4.7.0 [68.84.251.204] Our system has detected an unusual amount of<cr><lf>
15:46:41.741: >> 421-4.7.0 unsolicited mail originating from your IP address. To protect our<cr><lf>
15:46:41.741: >> 421-4.7.0 users from spam, mail sent from your IP address has been temporarily<cr><lf>
15:46:41.741: >> 421-4.7.0 blocked. Please visit >
15:46:41.741: >> 421 4.7.0 to review our Bulk Email Senders Guidelines. 16si20569308pzk.52<cr><lf>

 Ah ha!  So i'm guessing gmail is blocking my email thinking it's spam. 

You got it and you really need to check out your IP address on blacklists as well. I just did a check and it appears that your IP address is on a DUL blacklist so you'll never be able to use MercuryE successfully.  You should convert to MercuryC and send through your ISPs SMTP host.  You are also on the FIVETEN blacklists but nobody same ever would use any of the FIVETEN blacklists to block. ;-)

IVETENWEBFORMListedLISTEDmiscellaneous address blocks that have sent spam here
Return codes were: 127.0.0.2
86400109
SORBS-DUHLListedLISTEDDynamic IP Addresses See: Detail
Return codes were: 127.0.0.10
3599375
Spamhaus-ZENListedLISTEDDetail
Return codes were: 127.0.0.10
900391

And i'm guessing i cant receive email because of what my MX servers are set as?

This needs to be fixed, the MX host should be pointing to your host mileka.com.  If you remove them entirely it will work as well.  That said I cannot even ping mileka.com or 68.84.251.204 so there is some major problem with connecting to you host as well.

0
-1
closed
SvenH posted Aug 6 '09 at 3:28 pm

1. See main help index ("Using the Mercury/32 loader utility") for a detailed explaination

2. Don't know, sorry.

3. I only know the -P parameter in order to specify the physical processor to use for Mercury.

 

Sven

 

0
-1

Thank you for the tip Thomas.

I did not think of going the policy route. I will dust off my Pascal routinges and set to work. Because all of the messages come from the same source and should be similarly structured, it should be a relatively straightforward operation.

0
-1
closed
PiS posted Aug 13 '09 at 12:20 pm

If the backup is at cause, you should probably see a file conflict occur. Filemon from sysinternals will show this for you.

Split the logs automatically into months in Mercury.ini with ~ 

like: logfile: D:\mail\logs\sys~y~m.log # Traffic logging file

Makes it much easier to maintain and purge old stuff.


0
-1

The original idea with an alias should work as well. The alias should be:

alias - the sender address you use

real address - your local mailbox name (without any domain part) 

This will, however, make it impossible to send any messages to the real external "sender address" through the Mercury server, they will all be redirected to your local mailbox. 

/Rolf 

0
-1
closed
PiS posted Aug 4 '09 at 1:26 pm

The larger the inbox the more impact there is on performance. 4.6x and later are much faster in regards to all protocols, but especially from 4.0 to 4.6 there are so many stability fixes and performance benfits that there is every point in upgrading and getting a license.

0
-1
closed
cadcambrafe posted Aug 3 '09 at 4:58 pm

Peter,

As instructed, I changed the "Mercury.ini" entry to "# MercuryX" so that the module doesn't load when I start M/32, but how does that help..? I need the scheduler to be working.

So, I enabled the MercuryX module and restart M/32... Guess what..? Nothing works again.

M/32 is not loading in "Off-line mode". It is already in "On-line mode", so I selected "Off-line" and On-line", but it makes no difference.

I'm going back to v4.62... Sorry.

 

Regards. SJS. 

0
-1
closed
Glen Jackson posted Aug 2 '09 at 3:25 pm

I checked the port status both with Mercury running and shut down, using both TCPView (thanks, kwikzilver!) and Telnet, and can confirm that Mercury is the only program responding on port 25.

-=Glen

0
-1
closed
GordonM posted Jul 29 '09 at 8:40 pm

Thank you Chris. I rather suspect that it may be a client problem, give that I am seeing different issues, depending what computer I am using and which client.  All seems to be working fine at the moment, so I'll just keep an eye on it.

Gordon

0
-1

Hi!



In the last few days a have had a new problem with Mercury v4.62. All my

LAN IMAP connections could not get through to Mercury. I saw the user

log-in try in the IMAP status window of Mercury but the connection

failed and the user did not appear in the upper section of the IMAP

window. The session log brought up the following problem:



...


11:54:11.187: >> 1 capability<cr><lf>


11:54:11.187: << * CAPABILITY IMAP4rev1 STARTTLS AUTH=PLAIN

X-MERCURY-1<cr><lf>


11:54:11.187: << 1 OK CAPABILITY complete.<cr><lf>


11:54:11.187: >> 2 STARTTLS<cr><lf>


11:54:11.187: << 2 OK Begin SSL/TLS negotiation now.<cr><lf>


11:54:11.265: 20: Error -3 creating CryptLib session.


...



This error does only appear within the LAN. All connections from the

Internet did not show this problem.



As mail client, we use TBird over SSL with stunnel for the IMAP

connections. So I use the setting "use ssl" but not "disable plain text

login".



After restarting mercury the problems disappears and that brings me to

my second question:



How can I safely restart mercury without any harm to the active user

accounts? Restarting Mercury with active IMAP connections always results

in damaged mail accounts (my users reported that everything gets mixed

up and that the mail subjects did not fit to the shown mail message text

anymore...)! How do you solve such problems and restart the system with

users all over the Internet?



Thanks,


Konrad

<cr><lf><cr><lf><cr><lf><cr><lf><cr><lf></lf></cr></lf></cr></lf></cr></lf></cr></lf></cr>

0
-1
closed
bussibaer posted Jul 26 '09 at 9:40 pm

[quote user="Thomas R. Stephenson"]

......

> In the second step i cancel the mercury and restart the server.
> After this i must do the two steps again. Is that normal? The older
> versions don't need the procedure, to go online.

No this is not normal but for some reason it does this for some people when using MercuryX at least.

>
........
[/quote]

Thanks again Thomas,

after i have deactivate the MercuryX, the Moduls are going only directly on startup. 

 

0
-1
closed
vefatica posted Jul 25 '09 at 10:15 pm

[quote user="Rolf Lindby"]

Apparently the file ..\Mercury\Mail\PMAIL.USR had been damaged. It's difficult to say why but unless you had a Windows crash recently it might be good to run Chkdsk and to make sure there is no real-time antivirus program scanning the Mercury directories.

/Rolf 

[/quote]

 

Indeed!  I had trouble with that file disappearing a couple weeks ago when I installed Pmail 4.51.  I used Pmail to rebuild it but didn't add the user in question.  Mercury must have already had the user info and so didn't miss it.  Do both Mercury and Pegasus rely on that file?  That seems odd.

0
-1
closed
PiS posted Jul 30 '09 at 2:57 pm

oh crap: I split the posts (can't undo) but somehow your last reply stayed here... - Glen could you re-post the above to the newly created thread?

2.32k
13.74k
8
Actions
Hide topic messages
Enable infinite scrolling
Previous
Next
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft