Results 1 to 2 of 2

Thread: JavaMailSenderImp error: Relay access denied

  1. #1

    Question 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. #2
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    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 at 03:49 PM.
    Barracuda Networks SSL VPN Lead Developer
    http://pramatr.wordpress.com
    http://twitter.com/karldmoore
    http://www.linkedin.com/in/karldmoore
    Any postings are my own opinion, and should not be attributed to my employer or clients.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •