dotProject Forums
Google
 

Go Back   dotProject Forums > DOTPROJECT VERSION 2 > Installation Issues 2.x
Register FAQTop Posters Members List Calendar Search Today's Posts Resend Activation Email Mark Forums Read
dotProject Documentation dotProject FAQ Bugs & Feature Requests Language Packs & Themes Download dotProject

Installation Issues 2.x Please use this forum to raise any installation issues you may be experiencing. Use the search facility and check the FAQ's before asking your question please.

Reply
 
Thread Tools Display Modes
  #11  
Old 16-09-06, 03:40 AM
DotVince DotVince is offline
Valued Users
Frequent Visitor
dotProject Version:
php Version:
MySQL Version:
Operating System Version:
Browser:
 
Join Date: 24-10-04
Posts: 120
Default Re: SMTP 502 Error - Email Problem

We seem to have solved it.
Our IT department had to change the relay settings on the Exchange server, it turns out that relaying was only allowed for a set list of IP addresses.

I would still be interested to know if we can modify the config so that all DP generated emails come from a particular address.

Best wishes,

- Vince
__________________
Thank you
Reply With Quote
  #12  
Old 16-09-06, 04:43 AM
pedroa's Avatar
pedroa pedroa is offline
Valued Users
Utter Fanatic
dotProject Version:
php Version:
MySQL Version:
Operating System Version:
Browser:
 
Join Date: 18-01-05
Posts: 3,554
Default Re: SMTP 502 Error - Email Problem

Line 401 of classes/libmail.class.php

Code:
	$this->socketSend("HELO " . $this->getHostName());
I guess you can figure the rest out.

Pedro A.
__________________
Peace!!!
Reply With Quote
  #13  
Old 18-09-06, 08:55 PM
DotVince DotVince is offline
Valued Users
Frequent Visitor
dotProject Version:
php Version:
MySQL Version:
Operating System Version:
Browser:
 
Join Date: 24-10-04
Posts: 120
Default Re: SMTP 502 Error - Email Problem

Quote:
Originally Posted by pedroa
Line 401 of classes/libmail.class.php
Code:
	$this->socketSend("HELO " . $this->getHostName());
I guess you can figure the rest out.
Pedro A.
Thanks Pedroa, but I'm not a coder - just copy and paster

- Vince
__________________
Thank you
Reply With Quote
  #14  
Old 19-09-06, 12:25 AM
pedroa's Avatar
pedroa pedroa is offline
Valued Users
Utter Fanatic
dotProject Version:
php Version:
MySQL Version:
Operating System Version:
Browser:
 
Join Date: 18-01-05
Posts: 3,554
Default Re: SMTP 502 Error - Email Problem

Code:
$this->socketSend("HELO [XXX.XXX.XXX.XXX]");
Sorry man but I just don't know what IP you let me put there on the XXX.XXX.XXX.XXX, so ask your IT department. Oh, don't forget, the brackets should be there too.

Pedro A.
__________________
Peace!!!
Reply With Quote
  #15  
Old 19-09-06, 04:42 AM
DotVince DotVince is offline
Valued Users
Frequent Visitor
dotProject Version:
php Version:
MySQL Version:
Operating System Version:
Browser:
 
Join Date: 24-10-04
Posts: 120
Default Re: SMTP 502 Error - Email Problem

Update, in case useful to others:

1) Change line 401 from:

$this->socketSend("HELO " . $this->getHostName());

to:

$this->socketSend("HELO " . "[internal Exchange server IP number]");

2) Change line 426 from:

$rcv = $this->socketSend("MAIL FROM: <$from>");

to:

$rcv = $this->socketSend("MAIL FROM: <projects@ourdomain.com>");

3) Change line 160 from:

$this->xheaders['From'] = $from;

to:

$this->xheaders['From'] = "projects@ourdomain.com";

And that apparently does the trick. Anything we missed?
Thanks for your guidance.

May I suggest that DP should have an admin option to do this so as to avoid the issues with 'spoofing' external email addresses?

Best wishes,

- Vince
__________________
Thank you
Reply With Quote
  #16  
Old 02-11-07, 02:09 AM
gingerbloke gingerbloke is offline
Junior Member
New Participant
dotProject Version:
php Version:
MySQL Version:
Operating System Version:
Browser:
 
Join Date: 02-11-07
Posts: 1
Default Re: SMTP 502 Error - Email Problem

Great. That fixed my problem with SMTP auth.

I think my hastily set up server is misconfigured somewhere and as a result any dp emails appeared to be coming from a different (local) domain (my email is hosted with an ISP different to the one I use for access and different to the dp server installation).

Anyhow, I was getting a message 500 back from my ISP complaining about mail address appearing to come from a different domain. No complaints now.

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +10. The time now is 10:47 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.