After installation mail can't be sent to some domains

Address problems with the installation and initial configuration
User avatar
nick.bolton
The Big Cheese
Posts: 2324
Joined: Thu Aug 28, 2008 4:02 pm

Re: After installation mail can't be sent to some domains

Fri Jul 18, 2014 7:22 am

I'd expect iMail to use standard SMTP to communicate (I know Exchange does things a bit non standard and we've allowed for this) and MWES only understands the SMTP protocol. Looks like we'll need to have a closer look at iMail to see if it's doing anything non standard.
SageIsland
Student Sheep
Posts: 19
Joined: Wed Jul 16, 2014 3:00 am

Re: After installation mail can't be sent to some domains

Fri Jul 18, 2014 9:00 am

If there is anything I can do to help please let me know. I would love to run this on our servers.
User avatar
nick.bolton
The Big Cheese
Posts: 2324
Joined: Thu Aug 28, 2008 4:02 pm

Re: After installation mail can't be sent to some domains

Fri Jul 18, 2014 1:53 pm

Thanks for the offer, I'll talk to our techs and see what we can come up with to figure this out.
User avatar
nick.bolton
The Big Cheese
Posts: 2324
Joined: Thu Aug 28, 2008 4:02 pm

Re: After installation mail can't be sent to some domains

Fri Jul 18, 2014 7:48 pm

Right, we can extend the debugging to show all the raw data, but it requires us to recompile the software as it's a switch which is currently off. So we'll get you a new version early next week and that should display the data we need.
SageIsland
Student Sheep
Posts: 19
Joined: Wed Jul 16, 2014 3:00 am

Re: After installation mail can't be sent to some domains

Fri Jul 18, 2014 11:59 pm

Thank you very much.
User avatar
nick.bolton
The Big Cheese
Posts: 2324
Joined: Thu Aug 28, 2008 4:02 pm

Re: After installation mail can't be sent to some domains

Mon Jul 21, 2014 5:24 pm

Give this a try

http://cdn.firetrust.com/downloads/mwes ... r-2815.exe

Stop the MWES service, take a backup of your mwes.db file (in C:\Program Files\MailWasher Enterprise Server\data) then install this version.

Then login to it and change the logging to 'High'.

Go to the Windows Registry
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Firetrust Limited\mwes

add this key (right click>>New>>String Value)
use_raw_client_smtp=1

Restart the MWES service and now replicate the problems you saw and it will produce the logs we require.
SageIsland
Student Sheep
Posts: 19
Joined: Wed Jul 16, 2014 3:00 am

Re: After installation mail can't be sent to some domains

Tue Jul 22, 2014 1:55 am

After the installation and registry update the log file returns the following:

2014-07-21 09:41:21 [6600] Debug: SMTPChannel::PutClientLine: Email ID(11) raw smtp - 220 fimail.sageisland.com (IMail 11.5 11-1) NT-ESMTP Server X1 (MP)
2014-07-21 09:41:21 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp - EHLO mail.sageisland.com
2014-07-21 09:41:21 [6600] Debug: SMTPChannel::PutClientLine: Email ID(11) raw smtp - 250-fimail.sageisland.com says hello
2014-07-21 09:41:21 [6600] Debug: SMTPChannel::PutClientLine: Email ID(11) raw smtp - 250-SIZE 0
2014-07-21 09:41:21 [6600] Debug: SMTPChannel::PutClientLine: Email ID(11) raw smtp - 250-8BITMIME
2014-07-21 09:41:21 [6600] Debug: SMTPChannel::PutClientLine: Email ID(11) raw smtp - 250-DSN
2014-07-21 09:41:21 [6600] Debug: SMTPChannel::PutClientLine: Email ID(11) raw smtp - 250-ETRN
2014-07-21 09:41:21 [6600] Debug: SMTPChannel::PutClientLine: Email ID(11) raw smtp - 250-AUTH LOGIN
2014-07-21 09:41:21 [6600] Debug: SMTPChannel::PutClientLine: Email ID(11) raw smtp - 250 AUTH=LOGIN
2014-07-21 09:41:21 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp - MAIL FROM:<support@[removed].com>
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::PutClientLine: Email ID(11) raw smtp - 250 ok
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp - RCPT To:<brandon@[removed].com>
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::PutClientLine: Email ID(11) raw smtp - 250 ok its for <brandon@[removed].com>
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp - DATA
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::PutClientLine: Email ID(11) raw smtp - 354 Enter mail, end with "." on a line by itself
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp - QUIT
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp -
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp -
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp -
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp -
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp -
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp -
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp -
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp -
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp -
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp -
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp -
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp -
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp -
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp -
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp -
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp -
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp -
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp -
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp -
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp -
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp -
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp -
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp -
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp -
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp -
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp -
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp -
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp -
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp -
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp -
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp -
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp -
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp -
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp -
2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email ID(11) raw smtp -

