PDA

View Full Version : No e-mail notifications


RodrigoDC
09-02-08, 03:31 AM
OK, this is odd. I just installed v. 2.1.1 and I am unable to receive any e-mail notifications whenever a new project, task or user is added. Interestingly, I can receive new passwords whenever the user forgets his/hers.

All users have valid e-mail addresses, and I have even used some e-mail accounts that I control (i.e., are within my server) so this way I can discard the possibility of an anti-spam filter blocking the messages.

All users have Email Assignees, Email Task Contacts and Email Project Contacts checked.

I have also tested using two system config options:

Email Transport: PHP default (which I assume is sendmail)
SMTP Host: localhost
SMTP Port: 25
Host requires login: NOT checked
SMTP Username: blank
SMTP Password: blank
Queue Email for later sending: NOT checked
SMTP Server Timeout: 30

Email Transport: SMTP
SMTP Host: mail.mydomain.org
SMTP Port: 25
Host requires login: checked
SMTP Username: myaddress@mydomain.org
SMTP Password: mypassword
Queue Email for later sending: NOT checked
SMTP Server Timeout: 30

Nothing seems to work. If you can point me in the right direction I would really appreciate it. Please let me know if you need any info from my server or my installation.

Thanks!

jbetts80
09-02-08, 04:51 AM
I have the same problem and I need to know as soon as possible.

ajdonnison
09-02-08, 09:47 AM
Make sure you have the libmail.class.php file from http://bugs.dotproject.net/view.php?id=2249 as this fixes a number of issues with email.

RodrigoDC
10-02-08, 01:46 AM
So, should I replace the said file for the one that came with the installation package within /classes/ directory?

If the new libmail.class.php file fixes some bugs, wouldn't it make sense to replace it on current install packages? Just wondering.

I will replace and report back.

Thanks for pointing me.

Rodrigo

RodrigoDC
10-02-08, 02:54 AM
I just replaced the libmail.class.php file which I downloaded from Mantis. I created a new test user with a valid e-mail address, and made sure to select the option to notify user....to no avail.

I'm not sure if this helps, but I got the following from my host:

We use "exim" on our shared servers. So it has backward compatibility with "sendmail" through /urs/sbin/sendmail wrapper

Is exim NOT supported by dotProject?

Again, any help would be greatly appreciated, since this great piece of programming work will have half its usefulness if no notifications work.

Thanks,
Rodrigo

