Great, I will do follow

thank you



From: Bob Jolliffe
Sent: ‎Tuesday‎, ‎September‎ ‎30‎, ‎2014 ‎5‎:‎28‎ ‎Evening
To: channara rin
Cc: DHIS 2 Developers list, DHIS 2 Users list






Hi Rin




It is easy enough to setup with either postfix or exim4 to send mail directly 
from the host.  BUT, the most important thing is to have your networking 
properly setup ie. you must have a fully qualified domain name and make sure 
that hostname and /etc/hosts is correct.  If you don't have this, you need to 
take a different approach by relaying to some other smarthost.




I'll outline the procedure for exim4:




install exim4 with 'sudo apt-get install exim4'. Then configure with:




sudo dpkg-reconfigure exim4-config





Then working through the screens ...




1.  Select the option for "internet site; mail is sent directly through smtp"




2.  The system mail name should be your fqdn (eg.  dhis2.somewhere.org)




3.  Make sure smtp listener only listens on localhost (127.0.0.1 ; ::1)




4.  leave "other destinations for which mail is accepted" blank





5.   leave "domains to relay for" blank




6.   leave "machines to relay for" blank




Just accept defaults for everything else.




Try sending yourself a mail by typing:




mail rin.chann...@gmail.com




(finish the mail by just typing a dot on a line on its own)




Beware the mail may well be sent but end up in your spam.




Check 'sudo tail /var/log/exim4/mainlog' to see what happened.




Bob



On 30 September 2014 11:02, <rin.chann...@gmail.com> wrote:




Hi all dev and user love DHIS2,

Has any body know how to configure localhost running DHIS2 can emailing?

-webserver: apache tomcat

-DHIS2 v2.16

-DB: postgreSQL






Thank you

CHANNARA




_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to     : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp
_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to     : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp

Reply via email to