This continues for as long as I run the service.

Thanks.
User avatar
nick.bolton
The Big Cheese
Posts: 2324
Joined: Thu Aug 28, 2008 4:02 pm

Re: After installation mail can't be sent to some domains

Tue Jul 22, 2014 2:35 pm

We can see the problem.. The client is not sending the specified end marker "."
The QUIT is treated as normal body text until end of marker.

All email DATA body must end with "." on a new line. SMTP standard.
http://en.wikipedia.org/wiki/Simple_Mai ... r_Protocol



2014-07-21 09:41:22 [6600] Debug: SMTPChannel::PutClientLine: Email
ID(11) raw smtp - 354 Enter mail, end with "." on a line by itself

2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email
ID(11) raw smtp - QUIT

This client sent from is iMail? Can to post the raw email which is causing the issue so we can see if the . is missing?
User avatar
rusticdog
Firetrust Monkey
Contact:
Posts: 15595
Joined: Mon Jun 13, 2005 6:27 pm

Re: After installation mail can't be sent to some domains

Tue Jul 22, 2014 4:09 pm

Removed the email addresses from the log output. Don't want them harvested :)
SageIsland
Student Sheep
Posts: 19
Joined: Wed Jul 16, 2014 3:00 am

Re: After installation mail can't be sent to some domains

Wed Jul 23, 2014 12:31 am

nick.bolton wrote:We can see the problem.. The client is not sending the specified end marker "."
The QUIT is treated as normal body text until end of marker.

All email DATA body must end with "." on a new line. SMTP standard.
http://en.wikipedia.org/wiki/Simple_Mai ... r_Protocol



2014-07-21 09:41:22 [6600] Debug: SMTPChannel::PutClientLine: Email
ID(11) raw smtp - 354 Enter mail, end with "." on a line by itself

2014-07-21 09:41:22 [6600] Debug: SMTPChannel::GetClientLine: Email
ID(11) raw smtp - QUIT

This client sent from is iMail? Can to post the raw email which is causing the issue so we can see if the . is missing?
Hi Nick, since both servers are mine I can get whatever data you need but I am unsure what you mean by the raw email. I created a new email in Outlook and sent it to the server that is running MWES.

My server runs Imail and I use Outlook to connect to send mail to the domain on the server that is running MWES under Imail as well.
User avatar
nick.bolton
The Big Cheese
Posts: 2324
Joined: Thu Aug 28, 2008 4:02 pm

Re: After installation mail can't be sent to some domains

Wed Jul 23, 2014 7:16 am

Ok, when I talk about the client, I meant the MTA which is sending the email to the MWES software. So from my understanding we have you sending an email from Outlook --> iMail#1 -->cloud --> MWES -->iMail#2 --> Outlook

Actually if you can get the SMTP conversation like this, it should show the period. The strange thing is it seems to be only happening with 3 of your domains as you've mentioned

