cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco 3.3g SMTP settings which worked for me

tomedward
Champ in-the-making
Champ in-the-making
I wasted hours trying to figure out, what exactly I did wrong about with just setting the SMTP values, to make Alfresco 3.3g send outbound emails …
I followed the official documentation but it didnt seem to work.
It often seemed like my settings were ignored, and me taking Wireshark and checking the SMTP communication I saw they were!

Most obvious is the setting for SMTP AUTH being true, still Alfresco does not use AUTH on the SMTP server, so no surprise no emails are sent out.
They changed the names of the configuration descriptors in 3.3(g)! They often used smpts instead of smtp (like mail.smtps.auth instead of mail.smtp.auth), made it bold below.

Here is a working setting for my alfresco-global.properties:

mail.host=smtp.123.com
mail.port=25
mail.username=yourloginname
mail.password=yourpassword
mail.encoding=UTF-8
mail.from.default=yourdefaultsender@123.com
mail.smtp.auth=true
mail.protocol=smtp
mail.smtp.starttls.enable=true


And here is the custom-email-context.xml where I changed all smtps to smtp:

<bean id="mailService" class="org.springframework.mail.javamail.JavaMailSenderImpl">
    <property name="host">
        <value>${mail.host}</value>
    </property>
    <property name="port">
        <value>${mail.port}</value>
    </property>
    <property name="protocol">
        <value>${mail.protocol}</value>
    </property>
    <property name="username">
        <value>${mail.username}</value>
    </property>
    <property name="password">
        <value>${mail.password}</value>
    </property>
    <property name="defaultEncoding">
        <value>${mail.encoding}</value>
    </property>
    <property name="javaMailProperties">
        <props>
            <prop key="mail.smtp.auth">${mail.smtp.auth}</prop>
            <prop key="mail.smtp.starttls.enable">${mail.smtp.starttls.enable}</prop>
        </props>

    </property>
</bean>

And if your test emails from the admin account have alfresco@alfresco.com as default sender, dont panic, just go to admin console > manage system users > edit admin user and modify email value there.

Hope that helps,

Tom
5 REPLIES 5

mafarodrigues
Champ in-the-making
Champ in-the-making
Hi Tom,

I'm new with alfresco, i've just installed in CENTOS 5.5, and now im trying to configure the email stuff, so i need some help.

Its only need to configure alfresco-global.properties ? Which is the best way to test it ? Is there any way in Alfresco to make a small email test?

I need advise Smiley Happy)

Thanks all
Miguel

cptslackbladder
Champ in-the-making
Champ in-the-making
Hi Tom,

I have been trying to resolve issues with the Alfresco Share SMTP configuration for a quite while and had all but given up when I came across your post, which, I am delighted to say, allowed me to successfully send out invitiations to other users so many thanks for your help.

Kind regards,

Mark
Smiley Very Happy

tomarnst
Champ in-the-making
Champ in-the-making
Hi,

We are having also problems with invite mail…did try this on version 4.3d with no luck…
The strange thing we have is, we can send from someone@mydomain.fi to otherperson@mydomain.fi as soon as we invite someone outside our domain the mail won't send ..!

Does somebody encountered this?

Thanks

mrogers
Star Contributor
Star Contributor
That's unlikely to be due to alfresco configuration.    If you can send to one then you should be able to send to anywhere.     You probably have some restrictions defined on your email server.

tomarnst
Champ in-the-making
Champ in-the-making
Restrictions …?!

I can send with the same settings from other web-based solutions…!

By the way quick response time. Thanks