Sun Java(tm) System Messaging Server 6.3-0.15 outgoing mail issue

Hi,
We are running Sun Java(tm) System Messaging Server 6.3-0.15 (built Feb  9 2007).
with this java code if i change  email.setFrom(SenderEmial);   to any other email address than the mail server will send email form that email instead of authenticated which is a problem for us so that any one can misuse it. i need help regarding this issue.I think its due to lack of SSL security so i want to know that how i can enable SSL.
  Email email = new SimpleEmail();
    email.setSmtpPort(25);
    email.setAuthenticator(new DefaultAuthenticator("[email protected]","myPass"));
    email.setDebug(false);
    email.setHostName("mail.sunjavamail.com");
    email.setFrom(SenderEmial);  //By changing this my mail server is sending emails from any email address.
    email.setSubject("Hi");
    email.setMsg("Test Mail");
    email.addTo("[email protected]");
      // email.setTLS(true);
   // email.setSSL(true);
    email.send();
    System.out.println("Done");
Thanks..

Hi,
I do not think this is unusual.  Out of the box there are no restrictions on From: addresses, they're not required to match the domain of the sender or match up with DNS results.  You can configure various restrictions or even modify the from address based on the users authenticated credentials, but not by default. 
See the following documentation for details on restricting From: addresses:
https://wikis.oracle.com/display/CommSuite/Mail+Filtering+and+Access+Control#MailFilteringandAccessControl-FROMACCESSDescription
https://wikis.oracle.com/display/CommSuite/Handling+Forged+Email+by+Using+the+Sender+Policy+Framework