S: 220 smtp.example.com ESMTP Postfix
C: HELO relay.example.org
S: 250 Hello relay.example.org, I am glad to meet you
C: MAIL FROM:<bob@example.org>
S: 250 Ok
C: RCPT TO:<alice@example.com>
S: 250 Ok
C: RCPT TO:<theboss@example.com>
S: 250 Ok
C: DATA
S: 354 End data with <CR><LF>.<CR><LF>
C: From: "Bob Example" <bob@example.org>
C: To: "Alice Example" <alice@example.com>
C: Cc: theboss@example.com
C: Date: Tue, 15 January 2008 16:02:43 -0500
C: Subject: Test message
C:
C: Hello Alice.
C: This is a test message with 5 header fields and 4 lines in the message body.
C: Your friend,
C: Bob
C: .
S: 250 Ok: queued as 12345
C: QUIT
S: 221 Bye
User avatar
nick.bolton
The Big Cheese
Posts: 2324
Joined: Thu Aug 28, 2008 4:02 pm

Re: After installation mail can't be sent to some domains

Wed Jul 23, 2014 7:20 am

Found this on Google about iMail (old version) regarding SMTP logs

http://support.ipswitch.com/kb/IM-20041214-DM01.htm

You can see where it says about 'IMail sends the message and then sends the End Of Message (EOM) command.' that is sends the period. Would be good to see if it's sending this with those problem domains.

Nick
SageIsland
Student Sheep
Posts: 19
Joined: Wed Jul 16, 2014 3:00 am

Re: After installation mail can't be sent to some domains

Wed Jul 23, 2014 7:29 am

I will do some testing now and see what I can come up with.

After further testing I found that it happens for all of the domains. I have 3 total servers running Imail. The server my email runs on has about 250 domains and the Imail server running MWES has around 275 domains. If I send an email from ANY domain on my server to any domain on the MWES server I get that response when MWES is running.

Just to make sure it wasn't just that server I put MWES on my 3rd Imail server which only has 2 domains. When MWES is running on that server I can't send mail to it any longer from my other 2 servers.

Let me see what I can come up with.
SageIsland
Student Sheep
Posts: 19
Joined: Wed Jul 16, 2014 3:00 am

Re: After installation mail can't be sent to some domains

Wed Jul 23, 2014 8:03 am

Ok, this is the email leaving my server. I have changed the domains names for safety.

