dhis2-users team mailing list archive
-
dhis2-users team
-
Mailing list archive
-
Message #04938
Re: Emails not being sent
I think that is as of 2.16. In 2.15 I don't see it.
From: Bob Jolliffe [mailto:bobjolliffe@xxxxxxxxx]
Sent: jeudi 24 juillet 2014 15:49
To: WILLIAMS, Ryan O'Neil
Cc: dhis2-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Dhis2-users] Emails not being sent
Sorry Ryan, just looking again at the code, I am not right about FROM_ADDRESS being hard coded. This is in fact a system setting - in email settings dialog.
On 24 July 2014 14:04, WILLIAMS, Ryan O'Neil <williamsryan@xxxxxxx<mailto:williamsryan@xxxxxxx>> wrote:
Hi Bob,
Thanks for providing the FROM_ADDRESS.
I will ask IT check the traffic information between the servers.
I sent an email through the server from my computer via telnet using the FROM_ADDRESS:noreply@xxxxxxxxx<mailto:noreply@xxxxxxxxx> and it went through fine.
ryan
From: Bob Jolliffe [mailto:bobjolliffe@xxxxxxxxx<mailto:bobjolliffe@xxxxxxxxx>]
Sent: jeudi 24 juillet 2014 12:44
To: WILLIAMS, Ryan O'Neil
Cc: dhis2-users@xxxxxxxxxxxxxxxxxxx<mailto:dhis2-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Dhis2-users] Emails not being sent
Hi Ryan
>From what I understand of the source code, if the message sending failed there should have been a warning entry in your log saying "Could not send email: ... <reason>". If you are not seeing that then it is strange and not consistent with the documentation of the apache commons email library which is being used.
Can you perchance verify with ethereal or tcpdump that there is no traffic between dhis2 and the email server?
The FROM_ADDRESS is currently hardwired to "noreply@xxxxxxxxx<mailto:noreply@xxxxxxxxx>". Hope its not being clobbered by a spam filter on your email server.
Bob
On 24 July 2014 10:49, WILLIAMS, Ryan O'Neil <williamsryan@xxxxxxx<mailto:williamsryan@xxxxxxx>> wrote:
Dear all,
We are running version 2.15 instance of dhis2 and we are having trouble getting the email functionality to work.
The email server address and port have been provided using the email settings UI.
We have tried to use the recover password and send message functionality to no avail. Each time the functions are executed, the following entries can be found in the catalina.out log file respectively:
* ... Recovery message sent for user: xxx
OR
* ... Sending email to user: User{surname='xxx', ...firstName= ... (EmailMessageSender.java [SimpleAsyncTaskExecutor-664])
* ...Email sent using host: emailserver with TLS: false (EmailMessageSender.java [SimpleAsyncTaskExecutor-664])
No entries can be found on the email server concerning these emails. No errors concerning emails can be found in the catalina log file.
Other applications on the same server using the same settings can successfully send emails.
Any ideas about what the problem could be or how we can debug this in more detail?
Also, I don't see a way to configure the FROM_ADDRESS, is this possible? What is the default sender?
cheers
Ryan
_______________________________________________
Mailing list: https://launchpad.net/~dhis2-users
Post to : dhis2-users@xxxxxxxxxxxxxxxxxxx<mailto:dhis2-users@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~dhis2-users
More help : https://help.launchpad.net/ListHelp
Follow ups
References