How to find the smtp server on a linux box?

Hello,
I am trying to set up Notification Methods in OEM and I need to know the SMTP server and port. Which command can I use on Linux to find this information? Thank you in advance.

Netstat is not necessarily the right tool for this task.
Sorry, but "netstat -a | grep 25" will not be useful. For example:
netstat -a | grep 25
unix  2      [ ]         DGRAM                    128925
unix  3      [ ]         STREAM     CONNECTED     11825 Better grep for "smtp". For example:
netstat -a | grep smtp
tcp        0      0 vm015.example.com:smtp      *:*                         LISTEN
lsof is a better tool, but requires "root" or superuser privileges. For instance:
lsof -i :smtp
COMMAND   PID USER   FD   TYPE DEVICE SIZE NODE NAME
sendmail 3098 root    4u  IPv4  13077       TCP vm015.example.com:smtp (LISTEN)Keep in mind however that processing and routing email in is usually a more complex task and involves either to know firewall and mail gateway configurations, or ask your mail administrator. The local mail server may not be permitted to relay email to the company wide smtp gateway depending on routing policies.

Similar Messages

  • How to setup the SMTP server in Oracle apps?

    Hi,
    How to setup the SMTP server in Oracle Apps? Is it mandatory to keep the SMTP server on the same host where the Oracle data base is installed? Also can someone help how we can set up the SMTP server on different host (not the Database server) and we can use the same for Workflow notification mailer.
    Thanks,
    Bijoy
    Edited by: user12070886 on Feb 6, 2013 4:26 AM
    Edited by: user12070886 on Feb 6, 2013 4:27 AM

    How to setup the SMTP server in Oracle Apps? Is it mandatory to keep the SMTP server on the same host where the Oracle data base is installed? No, it is not mandatory. Also please note that the mails are sent out from concurrent manager mode. Not from the database node.
    Also can someone help how we can set up the SMTP server on different host (not the Database server) and we can use the same for Workflow notification mailer.
    >
    It depends on the operating system you are using. If you are using *nix then sendmail needs to be configured.
    Thanks

  • How to configure the smtp server..

    i had an error when running the java mail program..
    this is my program
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.activation.*;
    import java.io.*;
    import java.util.Properties;
    public class MailClient
    public void sendMail(String mailServer, String from, String to,
    String subject, String messageBody,
    String[] attachments) throws
    MessagingException, AddressException
    // Setup mail server
    Properties props = System.getProperties();
    props.put("mail.smtp.host", mailServer);
    // Get a mail session
    Session session = Session.getDefaultInstance(props, null);
    // Define a new mail message
    Message message = new MimeMessage(session);
    message.setFrom(new InternetAddress(from));
    message.addRecipient(Message.RecipientType.TO, new InternetAddress(to));
    message.setSubject(subject);
    // Create a message part to represent the body text
    BodyPart messageBodyPart = new MimeBodyPart();
    messageBodyPart.setText(messageBody);
    //use a MimeMultipart as we need to handle the file attachments
    Multipart multipart = new MimeMultipart();
    //add the message body to the mime message
    multipart.addBodyPart(messageBodyPart);
    // add any file attachments to the message
    // addAtachments(attachments, multipart);
    // Put all message parts in the message
    message.setContent(multipart);
    // Send the message
    Transport.send(message);
    protected void addAtachments(String[] attachments, Multipart multipart)
    throws MessagingException, AddressException
    for(int i = 0; i<= attachments.length -1; i++)
    String filename = attachments;
    MimeBodyPart attachmentBodyPart = new MimeBodyPart();
    //use a JAF FileDataSource as it does MIME type detection
    DataSource source = new FileDataSource(filename);
    attachmentBodyPart.setDataHandler(new DataHandler(source));
    //assume that the filename you want to send is the same as the
    //actual file name - could alter this to remove the file path
    attachmentBodyPart.setFileName(filename);
    //add the attachment
    multipart.addBodyPart(attachmentBodyPart);
    public static void main(String[] args)
    try
    MailClient client = new MailClient();
    String server="smtp.canvasindia.com";
    String from="[email protected]";
    String to = "[email protected]";
    String subject="Test";
    String message="Testing";
    String[] filenames ={"c:/A.java"};
    client.sendMail(server,from,to,subject,message,filenames);
    catch(Exception e)
    e.printStackTrace(System.out);
    the error is .................
    javax.mail.SendFailedException: Invalid Addresses;
    nested exception is:
    com.sun.mail.smtp.SMTPAddressFailedException: 553 Attack detected from p
    ool 59.144.8.116. <http://unblock.secureserver.net/?ip=59.144.8.*>
    at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1196)
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:584)
    at javax.mail.Transport.send0(Transport.java:169)
    at javax.mail.Transport.send(Transport.java:98)
    at MailClient.sendMail(MailClient.java:47)
    at MailClient.main(MailClient.java:84)
    Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 553 Attack detected fro
    m pool 59.144.8.116. <http://unblock.secureserver.net/?ip=59.144.8.*>
    at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1047)
    ... 5 more
    how to configure the smtp server in my machine..
    please guide me...

    This uses gmail account, and gmail smtp
    * MailSender.java
    * Created on 14 November 2006, 17:07
    * This class is used to send mails to other users
    package jmailer;
    * @author Abubakar Gurnah
    import javax.mail.*;
    import javax.mail.internet.*;
    import java.util.*;
    public class MailSender{
        private String d_email,d_password;
         * This example is for gmail, you can use any smtp server
         * @param d_email --> your gmail account e.g. [email protected]
         * @param d_password  --> your gmail password
         * @param d_host --> smtp.gmail.com
         * @param d_port --> 465
         * @param m_to --> [email protected]
         * @param m_subject --> Subject of the message
         * @param m_text --> The main message body
        public String send(String d_email,String d_password,String d_host,String d_port,
                String m_from,String m_to,String m_subject,String m_text ) {
            this.d_email=d_email;
            this.d_password=d_password;
            Properties props = new Properties();
            props.put("mail.smtp.user", d_email);
            props.put("mail.smtp.host", d_host);
            props.put("mail.smtp.port", d_port);
            props.put("mail.smtp.starttls.enable","true");
            props.put("mail.smtp.auth", "true");
            //props.put("mail.smtp.debug", "true");
            props.put("mail.smtp.socketFactory.port", d_port);
            props.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
            props.put("mail.smtp.socketFactory.fallback", "false");
            SecurityManager security = System.getSecurityManager();
            try {
                Authenticator auth = new SMTPAuthenticator();
                Session session = Session.getInstance(props, auth);
                //session.setDebug(true);
                MimeMessage msg = new MimeMessage(session);
                msg.setText(m_text);
                msg.setSubject(m_subject);
                msg.setFrom(new InternetAddress(m_from));
                msg.addRecipient(Message.RecipientType.TO, new InternetAddress(m_to));
                Transport.send(msg);
                return "Successful";
            } catch (Exception mex) {
                mex.printStackTrace();
            return "Fail";
        //public static void main(String[] args) {
        //    MailSender blah = new MailSender();
        private class SMTPAuthenticator extends javax.mail.Authenticator {
            public PasswordAuthentication getPasswordAuthentication() {
                return new PasswordAuthentication(d_email, d_password);
    }

  • How to find the SQL Server Instances running across the given activer directory domain?

    How to find the SQL Server Instances running across the given activer directory domain?
    I have though of OSQL -L , Microsoft Assessment and Planning ( MAP ) tool and SQLPing3 (SQLSecurity) might help me.
    I would appreciate if there any other way of finding the SQL Servers / Instances running across the given active directory domain.
    Sivaprasad S
    http://sivasql.blogspot.com
    Please click the Mark as Answer button if a post solves your problem!

    Dear ,
    Very simple u find all instances through the customized sp which is get all details about inventory. Like i put the sp bellow. This is without any tool. 
    USE [master]
    GO
    /****** Object:  StoredProcedure [dbo].[DBStatus]    Script Date: 08-01-2015 19:46:11 By Damodar Patle Sr. DBA Mumbai India ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    ALTER PROCEDURE [dbo].[DBStatus] 
    AS
    SELECT 
    SERVERPROPERTY('servername') AS ServerName,
    ConnectionProperty('local_net_address') AS 'local_net_address',
    ConnectionProperty('local_tcp_port') AS 'local_tcp_port',
    CONVERT(VARCHAR(25), @@VERSION) as  VERSIONSQL,
    SERVERPROPERTY('ErrorLogFileName') AS ErrorLogFilePath,
    database_id,
    CONVERT(VARCHAR(25), DB.name) AS DBName,
    CONVERT(VARCHAR(10), DATABASEPROPERTYEX(name, 'status')) AS [Status],
    CONVERT(VARCHAR(10), DATABASEPROPERTYEX(name, 'Recovery')) AS [Recovery_Model],
    create_date as DBCreate_Date, --physical_device_name,
     (SELECT COUNT(1) FROM sys.master_files WHERE DB_NAME(database_id) = DB.name AND type_desc = 'rows') AS DataFiles,
     (SELECT SUM((size*8)/1024) FROM sys.master_files WHERE DB_NAME(database_id) = DB.name AND type_desc = 'rows') AS [Data MB],
     (SELECT COUNT(1) FROM sys.master_files WHERE DB_NAME(database_id) = DB.name AND type_desc = 'log') AS LogFiles,
     (SELECT SUM((size*8)/1024) FROM sys.master_files WHERE DB_NAME(database_id) = DB.name AND type_desc = 'log') AS [Log MB],
     (SELECT physical_name FROM sys.master_files WHERE DB_NAME(database_id) = DB.name AND type_desc = 'rows') AS MDF_File_Location,
     (SELECT physical_name FROM sys.master_files WHERE DB_NAME(database_id) = DB.name AND type_desc = 'log') AS  LDF_File_Location,
       user_access_desc
       FROM sys.databases DB
       ORDER BY dbName, [Log MB] DESC, NAME

  • Mail not being able to find the SMTP server

    hi there,
    I am trying to use a new mailbox account but Mail cannot find the SMTP server and refuses to send emails. It is a pop account and it can find the incoming server ok. I know that the server is ok because I can send emails from a webmail version of the account but in Mail..nada.
    Does anyone know why Mail is not finding the server?
    Many thanks
    Shark

    What version of OSX were you using before upgrading to Snow Leopard? Since introduction of Leopard and Mail 3.x, the Outbox has only been seen in the Sidebar when there is one or more messages not yet sent.
    Sending with webmail is no test of the SMTP, since it is not used when sending via webmail. What Port are you presenting the SMTP on, and what does the provider recommend in that regard? Who is that provider?
    Ernie

  • How to find the Data source name on linux server

    Hello All,
    Good Morning...
    I created a rpd in my local machine and deployed on the server through Fusion middle ware.
    and copied the catalog file there in the server.
    While working on my local machine I have two odbc connections... one is for development and other is for production.
    at the time of deployment to the server I changed the development instance to production instance throught the connection pool.
    I am encountering the following error while working on the analyis....
    Odbc driver returned an error (SQLExecDirectW).
    Error Details
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 16001] ODBC error state: IM002 code: 0 message: [DataDirect][ODBC lib] Data source name not found and no default driver specified. (HY000)
    I think this is because of the mismatch of the datasource name in server and my local machine...could you please tell me how to find the datasource names on the server?
    Thanks!

    Hi Dpka-
    I created two ODBC connections in my system.
    one for development and another for Production.
    while deploying the rpd to the server I changed the development login credentials with production login.
    The problem here is I just want to know whether Iam giving the same datasource name which was presented on the server or not.
    I don't have access to the server now.
    Is there any way to find out the datasource names which were presented on the server with the help of admin console?
    Thanks!

  • Where(How to change the SMTP- Server

    Hello,
    i'm using the OAS 10.1.2.0.2
    While installation OAS i entered the name of the actual working SMTP- Server.
    Sending mails worked fine until today.
    Now the name of the SMTP- Server has changed and i wanted to change it(the name) in the Application Server, but i didn't find one/all place(s) where i had to change the name(s) of the SMTP- Server.
    Is there anyone who can help me??
    Thanks a lot.
    Best regards.
    Florian

    Refer this:
    http://download.oracle.com/docs/cd/B14099_19/core.1012/b13995/reconfig.htm#sthref681
    Thanks
    Shail

  • How To Find The Right Server........

    Hi Friend�s I am Again Here
    I Have A Question. I have Tool That�s Work is To Check The Duplicate CDR from Three day�s dump and Then Load this CDR�s in Database. I runt his tool on 2.4 GHz System with 1GB ram and I got the result
    74 CDR�s /see Processing.
    This time I Have A problem that I need server to run this tool and I am not getting that how I calculate the right server so that I can get the result upto 500 CDR�s/see
    How Much CPU I need and How Much Ram I Needed. As per My Knowledge this can run fine on 2*2.4 GHz dual core CPU with 8GB ram.
    Is it Fine,,,,,,,,,,,,,,,,,,,
    Can anyone Help to Find Right System for this tool.

    Your post is hard/annoying to read. In English only the start of a sentence is capitalized. There is no need to capitalize every word within a sentence, unless required otherwise, like the pronoun "I" or the person/product names, e.g. "John Doe" and "Java".
    Apart from that, your question has nothing to do with Java at all. Look for a CDR software forum or so.

  • How to solve the SMTP server issue.

    I did the migration from SharePoint 2010 to SharePoint 2013 , the workflow emails are sent perfectly in SharePoint 2010 but when i configure the SharePoint 2013 the following error has occurred. 
    Error : The e-mail message cannot be sent. Make sure the outgoing e-mail settings for the server are configured correctly.
    Please let me know if you aware of this.
    -Thanks,
    Swapnil

    That's pretty much all the settings you need to do on the SharePoint side.  Does the SMTP server that you are pointing to allow incoming emails from your SharePoint server IP Address?  It might only allow relay services to specific IP ranges.
     Or maybe you have a firewall that is blocking it?

  • How to find the xi server wheather it is present or not

    hi all,
    i have  one doubt regarding xi server,how to find out wheather the xi server is there or not in our sap server.
    thanks & regards,
    subba reddy

    Hi
    What u mean by SAP Server (Hope u r saying SAP ECC R/3)
    XI / PI is a Seperate Server installation which doesnot come with ecc
    ECC >=  6.2 only has Integration Serve inbuilt which allows it to communicate with XI in Proxy langauge.
    Still u want to check if u r x System is having XI r not then
    Transaction SXMB_IFR ---> IE opens --> Press IR Design , if it opens IR u r in XI
    Srini

  • How do I find the SMTP server number in my MB Pro mail program?

    For some unknown reason my mail program is just now asking for a password when I attempt to send an email. I verified the password with my ISP. When I go to the Mail program/Preferences/Accounts I see a screen that has three sections. The third section offers "Outgoing mail server (SMTP)" but offers no box allowing a server number such as 587... Why is that option missing? What is likely causing this sudden request for a password?
    Thanks,
    Jim

    I did that and and chose "Use custom port" and entered 587. Still is asking for a PW but when entered it tells me that the server will not accept the password thus will not sent the email. I can send and receive using my PC.
    I also can receive emails on the Mac.. So, something else is "set" incorrectly.. ????

  • How to find the DB server IP or Name from session?

    I login into an Oracle DB (10g). I want to find out the sever IP the DB is in? Or server name? How to get it?

    Channa wrote:
    I login into an Oracle DB (10g). I want to find out the sever IP the DB is in? Or server name? How to get it?==> For ip address
    connect to your database and fire this sql and filter accordingly your need
    SQL> select sid, machine,UTL_INADDR.get_host_address (substr(machine,instr(machine,'\')+1)) ip
    from v$session;
    ==> For database name
    SQL>select name from v$database;
    Hope you find that you need :)
    --neeraj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to find the app.server version

    Hi all,
    i hope this question has already raised in this forum (i.e).Anyway i i tried the query
    SELECT * FROM IAS_PROPERTIES;
    SELECT * FROM INTERNET_APPSERVER_REGISTRY.SCHEMA_VERSIONS;
    i got error table or view does not exist.
    how can i proceed further?
    is there anything which needs to be installed?
    pls let me know
    thanks in advance..

    There might be better ways but you can try one of these two too:
    - Launch Oracle Installer (using runInstaller executable) and check under "Installed Products".
    - On Unix/Linux, try this:
    cd $ORACLE_HOME/inventory
    ls -d Components*/*/*
    Thanks
    Shail

  • How to find the URL server

    I can' t play my down loaded videos on my iPad , it states something about an URL server?

    Where have you downloaded these videos from, and in which app are you trying to play them?

  • How to find out about the SMTP Server

    Hi,
    I have been trying to configure groupware in the portal - in particular I want to enable the sending of emails through the portal. I already have a how-to-guide that that seems to explain the steps quite well. However, it mentions that I need to know the SMTP Server of the email. Can you tell me how to find out about the SMTP Server? Where do I need to look for the name of it?
    Thank you and regards,
    Katharina

    Hi Katharina,
    you need the SMTP server of your company. This means you can't look for it in the portal, but have to ask the responsible person in your company.
    Kind regards,
    dominik

Maybe you are looking for

  • How do I implement barcode recognition or how is it done?

    Hi Having just posted this message in the cryptography forums, I thought this might be more appropriate here and I might get a few more repsonces. However, I do appologise if I have posted this in the wrong forum, as I am a little unsure where this r

  • Vertical Scrollbar for a slide

    I'm new to captivate. Can anybody help me to get a vertical scrollbar for the slides?

  • Oracle 10.2.0.1 client install during SLES10 AutoYast post-install

    Hello all, I'm stumped and could use a little help. I'm attempting to use the silent install method for the 10.2.0.1 Oracle client on a SLES10 SP2 via autoyast post install scripts. The script runs just fine if I use it to install after SLES10 has be

  • While trying to update, I get error message 3259.

    While trying to update, I am getting error message 3259.  I think is a connectivity issue but I have connected using Airport and also tried hardwiring it and no luck.  This is a Nano 6th Gen.  Any suggestions?

  • [HELP] Procedure return records

    Hi All, I want to create a procedure that will return records (not only single record) base on some parameters. Is it possible? While i used MS SQL Server, it is just a simple way. In the body of procedure i just need to call select query with some p