1 of 2
1
Email Sending Not Working
Posted: 25 June 2009 11:15 AM   [ Ignore ]  
Lab Assistant
RankRank
Total Posts:  145
Joined  03-09-2009

This question may be related to a resolved thread.

Hey all, I also have an issue trying to send email. I am no server admin whiz, so bear with me. Some notes:
- we have the webserver here locally, so I have easy access to anything admin related
- exchange 2007 is also on same server and works fine, also through outlook web access using the domain the site is also hosted on

Everytime i try to send an email using the communicate tab, I get a 500 error. I tried smtp using localhost in the php.ini file and entering the correct info into EE for it to take.

I am getting a 500 internal server error for both smtp and PHP mail.

any suggestions or things I am missing?

Thanks!

-Ryan

Moved to General by Moderator

Profile
 
 
Posted: 25 June 2009 12:38 PM   [ Ignore ]   [ # 1 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  29018
Joined  05-15-2004

What version and build of EE are you using? What server are you using? What OS? If it throws a 500 error (which are quite difficult to troubleshoot) there should be a corresponding logfile entry, can you check that?

To me it sounds like an incorrectly configured local mail server; if that’s the case, this is probably not something that we can offer much support for…

 Signature 

ExpressionEngine 2.0 Downloads | Docs | Bugtracker

“If the English language made any sense, lackadaisical would have something to do with a shortage of flowers.” (Doug Larson)

Profile
MSG
 
 
Posted: 25 June 2009 01:06 PM   [ Ignore ]   [ # 2 ]  
Lab Assistant
RankRank
Total Posts:  145
Joined  03-09-2009

Build:  20090320

Windows server2008
exchange 2007
iis 7
with PHP Version 5.2.9-2

Profile
 
 
Posted: 25 June 2009 01:07 PM   [ Ignore ]   [ # 3 ]  
Lab Assistant
RankRank
Total Posts:  145
Joined  03-09-2009

is there some module i need to have in PHP or somewhere I can check?

Profile
 
 
Posted: 25 June 2009 01:25 PM   [ Ignore ]   [ # 4 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  29018
Joined  05-15-2004

I don’t even know if Exchange can function as a standards-compliant SMTP server? But, as I’ve said, the log entry from your error log should at least give us an idea.

No module that I am aware of, but a mail server.

 Signature 

ExpressionEngine 2.0 Downloads | Docs | Bugtracker

“If the English language made any sense, lackadaisical would have something to do with a shortage of flowers.” (Doug Larson)

Profile
MSG
 
 
Posted: 25 June 2009 01:28 PM   [ Ignore ]   [ # 5 ]  
Lab Assistant
RankRank
Total Posts:  145
Joined  03-09-2009

where is the error log located?

Profile
 
 
Posted: 25 June 2009 01:35 PM   [ Ignore ]   [ # 6 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  29018
Joined  05-15-2004

Try %systemdrive%\inetpub\logs\ That said this is really not something that we can assist you with, I am afraid.

 Signature 

ExpressionEngine 2.0 Downloads | Docs | Bugtracker

“If the English language made any sense, lackadaisical would have something to do with a shortage of flowers.” (Doug Larson)

Profile
MSG
 
 
Posted: 26 June 2009 11:09 AM   [ Ignore ]   [ # 7 ]  
Lab Assistant
RankRank
Total Posts:  145
Joined  03-09-2009

poop. I’m going to have to do some serious digging. I hate system admin… :{

Profile
 
 
Posted: 26 June 2009 12:18 PM   [ Ignore ]   [ # 8 ]  
Moderator
Avatar
RankRankRankRankRankRankRank
Total Posts:  20854
Joined  04-29-2002

Would you like me to move this thread to the General forum for additional community support?

 Signature 

EE 2.01PB - 2.x Bug Tracker | Docs | Upgrade from 1.x to 2.x | Build Update Instructions | 1.6.x Update Info

Most recent 2.x version: Build 20100215
Don’t forget to upgrade MSM and Forum as needed!

Profile
MSG
 
 
Posted: 26 June 2009 01:39 PM   [ Ignore ]   [ # 9 ]  
Lab Assistant
RankRank
Total Posts:  145
Joined  03-09-2009

that would be great, thank you.

-Ryan

Profile
 
 
Posted: 09 July 2009 08:56 AM   [ Ignore ]   [ # 10 ]  
Lab Assistant
RankRank
Total Posts:  145
Joined  03-09-2009

anyone else have experience with IIS7 and getting the email part working?

Thanks!

-Ryan

Profile
 
 
Posted: 09 July 2009 09:22 AM   [ Ignore ]   [ # 11 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1714
Joined  02-28-2008

Is the exchange 2k7 or the win box with IIS and SMTP that is in charge of sending email?
I hope this is not one machine.

Profile
 
 
Posted: 09 July 2009 01:37 PM   [ Ignore ]   [ # 12 ]  
Lab Assistant
RankRank
Total Posts:  145
Joined  03-09-2009

I do not have an SMTP server running on it. It is an exchange box and web server. ( exchange only has 4 users). Exchange is managing the regular mail now and it sends email fine.

I would prefer to just use the php mail built in to EE, but I don’t know what I need to have on IIS to make it work.

Does that make sense?

Profile
 
 
Posted: 09 July 2009 02:02 PM   [ Ignore ]   [ # 13 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1714
Joined  02-28-2008

Actually you do if you are running exchange. Word of caution on this box…I would separate the IIS from the back end exchange…if you can!

I believe that initial issues linked to something close to this also double check SMTP = localhost and enter the full DNS name or IP. Which points back to SMTP…which is the SMTP of your exchange.
It can possibly be set incorrectly. Check your outbound security and access control/authentication that anonymous user has rights. Enable logging on SMTP protocol and look for the log in C:\WINDOWS\System32\LogFiles… it should give some more info if SMTP server is even trying to process mail.
screen for 2k3.

Image Attachments
E2k3.jpg
Click thumbnail to see full-size image
Profile
 
 
Posted: 10 July 2009 06:58 AM   [ Ignore ]   [ # 14 ]  
Lab Assistant
RankRank
Total Posts:  145
Joined  03-09-2009

I checked the file. SMTP = localhost port 25 and sendmail from is a valid, working email address on the server.

Profile
 
 
Posted: 10 July 2009 07:10 AM   [ Ignore ]   [ # 15 ]  
Lab Assistant
RankRank
Total Posts:  145
Joined  03-09-2009

also, my exchange is totally different that what you show. I can’t find anything. attached are screens

Image Attachments
3.jpg
Click thumbnail to see full-size image
Profile
 
 
Posted: 10 July 2009 09:14 AM   [ Ignore ]   [ # 16 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1714
Joined  02-28-2008

Right - note the above is for E2k3, here is how on E2k7...then we need to look at the logs and see what is going on.

Profile
 
 
Posted: 10 July 2009 10:37 AM   [ Ignore ]   [ # 17 ]  
Lab Assistant
RankRank
Total Posts:  145
Joined  03-09-2009

u made the proper changes to verbose logging and tried to run some emails and also tried with EE. regular exchange emails (also to outside world) work fine, but EE still gets a 500 error from IIS when using communicate.

Also, I get no log files appearing in the default SMTPreceive and SMTPsend folders…

EDIT: BTW thanks for assisting me with this

Profile
 
 
Posted: 10 July 2009 11:05 AM   [ Ignore ]   [ # 18 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1714
Joined  02-28-2008

OK then lets put SMTP and Exchange on side since it is not even making its execution to smtp.
...500 errors are hard to track unless looking at all of the server.
Try this. It sounds like IIS settings (I suspect something to do with authentication) so now focus on logging IIS and see what is going on. Sorry I don’t have my hands on 2k7 server.

Profile
 
 
   
1 of 2
1
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1743, on December 02, 2009 02:47 PM
Total Registered Members: 119595 Total Logged-in Users: 98
Total Topics: 125822 Total Anonymous Users: 57
Total Replies: 662080 Total Guests: 473
Total Posts: 787902    
Members ( View Memberlist )