Evaluating debug src, and 'Unable to relay for ...'

hello.
i wanted to know if there is any possibility to evaluate the string that is returned using debug mode in javamail. for example to know wheter conn to mailserver was ok. wether sender or recipient was ok and so on.so that i can (for example) build in some if-clauses to stop (and give a mesage to the current user 'conn failed') or retry some processes.
my second question is, that i sometimes get an error sending mails. the app is running on a tomcat server (localhost). after restarting the tomcat, it works again. after a while (2 or 3 days) it gives me the error message again ('Unable to relay for')here is my exception:
###################### debug/exception start ######################
DEBUG: getProvider() returning
javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun
Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth false
DEBUG: SMTPTransport trying to connect to host "localhost", port 25
DEBUG SMTP RCVD: 220 ffmserver.mailabc.local Microsoft ESMTP MAIL Service,
Version: 5.0.2195.6713 ready at Mon, 3 Apr 2006 13:17:02 +0200
DEBUG: SMTPTransport connected to host "localhost", port: 25
DEBUG SMTP SENT: EHLO ffmserver
DEBUG SMTP RCVD: 250-ffmserver.mailabc.local Hello [127.0.0.1]
250-AUTH GSSAPI NTLM LOGIN
250-AUTH=LOGIN
250-TURN
250-ATRN
250-SIZE 2097152
250-ETRN
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-8bitmime
250-BINARYMIME
250-CHUNKING
250-VRFY
250 OK
DEBUG SMTP Found extension "AUTH", arg "GSSAPI NTLM LOGIN"
DEBUG SMTP Found extension "AUTH=LOGIN", arg ""
DEBUG SMTP Found extension "TURN", arg ""
DEBUG SMTP Found extension "ATRN", arg ""
DEBUG SMTP Found extension "SIZE", arg "2097152"
DEBUG SMTP Found extension "ETRN", arg ""
DEBUG SMTP Found extension "PIPELINING", arg ""
DEBUG SMTP Found extension "DSN", arg ""
DEBUG SMTP Found extension "ENHANCEDSTATUSCODES", arg ""
DEBUG SMTP Found extension "8bitmime", arg ""
DEBUG SMTP Found extension "BINARYMIME", arg ""
DEBUG SMTP Found extension "CHUNKING", arg ""
DEBUG SMTP Found extension "VRFY", arg ""
DEBUG SMTP Found extension "OK", arg ""
DEBUG SMTP: use8bit false
DEBUG SMTP SENT: MAIL FROM:<[email protected]>
DEBUG SMTP RCVD: 250 2.1.0 [email protected] OK
DEBUG SMTP SENT: RCPT TO:<[email protected]>
DEBUG SMTP RCVD: 550 5.7.1 Unable to relay for [email protected]
Invalid Addresses
[email protected]
DEBUG SMTPTransport: Sending failed because of invalid destination addresses
DEBUG SMTP SENT: RSET
DEBUG SMTP RCVD: 250 2.0.0 Resetting
DEBUG SMTP SENT: QUIT
javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
javax.mail.SendFailedException: 550 5.7.1 Unable to relay for
[email protected]
at javax.mail.Transport.send0(Transport.java:219)
at javax.mail.Transport.send(Transport.java:81)
at
de.mailabc.filework.beans.mail.MailSendingMsg.SendEmail(MailSendingMsg.java:115)
at
org.apache.jsp.jsp.dcs.lists.boxes.action.send.send_jsp._jspService(org.apache.jsp.jsp.dcs.lists.boxes.action.send.send_jsp:308)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
javax.mail.SendFailedException: 550 5.7.1 Unable to relay for
[email protected]
at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:804)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:320)
at javax.mail.Transport.send0(Transport.java:164)
at javax.mail.Transport.send(Transport.java:81)
at
de.mailabc.filework.beans.mail.MailSendingMsg.SendEmail(MailSendingMsg.java:115)
at
org.apache.jsp.jsp.dcs.lists.boxes.action.send.send_jsp._jspService(org.apache.jsp.jsp.dcs.lists.boxes.action.send.send_jsp:308)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
###################### exception end ######################
any ideas
thanks a lot
faissal

