OL2007: Undeliverable message (too many recepients)

S

Sergei

OL2007 on Vista with POP3/SMTP account: message to about 10 or more
recipients isn't sent, returned message from 'System Administrator' with
'Undeliverable' in subject and 'The following recipient(s) cannot be
reached: xxxxxxxxxx 500 One or more mail data lines were too long' in the
body.

OL2003 on WinXPSP2 with exactly the same account and message works fine. Any
idea how to remove restriction?

Thank you,
Sergei
 
B

Brian Tillman

Sergei said:
OL2007 on Vista with POP3/SMTP account: message to about 10 or more
recipients isn't sent, returned message from 'System Administrator'
with 'Undeliverable' in subject and 'The following recipient(s)
cannot be reached: xxxxxxxxxx 500 One or more mail data lines were
too long' in the body.

OL2003 on WinXPSP2 with exactly the same account and message works
fine. Any idea how to remove restriction?

The 500 message is a message from your server. The account has nothing to
do with it. The number of recipients and the length of the SMTP command
lines do. Enable diagnostic logging and see how long the line is that
Outlook is sending. According the the RFC for SMTP messages, a server
should accept RCPT TO lines that are 512 characters long and current SMTP
servers often support 1024 characters. Additionally, the original RFC for
SMTP mail says that servers must accept 100 recipients. Now, SMTP clients,
if you specify a long list of recipients, is supposed to break the list into
RCPT TO lines that are no longer that 512 characters and send multiple RCPT
TO commands if needed. Perhaps Outlook 2007 isn't doing that while Outlook
2003 is. The diagnostic log should show that.
http://support.microsoft.com/kb/831053/en-us
 
S

Sergei

Hi Brian,

Thank you, you are right. So far didn't solve the issue, but at least know
where to dig. OL2007 log file shows several

2007.06.05 17:06:14 SMTP (smtp.xxx): [tx] RCPT TO: <*****>
2007.06.05 17:06:14 SMTP (smtp.xxx): <rx> 250 <*****> OK

ending by

2007.06.05 17:06:14 SMTP (smtp.xxx): [tx] DATA
2007.06.05 17:06:14 SMTP (smtp.xxx): <rx> 354 OK, send mail data next; end
with <CRLF>.<CRLF>
==========================================
2007.06.05 17:06:14 SMTP (smtp.xxx): [tx]
2007.06.05 17:06:14 SMTP (smtp.xxx): <rx> 500 One or more mail data lines
were too long

Anyway, will try to sort this out with our mail server administrator.

Thank you,
Sergei
 
B

Brian Tillman

Sergei said:
Thank you, you are right. So far didn't solve the issue, but at least
know where to dig. OL2007 log file shows several ....snip...
2007.06.05 17:06:14 SMTP (smtp.xxx): <rx> 500 One or more mail data
lines were too long

This, too, is governed by RFC. Servers are supposed to accept body lines
that are 1000 characters. Outlook should, however, be splitting the lines
at a value you specify, using quoted-printable MIME encoding to wrap lines
longer than that.
 
S

Sergei

Brian Tillman said:
This, too, is governed by RFC. Servers are supposed to accept body lines
that are 1000 characters. Outlook should, however, be splitting the lines
at a value you specify, using quoted-printable MIME encoding to wrap lines
longer than that.

The body is empty. More exactly the case is: VBA script within Excel sends
practically the same Excel file as attachment (with minor modifications) to
different groups of people (from 1 to 30 addresses within each group), 'To:'
field is built from Active Directory contacts addresses. Nothing is in the
body. Thus the only difference is how many addresses in 'To:' field. With
few it works fine. The same is if to repeat above manually.

Sergei
 
S

Sergei

Then try mail merge.....

Since that is generated programmatically I'll find the workaround in any
case, just first want to try sort this out on administrative level
 
B

Brian Tillman

Sergei said:
The body is empty. More exactly the case is: VBA script within Excel
sends practically the same Excel file as attachment (with minor
modifications) to different groups of people (from 1 to 30 addresses
within each group), 'To:' field is built from Active Directory
contacts addresses. Nothing is in the body. Thus the only difference
is how many addresses in 'To:' field. With few it works fine. The
same is if to repeat above manually.

So, you're formatting the message via script in Excel. I'd examine the
script.
 
S

Sergei

So, you're formatting the message via script in Excel. I'd examine the
This is the part:
=====
Dim strSendTo As String

strSendTo = oSheet.Distribution.Record(nDepartment).SendTO
If InStr(strSendTo, "@") = 0 Then
strSendTo = sbCollectAddressesFromActiveDirectory(strSendTo)
End If