ajdonnison
10-02-08, 08:40 AM
Exim should not be an issue, although if you have access to the mail log files that would allow you to check to see what error was being generated (which if the email isn't getting out, is likely to be the case).

basstradamus
11-02-08, 03:57 AM
Hi,

I have updated libmail to the latest version. I am using proper SMTP details (same as in my MS Outlook). But email notification system still doesn't work.

It comes up with message:
Failed to login to SMTP server: 503 AUTH command used when not advertised

I've checked the login credentials twice.

Any Ideas????
Thanks
bass

ajdonnison
12-02-08, 06:20 PM
That error suggests that your SMTP host either doesn't support login, in which case you can turn this off by unchecking the 'Host Requires Login' checkbox in System Administration -> System Configuration.

About the only other possiblity is that the mail server requires that your server is known to it somehow. You will need to contact your mail administrator for clarification.

RodrigoDC
13-02-08, 01:01 AM
Per ajdonnison's advice, I changed the config setting to send e-mail via SMTP. I added my SMTP host (changing it from localhost), and made sure to UN CHECK "Host requires login". The reason I unchecked it is because when I checked it before and added an e-mail account user name and password, I obtained the same error message that basstradamus did.

However, unchecking "Host requires login" now yielded the following error:

Failed to send email: 550-rs10.domain.com [75.127.76.130] is currently not permitted to relay through
If I select sendmail (PHP Default) instead in the system config, I do not get any error messages, but e-mails are NOT dispatched.

What to do :confused:

jbetts80
13-02-08, 11:35 PM
You know I had the same problem but I was changing the recipient mail server and...

...Eureka!

That's the problem! dotProject didn't work with my enterprise email and neither with my yahoo email but gmail worked successfully.

I hope this can help you.

Regards!

RodrigoDC
14-02-08, 12:38 AM
Thanks for your suggestion, jbetts80.

However, even if I use a different SMTP host, that is, other than my host's domain name, then I get the following error messages:

Warning: fsockopen() [function.fsockopen]: unable to connect to mail.corpimages.net:25 in /home/cfassist/public_html/projects/classes/libmail.class.php on line 416

Warning: fsockopen() [function.fsockopen]: unable to connect to mail.corpimages.net:25 in /home/cfassist/public_html/projects/classes/libmail.class.php on line 416

Warning: Cannot modify header information - headers already sent by (output started at /home/cfassist/public_html/projects/classes/libmail.class.php:416) in /home/cfassist/public_html/projects/classes/ui.class.php on line 510

For example, if my domain is mydomain.org, and I use mail.mydomain.org as my SMTP host, I get the error messages mentioned previously. If decide to use another host for a different host account I have, say smtp.gmail.com, the receive the above errors.

My gosh, can this be so difficult ?:???:

jbetts80
14-02-08, 02:50 AM
Well, dotProject's development team must to know.

I need to use my enterprise email like you.

We need answers!

ajdonnison
14-02-08, 03:30 PM
RodrigoDC, the errors you are seeing are connection errors, that is the mail host is not talking to your host. This could be any number of reasons, but is outside the realms of dotProject. I.e. we are trying to connect but the host is refusing us, either because it is an invalid host, or it uses a different port, or your firewall (or theirs) is blocking the transaction.

When you don't get errors is the more important case, if you have a valid local mail host that you can get to the error logs on, it would be good to set dP to use that and check what is written to the mail server log. Without knowing what the errors are makes it impossible to fix.

ricped
14-02-08, 09:21 PM
OK, this is odd. I just installed v. 2.1.1 and I am unable to receive any e-mail notifications whenever a new project, task or user is added. Interestingly, I can receive new passwords whenever the user forgets his/hers.

All users have valid e-mail addresses, and I have even used some e-mail accounts that I control (i.e., are within my server) so this way I can discard the possibility of an anti-spam filter blocking the messages.

All users have Email Assignees, Email Task Contacts and Email Project Contacts checked.

(...)

Email Transport: SMTP
SMTP Host: mail.mydomain.org
SMTP Port: 25
Host requires login: checked
SMTP Username: myaddress@mydomain.org
SMTP Password: mypassword
Queue Email for later sending: NOT checked
SMTP Server Timeout: 30

Nothing seems to work. If you can point me in the right direction I would really appreciate it. Please let me know if you need any info from my server or my installation.

Thanks!


I had the same issue.
Then I start to track it down and I came up with the following change:
in the http://dotproject.svn.sourceforge.net/viewvc/dotproject/branches/stable_2/dotproject/classes/libmail.class.php?revision=5588&view=markup

472c472,473
< $result = $this->socketSend(".\r\nQUIT");
---
> $result = $this->socketSend(".");
> $this->socketSend("QUIT");

and now it's working with SMTP option.

I think the problem is after we send a . (dot) command the email server replies to us, so we need to read that reply before send the QUIT command, otherwise the connection will hang.


Ricardo

ajdonnison
14-02-08, 09:42 PM
I had the same issue.
Then I start to track it down and I came up with the following change:
in the http://dotproject.svn.sourceforge.net/viewvc/dotproject/branches/stable_2/dotproject/classes/libmail.class.php?revision=5588&view=markup

472c472,473
< $result = $this->socketSend(".\r\nQUIT");
---
> $result = $this->socketSend(".");
> $this->socketSend("QUIT");

and now it's working with SMTP option.

I think the problem is after we send a . (dot) command the email server replies to us, so we need to read that reply before send the QUIT command, otherwise the connection will hang.


Ricardo

I've created a bug: http://bugs.dotproject.net/view.php?id=2330 to which I've attached the above fix. If you could download it, install the libmail.class.php file into the classes directory and let me know if it works, I can mark this as resolved so it gets into the next release.

stee1hed
15-02-08, 08:23 AM
This fix has worked for me. I just shot out 52 emails that were queued up.

Thanks!

RodrigoDC
15-02-08, 09:01 AM
Sorry. I replaced the libmail.class.php file from mantis, used SMTP server, but I continued to receive the following error message:

Failed to login to SMTP server: 503 AUTH command used when not advertised

Maybe it's just my host.

They said they're looking into it, but maybe I'll use another server and report back.

Thanks to all....

jbetts80
15-02-08, 11:36 PM
Look at this:

http://forums.dotproject.net/showthread.php?t=7329

basstradamus
16-02-08, 04:14 AM
Enybody with gmail and dotProject working? I have updated libmail to the latest version but still :( no result.

I tried with gmail, but gmail uses SSL so its failed.

waiting for sollution

RodrigoDC
17-02-08, 05:42 AM
I just wanted to provide an update:

I changed dotProject to another host, migrated all files and MySQL DB, and whala...all is well and notifications are working.

What I learned:
dotProject was not at fault, but rather, the culprit was the stereotypical hysterical host that cares more for painting all customers with one brush than to provide individualized service. My Host claimed that no e-mails could be send or received except if the users had a domain-specific e-mail account (which actually was not true either). This, of course would defeat the whole purpose of a collaborative, online-based project management software. If I choose to add my client's e-mails address, I cannot force them to use my domain-based e-mail address.

In short, I apologize for having evil thoughts toward the dotProject developers while the issue was unresolved. Take this as a form of confession!

Keep up the great work and keep this forum alive.

Thanks,
Rodrigo
:D

basstradamus
18-02-08, 04:53 AM
Newest libmail.class, and I am getting this:


Warning: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home3/webinfoc/websites/dotproject/classes/libmail.class.php on line 416

Warning: fsockopen() [function.fsockopen]: unable to connect to mail.dotproject.webinfocus.co.uk:26 (Unknown error) in /home3/webinfoc/websites/dotproject/classes/libmail.class.php on line 416

Warning: Cannot modify header information - headers already sent by (output started at /home3/webinfoc/websites/dotproject/classes/libmail.class.php:416) in /home3/webinfoc/websites/dotproject/classes/ui.class.php on line 510

ajdonnison
18-02-08, 07:44 AM
I'm not sure what information you want. Obviously you've read the error and noticed that the mail server you have chosen is either down or doesn't exist. Certainly mail.dotproject.webinfocus.co.uk doesn't appear to exist from this end of the world. Or am I missing something?

basstradamus
01-03-08, 10:12 PM
Does dotProject email system supports TSL or SSL connection with email servers?

ajdonnison
02-03-08, 09:31 AM
Does dotProject email system supports TSL or SSL connection with email servers?

No, it only supports cleartext connections.

EDBOC
20-03-08, 07:44 AM
Im getting the problem that I dont get any errors but dont get any emails either.

Ive tried
both SMTP and PHP
updated the libmail.class to the latest version
I used a domain specific email (just in case)
authenticated and un authenticated
Check the settings 50 times

and still no emails

what else can i try!

Hell
21-11-08, 06:51 AM
I had the same problem and DP printed "Failed to login to SMTP server: 500 unrecognized command".

I replaced the libmail.class file with the one on Mantis.

I am using 2.1.2

imimobileindia
19-12-08, 08:28 PM
Hi,

I have installed dotProject 2.1.2 in windows server 2003 R2.

And i have also configured Email Settings in System Configuration as below.

Email Transport (PHP Default)
SMTP Host (10.x.x.x)
SMTP (25)
Host requires login (*)
SMTP Username (xyz@xyz.com)
SMTP Password (XXXXXXXXXX)
Queue Email for later sending ()
SMTP Server Timeout (30)

But i am not getting any emails from Dotproject server.

Please help me in this..

sandonn
30-09-09, 10:39 PM
I was receiving the same error message, "Failed to login to SMTP server: 503 AUTH command used when not advertised" and just found the fix.

I did a telnet in in the mail server.
When I said helo I got back a 250 response which is good!
I then sent auth login and got back the error, "503 AUTH command used when not advertised".
So there's the problem.

I tried it again but instead of using helo I used ehlo.
When I did that I got back a 250 repsonse.
Then I issued the auth login command and I got a 334 response which is good!

So here's the fix.
I used the original libmail.class.php that came w/ the install.
I changed line 429 from this "$this->socketSend('HELO ' . $this->getHostName());"
to this, "$this->socketSend('EHLO myhost.com');"

I also had to explicitly tell it which host. I was also getting an error when it tried to use the variable.
Anyway. Hope this helps!!!

irmaone
16-10-09, 06:36 PM
Dear All,

I have downloaded dotproject version 2.1.2
mysql version:5.0.41 and php is 5.2.8;
when open login screen, after fill login and password, application not respond anything, no error and still display windows login.
When we use option for register with new email, and get password; application not respond also.
Anybody can help me, what should I do?

Thank you

Irmaone

clebercbr
19-01-10, 01:37 AM
Great sandonn!

I had the same problem: "Failed to login to SMTP server: 503 AUTH command used when not advertised".

I try the telnet connection with command >telnet smtp.mydomain.com 25, after the command "helo", and the response is good, after the "auth login" command had a bad response. But with "ehlo" command these commands works.

The line 429 was changed from:
"$this->socketSend('HELO ' . $this->getHostName());"
to:
"$this->socketSend('EHLO . $this->getHostName());"

Everything works!

irmaone
19-01-10, 05:11 PM
Hi,

I have installed dotProject 2.1.2 in windows server 2003 R2.

And i have also configured Email Settings in System Configuration as below.

Email Transport (PHP Default)
SMTP Host (10.x.x.x)
SMTP (25)
Host requires login (*)
SMTP Username (xyz@xyz.com)
SMTP Password (XXXXXXXXXX)
Queue Email for later sending ()
SMTP Server Timeout (30)

But i am not getting any emails from Dotproject server.

Please help me in this..

##########
my suggest is:
1. try to change email transport to SMTP
2. give the permision for this IP to sent email (this can be configured from email server)

justinzhan
02-02-10, 06:15 AM
Email Transport: SMTP
SMTP Host: smtp.gmail.com
SMTP Port: 25
Host requires login: checked
SMTP Username: myusername@gmail.com
SMTP Password: mypassword
Queue Email for later sending: NOT checked
SMTP Server Timeout: 30


I used a general gamil account and was set up as above, is it a correct setting?

Also, do I have to choose “php_item_title” or smtp” when choosing the setting of “mail_transport_title” ?

Because when I chose “php_item_title“, the mail can not be sent out, and there is no error message; and, when I chose “ smtp “, it showed an error message “overtime”.

Thanks for pointing me

Sincerely,
Justin

ElectronicCarpenter
24-02-10, 03:22 AM
I use Gmail also.. Google uses STARTTLS you will have to make changes to the libmail

Can you send email with php default option? If no then there is an issue with the
/classes/libmail.class.php You may want to reinstall that again.

I am assuming your on a Linux box and not a MS :twisted: BS box.. (Microsoft Bull Shyster)...


Now in your cpanel create a new email for your dot project I use updates@mydomain.com.
Next create your password.
Now go the configuration link.
You should see your email settings.
Now enter these settings into your dotproject system configuration.
Save the changes.
Goto your profile and make sure your email is yourid@gmail.com
go to a project>>>Select a task and click the log button
Type in some useless test information. Click send.
If it sent correctly you should see task log inserted and at the bottom of the log entries. you should see your useless test information and where the emails where sent to.
If you do not see emails in the log then you have not correctly set up your project.


That is if your server is setup for HELO
If you get
"Failed to login to SMTP server: 503 AUTH command used when not advertised"

Change around line 429

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

Change to:

$this->socketSend('EHLO ' . $this->getHostName());

You should be good to go.
If not copy this post into your a support ticket with your server hosting company and let them tell you what is wrong.


In dot project you have a system email and you have your own email. I choose to setup the system to email my clients from Updates@mydomain.com and my user email is ElectronicCarpenter@gmail.com I click the ticks to email my clients automatically when I am updating a task. This allows them to know when I am working. I also get copied on it in my gmail account. If my client says they did not get it. I say check spam, and send them my copy ;)
Always CYA:rolleyes:
ya Buddy...

Here is an example of the configuration for email from Cpanel
Mail Server Username: updates+mydomain.com
Incoming Mail Server: mail.mydomain.com
Incoming Mail Server: (SSL) mail1server.websitehosting.net
Outgoing Mail Server: mail.mydomain.com (server requires authentication) port 26
Outgoing Mail Server: (SSL) mail1server.websitehosting.net (server requires authentication) port 465
Supported Incoming Mail Protocols: POP3, POP3S (SSL/TLS), IMAP, IMAPS (SSL/TLS)
Supported Outgoing Mail Protocols: SMTP, SMTPS (SSL/TLS)

You can see that SMTP(s) Are enabled.

This should help

alahthanh
25-03-10, 05:58 PM
I've created a bug: http://bugs.dotproject.net/view.php?id=2330 to which I've attached the above fix. If you could download it, install the libmail.class.php file into the classes directory and let me know if it works, I can mark this as resolved so it gets into the next release.

Could you show me your email configurations which you have tested with new version of libmail.class.php?

Thanks

kadm
24-06-10, 07:47 AM
Hi guys, I know this is a thread to discuss failure on e-mail notifications because of server and libraries issues, however I need some help with email notifications, feel free to move my post where it fits.

I need (as admin user) to receive a notification via e-mail whenever somebody creates a new project on the system. I've reviewed all options available and googled after an answer without find anything. If somebody can help me to achieve this, I'll be very grateful.

Thanks in advance.

kadm
31-07-10, 02:06 AM
I will really appreciate any ideas regarding how to send an email notification to the admin every time some user adds a new project to the system... I really need that... thank you

darkmatter
31-07-10, 11:36 AM
In the projects module, there's a do_project_aed.php and projects.class.php file. It looks like the store function in the projects class would be a good palce to start.

azurelink
10-02-12, 11:46 AM
Hello all,

I am having the same problem with dotProject 2.1.5 on a LAMP/Cpanel server.

My client users gmail for his business email accounts. Our domain dns is setup with custom CNAME records that route our domain email through ghs.google.com, which means that all emails with username@mydomain.com go through Google's email server.

How do I set up dotProject to be able to send system notification emails through the gmail outgoing mail server?

I've tried most if not all of the options for email settings via the dotproject System Configuration email setting recommended in this forum but none are working.

I tried modifying the libmail.class.php file with the following code line:
$this->socketSend('EHLO gmail.com');

As well as:
$this->socketSend('EHLO mydomain.com');

No luck.

Any other ideas regarding what I should try.

Thanks,
azurelink