[Dhis2-devs] configure localhost for emailing

Great thank you…

···

On 1 October 2014 03:48, rin.channara@gmail.com wrote:

Hi bob,

what could I can do? if the server I hosting is windows.

thank you

CHANNARA

To: channara rin
Cc: DHIS 2 Developers list, DHIS 2 Users list

From: Bob Jolliffe
Sent: Tuesday, September 30, 2014 6:18 Evening

At Lars’s suggestion I’ve added those instructions (plus a little extra) to a small tutorial here https://www.dhis2.org/node/48.

On 30 September 2014 12:08, rin.channara@gmail.com wrote:

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”
  1. The system mail name should be your fqdn (eg. dhis2.somewhere.org)
  1. Make sure smtp listener only listens on localhost (127.0.0.1 ; ::1)
  1. leave “other destinations for which mail is accepted” blank
  1. leave “domains to relay for” blank
  1. leave “machines to relay for” blank

Just accept defaults for everything else.

Try sending yourself a mail by typing:

mail rin.channara@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.channara@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