I received the following message when attempting to use the Forgot Password
Portlet for Jetspeed 2.0 release

Failed to send forgotten password email to user with email address because
Failed messages: com.sun.mail.smtp.SMTPSendFailedException: 454 5.7.3 Client
does not have permission to Send As this sender.

I tried the addition prop Key "mail.smtp.from" to no avail.  It seems as if
the smtp server requires
a email.setFrom() in the message?  I was wondering where does Jetspeed
obtain the  email.setFrom() from?  Or maybe this error is generated because
of something else?

If it uses jetspeed.properties file values:
email.admin = [EMAIL PROTECTED]
email.manager = [EMAIL PROTECTED]
email.userinfo.attribute = user.email

then theses are set accordingly to a valid from sender?

Contents of the spring bean in administration.xml are as follows, masking
out credentials and smtp server.

<beans>
  <bean id="mailSender"
class="org.springframework.mail.javamail.JavaMailSenderImpl">
    <property name="host"><value>smtp-out.******</value></property>
    <property name="username"><value>[EMAIL PROTECTED]</value></property>
    <property name="password"><value>**********</value></property>
      <property name="javaMailProperties">
          <props>
              <prop key="mail.smtp.auth">true</prop>
        <prop key="mail.smtp.from">[EMAIL PROTECTED]</prop>
          </props>
         
      </property>
  </bean>

Yet I am able to send mail using a simple commons email program as follows:

 SimpleEmail email = new SimpleEmail();
                  try {
                   email.setHostName("smtp-out**********");
                   email.setAuthentication("[EMAIL PROTECTED]", "********");
                   email.addTo("[EMAIL PROTECTED]", "ToUser");
                   email.setFrom("[EMAIL PROTECTED]", "FromUser");
                   email.setSubject("Test");
                   email.setMsg("This is a simple test of commons-email");
                   email.send();
                               } catch(Exception e) {
                          System.out.println("email-commons ERROR="+e);
                  }

Your assistance is greatly appreciated.  I could not find a similiar
situation searching the forum or the internet?

-- 
View this message in context: 
http://www.nabble.com/Forgot-Password-Portlet-SMTPSendFailedException%3A-not-have-permission-to-Send-As-this-sender-tf3677553.html#a10276916
Sent from the Jetspeed - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to