Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I am running a software program that uses SMTP to email information. I can email the information to people within my company, but when I try to email via SMTP to someone outside of the company, I receive the following error:

 

The size of the attachment exceeds the size of the size that your smtp server is willing to accept.-Error in cSmtp.Send.SendMessage:(sending message) Could not access 'CDO.Message" object.

 

Apparently this is a generic message and my IT person says it has to do with

authentication issue. He tried setting the SMTP settings to the IP address of the Exchange server as well as the NETBIOS and DNS names without luck.

Anything outside of the local domain, the server is seeing as an attempted relay attempt. In other words, it appears that exchange is seeing these messages as an attempt by a Spammer or other server to relay messages through the Exchange server which exchange is set to block.

 

I appreciate any feedback.

Thanks,

Megan

Posted

You can prove this using telnet

 

from the cmd prompt type telnet <smtp ip> 25 this will then allow you to send commands directly to the smtp server.

 

Type the following in same case as below

 

HELO

server will respond .. 250 welcome ...

MAIL FROM: <your from email address>

server will respond .. 250 sender ok ...

RCPT TO: <your to email address>

 

The server should either respond with a 250 command which is the rcpt is accepted or another number like 550 where there is a relay problem.

 

Hope this helps

 

Andy

Code today gone tomorrow!
Posted

Andy, thanks for getting back to me....

 

In the event that a 550 is coming back, what would the next step be. I will be passing this on to my IT guy and don't need a headache from him when he asks me what to do next :)

Posted

If your getting 550 then the recepient is being rejected if your using exchange as you smtp relay then he need to edit the SMTP relay rules by

 

Opening Exchange System Manager

 

Expand Admistration Groups

 

Expand First Administration Group

 

Expand Servers

 

Expand you current exchange server

 

Expand Protocols

 

Expand SMTP

 

Right click on Default SMTP Virtual Sevrer and select properties

 

Click on the Access Tab then click on the Relay button

 

Click Add and add in the IP address of the PC sending the emails

 

Click Ok, Ok Ok

 

and your done exchange is setup for allowing relays from the IP sending the emails. if it IIS let me know and ill post the instructions for that.

 

Regards

 

Andy

Code today gone tomorrow!
Posted

Ok......what next?

 

Andy.....thanks for your help.

 

I had sent the information to my IT guy. He ran the smtp test and everything passed. He did not get the 550 you mentioned below. I tried to send my email and am still having the same issue...I can send an email to anyone in my company, however, still cannot successfully send an email via smtp to anyone outside of my company. Any suggestions?

 

Megan

 

If your getting 550 then the recepient is being rejected if your using exchange as you smtp relay then he need to edit the SMTP relay rules by

 

Opening Exchange System Manager

 

Expand Admistration Groups

 

Expand First Administration Group

 

Expand Servers

 

Expand you current exchange server

 

Expand Protocols

 

Expand SMTP

 

Right click on Default SMTP Virtual Sevrer and select properties

 

Click on the Access Tab then click on the Relay button

 

Click Add and add in the IP address of the PC sending the emails

 

Click Ok, Ok Ok

 

and your done exchange is setup for allowing relays from the IP sending the emails. if it IIS let me know and ill post the instructions for that.

 

Regards

 

Andy

Posted
This might be a silly question but, who are you sending the email as? From what you described it sounds like your program really is trying to relay through your server to other people which sould be dissallowed by the mail server. To send mail through the server you have to be a user of the server and if, for some reason you aren't, then it will be treated as a relay and rightfully rejected.
Posted

Maybe you need to send login credentials? Though my method should allow you to send from you PC as what you saying is Exchange knows you IP is a relay, the above method works fine at my company and I did it in exactly the same manner as described above. But as mskeel states maybe you have a policy proventing the SMTP relaying for unknow sender addresses may be worth asking your IT guy?

 

Andy

Code today gone tomorrow!
Posted
maybe you have a policy proventing the SMTP relaying for unknow sender addresses
Right...such as pop before SMTP or requiring SMTP authorization if you are not sending from directly on the mail server. Protocols used to verify the identity and authorization of a user to actually use the mail server to send mail.

 

Your IT guy can tell your for sure, but what are your settings in your email client? If you use Outlook, under tools->Email Accoutns->"View or change" radio button/Next-> Change...->"More Settings" Button->"Outgoing Server" tab.... do you have "My outgoing server requires authentication" ? If you have either of the 2 top radios clicked ("use same settings as my incoming mail server" or "Lon on using...") you require SMTP Authorization to send mail. If you have the last one clicked "Log on to incoming mail server before sending mail" you need to do a pop-before-smtp. That means you have to log on to the pop server before you are allowed to send (it's kind of a hack becuase of security holes in default smtp = open relays)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...