cancel
Showing results for 
Search instead for 
Did you mean: 

Error Sender address rejected: not logged in

agey
Champ in-the-making
Champ in-the-making
Hi all,

I have configured an email server into Alfresco on Windows to send emails and it works fine. But now, I have installed Alfresco on Linux and configured it to send emails. The configuration is the same in both sites but when I try to send an email from Alfresco on Linux, it returns an error Sender address rejected: not logged in. Is the configuration of Alfresco on Windows and on Linux diferent?

This is my configuration in custom-repository.properties:

# Email configuration
mail.host=smtp.mydomain.es
mail.port=25
mail.username=zdw130c
mail.password=*******
mail.protocol=smtp
# Set this value to UTF-8 or similar for encoding of email messages as required
mail.encoding=UTF-8
# Set this value to 7bit or similar for Asian encoding of email headers as required
mail.header=
mail.from.default=soporte@mydomain.es
mail.smtp.starttls.enable=true
mail.smtp.auth=true
mail.smtp.timeout=30000
mail.smtp.debug=true


Alfresco version: 3.0

Thanks a lot in advance
1 REPLY 1

agey
Champ in-the-making
Champ in-the-making
I answer myself. The error came from the declaration of the bean mailService. You must change from this:

<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="username">
            <value>${mail.username}</value>
        </property>
        <property name="password">
            <value>${mail.password}</value>
        </property>
        <property name="defaultEncoding">
            <value>${mail.encoding}</value>
        </property>
</bean>
to this:

<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="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.timeout">${mail.smtp.timeout}</prop>
                </props>
        </property>
    </bean>