cancel
Showing results for 
Search instead for 
Did you mean: 

Configure outbound email

fromano
Champ in-the-making
Champ in-the-making
Hi,

I'm trying to configure inbound email with the following settings:
email.inbound.unknownUser=anonymous
email.inbound.enabled=true
email.server.enabled=true
email.host=smtp.gmail.com
email.server.port=587
email.server.domain=alfresco.com (also tried as "gmail.com)

However, my logs (excerpt below) show "Permission denied"  Can anyone teel me why???

2016-03-01 13:39:55,959 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'email' subsystem, ID: [email, outbound]
2016-03-01 13:39:56,044 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'email' subsystem, ID: [email, outbound] complete
2016-03-01 13:39:56,044 INFO  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'email' subsystem, ID: [email, inbound]
2016-03-01 13:39:56,085 WARN  [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'email' subsystem, ID: [email, inbound] failed
java.lang.RuntimeException: java.net.BindException: Permission denied
   at org.subethamail.smtp.server.SMTPServer.start(SMTPServer.java:292)
   at org.alfresco.email.server.impl.subetha.SubethaEmailServer.startup(SubethaEmailServer.java:83)
   at org.alfresco.email.server.EmailServer.onBootstrap(EmailServer.java:256)

Thank you,

Frank
3 REPLIES 3

douglascrp
World-Class Innovator
World-Class Innovator
Are you running your Alfresco in a linux server?
If so, what is the user used?

On Linux, you can't use some ports when you start a process using a non root user.
I think this is the case because of the error message:
startStop-1] Startup of 'email' subsystem, ID: [email, inbound] failed
java.lang.RuntimeException: java.net.BindException: Permission denied

If that is the case, you have to options:
1, change the configured ports and use other ones
2, use iptables to redirect the used ports

The explanation for the "privileged ports" here http://docs.alfresco.com/4.1/tasks/configuration-checklist-env.html

You can have an idea about how to use iptables by using this script https://github.com/loftuxab/alfresco-ubuntu-install/blob/master/scripts/iptables.sh

mrogers
Star Contributor
Star Contributor
The title of your topic is confusing,  it says outbound and then asks a question about inbound.

Also email.server.domain should also be one of your IP addresses, not alfresco.com, or gmail.com either (unless you are alfresco or google.)  

fromano
Champ in-the-making
Champ in-the-making
Sorry for the confusion - thinking of 2 things at once.

Thanks for the tip.  I have the email working now.

Frank
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.