"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.

Similar Messages

  • 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...

  • The airport card on my macbook pro is not functioning. In the airport firmware folder it says that it opens with final cut express. Is this the problem and how do i solve it?

    The airport card on my macbook pro is not functioning. In the airport firmware folder it says that it opens with final cut express. Is this the problem and how do i solve it?

    Hopefully one of these steps should solve the problem.
    1. System Preference > Sound > Output > Internal Speakers
        Highlight  Internal Speakers
        Make sure that Mute is not enabled.
    2. Remove the headphone.
        If you see red light in the headphone port, plug the headphone
        in and out of the port 5 or 6 times to flip the microswitch inside.
        Sound output may be stuck in the digital mode.
    3. Reset PRAM.  http://support.apple.com/kb/PH4405
    4. Reset SMC.     http://support.apple.com/kb/HT3964
        Choose the method for:
        "Resetting SMC on portables with a battery you should not remove on your own".
    5. Applications > Utilities > Audio MIDI Setup
        Audio Devices window
        Side Bar
        Click the Built-in Output.
        Under Mute any of the boxes checked? If so, uncheck it.
    6. System Preferences > Sound> Sound Effects
        Play sound effects through:
       Select "Internal speakers" and then back to "Selected sound output device".

  • 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.

  • 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;

  • 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.

  • I am trying to copy and paste a 734mb film on to an 8GB usb but it keeps saying "It cannot copy as there isn't enough space". How is this possible? And how do I put the film on the usb?

    I am trying to copy and paste a 734mb film on to an 8GB usb but it keeps saying "It cannot copy as there isn't enough space". How is this possible? And how do I put the film on the usb?

    Look at the USB stick in Disk Utility and check whether it may be partitioned or have other software on it taking up space.

  • My iTunes won't detect my iPhone that has to be restored via iTunes *because if pass code problems* and its running iOS 7.2

    my iTunes won't detect my iPhone that has to be restored via iTunes *because if pass code problems* and its running iOS 7.0.4

    If itunes is comming up and saying it can't read the device because it's locked with a passcode, you may have to put your device into recovery mode first.
    To put your device in recovery mode: (Following these steps will erase your device and reset everything to factory defaults)
    1) press and hold the power button until you see the slide to power off option
    2) swipe to power off
    3) Press and hold the home button while the device is off and connect it to your computer. Continue holding the home button until you see a graphic with the iTunes logo with a picture of a USB cable below it.
    4) iTunes should give you a message that it has detected a device in recovery mode. Click ok and then select Restore iPhone. iTunes will download a fresh copy of iOS and then wipe the device and restore it. Depending on the speed of your computer's internet connection this may take a while. Just leave the iphone connected to your computer until it's finished.
    If itunes is not detecting it at all or is Not giving you the message that the phone is locked with a passcode, you may end up having to reinstall itunes. This seems to be a fairly common problem after the most recent itunes update (11.1.5)
    If this is the case and you happen to be running a windows based computer you will have to uninstall itunes in this order from your programs and features option in control panel:
    iTunes
    Apple Software Update
    Apple Mobile Device Support
    Bonjour
    Apple Application Support (iTunes 9 or later)
    Then download and reinstall itunes from itunes.com try putting your device into recovery mode again and restore.
    Hope this helps.
    Cheers.

  • HT201472 I sold a unlocked iphone 5 that I bought second hand andhad for a 2 weeks no problems and i sold it and the next day the lady called me saying it was reported stolen and asking for her money what should i do.

    I sold a unlocked iphone 5 that I bought second hand andhad for a 2 weeks no problems and i sold it and the next day the lady called me saying it was reported stolen and asking for her money what should i do.

    Give the Lady her money back then try and get your money back don,t buy
    from someone off the street buy from shop or webb site ie EBAY but still be careful
    no no one can unlock a blocked iPhone only the owner who has the correct
    APple ID
    bbsydd uk

  • 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.

  • When I open a new tab in Firefox, the web page that appears isn´t my start page... How could I fix that?

    My start page is Google website.
    The web page that Firefox open when I clck in new tab option is
    http://start.facemoods.com/?a=stonicla&f=2

    See:
    * [/questions/772061]

  • Firefox cannot load pages that other browsers can, but the 'help' page for this issue did not fix the problem.

    I am troubleshooting an issue occurring on a family member's pc. Immediately after changing their "search" settings from "Yahoo search" to "Google search", they found that Firefox was unable to load any webpages. After troubleshooting the problem, I found the "Firefox can't load websites but other browsers can" help page, and attempted each of the solutions listed. None of those solutions fixed the issue. Also, I uninstalled and re-installed Firefox; the issue persists. However, the 'new' version of Firefox remembered the tabs left open when the 'old' version was deleted, so some temporary files likely persisted.
    Are there any other steps that can be taken, or is Firefox on this computer no longer an option?

    Start with this;
    Type '''about:preferences#advanced'''<Enter> in the address bar.
    Under '''Advanced,''' Select '''Network.'''
    Look for '''Configure How Firefox Connects''' and press the '''Settings''' button.
    Check the settings.
    Some problems occurs when your Internet security program was set
    to trust the previous version of Firefox, but no longer recognizes your
    updated version as trusted. Now how to fix the problem: To allow
    Firefox to connect to the Internet again;
    * Make sure your Internet security software is up-to-date (i.e. you are running the latest version).
    * Remove Firefox from your program's list of trusted or recognized programs. For detailed instructions, see
    '''[https://support.mozilla.org/en-US/kb/configure-firewalls-so-firefox-can-access-internet Configure firewalls so that Firefox can access the Internet.]''' {web link}
    If there is still a problem, go to that computer and do this;
    Type '''about:support''' in the address bar and press '''Enter.'''
    Under the main banner, press the button; '''Copy Text To Clipboard.'''.
    Then in the reply box at the bottom of this page,
    do a right click in the box and select '''Paste.'''
    This will show us your system details.
    '''No Personal Information Is Collected.'''

  • When I save an image on my ipod touch 3rd gen then go to the photos, the library updates/rebuilds, then I cannot view the picture as it just comes up as a picture of a grey camera that says JPG.  It never used to do this, how do I fix it?

    I go to save a picture (bu holding my finger down on the image, then pressing save image, when the option comes up), and then go to the photos to view the picture, its says updating library and takes about a minute to finish loading and rebuilding/updating the library.  After it has finished updating the library I cannot view the picture I saved because it comes up as a picture of a grey camera that says JPG (I assume this is some sort of file, because if i save multiple pictures only one JPG, gery camera image shows up.) My ipod never used to do this.  Any idea on how to fix it?

    Try a manual install following directions in link below.
    Basic troubleshooting steps. 
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD  120G Vertex 3 SSD Boot HD  

  • HT1369 I have a nano 4th generation, the screen has gone blank or I get vertical lines, is there anyone that has had the same problem and fixed it? it does still plays music if I can find it

    Has worked fine since I received it as a gift.  It also worked fine up until the time the screen started with vertical lines then the screen went blank.  any help would be appreciated. It still plays music when I can find it, with the screen blank it is difficult to find.  thanks

    Becaise the digitizer is broken in that area
    Apple will exchange your iPod for a refurbished one for $199 for 64 GB 4G and $99 for the other 4Gs. They do not fix yours.
    Apple - iPod Repair price                       
    A third-party place like the following maybe less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens         
    Replace the screen yourself if you are up to it
    iPod Touch Repair – iFixit                  

