Send mail to exchange server with TLS

Hi,
last month I enabled an oracle wallet TDE for creating encription for TS.
Today, development team needs to send mail to exchange server with TLS.
So I found this procedure on oracle support Doc ID 1323140.1
My question is, can I use the same wallet to send mails from db?
The Oracle Database  11.2.0.3
Or I need to implement a different type of wallet with certificate?
Is there, in this case,  a procedure step by step?
I have never implemented that and I'm very confused....
Thanks in advanced

Hi, I have implemented a new wallet with certificates (for test SMTP.gmail.com) and i'm tryied to use this procedure:
DECLARE
mailhost VARCHAR2(64) := 'smtp.mydomain.it';
sender VARCHAR2(64) := '[email protected]';
recipient VARCHAR2(64) := '[email protected]';
wallet_pwd VARCHAR2(64) := 'welcome1';
wallet_loc VARCHAR2(64) := 'file:/etc/ORACLE/FRMSSYST/SMTP/';
user_name VARCHAR2(64) := 'HDC021319';  -- alias for '[email protected]'
user_pwd VARCHAR2(64) := 'password';  -- password of [email protected]
mail_connection utl_smtp.connection;
BEGIN
-- Make a secure connection using the SSL port configured with your SMTP server
-- Note: The sample code here uses the default of 465 but check your SMTP server settings
mail_connection := utl_smtp.open_connection(
host => mailhost,
port => 25,
wallet_path => wallet_loc,
wallet_password => wallet_pwd,
secure_connection_before_smtp => FALSE);
-- Call the Auth procedure to authorized a user for access to the mail server
-- Schemes should be set appropriatelty for your mail server
-- See the UTL_SMTP documentation for a list of constants and meanings
UTL_SMTP.helo(mail_connection, mailhost);
UTL_SMTP.STARTTLS(mail_connection);
UTL_SMTP.AUTH(
c => mail_connection,
username => user_name,
password => user_pwd,
schemes => 'LOGIN');
-- Set up and make the the basic smtp calls to send a test email
utl_smtp.helo(mail_connection, mailhost);
utl_smtp.mail(mail_connection, sender);
utl_smtp.rcpt(mail_connection, recipient);
utl_smtp.open_data(mail_connection);
utl_smtp.write_data(mail_connection, 'This is a test message using SSL with SMTP.' || chr(13));
utl_smtp.write_data(mail_connection, 'This test requires an Oracle Wallet be properly configured.' || chr(13));
utl_smtp.close_data(mail_connection);
utl_smtp.quit(mail_connection);
END;
This procedure, works fine if I try to send an email to smtp.gmail.com (I tried first with gmail with appropriate certificates), but now, when I try to send an email to the local enterprise Exchange server  I get this error:
ERROR at line 1:
ORA-29279: SMTP permanent error: 503 5.5.2 Send hello first
ORA-06512: at "SYS.UTL_SMTP", line 54
ORA-06512: at "SYS.UTL_SMTP", line 140
ORA-06512: at "SYS.UTL_SMTP", line 439
ORA-06512: at line 35
Thanks in adavanced