07:22 15:44 SMTPD(b74a0002261e16c7) >>> 220 mail.domainname.com (IMail 11.5 2886-1) NT-ESMTP Server X1
07:22 15:44 SMTPD(b74a0002261e16c7) [66.235.108.12:25] connect 174.141.12.138 port 53655
07:22 15:44 SMTPD(f6e00002261c0b3d) >>> 250 Message queued
07:22 15:44 SMTPD(f6e00002261c0b3d) [24.106.211.10] E:\Imail\Spool\Df6e00002261c0b3d.SMD 18481
07:22 15:44 SMTPD(b74a0002261e16c7) <<< EHLO SageAdmin
07:22 15:44 SMTPD(b74a0002261e16c7) [174.141.12.138] EHLO SageAdmin
07:22 15:44 SMTPD(b74a0002261e16c7) >>> 250-mail.domainname.com says hello
07:22 15:44 SMTPD(b74a0002261e16c7) 250-SIZE 0
07:22 15:44 SMTPD(b74a0002261e16c7) 250-8BITMIME
07:22 15:44 SMTPD(b74a0002261e16c7) 250-DSN
07:22 15:44 SMTPD(b74a0002261e16c7) 250-ETRN
07:22 15:44 SMTPD(b74a0002261e16c7) 250-AUTH LOGIN CRAM-MD5
07:22 15:44 SMTPD(b74a0002261e16c7) 250-AUTH LOGIN
07:22 15:44 SMTPD(b74a0002261e16c7) 250 AUTH=LOGIN
07:22 15:44 SMTPD(b74a0002261e16c7) <<< AUTH LOGIN
07:22 15:44 SMTPD(b74a0002261e16c7) >>> 334 VXNlcm5hbWU6
07:22 15:44 SMTPD(b74a0002261e16c7) >>> 334 UGFzc3dvcmQ6
07:22 15:44 SMTPD(b74a0002261e16c7) >>> 235 authenticated
07:22 15:44 SMTPD(b74a0002261e16c7) Authenticated support@mail.domainname.com, session treated as local.
07:22 15:44 SMTPD(b74a0002261e16c7) Connection Check processing halted. Skip Spam set.
07:22 15:44 SMTPD(b74a0002261e16c7) <<< MAIL FROM: <support@domainname.com>
07:22 15:44 SMTPD(b74a0002261e16c7) [174.141.12.138] MAIL FROM: <support@domainname.com>
07:22 15:44 SMTPD(b74a0002261e16c7) >>> 250 ok
07:22 15:44 SMTPD(b74a0002261e16c7) <<< RCPT TO: <brandon@mwesServerdomain.com>
07:22 15:44 SMTPD(b74a0002261e16c7) [174.141.12.138] RCPT TO: <brandon@mwesServerdomain.com>
07:22 15:44 SMTPD(b74a0002261e16c7) [x] looking up mwesServerdomain.com in HOSTS
07:22 15:44 SMTPD(b74a0002261e16c7) >>> 250 ok its for <brandon@mwesServerdomain.com>
07:22 15:44 SMTPD(b74a0002261e16c7) <<< DATA
07:22 15:44 SMTPD(b74a0002261e16c7) >>> 354 ok, send it; end with <CRLF>.<CRLF>
07:22 15:44 SMTPD(b74a0002261e16c7) >>> 250 Message queued
07:22 15:44 SMTPD(b74a0002261e16c7) [174.141.12.138] E:\Imail\Spool\Db74a0002261e16c7.SMD 17366
07:22 15:44 SMTP-(b74a0002261e16c7) processing E:\Imail\Spool\qb74a0002261e16c7.smd
07:22 15:44 SMTP-(b74a0002261e16c7) Authed User support@
07:22 15:44 SMTP-(b74a0002261e16c7) sender <support@domainname.com>
07:22 15:44 SMTP-(b74a0002261e16c7) recip is <brandon@mwesServerdomain.com>
07:22 15:44 SMTP-(b74a0002261e16c7) [x] looking up mwesServerdomain.com in HOSTS and MX
07:22 15:44 SMTP-(b74a0002261e16c7) [x] looking up mwesServerdomain.com in HOSTS and MX
07:22 15:44 SMTP-(b74a0002261e16c7) closed E:\Imail\Spool\_b74a0002261e16c7.~md - 1
07:22 15:44 SMTP-(b74a0002261e16c7) R<brandon@mwesServerdomain.com> - 1
07:22 15:44 SMTP-(b74a0002261e16c7) [x] doing direct send mwesServerdomain.com
07:22 15:44 SMTP-(b74a0002261e16c7) Trying mwesServerdomain.com (0)
07:22 15:44 SMTP-(b74a0002261e16c7) Enumerating MX records for host mwesServerdomain.com
07:22 15:44 SMTP-(b74a0002261e16c7) Trying to connect to host 66.235.107.67
07:22 15:44 SMTP-(b74a0002261e16c7) Attempting to connect to host: 66.235.107.67
07:22 15:44 SMTP-(b74a0002261e16c7) Connecting socket to SMTP service on host <66.235.107.67> using tcp protocol.
07:22 15:44 SMTP-(b74a0002261e16c7) using source IP for mail.domainname.com [66.235.108.12]
07:22 15:44 SMTP-(b74a0002261e16c7) 220 fimail.domainname.com (IMail 11.5 34-1) NT-ESMTP Server X1 (MP)
07:22 15:44 SMTP-(b74a0002261e16c7) Verifying SSL settings for host 66.235.107.67
07:22 15:44 SMTP-(b74a0002261e16c7) >EHLO mail.domainname.com
07:22 15:44 SMTP-(b74a0002261e16c7) 250-fimail.domainname.com says hello
07:22 15:44 SMTP-(b74a0002261e16c7)
07:22 15:44 SMTP-(b74a0002261e16c7) >MAIL FROM:<support@domainname.com>
07:22 15:44 SMTP-(b74a0002261e16c7) 250-SIZE 0
07:22 15:44 SMTP-(b74a0002261e16c7) 250-8BITMIME
07:22 15:44 SMTP-(b74a0002261e16c7) 250-DSN
07:22 15:44 SMTP-(b74a0002261e16c7) 250-ETRN
07:22 15:44 SMTP-(b74a0002261e16c7) 250-AUTH LOGIN
07:22 15:44 SMTP-(b74a0002261e16c7) 250 AUTH=LOGIN
07:22 15:44 SMTP-(b74a0002261e16c7) >RCPT To:<brandon@mwesServerdomain.com>
07:22 15:44 SMTP-(b74a0002261e16c7) 250 ok
07:22 15:44 SMTP-(b74a0002261e16c7) >DATA
07:22 15:44 SMTP-(b74a0002261e16c7) 250 ok its for <brandon@mwesServerdomain.com>
07:22 15:44 SMTP-(b74a0002261e16c7) Unexpected DATA response from the SMTP server on mwesServerdomain.com: 250 ok its for <brandon@mwesServerdomain.com>
07:22 15:44 SMTP-(b74a0002261e16c7) SMTP_DELIV_FAILED
07:22 15:44 SMTP-(b74a0002261e16c7) >QUIT
07:22 15:44 SMTP-(b74a0002261e16c7) 354 Enter mail, end with "." on a line by itself
07:22 15:44 SMTP-(b74a0002261e16c7) [5836] closing socket (0)
07:22 15:44 SMTP-(b74a0002261e16c7) Creating message from Postmaster
07:22 15:44 SMTP-(b74a0002261e16c7) Delivery process now using new file: bf3000000c282b19
07:22 15:44 SMTP-(b74a0002261e16c7) finished E:\Imail\Spool\qb74a0002261e16c7.smd status=1

