Author |
|
lebinson Newbie
Joined: 24 October 2010 Location: Israel
Online Status: Offline Posts: 8
|
Posted: 24 October 2010 at 11:28pm | IP Logged
|
|
|
Hi,
Recently we download MailBee Objects ActiveX component. We implement MMQ mechanism for sending the mails to our customers.
Problem: Messages form Queue are sent in very selective way. We did not manage to identify the pattern when messsage is not send. SMTP log shows 250 and 501 codes almost in same frequency (once succeded once not).
Users from our domain DO recieve mails properly, but from outside domains DOESN'T, also not all outer domains are problematic. We do manage to send to hotmail.com, to inter.net.il and few others.
In our implementation we send message to only ONE customer (I see that this is important)
Do you have any suggestions how we can resolve this issue?
Many thanks for your help.
|
Back to Top |
|
|
lebinson Newbie
Joined: 24 October 2010 Location: Israel
Online Status: Offline Posts: 8
|
Posted: 24 October 2010 at 11:50pm | IP Logged
|
|
|
Here is the detaild log as a result of sending such "BAD" message:
08:47:04 of thread #149c. Connecting to server...
08:47:04 of thread #149c. Connected to server
08:47:04 of thread #149c. Sending message from file 9b766146-3787-4596-8649e42ff8d83f45.eml
08:47:04 of thread #149c. Reading message file
08:47:04 of thread #149c. Sending MAIL FROM command
08:47:04 of thread #149c. Sending RCPT TO command
08:47:04 of thread #149c. ERROR - Recipient is not accepted
08:47:04 of thread #149c. Server reports: [501 5.5.4 Invalid Address]
08:47:04 of thread #149c. ERROR - The message has not been sent because server rejected it for some reason
08:47:04 of thread #149c. Renaming the problem message into C:\Mailbee\MMQ Files\9b766146-3787-4596-8649e42ff8d83f45.bad
08:47:04 of thread #149c. No more messages
08:47:04 of thread #149c. Disconnecting from server...
08:47:04 of thread #149c. Disconnected from server
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6107
|
Posted: 25 October 2010 at 12:54am | IP Logged
|
|
|
What if you send mails from the same machine with same credentials, but without MMQ so that only MailBee Objects is used directly? By the sound of things, this looks like the mail server level problem (e.g. due to relaying denied).
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
lebinson Newbie
Joined: 24 October 2010 Location: Israel
Online Status: Offline Posts: 8
|
Posted: 25 October 2010 at 10:10am | IP Logged
|
|
|
Dear Igor,
I want to empahsize, that we DO manage to send mails by using MMQ, but not to ALL our customers, to be more precise only to few of them. In regular basis we send ~5000 mails per "mailing session"
In addtion I want to add some technical info:
1. We are using 2003 Server
2. IIS 6.0 with Default SMTP virtual server
Can you point as a bit more, what we should looking for?
Best regards,
Alex Lebinson, Senior Product Development Manager
|
Back to Top |
|
|
lebinson Newbie
Joined: 24 October 2010 Location: Israel
Online Status: Offline Posts: 8
|
Posted: 25 October 2010 at 11:27pm | IP Logged
|
|
|
Dear Igor,
We do perform test as you advised (send the message without using MMQ)
Message is SEND!!!
In addition we check the "Relaying", it's defined for list of IP(s):
several IPs
server IP
localhost
127.0.0.1
Also we run Microsoft SMTPDiag tool for that "BAD" address. This test also show success statuses in each send mail step.
So, in this way, it leaves us with problem on OUR SMTP service configuration or YOURS MMQ behavior.
Please advise what should be our next step for making MMQ work as desired.
Best regards,
Alex Lebinson, Senior Product Development Manager
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6107
|
Posted: 26 October 2010 at 2:06am | IP Logged
|
|
|
OK, let's clear this. You have used MailBee Objects to send mail from the same machine with exactly the same credentials as those used with MMQ, right? I need a confirmation that the same SMTP credentials, same machine, same sender and recipient work without MMQ but do not work with it.
--
Regards,
Igor, AfterLogic Support.
|
Back to Top |
|
|
lebinson Newbie
Joined: 24 October 2010 Location: Israel
Online Status: Offline Posts: 8
|
Posted: 26 October 2010 at 3:52am | IP Logged
|
|
|
Hi Igor,
You wrote:
same machine with exactly the same credentials as those used with MMQ, right?
RIGHT!!!
It looks like we found the reason of such strange behavior.
We send mails when pattern of TO recipient has been:
[First Name] [Last Name] <e-mail>
When I change it to be a e-mail ONLY, things start to work with MMQ.
Now my question is what pattern fot TO recipient we should use, in order to preserve functionality of "user display name" ?
|
Back to Top |
|
|
murati Newbie
Joined: 31 October 2010
Online Status: Offline Posts: 3
|
Posted: 31 October 2010 at 7:54am | IP Logged
|
|
|
I'm having the same problem if I set FromName.
Code:
15:45:58 of thread #15d4. Sending MAIL FROM command
15:45:58 of thread #15d4. ERROR - Sender "Some Name" <my@email.com> is not
accepted
15:45:58 of thread #15d4. Server reports: [501 <"Some Name" <my@email.com>>: "@"
or "." expected after ""Some Name""]
15:45:58 of thread #15d4. ERROR - The message has not been sent because server
rejected it for some reason
|
|
|
It seems that you are using wrong wrapping. It should be:
Code:
"Some Name" <my@email.com>
|
|
|
and not
Code:
<"Some Name" <my@email.com>>
|
|
|
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6107
|
Posted: 01 November 2010 at 6:34am | IP Logged
|
|
|
In order to submit messages to MMQ pickup folder, do you use SendToQueueEx or just SendToQueue method? We need to know if you override sender or recipient info within SendToQueueEx method itself.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
murati Newbie
Joined: 31 October 2010
Online Status: Offline Posts: 3
|
Posted: 01 November 2010 at 7:49am | IP Logged
|
|
|
I'm generating .eml file. Here is a raw header from file:
Code:
X-Sender: "Some Name" <my@email.com>
X-Receiver: some@email.com
MIME-Version: 1.0
From: "Some Name" <my@email.com>
To: some@email.com
Date: 1 Nov 2010 15:43:17 +0100
Subject: Testing
Content-Type: multipart/alternative;
boundary=--boundary_0_468af7dd-4c0f-40ac-a267-f63b5c4f5b1f
|
|
|
Did I do something wrong?
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 01 November 2010 at 11:52am | IP Logged
|
|
|
X-Sender must be something like <my@email.com> or just my@email.com. X-Sender must contain only an email address, not any friendly names.
Regards,
Alex
|
Back to Top |
|
|
murati Newbie
Joined: 31 October 2010
Online Status: Offline Posts: 3
|
Posted: 01 November 2010 at 3:50pm | IP Logged
|
|
|
Thanks! Now it's working for me.
|
Back to Top |
|
|
p3rocro Newbie
Joined: 02 November 2010
Online Status: Offline Posts: 2
|
Posted: 02 November 2010 at 6:13am | IP Logged
|
|
|
thanks, that resolved my problem
|
Back to Top |
|
|
lebinson Newbie
Joined: 24 October 2010 Location: Israel
Online Status: Offline Posts: 8
|
Posted: 03 November 2010 at 10:51pm | IP Logged
|
|
|
Hi Igor/Alex,
Thanks for the tip how to wrap mail reciepient friendly name.
It start to work in our implementation, user full name wrapped with quotes
Here is our final code (in classic ASP):
sTo = objEMail.Message.ToUTF8("""" & flFirstName & " " & flLastName & """ <" & flEmail & ">")
sTo =objEMail.Message.EncodeHeaderText("To", sTo, "UTF-8", 3)
objEMail.Message.ToAddr = sTo
Thanks for your help.
|
Back to Top |
|
|