Javax.mail.SendFailedException: 553 sorry, that domain isn't in my list of

i have put all the lines in the code required to set the server name and the username and the password but it still gives me the error. i have the following code to send the mail.
package com.wesra.mail;
import java.io.PrintStream;
import java.util.Hashtable;
import java.util.Properties;
import javax.mail.*;
import javax.mail.internet.*;
public class SendEmail extends Authenticator
InternetAddress from = null;
InternetAddress to = null;
InternetAddress cc = null;
InternetAddress bcc = null;
String subject = null;
Object body = null;
Message msg = null;
static Session session = null;
String msgText = null;
Properties prop = null;
MimeMultipart mimemultipart = null;
public SendEmail()
from = null;
to = null;
cc = null;
bcc = null;
subject = null;
body = null;
msg = null;
msgText = null;
prop = null;
mimemultipart = null;
msgText = new String("");
prop = System.getProperties();
mimemultipart = new MimeMultipart();
public void setDetails(String s, String s1, String s2, String s3, String s4, String s5)
throws Exception
from = new InternetAddress(s1);
to = new InternetAddress(s);
cc = new InternetAddress(s2);
bcc = new InternetAddress(s3);
subject = new String(s4);
body = new MimeBodyPart();
prop.put("mail.smtp.host", s5);
public boolean sendEmail(String s, int i)
throws Exception
session = Session.getDefaultInstance(prop, null);
MimeMessage mimemessage = new MimeMessage(session);
MimeMultipart mimemultipart1 = new MimeMultipart();
if(i > 1)
mimemessage.setRecipient(javax.mail.Message.RecipientType.CC, cc);
if(i > 2)
mimemessage.setRecipient(javax.mail.Message.RecipientType.BCC, bcc);
mimemessage.setRecipient(javax.mail.Message.RecipientType.TO, to);
mimemessage.setSubject(subject);
msgText = s;
MimeBodyPart mimebodypart = new MimeBodyPart();
mimebodypart.setContent(msgText, "text/html");
mimemultipart1.addBodyPart(mimebodypart);
mimemessage.setContent(mimemultipart1);
mimemessage.setFrom(from);
System.out.println("Message is being sent...");
Transport.send(mimemessage);
System.out.println("Message Sent Successfully");
return true;
i write the following lines to call the code.
se1.setDetails(to,from,to1,to2,subject,server);// this is called with the appropriate parameters with the server being either wesra.com,wesra.in or nmims.edu but none of that works.please check it and let me know what is wrong.
boolean sentstatus=se1.sendEmail(msgText1,number);

It sounds like a configuration problem with your SMTP server. Perhaps the machine from which you're connecting to the mail server isn't allowed to send mail to other domains. That'll be something you need to fix on the mail server.
Anyway, I'd suggest plugging that error message into Google... you'll get hundreds of matches.

