Configure outbound email

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2016 12:06 PM
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
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
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2016 02:33 PM
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:
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
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] failedjava.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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2016 04:03 PM
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.)
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.)

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2016 11:52 AM
Sorry for the confusion - thinking of 2 things at once.
Thanks for the tip. I have the email working now.
Frank
Thanks for the tip. I have the email working now.
Frank
