Network admins help please - problem sending email from a script.

I have a script located on one of our server. the script sends a zipfile in an email.

It works internally (if I send it to myself I get it) but external emails don’t get it.
Any ideas what I can check out?

I’ve spoken to our own IT manager but he’s very busy so I thought I’d consult the dope in the mean time.

need any more detail just ask>

What path does email follow to get to the outside world? Does this server have access to the internet? Or an SMTP relay somewhere? If it’s the latter, is the SMTP server set up to allow relaying from your server?

I believe the email goes via an email server (which is a different server) so I guess that’s an ‘SMTP relay’?
It should be set up to allow relaying. I’ll pass these on to my ITM if we don’t get any further.

My IT Manager is asking if I can have the email sent from ‘localhost’ (the local server) instead of having it relayed via the mail server. How would I do that in this method of emailing.
Here is the code (with sensitive information changed)


Set objMessage = CreateObject("CDO.Message") 
objMessage.Subject = "test" 
objMessage.From = "blah@blah.com" 
objMessage.To = "123@456.com;789@101112.com" 
objMessage.TextBody = "This is an automated email"
objMessage.AddAttachment Zipfile
objMessage.Send 

Got it sorted now… it needed extra code…


objMessage.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 
objMessage.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "(our mail server)"
objMessage.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 
objMessage.Configuration.Fields.Update


Can you send the zipfile from your personal email to an external recipient? It’s not exactly unheard of for corporate systems to be set to not send out certain types of files. Our system, for example, will allow zip files out only if they are not password-protected. (The anti-virus and content-management systems must be able to read the contents) Also, file size is an issue - we have a universal limit of something like 2 MB outbound, regardless of what kind of file it is.

Does your script send mail OK without files? It’s possible that you’re flinging mail at the wrong server entirely and it’s being silently dropped. On our system, automated or system-generated emails have to be sent to a “ring” of load-balanced Exchange servers - there’s not a specific server that can be used - with an internal “community” address of something like outbound.mail@thiscompany.com.

Another policy thing that might be killing the message is if your recipients are all being blind-copied. Our system will kill any email that does not have at least one visible to: or cc: recipient.
eta: nevermind… it sounds like you’ve found the problem, and that your company’s systems are perhaps not as tightly controlled as ours.

gotpasswords thanks anyway :slight_smile:

Our system does block password-protected zips for the reason you mention. for that reason I send the zip un-password-protected.

Unsecure I know… But at least we don’t lose whole hard disks of customer’s details like many other companies this side of the pond :smiley: