Announcement Announcement Module
Collapse
No announcement yet.
JavaMailSenderImp error: Relay access denied Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • JavaMailSenderImp error: Relay access denied

    I'm trying to configure a mail sender:
    Code:
    <bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl">
    	<property name="host" value="smtp.usyd.edu.au"/>
    	<property name="username" value="bian0987"/>
    	<property name="password" value="password"/>
    	<property name="javaMailProperties">
    		<props>
    			<prop key="mail.smtp.auth">true</prop>
    		</props>
    	</property>
    </bean>
    I believe this is the typical configurations for JavaMailSenderImpl, and I can use the above username and password to check and receive emails from Outlook. This is not a SSL smtp, I use all default settings in outlook.

    But when I tried to use spring to send a email to external, I got 'Relay access denied' error, sending emails to other @usyd.edu.au account works. So, what's wrong?

  • #2
    It would be useful to post the stacktrace. There are loads of previous posts both here and on the net in general about JavaMail, it would be worth having a search through them. Most problems are configuration related, this seems to be the case here.
    Last edited by karldmoore; Aug 27th, 2007, 04:49 PM.

    Comment

    Working...
    X