How to setup Inbound Mails in alfresco.

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Member II

How to setup Inbound Mails in alfresco.

How to setup Inbound Mails in alfresco..

Dear All,

I had done lot of search on internet also i was gone through video posted on youtube and did the settings in alfresc>tomcat>shared>classess --> alfresco-global.properties. but i didnt recieve mails on configured mail repository.

I had done following steps to be achive inbound mails to alfresco repository..

Step 1: Add the code snippet for alfresc-global.properties.

such as ;

#
# Alfresco Email Service and Email Server
#-------------

# Enable/Disable the inbound email service.  The service could be used by processes other than
# the Email Server (e.g. direct RMI access) so this flag is independent of the Email Service.
#-------------
email.inbound.enabled=true

# Email Server properties
#-------------
#email.server.enabled=true
#email.server.port=587
#email.server.domain=smtp.gmail.com
#
email.server.enabled=true
email.server.port=993
email.server.domain=imap.gmail.com
email.server.hideTLS=true
email.server.enableTLS=true
email.server.requireTLS=true
email.inbound.unknownUser=anonymous
#email.inbound.unknownUser=anonymous

# A comma separated list of email REGEX patterns of allowed senders.
# If there are any values in the list then all sender email addresses
# must match. For example:
#   .*\@alfresco\.com, .*\@alfresco\.org
# Allow anyone:
#-------------
#email.server.allowed.senders=.*

Step 2 : Saves this setting and Restarted alfresco tomcat and postgres servers.

Step 3 : Added new test site in alfresco and create repository

-  I had beed add one test site in my alfresco and one repository created.

- Repository had been added with aspect as email aliasable and given alias to the repository from clicking and saving on edit properties of repository

Step 4 : Added User in email contribution group.

- Two test users created and added to the email contribution group.

Step 5: Test for sending mail from email contributed test user to email alisable repository.

Then i had open my gmail account which is associated with email contribution group and sent a test mail to aliasable repository of alfresc i.e also associated with email contribution and same name account of gmail also

but repository is empty and in my case inbound mails are not coming.

Request to suggest on this.

Regards,

Shivkumar Swami

6 Replies
Highlighted
Senior Member

Re: How to setup Inbound Mails in alfresco.

You need to take a look at your email.server properties

email.server.port should be the port on which your server is receiving mail - this will depend on how mail is set up on your server

email.server.domain should be your name

so for example if your machine is called alfresco.mydomain.com then you could have:

email.server.port=25

email.server.domain=alfresco.mydomain.com

You then send mail to myalias@alfresco.mydomain.com

Normally you would use a different port e.g. 8025 and then forward to that port e.g. by using postfix transport maps

The settings you have now appear to match the imap settings for gmail which is not what you want as Alfresco is a mail server itself and not trying to pull from another mail server.

Highlighted
Member II

Re: How to setup Inbound Mails in alfresco.

Hi lan wright,

Thanks you !!

One thing i need to ask you as per above reply  where i can set this domain in alfresco and where should set this port in alfresco..

Please suggest.

Thanks & Regards,

Shivkumar Swami

Highlighted
Senior Member

Re: How to setup Inbound Mails in alfresco.

In the alfresco-global.properties file

Highlighted
Member II

Re: How to setup Inbound Mails in alfresco.

I had set my alfresco ip as a domain and used alfresco.domain.cm

then i was set the property and port number in alfresco-global.properties.

still i am not able recieve mails

setting is :

#
# Alfresco Email Service and Email Server
#-------------

# Enable/Disable the inbound email service.  The service could be used by processes other than
# the Email Server (e.g. direct RMI access) so this flag is independent of the Email Service.
#-------------
email.inbound.enabled=true

# Email Server properties
#-------------
email.server.enabled=true
email.server.port=25
email.server.domain=alfresco.customalfresco.com
email.inbound.unknownUser=anonymous
#email.inbound.unknownUser=anonymous

Highlighted
Senior Member

Re: How to setup Inbound Mails in alfresco.

I would try 'telnet alfresco.customalfresco.com 25'

Then type

MAIL FROM: me@myemail

RCP TO: myalias@alfresco.customalfresco.com

DATA

Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit

test message

.
QUIT

and check the output, as well as the alfresco logs

It's probably getting into the scope of your server setup

Highlighted
Member II

Re: How to setup Inbound Mails in alfresco.

Hello guys! I'm having the same problem when trying to use the inbound functionality of Alfresco. See below, as is a part of my alfresco-global.properties file .. Our email is managed by Gsuite. Our alfresco is found by "ecm.cescomdistribuidora.com.br:8080". Aliases are already set up and groups are assigned correctly. What am I doing wrong to not be able to receive emails? Help me please!

Hello guys!

I'm having the same problem when trying to use the inbound functionality of Alfresco.
See below, as is a part of my alfresco-global.properties file ..
Our email is managed by Gsuite.
Our alfresco is found by "ecm.cescomdistribuidora.com.br:8080".
Aliases are already set up and groups are assigned correctly.
What am I doing wrong to not be able to receive emails?

Note: the outbound works perfectly for us!

Help me please!

###############################
## Common Alfresco Properties #
###############################

dir.root=C:/ALFRES~1/alf_data

alfresco.context=alfresco
alfresco.host=ecm.cescomdistribuidora.com.br
alfresco.port=8080
alfresco.protocol=http

share.context=share
share.host=ecm.cescomdistribuidora.com.br
share.port=8080
share.protocol=http

### SMTP Configuration
mail.host=smtp.gmail.com
mail.port=465
mail.username=ecm@cescomdistribuidora.com.br
mail.password=********
mail.protocol=smtps
mail.smtps.starttls.enable=true
mail.smtps.auth=true


#
# Alfresco Email Service and Email Server
#-------------

# Enable/Disable the inbound email service. The service could be used by processes other than
# the Email Server (e.g. direct RMI access) so this flag is independent of the Email Service.
#-------------
email.inbound.enabled=true

# Email Server properties
#-------------
email.server.enabled=true
email.server.port=1025
email.server.domain=imap.gmail.com
email.inbound.unknownUser=anonymous

# A comma separated list of email REGEX patterns of allowed senders.
# If there are any values in the list then all sender email addresses
# must match. For example:
# .*\@alfresco\.com, .*\@alfresco\.org
# Allow anyone:
#-------------
#email.server.allowed.senders=.*‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