Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 368273 - Email configuration for Orion on orion.eclipse.org
Summary: Email configuration for Orion on orion.eclipse.org
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Releng (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 0.4 M2   Edit
Assignee: John Arthorne CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 357787
Blocks:
  Show dependency tree
 
Reported: 2012-01-10 11:25 EST by Malgorzata Janczarska CLA
Modified: 2012-01-24 09:22 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Malgorzata Janczarska CLA 2012-01-10 11:25:45 EST
We need to configure email and SMTP to send emails needed for bug 347066.
What we need is
1. common Orion email account to send emails from (for instance webmaster@orion.eclipse.org)
2. SMTP configuration in web-ide.conf
This section needs to be uncommented and filled
#uncomment this lines to configure smtp host for sending mail
#mail.smtp.host={smtp_host} //SMTP host that will send email, like smtp.eclipse.org
#mail.smtp.port=25 //port if different than 25 (default)
#mail.smtp.user={smtp_user} //if authentication to SMTP server is needed SMTP server user name
#mail.smtp.password={password} //if authentication to SMTP server is needed SMTP server password
#mail.smtp.auth=true //uncomment if authentication to SMTP server is needed
#mail.from={sender_of_mails} //email that messages will come from (for instance webmaster@orion.eclipse.org)

Most SMTP server only send emails from addresses they host, they also require that authenticated user was an owner of the email address. So if we create webmaster@orion.eclipse.org we will probably need to fill in its SMTP server configuration.

To test if it works:
1. restart the server after changing configuration
2. log in and go to user profile
3. put YOUR email address in Email field
4. save profile
You should get information "Confirmation email has been send to [email address]" and after that you should get confirmation email on your address.
If you get an error or you don't get an email go to server logs and check if there are no meaningful errors there. To correct errors in configuration you need to change web-ide.conf again, restart the server, erase your email from profile, save profile, input your email again and save profile again.
Comment 1 Szymon Brandys CLA 2012-01-16 03:29:47 EST
*** Bug 368623 has been marked as a duplicate of this bug. ***
Comment 2 John Arthorne CLA 2012-01-16 14:58:35 EST
Eclipse webmaster, can you give input on configuring SMTP for orion.eclipse.org? Would it be easiest to just create an @eclipse.org alias or would we need an @orion.eclipse.org address for this to work properly? We need to configure this for both orion.eclipse.org and orionhub.org, but we can start with orion.eclipse.org to make sure everything works.
Comment 3 Denis Roy CLA 2012-01-17 10:21:43 EST
We can certainly create an @eclipse.org alias for this.  We'll be sending incoming emails to that alias to /dev/null, so please make sure the outgoing messages contain a "do not respond" quip.

Also, please set your host to relay mail through mail.eclipse.org (206.191.52.51).
Comment 4 Malgorzata Janczarska CLA 2012-01-17 11:49:12 EST
(In reply to comment #3)
> We can certainly create an @eclipse.org alias for this.  We'll be sending
> incoming emails to that alias to /dev/null, so please make sure the outgoing
> messages contain a "do not respond" quip.
Messages contain this line:
"NOTE: This is a machine generated memo. Please do not respond to this note."
Comment 5 John Arthorne CLA 2012-01-17 13:41:48 EST
Ok Denis, how about we create an alias orion-admin@eclipse.org. We could use the same alias for both orion.eclipse.org and orionhub.org I suppose.
Comment 6 John Arthorne CLA 2012-01-17 16:07:31 EST
(In reply to comment #5)
> Ok Denis, how about we create an alias orion-admin@eclipse.org. We could use
> the same alias for both orion.eclipse.org and orionhub.org I suppose.

And the password for the orion-admin user can be added to /home/admin/current/orion.conf
Comment 7 Malgorzata Janczarska CLA 2012-01-18 03:53:57 EST
(In reply to comment #6)
> (In reply to comment #5)
> > Ok Denis, how about we create an alias orion-admin@eclipse.org. We could use
> > the same alias for both orion.eclipse.org and orionhub.org I suppose.
> 
> And the password for the orion-admin user can be added to
> /home/admin/current/orion.conf

This is how I see this section in orion.conf now:
#uncomment this lines to configure smtp host for sending mail
mail.smtp.host=mail.eclipse.org
mail.smtp.port=25
mail.smtp.user=orion-admin
mail.smtp.password={orion-admin password}
mail.smtp.auth=true
mail.from=orion-admin@eclipse.org
Comment 8 John Arthorne CLA 2012-01-18 09:06:49 EST
(In reply to comment #7)

Yes I have this all ready to go in a file on orion.eclipse.org. For now I left it with auth=false until we get an authenticated user created. This is what is running in the orion configuration today:

mail.smtp.host=mail.eclipse.org
mail.smtp.port=25
mail.smtp.user=orion-admin
mail.smtp.password={password}
mail.smtp.auth=false
mail.from=orion-admin@eclipse.org

Once we get a password I'll set auth=true as well and we can try it out.
Comment 9 Denis Roy CLA 2012-01-19 09:24:23 EST
I've created a mail alias for orion-admin@eclipse.org.  Incoming mail goes to the bin bucket.


> This is how I see this section in orion.conf now:
> #uncomment this lines to configure smtp host for sending mail
> mail.smtp.host=mail.eclipse.org
> mail.smtp.port=25
> mail.smtp.user=orion-admin
> mail.smtp.password={orion-admin password}
> mail.smtp.auth=true
> mail.from=orion-admin@eclipse.org

You will not need to authenticate to mail.eclipse.org for relay purposes.
Comment 10 John Arthorne CLA 2012-01-19 10:25:21 EST
Thanks Denis. This is what I have added to the orion.conf file on orion.eclipse.org:

mail.smtp.host=mail.eclipse.org
mail.smtp.port=25
mail.from=orion-admin@eclipse.org
Comment 11 Malgorzata Janczarska CLA 2012-01-19 10:45:35 EST
(In reply to comment #10)
> Thanks Denis. This is what I have added to the orion.conf file on
> orion.eclipse.org:
> 
> mail.smtp.host=mail.eclipse.org
> mail.smtp.port=25
> mail.from=orion-admin@eclipse.org

I tried this from my localhost and I get connection refused. Can it be only connected without authentication from *.eclipse.org servers?
Comment 12 Denis Roy CLA 2012-01-19 10:51:58 EST
> I tried this from my localhost and I get connection refused. Can it be only
> connected without authentication from *.eclipse.org servers?

You should be able to connect to mail.eclipse.org on port 25 from anywhere -- but some ISPs may be intercept remote calls to the smtp port and blocking them to prevent spam from open relays.

Regardless, even if you do connect to mail.eclipse.org, you will not be able to relay mail.  Only *.eclipse.org servers can relay mail through mail.eclipse.org.
Comment 13 John Arthorne CLA 2012-01-19 10:54:41 EST
I don't think we want to be relaying through eclipse.org for the localhost case anyway. My main interest is the multi-user scenarios like orion.eclipse.org. On localhost you can set the admin password from a system property and change any password you want.
Comment 14 Malgorzata Janczarska CLA 2012-01-19 10:57:23 EST
(In reply to comment #13)
> I don't think we want to be relaying through eclipse.org for the localhost case
> anyway. My main interest is the multi-user scenarios like orion.eclipse.org. On
> localhost you can set the admin password from a system property and change any
> password you want.
Sure, I don't need this configuration, I just wanted to test it.
Comment 15 John Arthorne CLA 2012-01-24 09:22:32 EST
This was done.