Similar Messages

  • I send mail via SMTP server with Hebrew text, and I get it gibberish on my iphone

    I send mail via SMTP server with Hebrew text, and I get it gibberish on my iphone

    What mail program from what kind of computer are you sending your email?  It sounds like an encoding problem that would have to be solved on the sending end.   If you want, send me an example of the kind of email which arrives as gibberish on your iphone (tom at bluesky dot org).

  • I cannot send mail rejected by server does not allaow relaying

    Im having trouble sending mail.  The server doesnt allow relaying

    If you are having trouble sending mail and all of the following are working properly:
    Data connection
    Wi-Fi connection
    Cellular service
    Then the issue probably lies with you SMTP server, even though these steps can be redundant i would try the Following:
    1. Try toggling airplane mode on for 30 seconds, then turn it off-Test mail
    2. Restard the phone-Test mail
    3.If using wi-fi connection disconnect/reconnect(if it still doesnt work) try forget all network settings, then        reconnect to the network once again.
    4.If none of those work, depending on who you e-mail service provider is, it may be an issue with their servers and i would contact them to check.

  • EEM sending mail by authenticated server

    Hi,
    we use EEM 3.2 to send email whenever interface goes down/up. But it doesnt work.
    We need to use authenticated SMTP server, so command for sending mail is following
    action 1.0 mail server "cisco:[email protected]" to "[email protected]" from
    "[email protected]" subject "something"
    But it doesnt work. Log is following
    Mar 22 12:55:34.316: %HA_EM-6-LOG: INTERFACE_CHANGED_STATE : DEBUG(smtp_lib) : smtp_connect_attempt: 1
    Mar 22 12:55:34.333: %HA_EM-6-LOG:  INTERFACE_CHANGED_STATE : DEBUG(smtp_lib) : smtp_read 220  relay2.domain.local HE relay mail server Fri, 22 Mar 2013 13:55:34 +0100
    Mar 22 12:55:34.333: %HA_EM-6-LOG: INTERFACE_CHANGED_STATE : DEBUG(smtp_lib) : smtp_write HELO DP-SW1.dp.local
    Mar 22 12:55:34.752: %HA_EM-6-LOG:  INTERFACE_CHANGED_STATE : DEBUG(smtp_lib) : smtp_read 250  relay2.domain.local Hello [90.185.130.170]
    Mar 22 12:55:34.752: %HA_EM-6-LOG: INTERFACE_CHANGED_STATE : DEBUG(smtp_lib) : smtp_write AUTH LOGIN Y2lzY28=
    Mar 22 12:55:35.298: %HA_EM-6-LOG: INTERFACE_CHANGED_STATE : DEBUG(smtp_lib) : smtp_read 503 5.5.2 Send hello first.
    Mar 22 12:55:35.298: %HA_EM-6-LOG:  INTERFACE_CHANGED_STATE : DEBUG(smtp_lib) : buffer no reply code  matched: 503 5.5.2 Send hello first.
    Mar 22 12:55:35.298: %HA_EM-3-FMPD_SMTP: Error  occurred when sending mail to SMTP server: cisco:[email protected]: error in reply from SMTP server
    Mar 22 12:55:35.298: %HA_EM-3-FMPD_ERROR: Error executing applet INTERFACE_CHANGED_STATE statement 1.0
    Do you have any idea? I changed domain names. I figured out, that when I manually connect to SMTP server and istead of HELO command I use EHLO, it works. Do you think it can be a problem? And how to solve it then?
    Any help appreciated.
    thanks
    John

    Looks like an incompatibility with your SMTP server.  If you get a sniffer trace of a working app sending email through this server what is different versus the debug output here?

  • Mail 2.1.1: Can't read mails from Exchange server

    Effect: *Mail 2.1.1* contacts the Exchange server successfully, which I checked with the operator, looking directly over his shoulder, but Mail 2.1.1 does not load any e-mails. Mail 2.1.1 loads down mails from another server with unknown software (gmx.de) successfully.
    Mail 2.1 works nicely with absolutely identical settings with both mail servers
    I am using Mail 2.1.1/MacOS 10.4.10 on my G4 and MacBook Pro, Mail 2.1/MacOS 10.4.10 on my G5.

    No solution found - works again. Please no questions.

  • Integrate On-Premises Exchange Server With Windows Server Essentials

    I have Exchange Server 2013 installed on Win Server 2012 R2 joined to Windows Server Essentials domain.  Attempting to integrate the Exchange Server into the Essentials domain from the Essentials Dashboard using the wizard fails with the error, "Cannot
    locate an Exchange Server on the network. Make sure that your Exchange Server is setup and that it is connected to the network".  I can communicate with the server in multiple ways from the Essentials Server and other computers on the domain.  Mail
    flow in and out of the Exchange Server works without issue.  I can use the various management tools to administer the Exchange Server.  The only task I cannot complete is integrating it into the Essentials environment which I need to do to move on
    to creating user mailboxes for user accounts setup in AD.
    All research to date has come up empty handed.
    Help!

    Hi RSUL,
    Any update?
    On current situation, would you please let me confirm something more? It may help me to understand this issue
    clearly.
    Would you please let me know how join the Windows Server 2012 R2 (which had been installed Exchange Server 2013) to Windows Server Essentials domain? Did use Connector software
    (type http://servername/connect)?
    On server essentials, please open Dashboard and navigate to DEVICES. Then check the Status of this server which had been installed Exchange Server 2013.
    Currently, the Services Integration features, including on-premises Exchange integration, are only supported in a single domain controller environment. Meanwhile, the integration
    wizard must be run on a domain controller.
    In addition, please refer to the following article and check if can help you.
    On
    Premises Exchange Integration Windows Server 2012 Essentials
    Integrate an On-Premises Exchange Server
    with Windows Server Essentials
    By the way, please check Event Viewer and some relevant logs if you can find some more clues.
    Hope this helps.
    Best regards,
    Justin Gu

  • I have suddenly got the following message An (SMTP) error occurred while sending mail. The server responded: Requested action aborted: This mail account has se

    Having been on Thunderbird for some years I have suddenly got the following message when trying to send mail.
    An (SMTP) error occurred while sending mail. The server responded: Requested action aborted: This mail account has sent too many messages in a short amount of time. Please try later..
    I have checked the SMTP server settings in tools, account settings and they are as they have always been. Is there something I have missed?

    Sending through web mail is totally irrelevant to using an SMTP server. The message even says it is from the server. Why do you think this is a Thunderbird problem.
    The provider has put in place measures to keep people from spamming other email recipients using thier SMTP server. You have seen the result of those measures.

  • How do I send mail link this page with iCloud

    I'm having problems sending mail link from safari with iCloud please.
    Please help

    There is an option to "Send Link..." in the File menu. Firefox does not have a built-in send page by email option.

  • SMICM error while sending mail using SMTP server

    Hi All,
    We are not able send mails using SMTP server.
    We have made every settings necessary in SCOT, SO16 , SMTP service is activated, default domain is maintained etc
    Only things which seems to be wrong is in SMICM trace file.
    [Thr 13] *** ERROR => NiBufIConnect: non-buffered connect pending after 5000ms (hdl 29;10.26.24.44:1090) [nibuf.cpp    4608]
    [Thr 13] *** WARNING => Connection request from (0/1/0) to host: 10.26.24.44, service: 1090 failed (NIECONN_REFUSED)
    [icxxconn_mt.c 2321]
    This error is getting repeated in it.
    BUt I am not sure why it it trying to hit 10.26.24.44, as we dont have any server by this ip. The ip is only not resolvable from the server.
    1 more thing, at OS level, following parameter is maintained in profile :
    icm/server_port_1 = PROT=SMTP,PORT=25000,TIMEOUT=180
    But in SCOT, under SMTP node PORT is given as 25.
    Kindly let me know what going wrong here?
    Thanks

    also getting error as follows
    Error: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1
    Authentication Required. Learn more at
       at System.Net.Mail.MailCommand.CheckResponse(SmtpStatusCode statusCode, String response)
       at System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, String from)
       at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception)
       at System.Net.Mail.SmtpClient.Send(MailMessage message)
       at ST_c121e07caaa94c21bb1355d4f753112f.vbproj.ScriptMain.Main()
       --- End of inner exception stack trace ---
       at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
       at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
       at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
       at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, CultureInfo culture)
       at Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTATaskScriptingEngine.ExecuteScript()

  • Send mail from windows server 2008

    Hi all,
    I have developed one web application on windows xp platform, which will send mails on request (using javamail api).
    But it is not able to send mails from windows server 2008, what should I do .. ?
    Thanks & Regards,
    Abel

    Thanks for reply.
    Here my answers for above questions :
    The web application which is deployed in the server is not able to send mails.
    I'm not getting any exceptions.
    I don't know what the protocol trace show.
    I don't know how to debug my application, which was working fine in my development environment,but giving error result(not working fine in deployed system).
    Regards,
    Abel

  • TLS problems with OIM mailing through exchange server

    Dear All,
    I ran into a problem concerning the internal mailing mechanism Oracle provides in OIM.
    Im trying to send email definitions through a custom made mail adapter.
    Each time i send it i get a 530 5.7.1. Client was not authenticated error.
    We narrowed it down to it being a TLS error since this is required by the exchange mail server we use.
    When we turn TLS off the mails are being sent but when it it turned on again the error returns.
    it seems the used provider, the javax.mail.provider com.sun.mail.smtp.SMTPTransport does not issue a TLS session.
    sun also has an SMTPSSLTransport provider but i dont now where i can config oracle to use that one instead of SMTPTransport (or even if this will solve the issue).
    Thanks in advance.

    I am actually using that, and sending works fine aslong as TLS is turned off on the exchange server.
    When it is turned on i get the 530 5.7.1 client not authenticated error, presumably caused by the Sun SMTPTransport driver used by the internal mechanism of Oracle IDM.
    So im wondering whether it is possible to say to OIM: dont use the SMTPTransport driver but the SMTPSSLTransport driver (which hopefully can handle TLS calls)
    Anyone? (or clues on how to solve it another way)

  • LION MAIL and EXCHANGE Problem with Excessive Polling Server Load

    With a few of our apple mail users we are experincing polling on our exchange server which is in the order of 1-13 polls per second to the server.
    We have logged it from 9AM-5PM where it tails off when they go home for the end of the day.
    Has anyone esle experienced this.
    I believe apple mail in lion is still a PULL client using EWS to achieve mail retrieval.
    Well all for now.
    Thanks

    Are you saying that this is a well-recognised issue?
    Can we assume that the reason for not fixing it is that Nokia want people to use Nokia Messaging instead? It came free with my phone and I did try it. It connected & synchronised well but contacts in headers kept appearing in quotes ("") and when I checked my email from my main IMAP client my sent items included incomplete versions of my emails as well as the finished email - as if it was sending drafts.
    I guess I'm sticking with MfE for calendar and IMAP for email...

  • Cannot send mail from Exchange 2013 to Exchange 2007

    I have an
    Exchange 2007server with all roles in the same server (Version:
    08.03.0327.001 ) on a Windows 2008 R2 server. I have now installed two Exchange 2013 servers both with CAS and MBX roles on Windows 2012 servers
    (full patched). There is also a DAG between the new servers. All mail goes through a BorderWare besides the internal mail.
    I can send mail from both environments to the Internet. I can also send internal mail from Exchange 2007 to Exchange 2013.But the problem is that I am unable to send from Exchange 2013 to Exchange 2007. I've debugged, but not solved the problem and there are
    few articles on the Internet.
    Any suggestions?

    These two sentences are in conflict : "I can also send
    internal mail
    from Exchange
    2007 to
    Exchange 2013. But
    the problem is
    that I am unable
    to send from Exchange
    2007 to
    Exchange 2013. "
    Can you describe what is your real problem? Flow from E2007->E2013? Or vice versa?
    Please 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. Thank you! Damir

  • Can no longer send mail from exchange account

    My send mail icon is now greyed out and I can no longer send mail. The only thing that I have done that I never do is I selected the "synchronize" option on the mailbox name after right clicking on it last night.
    As far as Mail goes, I attempted to set up a MediaCom email box several days ago that never worked correctly, but I changed no settings on the exchange account and it was working great 24 hours ago. I've deleted the MediaCom email box.
    Tried the usual quitting, rebooting but nothing is working, any ideas why this started and how to fix.
    Mark

    It is possible the Evil Starbucks empire has blocked SMTP sending as an antispam measure. You would need to log in to your email server using the smtpauth protocol. For example, Earthlink has an smtpauth.earthlink.net server for secure sending, which I was able to use sending from any public AP. Possibly T-Mobile has a similar authorized server.
    But nowadays I just use Gmail, they make it easy and reliable to send from anywhere because they use a custom smtp port. Yeah, Gmail solved a multitude of problems with mobile sending.
    Aluminum PowerBook   Mac OS X (10.4.7)  

  • Sending Mail to Another Server If User Does Not Exist

    We have a single domain with 1 Exchange 2003 server. 
    Recently another (non-Exchange) server was added with about 300 users on it.  We've set up those users as contacts on the Exchange server.  All users have the same email suffix ([email protected])
    Here is our issue:  When we try and send an e-mail from Exchange to the non Exchange mail server, it fails with an NDR.  It appears as though Exchange is not looking beyond itself for the user.  How do you tell Exchange "If you cant find
    the user here, send the e-mail to x server?
    Thanks.

    Here's the explanation for the grayed-out checkbox:
    https://social.technet.microsoft.com/Forums/en-US/615d0285-e536-4eb9-ae49-6768e647a5df/recipient-policy-smtp?forum=exchangesvrsecuremessaginglegacy
    The second question is answered in the article I referenced.  You create an SMTP connector with the domain in the address space and the SMTP server that hosts it as a smart host.  That article suggests you put it in the SMTP virtual server, but
    use an SMTP connector instead.
    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

Maybe you are looking for