Maybe you are looking for

  • My MBP 15 will not finish loading Windows XP in the Boot Camp partition?

    I have tried several times doing EXACTLY what was asked. Launched Boot Camp App. Set the partition, let it finish, then loaded the windows XP disk I have. The XP disk starts to load, it appears to finish by ejecting the disk, then everything is just

  • Applet Doesn't Work in IE; Works in Safari

    I just finished writing a Java Applet in OS X for use in a web page, and it runs perfectly in Safari, but when I try to get it to run in Internet Explorer, it does nothing, not even when I run it on a PC. Furthermore, I can't seem to get IE to even g

  • Service tax condition types in Pricing Procedure in SD(Taxinn)

    I need one more advice on Service tax. I am configuring order type for services.In that in pricing I have to add the service tax conditions type for service tax & cess on that.We do not have any standard condition type in our pricing procedure for se

  • No longer can use my account

    Hi, some weeks ago, my credit card provider informed me that several unusual transactions had been made in my account. As a result, they cancelled my old Visa which I used for auto recharge in the past. Despite deleting my credit card info and changi

  • Runtime Error during export ALV Grid to Local File and Print Priview

    Hi all,          While Exporting ALV grid to local file using menu List->export->local file , I m getting following runtime error,          Field Symbol has not yet been assigned. Details of Errors: Program : SAPLKKBL Include :   LKKBLF99 Module Type