This is the message hitting the Imail server running MWES

07:22 15:44 SMTPD(375400000022002f) [66.235.96.34:26] connect 127.0.0.1 port 1330
07:22 15:44 SMTPD(375400000022002f) [127.0.0.1] EHLO mail.domainname.com
07:22 15:44 SMTPD(375400000022002f) Could not construct the HTTP query to the CTIPD Daemon. Reason: Unable to connect to the remote server
07:22 15:44 SMTPD(375400000022002f) Connection Check: IPReputation. Completed in 1.203125 seconds. Total elapsed for this session 1.203125 seconds.
07:22 15:44 SMTPD(375400000022002f) [127.0.0.1] MAIL FROM:<support@domainname.com>
07:22 15:44 SMTPD(375400000022002f) [127.0.0.1] RCPT To:<brandon@mwesServer.com>
07:22 15:44 SMTPD(375400000022002f) Processing QUIT

Does it seem like since both servers are running IMAIL it is trying to send the message a different way?
User avatar
nick.bolton
The Big Cheese
Posts: 2324
Joined: Thu Aug 28, 2008 4:02 pm

Re: After installation mail can't be sent to some domains

Wed Jul 23, 2014 3:47 pm

It clearly shows that IMail is not sending the end marker "."
Your idea that when IMail running on both servers sends the message differently, may be possible, we know MS Exchange does this type of thing. But it makes me wonder why we haven't come across this before, although it may be just relevant to this version of iMail - I think I'll ask in their forums.

The following would be the only place that id's itself (welcome message)
220 fimail.domainname.com (IMail 11.5 34-1) NT-ESMTP Server X1 (MP)

If IMail could be changed to be something else like this (remove the identifier) it may work.
220 fimail.domainname.com

Return to “Installation”