Similar Messages

  • Error 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)

    I want send the email from oracle database.
    So I did the following steps
    1.@F:\oracle\product\10.2.0\db_1\RDBMS\ADMIN\utlmail.sql
    2.@F:\oracle\product\10.2.0\db_1\RDBMS\ADMIN\prvtmail.plb
    3.alter system set smtp_out_server = 'webmail.vilsoft.co.in:25' scope=both;
    4.exec utl_mail.send(sender=> '[email protected]',recipients=>'[email protected]',subject=>'test mail',message=>'hi');
    PL/SQL procedure successfully completed.
    So the mail is send to Destination Correctly.
    But When I want to send the mail from one server to another server So i execute the following query
    SQL> exec utl_mail.send(sender=> '[email protected]',recipients=>'[email protected]',subject=>'test mail',message=>'hi');
    then following error occurs....
    BEGIN utl_mail.send(sender=> '[email protected]',recipients=>'[email protected]',subject=>'test mail',message=>'hi'); END;
    ERROR at line 1:
    ORA-29279: SMTP permanent error: 553 sorry, that domain isn't in my list of
    allowed rcpthosts (#5.7.1)
    ORA-06512: at "SYS.UTL_SMTP", line 20
    ORA-06512: at "SYS.UTL_SMTP", line 98
    ORA-06512: at "SYS.UTL_SMTP", line 240
    ORA-06512: at "SYS.UTL_MAIL", line 424
    ORA-06512: at "SYS.UTL_MAIL", line 594
    ORA-06512: at line 1
    So Please help me to resolve this error ...

    It means that you are not allowed (by rules set on your SMTP server) to send emails to either vilsoft.co.in or gmail.com (most likely gmail.com - many companies do not allow employees to use gmail). Anyway, KB885 Try sending email separately to each address to finnd outt which one is causing issue.
    SY.

  • 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1) - Fix

    FYI
    A week ago I started getting this returned on emails to "some" addresses.
        [553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)]
    Fix for me: change my Outgoing SMTP from 25 to 587
    Default was 25, but for some reason 587 works
    (Saw 587 was used by different servers).
    Good luck.
    Paul

    I had an employee at my company with the same error message.  I talked her through setting up her email account in Outlook 2003.  As it turns out the problem was simply that she did not check the "Use same settings as my incoming mail
    server" under the "Outgoing Server" tab as required by our provider.  I know it's not the same for all, but it does help to make sure all the settings are correct before bashing your head into the wall, trying to figure it out (like I almost did).
    this works for me.
    thank you.

  • UTL_SMTP :ORA-29279: Error permanent SMTP: 553 sorry, that domain isn't in

    Hi, I create a package:
    CREATE OR REPLACE PROCEDURE SPEDISCI_MAIL
    Mittente IN VARCHAR2,
    Destinatario IN VARCHAR2,
    Oggetto IN VARCHAR2,
    Messaggio IN VARCHAR2
    IS
    -- dichiarazione di una variabile a cui assegnare il nome del server SMTP utilizzato
    -- in questo esempio l'SMTP è quello di yahoo
    mailhost VARCHAR2(30) := 'smtp.silviocolombo.it';
    -- dichiarazione di una variabile di tipo utl_smtp.connection
    -- a cui verrà assegnato l'SMTP ed il numero di porta (25)
    conn utl_smtp.connection;
    crlf VARCHAR2( 2 ):= CHR( 13 ) || CHR( 10 );
    mesg VARCHAR2( 1000 );
    local_mittente VARCHAR2(2000) := mittente;
    BEGIN
    -- Apertura di una connessione al server
    conn := utl_smtp.open_connection (mailhost,25);
    -- Assegnazione alla variabile mesg dell'intestazione della mail
    mesg:='Date:'||TO_CHAR(SYSDATE,'dd mon yy hh24:mi:ss')||crlf||
    'From:<'||mittente||'>'||crlf||
    'Subject:'||Oggetto||crlf||
    'To:'||destinatario||crlf||''
    ||crlf||messaggio;
    -- Apertura di un collegamento al server
    utl_smtp.helo(conn, mailhost);
    -- Inizio di una transazione di posta con il server passandogli il mittente
    utl_smtp.mail(conn,local_mittente);
    -- il destinatario
    utl_smtp.rcpt(conn,destinatario);
    -- ed il testo del messaggio
    utl_smtp.data(conn, mesg);
    -- Chiusura della connessione
    utl_smtp.quit(conn);
    END;
    When I execute this package Ihave this mistake : ORA-29279: Error permanent SMTP: 553 sorry, that domain isn't in .
    What is it?
    Thanks
    Silvia

    ask your question in the database sql and pl/sql-forum. You could also search that forum, there are lots of posts about UTL_SMTP.

  • Server error: 553 sorry, that domain isn't allowed to be relayed thru this MTA

    Jane Doe is trying to deliver an email to Nancy Smith. The email which Jane has written, has an Excel file (.xlsx) attached to it. Jane is with Domain A and Nancy is with Domain Z. Both Jane & Nancy are on Exchange 2010. Jane is receiving the following message when trying to deliver email to Nancy.TextYour message did not reach some or all of the intended recipients. Subject: Fuel Recon August 2015.xlsx Sent: 8/3/2015 12:55 PMThe following recipient(s) cannot be reached: 'Username' on 8/3/2015 12:55 PM Server error: '553 sorry, that domain isn't allowed to be relayed thru this MTA (#5.7.1)' '[email protected]' on 8/3/2015 12:55 PM Server error: '553 sorry, that domain isn't allowed to be relayed thru this MTA (#5.7.1)'
    I'm not entirely sure that I understand this error message. I am trying to do what I can with Google, and put out...

    Hey SpiceHeads!
    There are 42 good reasons to use hyperconverged infrastructure, but we’ll focus on a trilogy: scalability, built-in high availability/disaster recovery, and affordability. And with the elimination of storage protocols, you won’t even need a babelfish to make your environment work together. Join me and the Scale Computing team tomorrow (Thursday August 6th @ 1PM CT) for "The Hitchhiker's Guide to Virtualization and Hyperconvergence." Say "so long and thanks for all the fish" to old-school virtualization for good! As a Live event bonus we will be giving away a ton of great prizes two attendees will win a Pro Electronics repair kit and one will win a Ology Drone with Camera! So, DON'T Panic, grab your towel, and SIGN UP NOW! Contest is open to SpiceHeads in the US & CA. Contest winners will be announced here in this post...

  • That domain isn't in my list of allowed rcpthosts (#5.7.1)

    I want send the email from oracle database.
    So I did the following steps
    1.@F:\oracle\product\10.2.0\db_1\RDBMS\ADMIN\utlmail.sql
    2.@F:\oracle\product\10.2.0\db_1\RDBMS\ADMIN\prvtmail.plb
    3.alter system set smtp_out_server = 'webmail.vilsoft.co.in:25' scope=both;
    4.exec utl_mail.send(sender=> '[email protected]',recipients=>'[email protected]',subject=>'test mail',message=>'hi');
    PL/SQL procedure successfully completed.
    So the mail is send to Destination Correctly.
    But When I want to send the mail from one server to another server So i execute the following query
    SQL> exec utl_mail.send(sender=> '[email protected]',recipients=>'[email protected]',subject=>'test mail',message=>'hi');
    then following error occurs....
    BEGIN utl_mail.send(sender=> '[email protected]',recipients=>'[email protected]',subject=>'test mail',message=>'hi'); END;
    ERROR at line 1:
    ORA-29279: SMTP permanent error: 553 sorry, that domain isn't in my list of
    allowed rcpthosts (#5.7.1)
    ORA-06512: at "SYS.UTL_SMTP", line 20
    ORA-06512: at "SYS.UTL_SMTP", line 98
    ORA-06512: at "SYS.UTL_SMTP", line 240
    ORA-06512: at "SYS.UTL_MAIL", line 424
    ORA-06512: at "SYS.UTL_MAIL", line 594
    ORA-06512: at line 1
    So Please help me to resolve this error ...
    Edited by: 901580 on Dec 21, 2011 2:42 AM

    alter system set smtp_out_server = 'webmail.vilsoft.co.in*:25'* scope=both;Value for smtp_out_server is wrong, 'webmail.vilsoft.co.in:25'
    Dont specify the port number. The correct value should be as below,
    alter system set smtp_out_server = 'webmail.vilsoft.co.in' scope=both;

  • [help] javax.mail.SendFailedException

    What it means?
    javax.mail.SendFailedException: Invalid Addresses; nested exception is: class com.sun.mail.smtp.SMTPAddressFailedException: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)
    I use javax.mail API to send email from java servlet using a .info smtp server.
    It is the domain .info that create this error?
    Can i resolve?
    I tryed with a .it smtp server but it doesn't change...only with the server smtp of my ISP the mail was send correctly!
    Sorry for my english...Help Me!

    The SMTP server you use does not allow relaying mesages from/to the specified domain. Example: you cannot use yahoo's SMTP server to relay an email to [email protected] Change your rcpthosts on the SMTP server.

  • "that domain isn't allowed to be relayed thru this MTA " : Problem and fix

    I am using Java mail to send emails out at work through my web email account.
    Sometimes it works fine, but after a while, it gives me the following error :
    javax.mail.SendFailedException: Invalid Addresses;
    nested exception is:
    com.sun.mail.smtp.SMTPAddressFailedException: 553 sorry, that domain isn't allowed to be relayed thru this MTA (#5.7.1)
    at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1196)
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584)
    I waited for a few days, and tried one more time, it worked again for a few emails, then it failed again. I went into my Thunderbird where I had this web account set up so I can both send and receive emails, I tried to send out an email, it worked, then I used my Java email program to send email from work through this web account, it works again. It seems Thunderbird can fix the problem for me. Does any one know how I can fix it in Java so I don't have to start Thunderbird and send an email to fix the error ?
    Frank

    You're confusing things here by using your ISP's mail server at work instead
    of your work mail server.
    Still, your ISP's mail server is probably imposing similar restrictions as your
    work mail server. It doesn't want to allow just anyone to connect and send
    mail to anywhere. That's how spam is sent. Most people control this by requiring
    you to login to the SMTP server before it will let you send mail. Some people use
    the hack of requiring you to login to the POP3 server first, and then it will allow
    you to connect to the SMTP server without logging in and will allow you to send
    mail.
    You seem to be missing some basic understanding of JavaMail and what it
    means to "connect to a mail server". Maybe you don't understand the difference
    between a Store and a Transport. POP3 is a Store protocol. SMTP is a Transport
    protocol.
    The JavaMail demo directory is full of programs that should how to connect to
    a mail server (Store) to read messages, the most useful of which is the msgshow.java
    demo program. JavaMail doesn't require you to wire in knowledge of the Store
    protocol. You can write a program that can connect to any type of Store, and then
    tell it at runtime to use the "pop3" protocol. Looking at msgshow.java, if you pass
    "pop3" as the protocol argument ("-T pop3"), it will connect to a POP3 mail server.

  • Domain isn't in my list of allowed rcpthosts (#5.7.1) - What's that?

    I have 2 accounts: Business and Personal. Frequently mail cannot be sent on the Business account and a message appears 'The server response was: sorry that domain isn't in my list of allowed rcpthosts (#5.7.1)'. It can always be sent on my Personal account.
    All settings have been checked with my server. They suggest I should use Entourage instead of Mail!
    Any advice would be greatly appreciated.

    Hi there...
    I'm having exactly the same (infuriating) message coming back each time i try and send mail from any of my IMAP account. The problems seemed to start when i launched a separate IMAP account.
    What did you do to solve it? Thunderbird works for sending but it doesn't sync with the mac address book which is uber annoying too...
    All best,
    Alistair

  • Unable to send email javax.mail.MessagingException: 553 Domain require

    Hello
    When sending a test message using One to One fulfillment I get the following message
    unable to send email
    javax.mail.MessagingException: 553 <UNSET>... Domain name required"
    Has anybody got this message before? how did you resolve it?
    Thank you
    Kind Regards
    Eva

    See if there is any space in the name of the email server. If yes, remove the space and stop and start the fulfillment server.
    HTH

  • Inquiry on javax.mail.SendFailedException: Invalid Addresses error

    Hi,
    Anyone does have any idea why the following is being encountered during the email authentication process? We are using PeopleSoft application and we have notification functionality which will send a notification email to the users but email not being sent due to an invalid email address but actually the email is active and valid. Below are the logs from SMTP
    Log Start:
    DEBUG SMTP: Sending failed because of invalid destination addresses
    Wed Jul 31 09:38:14 GMT+08:00 2013 RSET
    Wed Jul 31 09:38:14 GMT+08:00 2013 250 2.0.0 Resetting
    Wed Jul 31 09:38:20 GMT+08:00 2013 javax.mail.SendFailedException: Invalid Addresses;
    nested exception is:
    class com.sun.mail.smtp.SMTPAddressFailedException: 550 5.1.1 User unknown
    Wed Jul 31 09:38:20 GMT+08:00 2013 at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1141)
    Wed Jul 31 09:38:20 GMT+08:00 2013 at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:536)
    Wed Jul 31 09:38:20 GMT+08:00 2013 at com.peoplesoft.pt.mcf.mail.MCFOutboundEmail.send(MCFOutboundEmail.java:686)
    Wed Jul 31 09:38:20 GMT+08:00 2013 at com.peoplesoft.pt.mcf.mail.MCFOutboundEmail.send(MCFOutboundEmail.java:854)
    Log End:
    Kindly let us know your thoughts on this.
    Thanks.

    This isn't an authentication problem.  You're sending to an address that your server doesn't know about, so it's rejecting your message.  The error from the server is:
    550 5.1.1 User unknown

  • Javax.mail.SendFailedException: Recipient unknown

    Hi,
    I know similar topics have been posted before but even after going through them all I have still not found a solution.
    I am trying to send alert emails through my JavaMail application and get the Exception below. I am able to send emails to internal address', but not external address' such as my hotmail account. I have even asked the Administrator to put my IP address in the list of allowed IP's. Does anyone have any ideas? If anyone would like to take a look at the source code i have pasted it underneath the stacktrace.
    Thanks in advance.
    javax.mail.SendFailedException: Sending failed;
    nested exception is:
    javax.mail.SendFailedException: Invalid Addresses;
    nested exception is:
    javax.mail.SendFailedException: 550 <[email protected]>, Recipient unknown
    javax.mail.SendFailedException: Sending failed;
    nested exception is:
    javax.mail.SendFailedException: Invalid Addresses;
    nested exception is:
    javax.mail.SendFailedException: 550 <[email protected]>, Recipient unknown
    at javax.mail.Transport.send0(Transport.java:218)
    at javax.mail.Transport.send(Transport.java:80)
    at Test1.main(Test1.java:28)
    SOURCE:
    import javax.mail.internet.*;
    import javax.activation.*;
    final public class Test1 {
    private static Session session;
    public static void main(String[] args)
         try
              Properties props = new Properties();
              props.put ("mail.smtp.host", "207.132.45.5");
              props.put ("mail.smtp.port", "25");
              session = Session.getInstance(props, null);
              MimeMessage message = new MimeMessage(session);
              message.setFrom (new InternetAddress ("[email protected]"));
              message.setRecipient (Message.RecipientType.TO, new InternetAddress ("[email protected]"));
              message.setSubject ("test message");
              Multipart multipart = new MimeMultipart();
              BodyPart messageBodyPart = new MimeBodyPart();
              multipart.addBodyPart (messageBodyPart);
              messageBodyPart.setText ("message body");
              message.setContent (multipart);
              javax.mail.Transport.send (message);
         } catch (Exception e) {
              System.out.println (e.toString());
              e.printStackTrace();

    Personal, I am sending a class example that uses authentication in the email sending:
    * Class JAVA
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.util.*;
    import java.lang.*;
    import java.lang.Exception;
    public class email
    public void sendSimpleMail (String mailServer, String subject,String to,String from, String mensagem)
    throws AddressException , MessagingException
    Properties mailProps = System.getProperties();
    mailProps.put("mail.smtp.host", mailServer);
    mailProps.put("port","25");
    mailProps.put("mail.smtp.auth", "true");
    Session mailSession = Session.getDefaultInstance(mailProps, new MyPasswordAuthenticator("username", "password"));
    InternetAddress destinatario = new InternetAddress (to);
    InternetAddress remetente = new InternetAddress (from);
    Message message = new MimeMessage (mailSession);
    message.setFrom(remetente);
    message.setRecipient( Message.RecipientType.TO, destinatario );
    message.setSubject (subject);
    message.setContent (mensagem.toString(), "text/plain");
    try
    Transport transport = mailSession.getTransport("smtp");
    transport.connect(mailServer," ", " ");
    transport.send(message);
    catch (javax.mail.SendFailedException sfe)
    System.out.println("FALHA: " + sfe);
    catch (MessagingException e)
    System.out.println("erro: " + e);
    /** This is the authenticator for SMTP session */
    public static class MyPasswordAuthenticator extends Authenticator
    private String username = null;
    private String password = null;
    public MyPasswordAuthenticator(String username, String password)
    super();
    this.username = username;
    this.password = password;
    public PasswordAuthentication getPasswordAuthentication()
    return new PasswordAuthentication(username, password);
    * File JSP
    <html>
    <body>
    <%@ page import="email, javax.mail.*, javax.mail.internet.*, java.util.*" %>
    <jsp:useBean id="email" scope="session" class="email"/>
    <%
    try
    String mailServer = "myServer";
    String assunto = request.getParameter("assunto");
    String para = request.getParameter("para");
    String de = request.getParameter("de");
    String mensagem =request.getParameter("mensagem");
    email.sendSimpleMail(mailServer, assunto, para, de, mensagem);
    %>
    <p>Email enviado com Sucesso !!!</p>
    <%
    catch (AddressException e)
    %> <p>Endereco de Email invalido</p><%
    catch (MessagingException e)
    %> <p>Impossivel enviar o email.</p><%
    %>
    </body>
    </html>

  • Javax.mail.SendFailedException

    HI all,
    I have an application which reads .csv file, picks up email ids and sends e-mail to mentioned 'to' address.
    There are 199 diffreent email ids. I could send upto 90 emails.
    But, after that, i got following error !
    error message:
    javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.MessagingException: Could not connect to SMTP host: mail.**********.com, port: 25
    I don't know the reason for it. Can any one please guide me in this regard?
    Thanks in advance !
    Regards
    Ashvini

    Try to give all the address in TO field with comma seperation and check it out.
    Regards
    Balu

  • Class javax.mail.SendFailedException

    Hi,
    Let me know regarding java mail. I am facing the error as follows,
    ===============Exception=====================
    javax.servlet.ServletException: Sending failed;
    nested exception is:
         class javax.mail.SendFailedException: Invalid Addresses;
    nested exception is:
         class javax.mail.SendFailedException: 550 not local host gmail.com, not a gateway
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
         org.apache.jsp.sendmail3_jsp._jspService(sendmail3_jsp.java:75)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    ================sourcecode============================
    <%@ page import="java.util.*, javax.mail.*, javax.mail.internet.*" %>
    <%
    Properties props = new Properties();
    props.put("mail.smtp.host", "66.34.40.98");
    Session s = Session.getInstance(props,null);
    MimeMessage message = new MimeMessage(s);
    InternetAddress from = new InternetAddress("[email protected]");
    message.setFrom(from);
    InternetAddress to = new InternetAddress("[email protected]");
    message.addRecipient(Message.RecipientType.TO, to);
    message.setSubject("Test from JavaMail.");
    message.setText("Hello from JavaMail!");
    Transport.send(message);
    %>
    <html>
    <p align="center">A Message has been sent.<br>Check your inbox.</p>
    <p align="center">Click here to send another!</p>
    </html>

    Is there any rule defined on the mailserver that BPEL is accessing via SMTP? Is it directly checking the address for validation or something?
    Can you do a SMTP transaction on the BPEL server for this mail account only?
    1) Create a notification process that sends a mail only for this user.
    2) open a telnet session from the BPEL server commandline to do a SMTP conference.
    http://nl.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol

  • Javax.mail.SendFailedException: 550 5.7.1 ... Relaying denie

    My machine is on the DNS and does not require authentication to send e-mail. It also can send and recieve e-mail from the outside world with no problems; however this is the error I see in the logs:
    2003-12-11 10:03:49,151 INFO org.dspace.app.webui.servlet.RegisterServlet @ anonymous:session_id=8E5A9C16A74EAA9F334FF566CB6714BF:error_emai$
    javax.mail.SendFailedException: Sending failed;
    nested exception is:
    javax.mail.SendFailedException: Invalid Addresses;
    nested exception is:
    javax.mail.SendFailedException: 550 5.7.1 <[email protected]>... Relaying denied
    at javax.mail.Transport.send0(Transport.java:219)
    at javax.mail.Transport.send(Transport.java:81)
    at org.dspace.core.Email.send(Email.java:259)
    at org.dspace.eperson.AccountManager.sendEmail(AccountManager.java:291)
    at org.dspace.eperson.AccountManager.sendInfo(AccountManager.java:251)
    at org.dspace.eperson.AccountManager.sendRegistrationInfo(AccountManager.java:96)
    at org.dspace.app.webui.servlet.RegisterServlet.processEnterEmail(RegisterServlet.java:272)
    at org.dspace.app.webui.servlet.RegisterServlet.doDSPost(RegisterServlet.java:206)
    at org.dspace.app.webui.servlet.DSpaceServlet.processRequest(DSpaceServlet.java:153)
    at org.dspace.app.webui.servlet.DSpaceServlet.doPost(DSpaceServlet.java:110)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
    Can someone tell me what I am doing wrong here?
    Thanks.

    The important line in the stack trace is
    javax.mail.SendFailedException: 550 5.7.1 <[email protected]>... Relaying denied
    The 550 error is being returned by the SMTP server to the your client as per the RFC.. It tells us that the client has built a message and has pushed it to the server. The server is looking at the message and finds something it doesn't like. It then returns the 500 series error to the client.
    The relative locations of the server and client may be an issue since you can configure your server to treat clients run locally different, usually you have the localhost unrestricted and put the filters on for everyone else (there are some admins that lock down local clients on the theory that no one should be running a client on the server so if someone tries they must have hacked the box).
    If you try running a different client on the machine with the identical settings for all the header fields you will still get the 550 error. At this point I would have a talk with the admin and ask what the rules for the server are.

Maybe you are looking for