'--------
Set objOutlook = CreateObject("Outlook.Application")
Set objMail = objOutlook.CreateItem(OLMailItem)

With objMail
.To = strSendTo
.CC = oSheet.Distribution.Record(nDepartment).CC
.Subject = oSheet.Distribution.Record(nDepartment).Subject
.Attachments.Add oSheet.Path & "\" & strWorkbookName
.Send
End With
End Sub

=====
Function sbCollectAddressesFromActiveDirectory(strDepartment As String) As
String

strTargetOU = glblconstActiveDirectoryUsersPath
strResult = ""

Set oTargetOU = GetObject(strTargetOU)
oTargetOU.Filter = Array("user")


For Each usr In oTargetOU

On Error Resume Next
If InStr(usr.SamAccountName, "$") = 0 Then
vDepartment = usr.Get("Department")
If InStr(usr.Department, strDepartment) > 0 Then
strResult = strResult & usr.Get("mail") & ";"
End If

End If
Next

sbCollectAddressesFromActiveDirectory = strResult

End Function
=====
Sergei
 
S

Sergei

Outlook is sending. According the the RFC for SMTP messages, a server
should accept RCPT TO lines that are 512 characters long and current SMTP
servers often support 1024 characters. Additionally, the original RFC for
SMTP mail says that servers must accept 100 recipients. Now, SMTP
clients, if you specify a long list of recipients, is supposed to break
the list into RCPT TO lines that are no longer that 512 characters and
send multiple RCPT TO commands if needed. Perhaps Outlook 2007 isn't
doing that while Outlook 2003 is. The diagnostic log should show that.
http://support.microsoft.com/kb/831053/en-us

So far I'm not sure, but it looks like OL2007 has different compare to other
mail clients behavior working with POP3/SMTP. Maybe more close to standards,
maybe not, I don't know - but different.
We played with 2 SMTP servers. OL2007 sends multiply RCPT commands. On both
servers line length and number of recipients settings were sent with big gap
compare to what we actually need. Messages still don't go through one
server, however that is actually anti-virus gateway with hundreds of
setting, perhaps it is not configured properly. With second one -
traditional Sendmail - OL2007 works but for some messages talk to server for
minutes before message goes.
Will check mail logs, perhaps it'll be more clear...
 
A

Archie

hi, I am also encountering this kind of problem. I've been able to send
message before but now there will be a reply undeliverable: subject...then
"The following recipient(s) could not be reached:"....Relaying denied. IP
name lookup failed [121.1.58.62]
Can you tell me whats the problem is? Is the problem cause by my outlook (i
am using MSoutlook 2003 winXP SP@) or by my ISP?
 
S

Sergei

My guess that's most probably on ISP side.

Sergei

Archie said:
hi, I am also encountering this kind of problem. I've been able to send
message before but now there will be a reply undeliverable: subject...then
"The following recipient(s) could not be reached:"....Relaying denied. IP
name lookup failed [121.1.58.62]
Can you tell me whats the problem is? Is the problem cause by my outlook
(i
am using MSoutlook 2003 winXP SP@) or by my ISP?
Brian Tillman said:
The 500 message is a message from your server. The account has nothing
to
do with it. The number of recipients and the length of the SMTP command
lines do. Enable diagnostic logging and see how long the line is that
Outlook is sending. According the the RFC for SMTP messages, a server
should accept RCPT TO lines that are 512 characters long and current SMTP
servers often support 1024 characters. Additionally, the original RFC
for
SMTP mail says that servers must accept 100 recipients. Now, SMTP
clients,
if you specify a long list of recipients, is supposed to break the list
into
RCPT TO lines that are no longer that 512 characters and send multiple
RCPT
TO commands if needed. Perhaps Outlook 2007 isn't doing that while
Outlook
2003 is. The diagnostic log should show that.
http://support.microsoft.com/kb/831053/en-us
 
B

Brian Tillman

Sergei said:
This is the part:

This isn't a programming group. Post in
microsoft.public.outlook.program_vba or
microsoft.public.outlook.program_addins
 
B

Brian Tillman

Archie said:
hi, I am also encountering this kind of problem. I've been able to
send message before but now there will be a reply undeliverable:
subject...then "The following recipient(s) could not be
reached:"....Relaying denied. IP name lookup failed [121.1.58.62]
Can you tell me whats the problem is? Is the problem cause by my
outlook (i am using MSoutlook 2003 winXP SP@) or by my ISP?

Not the same problem at all. You're not properly authenticating to the
outgoing server.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top