You don't understand that message? It's specifically mentioned in the FAQ.

Similar Messages

  • 550 5.7.1 Unable to relay for [probably bogus Email address]

    Hello,
    My Exchange Server has been reporting numerous instances of the following message (or very similar messages) most days for a couple of weeks or so now:
    This is an SMTP protocol log for virtual server ID 1, connection #3. The client at "118.161.64.59" sent a "rcpt" command, and the SMTP server responded with "550 5.7.1 Unable to relay for [email protected] ". The
    full command sent was "rcpt TO: <[email protected]>". This will probably cause the connection to fail. For more information, click http://www.microsoft.com/contentredirect .asp
    The Email address is unknown, and probably bogus.
    What really concerns me is that the messages from yesterday (Sunday!) contained a now defunct Email account from someone who used to work in our London head office, but left about a couple of years ago. To me, this implies that there has been unauthorised
    access to the company IT infrastructure - possibly at both sites - and that someone is trying to get our Exchange Server to relay unsolicited / mailicious Emails. The above message suggests that the attempted relaying has not been successful to date, and I
    can't find anything out of the ordinary in the SMTP queues or the Exchange logs - but the persistence does concern me.
    So, am I reading this correctly? If so, what can I do about it? Or if not, what does it really mean?
    Thankyou very much for your help.
    Kind regards,
    Keith

    If your Exchange server is accessible from the Internet, as it would be to allow you to receive SMTP mail unless you have a relay server like an Exchange Edge server, then Spammers will attempt to use it to relay.  Your server is correctly rejecting
    that, so I don't see a problem.  If you're worried about this, then you could contract with a third-party cloud-based message hygiene service like Exchange Online Protection, and the restrict the IP address that can talk to your Exchange server to those
    of the hygiene service.
    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

  • Invalid Addresses; nested exception is: class javax.mail.SendFailedException: 550 5.7.1 Unable to relay for

    Hi!
    I am with a problem during a sending e-mail for 3500
    addressees.
    In the way it process me of the one error and in log CF
    Administrator shows the following error to it:
    Invalid Addresses; nested exception is: class
    javax.mail.SendFailedException: 550 5.7.1 Unable to relay for
    What it could be?
    Server Configuration:
    Windows 2003 Standard with ColdFusion MX 7.02 (last update)
    Best Regards

    You need to either authenticate your user or turn on relaying in your SMTP server. See the JavaMail tutorial for how to authenticate

  • ORA-29279: SMTP permanent error: 550 5.7.1 Unable to relay for....

    i got this problem ,when i try to send mail from mail Queue.
    ORA-29279: SMTP permanent error: 550 5.7.1 Unable to relay for [email protected]
    Edited by: Alekh on Aug 7, 2009 10:13 AM
    Edited by: Alekh on Aug 7, 2009 11:52 AM

    Hi,
    I think you can check your SMTP server with your system administrator firstly. does it work normally?
    And if you are using a Windows PC for APEX, you can check you SMTP server in your IIS administration.
    From your error info : Unable to relay, you can follow below to have a check, if you are working on MS Window
    IIS -> Default SMTP Virtual Server -> Properties -> Access -> Relay resitrictions -> Relay -> All except the list below.
    Hope this helpfull.
    PPMonkey.

  • 550 5.7.1 Unable to relay for ... (not a question, just a FAQ item)

    There's a bug in either Microsoft Exchange or JavaMail API.
    An exception is thrown when sending an email:
    javax.mail.SendFailedException: Invalid Addresses;
    nested exception is:
    class com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for [email protected]
    at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1141)
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:536)
    at javax.mail.Transport.send0(Transport.java:151)
    at javax.mail.Transport.send(Transport.java:80)This exception is caused by, believe or not, because the same mail session has defined the "mail.imap.fetchsize" property in an earlier IMAP session.
    I used this line to fetch a session and in the IMAP code I defined the fetchsize property to increase performance. An identical line was used in the SMTP code to fetch a session to send a mail. As it turns out, the SMTP communication is disrupted by the fetchsize property.
    Session session = Session.getDefaultInstance(props, null);
    My solution was to change the SMTP code the following:
    Session session = Session.getInstance(properties);
    Hope this helps someone, somewhere in the future...

    Well, I don't believe the fetchsize property is disrupting SMTP sending, but it is true that
    everyone who calls Session.getDefaultInstance gets the same Session object, and the
    properties for that Session are set by the first caller. The properties passed in by
    subsequent callers are ignored.
    The javadocs for the method try to explain this behavior, perhaps not well enough.

  • 550 5.7.1 Unable to relay for

    I'm getting this error and can not receive email from anywhere.
    However I can send email OK. Its the receiving part.
    I uninstalled the old exchange and put this into production and now can't receive mail.
    All connectors are the default ones out of the box. All roles are on one system.

    This is an Exchange 2013.

  • WebStart and JavaMail -- unable to relay

    Hi
    I have an application that I can run from the command line that can successfully send email using JavaMail.
    I package the app up for WebStart and run it on the same machine, when I send the mail using JavaMail I get a 550 error:
    class com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for [email protected];Any ideas? My mail.jar and activation.jar are specified in my JNLP file for my app as an extension (as they are signed already)...
    Has anyone seen this?
    Thx,
    Mark

    er no
    I run my app from a command shell on XP and sendimg mail via our Exchange server works fine on my development machine.
    I run the SAME app using a WebStart based installation on the same machine as per the command shell run, with the installation downloaded from a webserver on the same machine and when the piece of code that sends a mail is invoked I get the UNable to relay error..
    Why would it work from the command shell and not from WebStart...
    Mark

  • Cannot get db mail to work via SMTP Relay for Office 365 in SQL Server 2014 on Windows Server 2012 R2

    Our company recently moved to Office 365 which mean our on premise exchange server went away as well with the move.  I am trying to configure my new sql server (OS-Windows Server 2012 R2, DBMS- SQL 2014 Std Edtion).  After some searching I found
    this article (http://blogs.technet.com/b/meamcs/archive/2013/02/25/how-to-configure-sql-database-mail-so-send-emails-using-office-365-exchange-online-a-walkthrough.aspx) and have followed these steps exactly, but to no avail.  I did some further research
    on the SMTP relay I setup and found a way to test it (listed here http://technet.microsoft.com/en-us/library/dn592151(v=exchg.150).aspx at the bottom of the article).  If I drop the email.txt file in the pickup folder, it gets sent out no problem.
     I have configured my db email exactly as describe here(http://blogs.technet.com/b/meamcs/archive/2013/02/25/how-to-configure-sql-database-mail-so-send-emails-using-office-365-exchange-online-a-walkthrough.aspx).  But keep getting an unable to connect
    to SMTP server error.  I have even tried completely shutting down firewall to see if that is the issue and multiple restarts.  Any ideas how to get this to work on Office 365?
    DB Mail error log:
    Date 6/10/2014 10:28:41 PM
    Log Database Mail (Database Mail Log)
    Log ID 46
    Process ID 2196
    Mail Item ID 19
    Last Modified 6/10/2014 10:28:41 PM
    Last Modified By xx
    Message
    The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 2 (2014-06-10T22:28:41). Exception Message: Cannot send mails to mail server. (Failure sending mail.).

    Hi,
    I followed this blog and got the below error message in the Database Mail Log.
    “The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 2 (2014-06-11T19:34:00). Exception Message: Cannot send mails to mail server. (Mailbox unavailable. The server response was: 5.7.1 Unable to relay
    for [email protected]).”
    If you are getting the same error message, you can try the below steps to resolve the issue.
    1. Open the IIS 6.0 management console. Right click on the SMTP server and open the properties window.
    2. Click on the Access tab, click Relay button under Relay restrictions. loopback IP address (i.e 127.0.0.1).
    Then the email should be sent out from Database Mail without problem.
    Thanks.
    Tracy Cai
    TechNet Community Support

  • #5.7.1 smtp;550 5.7.1 Unable to relay

    Hi,
    In my company we are facing lot of problems sending emails to some recipients when their email addresses are surrounded by single quotes, in Outlook. Ex.: '[email protected]'. If we remove the quotes the message relays with no problem. The question is why there
    are some others domains that if we keep the single quotes the message is relayed. Is the problem in our side (my company) or the other side is rejecting the message in some way. What should I do in this case? I'll appreciate any help. We use Oulook 2007 and
    Exchange Server 2003.
    Here is the error:
    Your message did not reach some or all of the intended recipients.
          Subject: Here is the subject
          Sent: 23-07-2014 08:52
    The following recipient(s) cannot be reached:
          [email protected] on 23-07-2014 08:52
                You do not have permission to send to this recipient.  For assistance, contact your system administrator.
                <mail_server #5.7.1 smtp;550 5.7.1 Unable to relay for [email protected]>

    Hi,
    Thank you sou much for your reply.
    My question was. If I keep the single quotes for SOME EXTERNALS RECIPIENTS, I get the error message aboved.
    If I remove the single quotes for THOSE EXTERNALS RECIPIENTS the messages can be relayed.
    Best regards,
    Edmilton Cruz.
    Thursday, July 31, 2014 1:40 PM
    Hi again,
    Any answer to this issue???
    Another thing that is happening is that  when we send emails to some recipients and their email addresses are in upper case we receive a NDR #5.7.1 smtp;550 5.7.1 Unable to relay for ...
    Best regards,
    Edmilton Cruz.

  • Exception  Unable to relay

    Hi all
    i try to send a message from an internal address to an external address and i get an error :
    Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for external@adress
    I use the same code in many customers enviroment and i have no problem.
    I try to set on java
         settings.setProperty("mail.smtp.auth", true);
    but doesn't work.
    i read the faq and i find :
    Q: When I try to send a message, why do I get javax.mail.SendFailedException: 550 Unable to relay for my-address?
    A: This is not a JavaMail problem. This is an error reply from your SMTP mail server. It indicates that your mail server is not configured to allow you to send mail through it. Typically, mail servers for an organization will be configured to allow mail from within the organization to be sent to other addresses within the organization, or to addresses external to the organization. It will also typically allow mail coming from an address external to an organization to be sent to addresses within the orgnaization. What it will typically not allow is mail coming from an address external to the organization to be sent (relayed) to another address also external to the organization. The configuration of the mail server determines whether such relaying is allowed, and which addresses are considered internal vs. external. Often mail servers will require you to authenticate before they will relay messages. but i think is not my case,it say that the problem is from external to external, o r is possible that an internal address is set like external?
    Are there other setting on server that can generate the exception?
    In fact the mail server is not maintaned of my company so i have the password of the user from the customer, but i think that if is an invalid password i get another error right?
    any idea?

    I get this error
    javax.mail.SendFailedException: Invalid Addresses;
    nested exception is:
    com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for [email protected]
    at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1196)
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584)
    at it.dpe.lib.mail.Mail.send(Mail.java:187)
    at it.dpe.editoriale.gui.InvioMailForm.inviaMail(InvioMailForm.java:773)
    at it.dpe.editoriale.gui.InvioMailForm.manageGenericMethod(InvioMailForm.java:263)
    at it.dpe.lib.util.RunnableMethod.execCommands(RunnableMethod.java:83)
    at it.dpe.lib.util.RunnableMethod.run(RunnableMethod.java:58)
    at it.dpe.lib.gui.GenericForm$8.run(GenericForm.java:2532)
    at it.dpe.lib.thread.DpeWait$4.call(DpeWait.java:222)
    at it.dpe.lib.thread.DpeWait$4.call(DpeWait.java:219)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 550 5.7.1 Unable to relay for [email protected]
    at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1047)
    i try to sent a message from internal address to an external.
    If the message is sent from a mail client works.
    Edited by: pedriky on Jul 13, 2010 11:56 PM

  • UTL_SMTP: unable to relay

    I am using utl_smtp to send emails from the database. I can send emails within the company's own domain, but not to other domains. I get the error message 'Unable to relay'.
    I know that has nothing to do with utl_smtp itself, but with the smtp server settings.
    The mail server administrator allowed relaying for the database server's ip address.
    As a test I tried to send an email using the Unix sendmail command on the database server. With sendmail relaying is allowed, but using utl_smtp it's not.
    Does anyone have any idea what the difference is? Why is relaying allowed using sendmail, and why is it not allowed using utl_smtp?

    The message is:
    ORA-20002: 550 5.7.1 Unable to relay for <email address>
    ORA-06512: at "SYS.UTL_SMTP", line 86
    ORA-06512: at "SYS.UTL_SMTP", line 223
    ORA-06512: at "PPI.SEND_EMAIL", line 13
    ORA-06512: at line 16
    I tried the same email address with utl_smtp and sendmail.
    But our system administrator just told me he has no time to look into the problem today. To be continued next week....

  • SMTP Error 5.7.1 Unable to relay - from webmail interface

    Hi,
    This is some strange problem i faced for the first time.
    Below Messaging Version on Solaris 10 which is working fine.
    Sun Java(tm) System Messaging Server 6.2-7.05 (built Sep 5 2006)
    libimta.so 6.2-7.05 (built 12:18:44, Sep 5 2006)
    Sometimes (very rarely), users getting "relaying problem" even they try to send from webmail (using browser) interface.
    Part of log written to "http" file under <msg-hime>/log directory:
    [24/Jun/2007:15:42:34 -0400] webmail httpd[23377]: General Warning: saveSmtp failed: SMTP Error 5.7.1 Unable to relay for [email protected]
    Any help highly appreciated
    TIA
    Prvn

    Hi shane,
    All incoming mails (incl. sent self mails using webmail interface) seem to be looped. Not able to receive any mail.
    The logs written in mail.log_current below: (when sent self mails using webmail)
    when service.http.smtphost = 127.0.0.1 :
    26-Jun-2007 05:36:32.09 tcp_intranet tcp_scan E 2 [email protected] rfc822;[email protected] @tcp_scan-daemon:[email protected] mailgw ([192.168.1.49])
    26-Jun-2007 05:36:32.19 tcp_scan D 2 [email protected] rfc822;[email protected] @tcp_scan-daemon:[email protected] [192.168.1.49] dns;[192.168.1.49] (TCP|192.168.1.41|43340|192.168.1.49|10026) (mailgw Symantec Mail Security Tue, 26 Jun 2007 05:36:22 -0700 ) smtp;250 2.1.5 [email protected]
    26-Jun-2007 05:36:36.10 tcp_intranet tcp_scan E 3 [email protected] rfc822;[email protected] @tcp_scan-daemon:[email protected] mailgw ([192.168.1.49])
    26-Jun-2007 05:36:36.20 tcp_scan D 3 [email protected] rfc822;[email protected] @tcp_scan-daemon:[email protected] [192.168.1.49] dns;[192.168.1.49] (TCP|192.168.1.41|43411|192.168.1.49|10026) (mailgw Symantec Mail Security Tue, 26 Jun 2007 05:36:26 -0700 ) smtp;250 2.1.5 [email protected]
    26-Jun-2007 05:36:40.09 tcp_intranet tcp_scan E 3 [email protected] rfc822;[email protected] @tcp_scan-daemon:[email protected] mailgw ([192.168.1.49])
    26-Jun-2007 05:36:40.19 tcp_scan D 3 [email protected] rfc822;[email protected] @tcp_scan-daemon:[email protected] [192.168.1.49] dns;[192.168.1.49] (TCP|192.168.1.41|43414|192.168.1.49|10026) (mailgw Symantec Mail Security Tue, 26 Jun 2007 05:36:30 -0700 ) smtp;250 2.1.5 [email protected]
    26-Jun-2007 05:36:44.13 tcp_intranet tcp_scan E 4 [email protected] rfc822;[email protected] @tcp_scan-daemon:[email protected] mailgw ([192.168.1.49])
    when service.http.smtphost = 192.168.1.41:
    26-Jun-2007 05:20:45.93 tcp_intranet tcp_scan E 5 [email protected] rfc822;[email protected]
    @tcp_scan-daemon:[email protected] mailgw ([192.168.1.49])
    26-Jun-2007 05:20:46.00 tcp_scan D 5 [email protected] rfc822;[email protected]
    @tcp_scan-daemon:[email protected] [192.168.1.49] dns;[192.168.1.49] (TCP|192.168.1.41|36905|192.168.1.49|10026) (mailgw
    Symantec Mail Security Tue, 26 Jun 2007 05:20:36 -0700 ) smtp;250 2.1.5 [email protected]
    26-Jun-2007 05:20:46.17 tcp_intranet tcp_scan E 9 [email protected] rfc822;[email protected]
    @tcp_scan-daemon:[email protected] mailgw ([192.168.1.49])
    26-Jun-2007 05:20:46.27 tcp_scan D 9 [email protected] rfc822;[email protected]
    @tcp_scan-daemon:[email protected] [192.168.1.49] dns;[192.168.1.49] (TCP|192.168.1.41|36906|192.168.1.49|10026)
    (mailgw Symantec Mail Security Tue, 26 Jun 2007 05:20:36 -0700 ) smtp;250 2.1.5 [email protected]
    26-Jun-2007 05:20:46.32 tcp_intranet tcp_scan E 5 [email protected] rfc822;[email protected]
    @tcp_scan-daemon:[email protected] mailgw ([192.168.1.49])
    26-Jun-2007 05:20:46.40 tcp_scan D 5 [email protected] rfc822;[email protected]
    @tcp_scan-daemon:[email protected] [192.168.1.49] dns;[192.168.1.49] (TCP|192.168.1.41|36907|192.168.1.49|10026) (mailgw
    Symantec Mail Security Tue, 26 Jun 2007 05:20:37 -0700 ) smtp;250 2.1.5 [email protected]
    26-Jun-2007 05:20:46.58 tcp_intranet tcp_scan E 10 [email protected] rfc822;[email protected]
    @tcp_scan-daemon:[email protected] mailgw ([192.168.1.49])
    26-Jun-2007 05:20:46.67 tcp_scan D 10 [email protected] rfc822;[email protected]
    @tcp_scan-daemon:[email protected] [192.168.1.49] dns;[192.168.1.49] (TCP|192.168.1.41|36908|192.168.1.49|10026)
    (mailgw Symantec Mail Security Tue, 26 Jun 2007 05:20:37 -0700 ) smtp;250 2.1.5 [email protected]
    26-Jun-2007 05:20:46.72 tcp_intranet tcp_scan E 6 [email protected] rfc822;[email protected]
    @tcp_scan-daemon:[email protected] mailgw ([192.168.1.49])
    26-Jun-2007 05:20:46.79 tcp_scan D 6 [email protected] rfc822;[email protected]
    @tcp_scan-daemon:[email protected] [192.168.1.49] dns;[192.168.1.49] (TCP|192.168.1.41|36909|192.168.1.49|10026) (mailgw
    Symantec Mail Security Tue, 26 Jun 2007 05:20:37 -0700 ) smtp;250 2.1.5 [email protected]
    26-Jun-2007 05:20:46.97 tcp_intranet tcp_scan E 10 [email protected] rfc822;[email protected]
    @tcp_scan-daemon:[email protected] mailgw ([192.168.1.49])
    Regards,
    Prvn

  • Javax.mail.SendFailedException: 550 5.7.1 Unable to relay

    Hi All,
    I am getting the below Exception message when I am executing my JavaMail
    program.
    nested exception is:
         javax.mail.SendFailedException: Invalid Addresses;
    nested exception is:
         javax.mail.SendFailedException: 550 5.7.1 Unable to relay for [email protected]
    Please can anyone help me out.
    Regards,
    Ravi.

    what's wrong to this source code, if try to send mail to local account actually it success, but if i try to send mail eg:[email protected](outside my network) i found error this error to. i had to try not use encode userID/password into base64, but the result doesn't change.
    if anyone have solution for this problem, please contact me @ [email protected]
    Regards,
    agam
    error returned by java:
    javax.mail.SendFailedException: Invalid Addresses;
    nested exception is:
    class javax.mail.SendFailedException: 550 Relaying is prohibited
    void com.sun.mail.smtp.SMTPTransport.sendMessage(javax.mail.Message, javax.mail.Address[])
    import java.util.*;
    import java.io.*;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.activation.*;
    import com.sun.mail.smtp.SMTPTransport;
    import com.agam198.util.*;
    public class PCMMail{
    String sMailServer = "";
    String sUserID = "";
    String sPassword = "";
    int iPort = 25;
    String sTo = "";
    String sFrom = "";
    String sCC = "";
    Message msg = null;
    SMTPTransport transport = null;
    Transport trns = null;
    public PCMMail(StringPool sPool){
    this.sMailServer = sPool.getString("SMTPServer.SERVER");
    this.sTo = sPool.getString("SMTPAlert.TO");
    this.sFrom = sPool.getString("SMTPAlert.FROM");
    this.sCC = sPool.getString("SMTPAlert.CC");
    this.sUserID = sPool.getString("SMTPServer.LOGIN");
    this.sPassword = sPool.getString("SMTPServer.PASSWORD");
    this.iPort = Integer.parseInt(sPool.getString("SMTPServer.PORT"));
    initConnection();
    public void initConnection(){
    try{
    System.out.println("MailServer: "+sMailServer);
    System.out.println("To: "+sTo);
    System.out.println("From: "+sFrom);
    System.out.println("CC: "+sCC);
    Properties props = new Properties();
    props.put("mail.smtp.host", "152.118.89.0");
    Session session = Session.getDefaultInstance(props,null);
    trns = session.getTransport("smtp");
    if(trns == null){
    System.out.println("trans is not null");
    else
    System.out.println("trans null");
    trns.connect(sMailServer,Base64.base64Encode ( sUserID ),Base64.base64Encode ( sPassword ));
    if(trns.isConnected()){
    System.out.println("connected to SMTP SERVER");
    else{
    System.out.println("not connect");
    InternetAddress address = new InternetAddress();
    //create a message
    msg = new MimeMessage(session);
    catch(Exception e){
    public void sendMessage(String message){
    sendMessage(getFirstLine(message),message);
    public void sendMessage(String subject,String message){
    try{
    //prepare message
    msg.setFrom(new InternetAddress(sFrom));
    msg.setRecipients(Message.RecipientType.TO, InternetAddress.parse(sTo));
    msg.setSubject(subject);
    msg.setSentDate(new Date());
    msg.setText(message);
    trns.send(msg);
    System.out.println("message sent");
    catch(Exception e){
    e.printStackTrace();
    public String getFirstLine(String message){
    BufferedReader buf = new BufferedReader(new StringReader(message));
    try{
    return buf.readLine();
    catch(Exception e){
    return " ";
    public static void main(String[] args){
    StringPool sp = new StringPool();
    sp.set("SMTPServer.SERVER","152.118.89.0");
    sp.set("SMTPServer.PORT","25");
    sp.set("SMTPServer.LOGIN","kiara");
    sp.set("SMTPServer.PASSWORD","kiara");
    sp.set("SMTPAlert.TO","[email protected]");
    sp.set("SMTPAlert.FROM","[email protected]");
    sp.set("SMTPAlert.CC","");
    PCMMail pcm = new PCMMail(sp);
    pcm.sendMessage("subject","message body");
    }

  • Edge 2010 server unable to relay internally

    Hi,
    I have exchange 2010 environment; all the roles are running on individual servers. Recently I have setup an additional edge server and have completed with edge subscription as well. The outgoing email from the internal network have no issue. However the
    incoming emails are stuck at the new edge server and unable to relay to the hub server. The error message in the queue is “451 4.4 0 primary target ip address responded with 5.7.3 cannot achieve exchange server authentication”.
    How can I resolve this?
    Arun.T

    Hi 
    Just check if you have exchange server authentication enabled in the receive connectors . It should be enabled.
    Ports you require open are as follows:Ensure you have all these ports open by tel-netting vice versa
    External  25/TCP (SMTP)
    Internal 25/TCP (SMTP)
    Internal 50389/TCP (LDAP)
    Internal 50636/TCP (LDAP)
    Internal 3389/TCP (RDP)
    Remember to mark as helpful if you find my contribution useful or as an answer if it does answer your question.That will encourage me - and others - to take time out to help you Check out my latest blog posts on http://exchangequery.com

  • Cannot send mail from newsletter server and Server error: Unable to relay

    We have newsletter server. Sometimes we sent mail by our exchange 2010 server. But recently we are unable to send mail to external mail server. we sent mail by newsletter server within a domain now. We need to solve. Pls. check below log file and provide
    how to solve it.
    Sender ID: [email protected]
    our domain: www.silkways.net
    LOG:
    Status Msg : The email details entered successfully into the database.
    Status Msg : The email details entered successfully into the database.
    Access Level : 1
    MAIL SENT TO : [email protected]
    FAILED TO SEND MAIL TO : [email protected]
    Error : SMTP Error: The following recipients failed: [email protected]<p>SMTP server error: 5.7.1 Unable to relay
    </p>
     FAILED TO SEND MAIL TO : [email protected]
    Error : The following From address failed: [email protected]<p>SMTP server error: 5.5.2 Sender already specified
    </p>
    FAILED TO SEND MAIL TO : [email protected]
    Error : SMTP Error: The following recipients failed: [email protected]<p>SMTP server error: 5.7.1 Unable to relay
    </p>
     FAILED TO SEND MAIL TO : [email protected]
    Error : The following From address failed: [email protected]<p>SMTP server error: 5.5.2 Sender already specified
    </p>
     FAILED TO SEND MAIL TO : [email protected]
    Error : The following From address failed: [email protected]<p>SMTP server error: 4.7.0 Too many errors on this connection, closing transmission channel
    </p>
    FAILED TO SEND MAIL TO : [email protected]
    Error : SMTP Error: The following recipients failed: [email protected]<p>SMTP server error: 5.7.1 Unable to relay
    </p>
     FAILED TO SEND MAIL TO : [email protected]
    Error : The following From address failed: [email protected]<p>SMTP server error: 5.5.2 Sender already specified
    </p>

    Hi,
    Since you are able to send emails to internal domain i assume the application server IP address already allowed into Receive Connector.
    To relay application emails to external domain you should enable Externally Secured box in the Authentication Tab of the particular Receive Connector.
    Kottees :My Blog Please mark it as an answer if it really helps you.

Maybe you are looking for