Similar Messages

  • Looking for training on Sun Java(tm) System Messaging Server 6

    Hi All,
    I looking to take training on Sun Java(tm) System Messaging Server 6 i checked SUN Training Site but i didn't find
    Can ant one tell me if its available or not.
    regards,
    Mariam

    MariamS wrote:
    I see that you know so much about Sun Java System Messaging staff. I've been using Messaging Server for over 8 years in various roles so I have a good head-start.
    from where you learned all these i like to expert in this area but i dont know from where i have to start.The Messaging Server admin guide is the best place to start:
    http://docs.sun.com/app/docs/doc/819-4428
    Regards,
    Shane.

  • Problem Connecting to Sun Java(tm) System Messaging Server 6.2-3.05

    Hi All,
    I am trying to connect to Sun Messaging Server from my program. Till now I tested the program against all other popular IMAP servers with out any problem. I have set the debug to true. I am not able to figure why the connection is getting reset. Any help would be greatly appreciated
    Thanks in Advance
    Srinivas
    DEBUG: setDebug: JavaMail version 1.4.1ea-SNAPSHOT
    * OK [CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS CHILDREN BINARY LANGUAGE XSENDER X-NETSCAPE XSERVERINFO AUTH=PLAIN] Messaging Multiplexor (Sun Java(tm) System Messaging Server 6.2-3.05 (built Nov 23 2005))
    IMAP DEBUG: AUTH: PLAIN
    A0 CAPABILITY
    * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS CHILDREN BINARY LANGUAGE XSENDER X-NETSCAPE XSERVERINFO AUTH=PLAIN
    A0 OK CAPABILITY completed
    IMAP DEBUG: AUTH: PLAIN
    A1 LOGIN KBahadur mypassword
    javax.mail.MessagingException: * BYE JavaMail Exception: java.net.SocketException: Connection reset;
    nested exception is:
         com.sun.mail.iap.ConnectionException: * BYE JavaMail Exception: java.net.SocketException: Connection reset
         at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:476)
         at javax.mail.Service.connect(Service.java:275)
         at javax.mail.Service.connect(Service.java:156)
         at com.gavs.mail.receiver.MailReceiver.receive(MailReceiver.java:74)
         at com.gavs.mail.receiver.MailReceiver.poll(MailReceiver.java:39)
         at com.gavs.calendar.server.HTTPPushServer$4.run(HTTPPushServer.java:72)
    Caused by: com.sun.mail.iap.ConnectionException: * BYE JavaMail Exception: java.net.SocketException: Connection reset
         at com.sun.mail.iap.Protocol.handleResult(Protocol.java:315)
         at com.sun.mail.imap.protocol.IMAPProtocol.login(IMAPProtocol.java:307)
         at com.sun.mail.imap.IMAPStore.login(IMAPStore.java:521)
         at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:456)
         ... 5 more

    I vaguely remember that there was a Messaging Server bug that
    caused it to fail because JavaMail was sending it two packets
    containing the data but it was expecting all the data to be in one
    packet. I thought JavaMail was fixed to send it one packet, to
    avoid the bug, and I thought the server was fixed as well so be
    sure to check for relevant patches. And be sure you're using the
    latest version of JavaMail.
    If I remember correctly, telnet was batching the data for the entire
    line and sending it in a single packet, which is why it worked when
    using telnet.
    You might try a network protocol analyzer (sniffer) like snoop on
    Solaris or tcpdump on Linux to see exactly what packets are being
    sent.

  • How to see console output in Sun Java(TM) System Web Server 6.1 SP7?

    Dear All,
    I am having Sun Java(TM) System Web Server 6.1 SP7 installed on Windows 2000 Prof.
    I have deployed few applications and they were running successfully.
    From debugging point of view, i like to see the output from System.out.println .
    Prior to SP7 there is a console which shows this output. But now the batch files only starts and stops the admin and site server services. Where to see for console output?
    Is there command like tail.exe of Weblogic awailable for Sun Java System Web Server or any setting to be done in Admin?
    Please revert.
    -Sameer

    Response headers can be found in srvhdrs pblock.
    Those can be manipulated by using set-variable
    http://docs.sun.com/app/docs/doc/820-1638/6nda01tea?l=en&a=view#abuis
    You can read more about these in
    Sun Java System Web Server 6.1 SP8 Administrator's Configuration File Reference
    http://docs.sun.com/app/docs/doc/820-1638?l=en
    and
    Sun Java System Web Server 6.1 SP8 NSAPI Programmer's Guide
    http://docs.sun.com/app/docs/doc/820-1643?l=en

  • Sun java convergence error - Message no longer exist

    Hi
    Sun Java(tm) System Messaging Server 7.3-11.01 64bit (built Sep 1 2009)
    libimta.so 7.3-11.01 64bit (built 19:44:36, Sep 1 2009)
    Using /opt/sun/comms/messaging64/config/imta.cnf (not compiled)
    SunOS 5.10 Generic_141445-09 i86pc i386 i86pc
    We moved mailboxes from one server to another. After that we have problems with some accounts. Users see their messages in Sun Java Convergence but can't open and read it. Error appears: Message no longer exist. We tried reconstruct command but it didnt helped.
    Thanks in advance

    luk4s1984 wrote:
    Did you also transfer across the mboxlist database? Were both the source/destination Messaging Server instances down when you performed the move?I didn't move mboxlist database and bouth source and destination instances were up.This method of migrating mailboxes is bound to cause problems. Why did you choose to use this method rather then use the rehostuser command?
    Did you change the users mailhost: parameter?I didn't changed mailhost.Do both the source and destination systems have the same hostname?
    What exact reconstruct command(s) did you run?reconstruct -aIf you run "reconstruct -r user/<uid>" for one of the accounts reporting problems, are any errors reported?
    Check the imap and http log files when the error occurs -- do you see any errors?There is no errors in imap and http logs.Interesting. Which emails return "message no longer exists"?
    Newly delivered (unread) emails, emails delivery prior to migration, emails delivered after migration or some combination of all three?
    Regards,
    Shane.

  • Sun Java enterprise System 2005Q1 installation problems

    I have installed 2005q1 parts in my solaris 5.8 box and had some problems running sussessfully portal server and access manager. So I had to uninstall them again.
    The uninstaller from /var/sadm/prod/entsys/uninstaller did not give me option to un install all components, so I have removed some packegs using pkgrm command.
    Now I am trying to reinstall webserver/directory server/access manager again and now getting the follwoing problems.
    Screen for selecting Type of Configuration
    1. Configure Now - Selectively override defaults or express through
    2. Configure Later - Manually configure following installation
    Select Type of Configuration &#91;1&#93; {"<" goes back, "!" exits} 2
    Ready to Install
    The following components will be installed.
    Product: Java Enterprise System
    Location: /var/sadm/prod/entsys
    Space Required: 110.11 MB
    Sun Java(TM) System Web Server 6.1 SP4 2005Q1
    Sun Java(TM) System Directory Preparation Tool
    Sun Java(TM) System Directory Server 5 2005Q1
    Sun Java(TM) System Access Manager 6 2005Q1
    Identity Management and Policy Services Core
    Access Manager Administration Console
    Common Domain Services for Federation Management
    1. Install
    2. Start Over
    3. Exit Installation
    What would you like to do &#91;1&#93; {"<" goes back, "!" exits}? 1
    Please wait while the installer upgrades and installs shared components...
    Java Enterprise System
    <<<< That is all , after that system doesn't come out to next any more". It just hangs up there."
    Please ,, Please advise what i am missing??????
    Thanks
    Srini parise
    jpsrao&#64;hotmail.com

    it seems that you have not uninstalled the previous entire installation. You can clear all installation manually. first, you need remove all information about your previour installation in "/var/sadm/install/productregistry" file, and then deleted the previous installation directory , now suppose you can reinstall it successfully again, good luck!

  • Can not start Messaging server in Sun Java System Messaging Server 6 2005Q1

    Hi all,
    I installed Sun Java System Messaging Server 6 2005Q1 from Solaris 10 DVD on Solaris 10.
    After the installation, I got directory server, admin server running but messaging server not running. I can not start Messaging server (start smtp, http, pop, imap). I found in directory which I installed messaging server but I could not see script "start-msg" and "stop-msg".
    # pwd
    /opt/SUNWmsgsr/sbin
    # ls
    MoveUser ha_ip_config imquotacheck imsdirmig mkbackupdir
    UpgradeMsg5toMsg6.pl hashdir imsbackup imsexport readership
    configure imexpire imsconnutil imsimport reconstruct
    control-params.txt iminitquota imscripter imsrestore relinker
    deliver immonitor-access imsdaaci mboxutil useconfig
    Any idea what might have gone wrong?
    Thanks.

    Thanks.
    I have a problem when I configure the Messaging Server (by running the /opt/SUNWmsgsr/sbin/configure script):
    Hostname mailtest for this machine is not a fully qualified domain name. Please
    correct this before attempting to configure Messaging Server. Please make sure
    that your DNS is working properly.
    <Press ENTER to continue> {"<" goes back, "!" exits}
    Can you help me fix this problem?
    Thanks.

  • Uninstall Sun Java System Messaging Server

    Hi, I need Uninstall Sun Java System Messaging Server, but I not find a command to uninstall. Where is it? Any documentation?
    Thanks

    The uninstall program is located in:
    /var/sadm/prod/entsys

  • Sun Java System Messaging Server compatability with ipv6

    Dear All;
    I am planning to upgrade the network to ipv6, I would like to know if anyone knows about any issues with Sun Java System Messaging Server 5.2 running over an ipv6 network. Is such information posted anywhere on Sun's website?
    Regards,
    Marwan

    As far as I know, no version of Messaging Server is compatible with ipv6

  • Sun Java System Messaging Server - necessary components

    People, prompt: for Sun Java System Messaging Server besides ldap, what is necessary?

    Hi,
    What is it you want to do with your messaging server installation? If you don't want UWC access (i.e. IMAP/POP access only) then Messaging Server is all you need (along with an LDAP server which may or may not be installed on the same system). A mail-relay system for example requires very little, in fact during configuration you can disable the store to leave MTA functionality only.
    Shane.

  • Sun Java System Messaging Server for Windows xp

    Hi,
    We are in a project that uses Sun Java System Messaging Server on Windows xp platform. But we didn't find the software download.
    Please tell how can i have that software?

    Messaging Server 6.x has never been released for Windows. A windows release is projected for the future, but that may be months away.
    Messaing 6.1 is available NOW for Redhat Linux AS2.1 u2 and Solaris X86. I have installed both, and find them both good.

  • Sun Java System Messaging Server doesn't support some ISO 8859 charsets

    Hello,
    I couldn't find any link to report bugs on the Sun Java System Messaging Server, so i guess i'll report it here:
    Sun Java System Messaging Server currently doesn't support the ISO 8859-13 charset, which is the standard charset in the Baltic states. When a person recieves an email in that charset, every non-ASCII character in the message becomes absolutely unreadable when displayed in this webmail application.
    This has been tested with this version of the product:
    X-Mailer: Sun Java(tm) System Messenger Express 6.1 HotFix 0.01 (built Jun 24 2004)
    Furthermore, you can test the case by yourself using this link: http://www.lietuvybe.org/testas/. You can enter your e-mail address there to get a few sample messages in Baltic and Cyrillic charsets. You will see that the Sun Java System Messaging Server passes all those tests except this particular one. So, it's a very nice product. :)
    It would be very very very cool if Sun would fix this small, but very important issue.
    regards,
    Rimas Kudelis

    Hey! :)
    I am feeling some bad vibes, here.Hey, sorry, I didn't want you to think it's personal. I didn't really mean to hurt you or whatever. You are trying to help and I do appreciate that. I really do.
    The reason i'm a bit sad is about the policy of others:
    First, i am not a provider of that webmail service i'm talking about. A big Lithuanian company is. Personally, I rarely use webmail apps at all, and even when i do, i use an app i internationalized myself. :). Meanwhile, i install Horde IMP as a webmail application for my small servers, and i'm satisfied with it.
    The problem i described is literally not my problem. It's a problem of that big Lithuanian company mentioned above (and the users of its webmail system). I suppose this company does have that account already and, furthermore, they are the ones who should post to this forum or file a support request., and they are the ones who should be worried about that bug. However, reality differs. In reality, big companies in Lithuania don't care about correctness of their webmail apps too much. However, there are a few maniacs like me who do. We test their webmail apps, we contact them and describe them their problems and ask them to fix those problems. Sometimes, they do that, but in most cases we either don't get a reply at all, or we get something like "we'll take a look at it later". For example, lately, we had an issue with one of the most popular webmail providers in Lithuania skipping a MIME-version header. Fixing this issue is just a single line of code. However, we had to push them annoyingly for kinda few months until they finally fixed it.
    That was the first aspect.
    The second is that i don't really like to create hundreds of accounts for myself just to ocasionally report bugs like this one. If only Sun would let me to simply file a bug, and forget that, i would gladly do it. But no, i have to find a deeply hiden support page, then fill a form, create myself an account and a password, then log on, then fill some misterious support request... Do I have to do that for a company that won't even consider thanking me? I think that's too much. Furthermore, every party on the net enforces it's own username and password restrictions. That sucks too. I wish i could just log on as "rq" everywhere like this forum, using the same password i could easily remember. However, i have to use "rq", "er-ku" or "erku" or "rq@something" as my username on different platforms, and sometimes even my (long enough) password is not accepted. It's hard to track such accounts, and in most cases like this one, i don't really want to have an account at all, as i'm just passing by.
    To summarize the post: I'm NOT a licenced user, and all I wanted was to file a bug, which affects licenced users and ordinary people.
    How do i remove my account from this forum now? :)

  • Sun Java System Messaging Server

    Hi all,
    I am new to Sun Java System Messaging Server. In fact right now I don't even know how to install it. Which is why I'm here. I need to know if this server can run on windows xp OS. The other option that I have is Ubuntu Linux 64bit, though I am not so fluent with that operating system.
    http://wikis.sun.com/display/CommSuite/Communications+Suite+6+Installation+Guide
    I visited the link above and under the operating system requirements the OS I have is not listed. But can Someone please confirm my suspicion that this server cannot run on winXP or Linux.
    Thank you,
    Eusha

    adeelarifbhatti wrote:
    What does this mean?
    We can use the public and private key i.e. digital signature via web interface as well?Refer here:
    http://wikis.sun.com/display/CommSuite/Administering+SMIME+in+Convergence
    Regards,
    Shane.

  • Java System Messaging Server book?

    Anyone know of a good book to get someone totally up to speed on Sun Java System Messaging server? I haven't found one yet, and all Amazon seems to have is stuff from 2002 and earlier.
    Any suggestions would be very appreciated.
    Thanks -- TGR

    The 5.2 book is very good, and 90% of it applies to 6.x as well.
    http://www.amazon.com/exec/obidos/ASIN/013145496X/packetfilter/002-9686309-6148044

  • How To make/configure  Broadband connection in Sun java desktop system

    Hi all,
    I am using sun java desktop system Release 3 solaris 10 version in my sun ultra workstation. I have a problem with it. I can not make broadband connection , in it. so pls let me know how can i make broadband connection with my ADSL modem ?
    Thanks
    Partha

    Try this:
    Log into a termina as rootl. (Select failsafe terminal or command login)
    To get the name of your network interface driver, type:
    /usr/sbin/ifconfig -a You'll see something like this:
    lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1
    inet 127.0.0.1 netmask ff000000
    hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
    inet 129.156.226.245 netmask ffffff00 broadcast 129.156.226.255
    In my case it is hme0 so I create a file called /etc/dhcp.hme0:
    touch /etc/dhcp.hme0If you want to set a hostname, put it in a file called /etc/hostname.hme0 for example:
    rm /etc/hostname.hme0
    echo myhostname > /etc/hostname.hme0Most broadband providers preconfigure ADSL modems to default to DHCP so if you do this, connect the ultra 10 to the broadband modem and reboot, the ultra 10 should pick up an IP address and be connected to the internet.

Maybe you are looking for

  • How can I save reader to a disk, it goes straight to download?

    I have a computer that is running Windows XP Home edition and is not connected to the internet.  I need to put a copy of the Acrobat Reader on it.  I have attempted several times on another computer to save the program to a disk, but there is only on

  • In aperture, how can I add text on my picture

    In aperture, I want to add text ,or a messages to  a picture, How can I do this?

  • MacBook Pro 2011 & Crucial C300 SSD Drive

    Hi all, I have in the last month bought a new MacBook Pro from the apple store, 17"  Model Identifier:          MacBookPro8,3 I have tried moving my C300 from my old macbook pro but it jsut doesnt work in the MBP.  I have read about 400 sites which s

  • Music won't export with slideshow

    I've created a slideshow with music that works perfectly in Iphoto. When I export to Itunes or IDvd the slideshow looks perfect, but no music is playing with it. I double-checked to make sure my playlist is selected and applied.

  • Two instances of quirky behavior: array size of empty array and tab control freeze

    LV 7.1 Array size of empty array. Adding empty arrays to an array of higher dimension produces a fantom array of non-zero size. Tab control freeze. An event structure with checked 'lock front panel until the event case completes' option permanently f