I would try against a different email server to see if that works better – I still can’t create that problem here and so I’m thinking it’s a reaction to your mail server.
Hi,
I’m getting the same error NSRange Expception***-{NSCFString substringToIndex:]: with the sendmail script.
Our mail server was changed to an new address and now also uses Microsoft Exchange 2010. Our IT guy is having trouble figuring out the issue.
Do you have any suggestions?
Thanks,
Nicole
The IT admin did configure the SMTP correctly. Can you be more specific about your recommendation? I am able to receive mail on the eggplant mac but not send it out.
Do you know if there is a problem between Microsoft exchange 2010 and eggplant?
I know that MS 2010 can be properly configured to allow mail access but other have also reported difficulty getting it to work.
The mail communication in eggPlant relies on basic SMTP access. That means that it can’t be encrypted and by default needs to run on port 25. If it’s on a different port you can configure that using an optional SMTP_PORT value in your sendmail command.
You might try doing the following test from the Mac to make sure that you can indeed connect to the SMTP port and send a mail message:
Thanks for your help. The SMTP port on exchange 2010 is 587 instead of the normal 25. Once IT made this change on my MAC Mail along with ssl, it worked. I also had to specify smtp_port: 587 in the sendmail script.