OracleXE - Connection Refused ....Contacting 127.0.0.1:8080

Hello,
I know that this appears to be a common problem for new Oracle users (me), but I've read through some of the posts on this topic, and it's still not clear to me what steps I really need to follow to troubleshoot this problem, nor why it happens in the first place (perhaps an even more important question).
Any help would be appreciated!

thanks for you help,
a quick recap.....
1. I was able to connect to the database in the past, with no problems creating and retrieving tables.
2. sqlplus / as sysdba returns ORA-12560: TNS: protocol adapter error,, after which is asks for my username and password again, and when I enter it, it returns the same error again (the username and password is correct for sure)
edited... I have no idea why, but the service is back again. I rebooted the computer (which I had already tried before), and now everythings fine. I truly appreciate everyone's help, I really don't know this happened in the first place.
the status of the listener now says:
C:\>lsnrctl
LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 20-JAN-2007 12:08
:28
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Welcome to LSNRCTL, type "help" for information.
LSNRCTL> status
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Produ
ction
Start Date 20-JAN-2007 12:01:58
Uptime 0 days 0 hr. 6 min. 38 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File C:\oraclexe\app\oracle\product\10.2.0\server\network\a
dmin\listener.ora
Listener Log File C:\oraclexe\app\oracle\product\10.2.0\server\network\l
og\listener.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=its_student.ornith.cornell.edu)(PORT
=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=8080))(Presentation=
HTTP)(Session=RAW))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
Service "XEXDB" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Service "XE_XPT" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
Service "xe" has 1 instance(s).
Instance "xe", status READY, has 1 handler(s) for this service...
The command completed successfully
I would still be interested in a quick pointer as to the best way to back up the database such that if a problem like this were to occur in the future, I could still copy out the tables and place them into new installation of oracleXE

Similar Messages

  • The connection was refused when attempting to contact 127.0.0.1:8080

    I was having this problem with a previous install of Oracle 10g Express Edition. I followed the steps to manually deinstall since the Windows remove wouldn't work. I then reinstalled XE and am still getting the subject message.
    Can anyone help me correct whatever the problem is so that I can run XE on my Windows XP Professional laptop?
    Thanks,
    Tim

    sqlplus is included with Oracle XE and it is what I am referring as sqlplus CLI (Command Line Interface) meanwhile isqlplus (the web based sqlplus interface) isn't. I am not sure what do you mean with SQL*Plus, if you mean the windows sqlplus interface it isn' t included with XE either.
    Now when you are talking about getting connected to XE by means of IE, meanwhile you have problems connectig using FF. It doesn't seem to be a browser issue, but a browser configuration issue. Most probably IE was already configured and it may have configured a proxy access, meanwhile FF, since it is recently installed, most probably isn't properly configured to work in your environment.
    Could you please post the output of the command:
    lsnrctl status
    to verify Oracle has properly open the http required port to access the XE management interface?
    ~ Madrid
    http://hrivera99.blogspot.com/

  • Problem while connecting to 127.0.0.1:8080/apex

    Hi,
    I have installed Oracle 10g XE according to the installation instructions on the oracle homepage with the commands:
    rpm -ivh oracle-...
    /etc/init.d/oracle-xe configure
    But when i am opening Firefox and try to connect to the oracle server i get the error message: "The connection was refused when attempting to contact 127.0.0.1:8080"
    I am running SuSE 9.3 and the firewall is turned off.
    Thanks for your answers in advance,
    Frank

    I have started the database after re-booting.
    I can also connect to the database with SQL command line.
    After searching the forum, I found some other postings concerning this issue. I have changed the ownership if the listener.log file as suggested in one of those threads, but it did not help me. I also set the unix password and tried to run the start script as the oracle user. Except for a couple of display setting warnings, the database and listener starts so I can load the page OK. The page now loads OK even after starting it with my regular user (after run the stop-script as the oracle-user).
    However, if I re-boot, the problem is back. I seems that I have to start (and stop) the database with the oracle-user once to be able to start everything with my own user...

  • Rmi client throws Connection Refused exception

    My Rmi client throws a Connection Refused exception when i try to run it on remote machine (in this case i run it on my virtualbox macine).
    The virtualbox machine network is in NAT mode (host machine ip should be 10.0.2.2).
    When rmi client starts get registry instance and print in standar output:
    RegistryImpl_Stub[UnicastRef2 [liveRef: [endpoint:[//10.0.2.2/:1099,util,RmiInstances$1@1275d39](remote),objId:[0:0:0, 0]]]]But when rmi client trys to use any of remote methods it throws Connection Refused, but it's to strange because the Connection Refused has 127.0.1.1 as ip.
    java.rmi.ConnectException: Connection refused to host: 127.0.1.1; ....In client RmiInstances code (this class contains all remote implementations) is:
    public class RmiInstances {
        private static RmiInstances instance;
        private IUserManage userManage;
        private IAnalysis analysis;
        private IPacientManage pacientManage;
        private IInsuranceManage insuranceManage;
        private Config config;
        private RmiInstances()
                throws RemoteException, NotBoundException, IOException {
            this.config = Config.getInstance();
            Registry registry = LocateRegistry.getRegistry(config.getServerUrl()+"/",
                    1099, new RMIClientSocketFactory() {
                @Override
                public Socket createSocket(String host, int port) throws IOException {
                    try {
                        URI uri = new URI(config.getServerUrl()+
                                ":"+config.getServerPort());
                        return new Socket(uri.getHost(), uri.getPort());
                    } catch (URISyntaxException ex) {
                        ex.printStackTrace();
                        return null;
            System.out.println(registry);
            userManage = (IUserManage)registry.lookup("RUserManage");
            analysis = (IAnalysis)registry.lookup("RAnalysis");
            pacientManage = (IPacientManage)registry.lookup("RPacientManage");
            insuranceManage = (IInsuranceManage)registry.lookup("RInsuranceManage");
    ...And server code is the next:
    public static void main(String[] args) {
         System.out.println("GNULab Server " + VERSION + " starting...");
         System.setProperty("java.rmi.server.codebase",
              "file:/home/zarovich/workspace/labserver/bin");
         try {
             // Loading config
             System.out.println("Loading config...");
             Config config = Config.getInstance();
             // inicializando rmi registry
             Registry registry;
             if (config.isSsl()) {
              registry = LocateRegistry.createRegistry(
                   config.getServerPort(), new RmiSSLClient(),
                   new RmiSSLServer());
             } else
              registry = LocateRegistry
                   .createRegistry(config.getServerPort());
             // instanciando implementaciones
             RAnalysis rAnalysis = new RAnalysis();
             RInsuranceManage rInsuranceManage = new RInsuranceManage();
             RPacientManage rPacientManage = new RPacientManage();
             RUserManage rUserManage = new RUserManage();
             // registrando interfaz rmi
             registry.rebind("RAnalysis", (IAnalysis) UnicastRemoteObject.exportObject(rAnalysis, 0));
             registry.rebind("RInsuranceManage", (IInsuranceManage) UnicastRemoteObject.exportObject(rInsuranceManage, 0));
             registry.rebind("RPacientManage", (IPacientManage) UnicastRemoteObject.exportObject(rPacientManage, 0));
             registry.rebind("RUserManage", (IUserManage) UnicastRemoteObject.exportObject(rUserManage, 0));
             System.out.println("GNULab Server " + VERSION + " listening ...");
             System.out.println("Registry instance: " + registry.toString());
         } catch (RemoteException e) {
             e.printStackTrace();
            * catch (MalformedURLException e) { e.printStackTrace(); }
            */catch (IOException e) {
             // TODO Auto-generated catch block
             e.printStackTrace();
         } catch (JDOMException e) {
             // TODO Auto-generated catch block
             e.printStackTrace();
    ...

    I'm solved my problem.
    I just need run my server with -Djava.rmi.serverhost=10.0.2.2 and my client running on my virtualbox machine works!

  • Delivery temporarly suspended : [127.0.0.1]: connection refused

    Hello everyone,
    I have some troubles getting email services up on my server.
    The plan is to run an SMTP server, POP and IMAP.
    So far, POP and IMAP seem to be working, as I can log in with different users.
    But there are no mail messages there.
    When I check my mail queue, I find many messages.
    Mostly from [email protected] or [email protected]
    when I check the message details I get this :
    Message ID: 5654199DFB
    Date: Tue Feb 14 08:30:41
    Size: 350
    Sender: [email protected]
    Recipient(s) & Status:
    [email protected]:
    delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]:
    Connection refused
    When I check my smtp log I get this :
    Feb 14 09:07:31 billie postfix/cleanup[10385]: 9EB2799E96: message-id=<[email protected]>
    Feb 14 09:07:31 billie postfix/qmgr[10387]: 9EB2799E96: from=<[email protected]>, size=636, nrcpt=1 (queue active)
    Feb 14 09:07:31 billie postfix/qmgr[10387]: 2813898166: from=<[email protected]>, size=842, nrcpt=1 (queue active)
    Feb 14 09:07:31 billie postfix/qmgr[10387]: 4EBB897327: from=<[email protected]>, size=705, nrcpt=1 (queue active)
    Feb 14 09:07:31 billie postfix/qmgr[10387]: 5654199DFB: from=<[email protected]>, size=350, nrcpt=1 (queue active)
    Feb 14 09:07:31 billie postfix/qmgr[10387]: 59AE199DE6: from=<[email protected]>, size=294, nrcpt=1 (queue active)
    Feb 14 09:07:31 billie postfix/qmgr[10387]: 5C59C99DE7: from=<[email protected]>, size=1246, nrcpt=1 (queue active)
    Feb 14 09:07:31 billie postfix/qmgr[10387]: 5D3DE95689: from=<[email protected]>, size=788, nrcpt=1 (queue active)
    Feb 14 09:07:31 billie postfix/qmgr[10387]: 6F78D994E9: from=<[email protected]>, size=1748, nrcpt=1 (queue active)
    Feb 14 09:07:31 billie postfix/qmgr[10387]: A4EC699DEC from=<[email protected]>, size=45296, nrcpt=1 (queue active)
    Feb 14 09:07:31 billie postfix/qmgr[10387]: A60B0942D2: from=<[email protected]>, size=688, nrcpt=1 (queue active)
    Feb 14 09:07:31 billie postfix/smtp[10388]: connect to 127.0.0.1[127.0.0.1]: Connection refused (port 10024)
    Feb 14 09:07:31 billie postfix/qmgr[10387]: AB63D99DF4: from=<[email protected]>, size=1352, nrcpt=1 (queue active)
    Feb 14 09:07:31 billie postfix/smtp[10388]: 9EB2799E96: to=<[email protected]>, relay=none, delay=1, status=deferred (connect to 127.0.0.1[127.0.0.1]: Connection refused)
    Feb 14 09:07:31 billie postfix/qmgr[10387]: AB74995B99: from=<[email protected]>, size=658, nrcpt=1 (queue active)
    Feb 14 09:07:31 billie postfix/smtp[10389]: connect to 127.0.0.1[127.0.0.1]: Connection refused (port 10024)
    Feb 14 09:07:31 billie postfix/smtp[10389]: 2813898166: to=<[email protected]>, relay=none, delay=130692, status=deferred (connect to 127.0.0.1[127.0.0.1]: Connection refused)
    Feb 14 09:07:31 billie postfix/smtp[10388]: connect to 127.0.0.1[127.0.0.1]: Connection refused (port 10024)
    Feb 14 09:07:31 billie postfix/smtp[10388]: 4EBB897327: to=<[email protected]>, relay=none, delay=198147, status=deferred (connect to 127.0.0.1[127.0.0.1]: Connection refused)
    Feb 14 09:07:31 billie postfix/smtp[10389]: connect to 127.0.0.1[127.0.0.1]: Connection refused (port 10024)
    Feb 14 09:07:31 billie postfix/smtp[10389]: 5654199DFB: to=<[email protected]>, relay=none, delay=2210, status=deferred (connect to 127.0.0.1[127.0.0.1]: Connection refused)
    And to top the cake, here is my postconf -n :
    postconf -n
    command_directory = /usr/sbin
    config_directory = /etc/postfix
    content_filter = smtp-amavis:[127.0.0.1]:10024
    daemon_directory = /usr/libexec/postfix
    debugpeerlevel = 2
    enableserveroptions = yes
    html_directory = no
    inet_interfaces = localhost
    localrecipientmaps = proxy:unix:passwd.byname $alias_maps
    luser_relay =
    mail_owner = postfix
    mailboxsizelimit = 0
    mailbox_transport = cyrus
    mailq_path = /usr/bin/mailq
    manpage_directory = /usr/share/man
    mapsrbldomains =
    messagesizelimit = 15728640
    mydestination = $myhostname,localhost.$mydomain,localhost,domainname.be
    mydomain = domainname.be
    mydomain_fallback = localhost
    myhostname = mail.domainname.be
    mynetworks = 127.0.0.1/32,83.217.76.0/24
    mynetworks_style = host
    newaliases_path = /usr/bin/newaliases
    queue_directory = /private/var/spool/postfix
    readme_directory = /usr/share/doc/postfix
    relayhost =
    sample_directory = /usr/share/doc/postfix/examples
    sendmail_path = /usr/sbin/sendmail
    setgid_group = postdrop
    smtpdclientrestrictions = permit_mynetworks permit
    smtpdenforcetls = no
    smtpdpw_server_securityoptions = cram-md5,login,plain
    smtpdrecipientrestrictions =
    permitsasl_authenticated,permit_mynetworks,reject_unauthdestination,permit
    smtpdsasl_authenable = yes
    smtpdtls_certfile = /etc/certificates/Default.crt
    smtpdtls_keyfile = /etc/certificates/Default.key
    smtpduse_pwserver = yes
    smtpdusetls = no
    unknownlocal_recipient_rejectcode = 550
    virtualmailboxdomains = hash:/etc/postfix/virtual_domains
    virtual_transport = lmtp:unix:/var/imap/socket/lmtp
    Anyone an idea to fix this? I think it is just something minor, but I don't seem to find it. Maybe something involving junk-mail scanning ?
    Many many thanks for all your time.
    If there are any other questions, I'll try to answer them as soon as possible.

    This is my output
    ps -U clamav
    PID TT STAT TIME COMMAND
    58 ?? Ss 0:00.01 freshclam -d -D -pfreshclam.pid -c 1
    Tried restarts and bin/usr/amavisd start and still nothing. Also looked in the logs and found this:
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: starting. /usr/bin/amavisd at www.funsunstudio.com ama
    visd-new-2.2.0 (20041102), Unicode aware
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: user=, EUID: 0 (0); group=, EGID: 0 80 5 29 4 20 3 2 1
    0 (0 80 5 29 4 20 3 2 1 0)
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: Perl version 5.008006
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: Net::Server: 2006/02/15-13:19:35 Amavis (type Net::Serv
    er::PreForkSimple) starting! pid(1611)
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: Net::Server: Binding to UNIX socket file /var/amavis/am
    avisd.sock using SOCK_STREAM
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: Net::Server: Binding to TCP port 10024 on host 127.0.0.
    1
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: Net::Server: Setting gid to "82 82"
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: Net::Server: Setting uid to "82"
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: Module Amavis::Conf 2.033
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: Module Archive::Tar 1.22
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: Module Archive::Zip 1.14
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: Module Compress::Zlib 1.33
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: Module Convert::TNEF 0.17
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: Module Convert::UUlib 1.03
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: Module DB_File 1.810
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: Module MIME::Entity 5.416
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: Module MIME::Parser 5.416
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: Module MIME::Tools 5.416
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: Module Mail::Header 1.65
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: Module Mail::Internet 1.65
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: Module Mail::SpamAssassin 3.000001
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: Module Net::Cmd 2.26
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: Module Net::SMTP 2.29
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: Module Net::Server 0.87
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: Module Time::HiRes 1.65
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: Module Unix::Syslog 0.99
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: Amavis::DB code NOT loaded
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: Amavis::Cache code NOT loaded
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: Lookup::SQL code NOT loaded
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: Lookup::LDAP code NOT loaded
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: AMCL-in protocol code loaded
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: SMTP-in protocol code loaded
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: ANTI-VIRUS code loaded
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: ANTI-SPAM code loaded
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: Unpackers code loaded
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: Found $file at /usr/bin/file
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: No $arc, not using it
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: Found $gzip at /usr/bin/gzip
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: Found $bzip2 at /usr/bin/bzip2
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: No $lzop, not using it
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: No $lha, not using it
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: No $unarj, not using it
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: Found $uncompress at /usr/bin/uncompress
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: No $unfreeze, not using it
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: No $unrar, not using it
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: No $zoo, not using it
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: Found $cpio at /usr/bin/cpio
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: No $ar, not using it
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: No $rpm2cpio, not using it
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: No $cabextract, not using it
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: No $dspam, not using it
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: Found secondary av scanner Clam Antivirus - clamscan at
    /usr/bin/clamscan
    Feb 15 13:19:35 www.funsunstudio.com /usr/bin/amavisd[1611]: SpamControl: initializing Mail::SpamAssassin
    Feb 15 13:19:36 www.funsunstudio.com /usr/bin/amavisd[1611]: SpamControl: done
    Feb 15 13:20:39 www.funsunstudio.com /usr/bin/amavisd[1611]: Net::Server: 2006/02/15-13:20:39 Server closing!

  • I am set up mac mini and when I test the mail server by sending a mail from administrator to administrator I get the error message 'Diagnostic-Code: X-Postfix; connect to 127.0.0.1[127.0.0.1]:10024: Connection    refused'. Can any one suggest a solution

    I set up mac mini and when I test the mail server by sending a mail from administrator to administrator I get the error message 'Diagnostic-Code: X-Postfix; connect to 127.0.0.1[127.0.0.1]:10024: Connection    refused'. Can any one suggest a solution

    Thanks. Where could I possibly look for a firewall rule. I knowingly did not creat any. My system has internet coming to a Modem which then is connected to a wireless router. I have computers connecting to the router through cable as well as wireless. One of these computers has been our  mailserver using Mercury and Pegasus and that computer has a static IP address. The Mac Mini also has been assigned a different srtatic IP address. I have only set up user account, none of them an email account as I initially expect them to receive only internal mails. Is it necessary that I must set up an email id for each user while setting up the user account. My server id is server.local. So would the email id for local users be [email protected]?

  • 127.0.0.1 Connection refused

    For some reason, I am unable to send or receive messages. The senders and receivers get no error messages, but the messages get stuck in the mail queue with the error "delivery temporarily suspended: connect to 127.0.0.1[127.0.0.1]: Connection refused"
    It has worked perfectly in the past. I recently began using DNS service (I wasn't previously), but now it won't work with the DNS on or off.
    Correction: When I turn DNS off, I get this error: The error that the other server returned was: 550 550 #5.1.0 Address rejected [email protected] (state 14).
    Message was edited by: vidgpersonrsw

    The 'delivery temporarily suspended' message is coming from postfix trying to pass the message through some kind of filter process that isn't running.
    For example, the anti-virus scanner runs in this manner - messages come into the server, postfix passes the message to the scanner via a custom port on 127.0.0.1 and the scanner passes it back to postfix.
    You should check that all your mail components are working correctly.

  • Connection refused to host 127.0.0.1  (Lookup  windows -- Linux)

    Hi Folks,
    Buddies I am facing a problem. My server is running at specified port on a linux machine but when I try to connect it from a windows machine i got error massage "Connection refused to host 127.0.0.1 " but it's very inscrutable message.
    I made some changes in /etc/hosts file and /etc/xinetd.d/services and everything worked fine.
    But now there is a question come in my mind that , Is there any alternative so we don't need to make any change in above mentioned two files.
    My Changes;
    /etc/host
    I've added system ip and name in the first line.
    /etc/xinetd.d/services
    Modified services files and enabled protocol and permitted to all system who are under class three network.
    Could anybody have a better idead to avoid these changes because of security issues?
    --Manoj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi,,,Thanks
    When I refer to random it is when the pc in windows in his configuration of net it has " obtain ip automatic " when the ip are fixed in the configuration of net I do not have problems of (connection refused to host:name_machine) what I need is to know that I must do to solve the problem (connection refused to host:name_machine) when in the pc they have a configuration of net of obtaining ip automaticamennte,
    I dont understand when you say that..."you should always set java.rmi.server.hostname at server JVMs to the FQDN of the host, not the IP address." Where I do this ??, where I put it??, I dont understand
    you can help me to know if this could solve my problem when the ip is obtained automatically
    this it is my code...
    public static UserPreferences systemPrefs;
    static
    try
    Configuration cfgServer = (Configuration) Registry.lookupServer(Configuration.class);
    systemPrefs = cfgServer.getSystemPreferences();
    catch (Exception e)
    Logger log = LoggerFactory.getLogger(AlertManagerServer.class);
    log.error("Error obteniendo las preferencias para Alert Manager Client", e);
    /** Puerto **/
    public static final String SERVER_PORT = systemPrefs.getString(SystemModuleDescriptor.Settings.ALERTMANAGER_SERVER_PORT, "1198");
    /** Server Name **/
    public static final String SERVER_NAME = NotificationConstants.ALERTSERVER_NAME;
    /** Client Separator **/
    public static final String ALERTCLIENT_SEPARATOR = NotificationConstants.ALERTCLIENT_SEPARATOR;
    * Constructor
    public AbstractAlertManagerClient()
    * Constructor
    * @param clientName Nombre del cliente
    * @throws Exception Problemas
    public AbstractAlertManagerClient(String clientName)
    throws Exception
    launchClient(clientName);
    * Subiendo el Cliente de Mensajeria
    * @param clientName Nombre
    * @throws ProvisioningException Problemas
    public void launchClient(String clientName)
    throws ProvisioningException
    try
    NotificationInterface notification = (NotificationInterface)Registry.lookupServer(NotificationInterface.class);
    String serverIPAddress = notification.getServerIPAddress();
    String serverInfo = "//" + serverIPAddress + ":" + SERVER_PORT + "/" + SERVER_NAME;
    AlertManagerServerInterface server = (AlertManagerServerInterface) TransparentItemProxy.getItem( serverInfo,new Class[] { AlertManagerServerInterface.class });
    AlertManagerClient client = new AlertManagerClient();
    this.server = server;
    this.name = setClientName(clientName);
    client.server = server;
    client.name = setClientName(clientName);
    Object oclient1 = new Remote(this);
    oclient = oclient1;
    Remote.invoke(server, "registerClient", oclient1);
    catch(Exception ex)
    String msg = "";
    msg += "[ERROR] trying com.iptotal.notification.bo.AbstractAlertManagerClient.AbstractAlertManagerClient()...subiendo Client ";
    ProvisioningException pex = new ProvisioningException(ProvisioningException.ErrorCatalog.NOTIFICATION_DISPATCHING_ERROR, ex);
    Logger log = LoggerFactory.getLogger(AbstractAlertManagerClient.class);
    log.error(msg, pex);
    throw pex;
    * Registrar un Cliente
    * @param client Cliente
    public void registerClient(Object client)
    try
    String name = (String)Remote.invoke(client,"getClientName",null);
    if( ! clients.containsKey(name) )
    clients.put( name, client);
    catch(Exception ex)
    String msg = "";
    msg += "[ERROR] trying com.iptotal.notification.bo.AlertManagerServer.registerClient(1) ";
    Logger log = LoggerFactory.getLogger(AlertManagerServer.class);
    log.error(msg + " " + ex.getMessage()); // VA: para que no salgan en el log los stacktrace del CAJO no route to host
    Really Thank you for the help that you can offer me

  • SMTP not working-- connect to 127.0.0.1:10023: Connection refused

    A couple of days ago, after turning off and on spam filtering using Server Admin, mail stopped being received for all users on the OS X Server 10.4.8 machine. I have tried stopping and restarting the mail service, restarting the server, restoring lots of files in /etc/ to how they were last week, with no change. All new mail is refused, and there are hunderds of mails in the queue that can't be delivered.
    - how can I get it working again?
    - how can I recover the mail in the queue? Where is the queue stored?
    The SMTP log has entries like:
    Feb 11 21:13:47 Woomera-Xserve postfix/qmgr[130]: F3AB8D44CB8: to=<[email protected]>, orig_to=<[email protected]>, relay=none, delay=177778, status=deferred (delivery temporarily suspended: transport is unavailable)
    Feb 11 21:14:56 Woomera-Xserve postfix/smtpd[254]: warning: problem talking to server 127.0.0.1:10023: Connection refused
    and amavisd.log has entries like the following, which I think mean it is not running:
    Feb 11 20:47:56 Woomera-Xserve.local /usr/bin/amavisd[943]: SpamControl: initializing Mail::SpamAssassin
    Feb 11 20:47:57 Woomera-Xserve.local /usr/bin/amavisd[943]: SpamControl: done
    Feb 11 20:49:24 Woomera-Xserve.local /usr/bin/amavisd[943]: Net::Server: 2007/02/11-20:49:24 Server closing!
    Any ideas would be very welcome! I have no command-line experience with mail, having done almost all previous admin using Server Admin.

    Based on what you are saying, it looks like Amavis is failing for some reason. So the good news is that your server is still receiving mail. It's trying to pass that mail to Amavis for processing, but then it's finding Amavis shut down. So, it's sticking mail in the queue and waiting until you get Amavis back up and running. Don't worry about that mail queue. It's doing what it's supposed to -- storing the mail until you can get your system back up.
    Let's first verify that Amavis is or is not running.
    Make sure that your content filter is turned on. Verify that "Scan email for junk mail" and "Scan email for viruses" are checked in Server Admin --> Mail --> Settings --> Filters and then save those settings.
    Then, do the following:
    Quit Server Admin
    Open Terminal and issue the following ...
    sudo serveradmin stop mail
    [give it half a minute to shut down]
    sudo serveradmin start mail
    [give it a half minute to start up]
    Then issue ...
    ps -U clamav
    You should have several processes running under the "PID TT STAT TIME COMMAND" header (post the results here on the forum). If you do have processes running, everything is probably alright. If not, issue ...
    postconf -n
    and post the results here.

  • Tomcat connection refused from localhost

    I have Tomcat 5.5.7 installed as a stand-alone server on my local machine. I have installed Java jre 1.5.0 (5.0). The OS is Windows 2000 SP3. The install went without incident. I set system variables JAVA_HOME, CATALINA_HOME, TOMCAT_HOME.
    When I try to access anything using tomcat, I get "The connection was refused when contacting ......" I've used ...
    http://localhost
    http://localhost :8080
    http://127.0.0.1
    http://127.0.0.1:8080
    ...and a number of variations to get at the webapps area. All give exactly the same response.
    I can ping myself, but when I run Steve Gibson's IS Serve, it tells me the port is closed.
    I think I have server.xml set up correctly. Any ideas. Any help will be appreciated. Thanks.
    - Ed Lipchus

    did you try installing tomcat as a windows service
    download tomcat.exe and double click and follow instructions

  • Linux Error:111:Connection refused & Linux Error:29:Illegal seek

    I have installed the rpm pack oracle-xe-univ-10.2.0.1-1.0.i386.rpm in Red Hat Enterprise Linux. I was able to install the rpm pack and am able to initiat sqlplus on the server and even run sql queries.
    However i am facing the following issues:-
    1) While browsing http://127.0.0.1:8090/apex for accessing the database home page i am getting the error message "The connection was refused when connecting to http://127.0.0.1:8090/apex" (i have mentioned 8090 as the HTTP port during configuration and this is the URL which was listed after the configuration).
    2) I am unable to start the listerner service.
    Please help me to resolve the above issues.
    Following is the message while checking the listener status:-_
    LSNRCTL> status
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    Linux Error: 111: Connection refused
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=RHL-Research-001)(PORT=1521)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    Linux Error: 111: Connection refused
    Following is the message while initiating a listener:-_
    LSNRCTL> status
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    Linux Error: 111: Connection refused
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=RHL-Research-001)(PORT=1521)))
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    Linux Error: 111: Connection refused
    Following is the content of the listerner.ora file:-_
    [root@RHL-Research-001 admin]# cat listener.ora
    # listener.ora Network Configuration File:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /usr/lib/oracle/xe/app/oracle/product/10.2.0/server)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (ADDRESS = (PROTOCOL = TCP)(HOST = RHL-Research-001)(PORT = 1521))
    DEFAULT_SERVICE_LISTENER = (XE)
    Following is the content of /etc/hosts:-_
    [root@RHL-Research-001 admin]# cat /etc/hosts
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1 RHL-Research-001 localhost.localdomain localhost
    [root@RHL-Research-001 admin]#
    Following is the pinging status:-_
    [root@RHL-Research-001 admin]# ping RHL-Research-001
    PING RHL-Research-001 (127.0.0.1) 56(84) bytes of data.
    64 bytes from RHL-Research-001 (127.0.0.1): icmp_seq=0 ttl=0 time=0.050 ms
    64 bytes from RHL-Research-001 (127.0.0.1): icmp_seq=1 ttl=0 time=0.049 ms
    64 bytes from RHL-Research-001 (127.0.0.1): icmp_seq=2 ttl=0 time=0.051 ms
    64 bytes from RHL-Research-001 (127.0.0.1): icmp_seq=3 ttl=0 time=0.052 ms
    64 bytes from RHL-Research-001 (127.0.0.1): icmp_seq=4 ttl=0 time=0.050 ms
    64 bytes from RHL-Research-001 (127.0.0.1): icmp_seq=5 ttl=0 time=0.046 ms
    64 bytes from RHL-Research-001 (127.0.0.1): icmp_seq=6 ttl=0 time=0.051 ms
    --- RHL-Research-001 ping statistics ---
    7 packets transmitted, 7 received, 0% packet loss, time 6016ms
    rtt min/avg/max/mdev = 0.046/0.049/0.052/0.009 ms, pipe 2
    Thanks,
    SKP

    I had to re-install the linux server and install the oracle rpm again ... resulting in delayed reply.
    Currently still i am unable to access http://127.0.0.1:8090/apex. The following error message is being displayed
    "The connection was refused when attempting to contact http://127.0.0.1:8090/apex"
    However now the listener service has started successfully.
    Following is the output of the command lsnrctl status:-
    bash-2.05b$ lsnrctl status
    LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 24-FEB-2010 17:55:02
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date 24-FEB-2010 17:35:26
    Uptime 0 days 0 hr. 19 min. 36 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Default Service XE
    Listener Parameter File /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/admin/listener.ora
    Listener Log File /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=selinux)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "XE" has 1 instance(s).
    Instance "XE", status BLOCKED, has 1 handler(s) for this service...
    Service "XE_XPT" has 1 instance(s).
    Instance "XE", status BLOCKED, has 1 handler(s) for this service...
    The command completed successfully
    Following is the output of the command env|sort:-
    bash-2.05b$ env|sort
    COLORTERM=gnome-terminal
    DISPLAY=:0.0
    G_BROKEN_FILENAMES=1
    GDMSESSION=Default
    GNOME_DESKTOP_SESSION_ID=Default
    GTK_RC_FILES=/etc/gtk/gtkrc:/usr/lib/oracle/xe/.gtkrc-1.2-gnome2
    HISTSIZE=1000
    HOME=/usr/lib/oracle/xe
    HOSTNAME=selinux
    INPUTRC=/etc/inputrc
    LANG=en_US.UTF-8
    LD_LIBRARY_PATH=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/lib:
    LESSOPEN=|/usr/bin/lesspipe.sh %s
    LOGNAME=oracle
    LS_COLORS=
    MAIL=/var/spool/mail/oracle
    NLS_LANG=AMERICAN_AMERICA.AL32UTF8
    ORACLE_HOME=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server
    ORACLE_SID=XE
    PATH=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/bin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/lib/oracle/xe/bin
    PWD=/usr/lib/oracle/xe
    SESSION_MANAGER=local/selinux:/tmp/.ICE-unix/4320
    SHELL=/bin/bash
    SHLVL=2
    SSH_AGENT_PID=4365
    SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
    SSH_AUTH_SOCK=/tmp/ssh-Jsbl4320/agent.4320
    TERM=xterm
    USER=oracle
    _=/usr/bin/env
    WINDOWID=27268667
    XAUTHORITY=/usr/lib/oracle/xe/.Xauthority
    XMODIFIERS=@im=none
    bash-2.05b$
    Please let me know how to resolve this issue of accessing the database home page at http://127.0.0.1:8090/apex.
    Thanks,
    SKP

  • XE error - "can't establish a connection to the server at 127.0.0.1:8080"

    I installed XE on my laptop, os windows xp prof. v2002 sp2.
    Database works fine, I can access with sql command line.
    But can not access to database home page and apex.
    Tried both links with both IE and Firefox;
    http://localhost:8080/apex
    http://127.0.0.1:8080/apex
    Same error I get; "can't establish a connection to the server at 127.0.0.1:8080."
    SQL*Plus: Release 10.2.0.1.0 - Production on Cmt Kas 17 22:44:04 2007
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    SQL> conn / as sysdba
    Connected.
    SQL> SET SERVEROUTPUT ON;
    SQL> select dbms_xdb.gethttpport, dbms_xdb.getftpport from dual;
    GETHTTPPORT GETFTPPORT
           8080          0
    SQL> DECLARE
      2      l_dad_names DBMS_EPG.varchar2_table;
      3  BEGIN
      4      DBMS_OUTPUT.put_line('DADs');
      5      DBMS_OUTPUT.put_line('==========');
      6
      7      DBMS_EPG.GET_DAD_LIST (l_dad_names);
      8
      9      FOR i IN 1 .. l_dad_names.count LOOP
    10        DBMS_OUTPUT.put_line(l_dad_names(i));
    11      END LOOP;
    12   END;
    13  /
    DADs
    ==========
    APEX
    PL/SQL procedure successfully completed.Any comments will be great, thank you.

    Really thank you all for your support, but this time when I changed to hostname I experience TNS-12547 error as following;
    D:\>lsnrctl start
    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 18-KAS-2007 08:58:29
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    Starting tnslsnr: please wait...
    TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
    System parameter file is D:\oraclexe\app\oracle\product\10.2.0\server\network\ad
    min\listener.ora
    Log messages written to D:\oraclexe\app\oracle\product\10.2.0\server\network\log
    \listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=TC03540225.turkcell.entp.tgc)(PORT=1521)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - Production
    Start Date 18-KAS-2007 08:58:30
    Uptime 0 days 0 hr. 0 min. 1 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Default Service XE
    Listener Parameter File D:\oraclexe\app\oracle\product\10.2.0\server\network\admin\listener.ora
    Listener Log File D:\oraclexe\app\oracle\product\10.2.0\server\network\log\listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=TC03540225.turkcell.entp.tgc)(PORT=1521)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
    Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    D:\>sqlplus / as sysdba
    SQL*Plus: Release 10.2.0.1.0 - Production on Paz Kas 18 08:59:32 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to an idle instance.
    SQL> startup force
    ORACLE instance started.
    Total System Global Area 599785472 bytes
    Fixed Size 1288820 bytes
    Variable Size 163579276 bytes
    Database Buffers 432013312 bytes
    Redo Buffers 2904064 bytes
    Database mounted.
    Database opened.
    SQL> alter system register ;
    System altered.
    SQL> conn hr/hr@xe
    ERROR:
    ORA-12547: TNS:lost contact
    Warning: You are no longer connected to ORACLE.
    SQL> exit
    D:\>tnsping xe
    TNS Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production on 18-KAS-2
    007 09:00:24
    Copyright (c) 1997, 2005, Oracle. All rights reserved.
    Used parameter files:
    D:\oraclexe\app\oracle\product\10.2.0\server\network\admin\sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = TC03540225.turkcell.entp.tgc)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE)))
    TNS-12547: TNS:lost contact
    D:\>ping TC03540225.turkcell.entp.tgc
    Pinging TC03540225.turkcell.entp.tgc [169.254.121.46] with 32 bytes of data:
    Reply from 169.254.121.46: bytes=32 time<1ms TTL=128
    Reply from 169.254.121.46: bytes=32 time<1ms TTL=128
    Reply from 169.254.121.46: bytes=32 time<1ms TTL=128
    Reply from 169.254.121.46: bytes=32 time<1ms TTL=128
    Ping statistics for 169.254.121.46:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms
    D:\oraclexe\app\oracle\product\10.2.0\server\NETWORK\log\listener.log ->
    Started with pid=5796
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC_FOR_XEipc)))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=TC03540225.turkcell.entp.tgc)(PORT=1521)))
    Listener completed notification to CRS on start
    TIMESTAMP * CONNECT DATA [* PROTOCOL INFO] * EVENT [* SID] * RETURN CODE
    18-KAS-2007 08:58:31 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=)(USER=TCHASYILMAZ))(COMMAND=status)(ARGUMENTS=64)(SERVICE=LISTENER)(VERSION=169869568)) * status * 0
    18-KAS-2007 08:59:41 * 12502
    TNS-12502: TNS:listener received no CONNECT_DATA from client
    18-KAS-2007 08:59:41 * 12502
    TNS-12502: TNS:listener received no CONNECT_DATA from client
    18-KAS-2007 09:00:12 * 12502
    TNS-12502: TNS:listener received no CONNECT_DATA from client
    18-KAS-2007 09:00:18 * 12502
    TNS-12502: TNS:listener received no CONNECT_DATA from client
    18-KAS-2007 09:00:24 * 12502
    TNS-12502: TNS:listener received no CONNECT_DATA from client
    18-KAS-2007 09:01:12 * 12502
    TNS-12502: TNS:listener received no CONNECT_DATA from client
    18-KAS-2007 09:02:15 * 12502
    TNS-12502: TNS:listener received no CONNECT_DATA from client

  • Help! - Io exception: Connection refused(DESCRIPTION...

    This has been bugging me for weeks.... I get this error only on some tables and not all of them so I am wondering if maybe it is a permissions grant thing. This web application I have allows a visitor to post information into the DB, this works fine, but the weird thing is that when they click to view the information they submitted only the information that is generated server side is displayed yet all the information the visitor submitted was entered into the table! Here is all the info I think you will need to figure this one out...
    Note that it has nothing to do with my web application I know this because as I said it works fine on some of the tables...
    Here is the exception I am getting...
    Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=153093120)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
    java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=153093120)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:333)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:404)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:468)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:314)
    at java.sql.DriverManager.getConnection(DriverManager.java:512)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    When I run lsnrctl services this is what I get...
    [oracle@ds26 network]$ lsnrctl services
    LSNRCTL for Linux: Version 9.2.0.4.0 - Production on 17-JUL-2005 19:54:40
    Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Service "db9i" has 2 instance(s).
    Instance "db9i", status UNKNOWN, has 1 handler(s) for this service...
    Handler(s):
    "DEDICATED" established:0 refused:0
    LOCAL SERVER
    Instance "db9i", status READY, has 2 handler(s) for this service...
    Handler(s):
    "D000" established:762 refused:0 current:73 max:1002 state:ready
    DISPATCHER
    (ADDRESS=(PROTOCOL=tcp)(HOST=203.432.54.66)(PORT=32769))
    "DEDICATED" established:0 refused:0 state:ready
    LOCAL SERVER
    The command completed successfully
    Here is my listener.ora file...
    # LISTENER.ORA Network Configuration File: /home/oracle/Oracle9i/product/9.2.0/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = some.domain.net)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /home/oracle/Oracle9i/product/9.2.0)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = db9i)
    (ORACLE_HOME = /home/oracle/Oracle9i/product/9.2.0)
    (SID_NAME = db9i)
    Here is my tnsnames.ora...
    # TNSNAMES.ORA Network Configuration File: /home/oracle/Oracle9i/product/9.2.0/network/admin/tnsnames.ora
    # Generated by Oracle configuration tools.
    DB9I.432.54.66 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = some.domain.net)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = db9i)
    EXTPROC_CONNECTION_DATA.432.54.66 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    INST1_HTTP.432.54.66 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = SHARED)
    (SERVICE_NAME = MODOSE)
    (PRESENTATION = http://HRService)
    Here is the listener.log file...
    TNSLSNR for Linux: Version 9.2.0.1.0 - Production on 16-MAY-2005 23:37:18
    Copyright (c) 1991, 2002, Oracle Corporation. All rights reserved.
    System parameter file is /home/oracle/Oracle9i/product/9.2.0/network/admin/listener.ora
    Log messages written to /home/oracle/Oracle9i/product/9.2.0/network/log/listener.log
    Trace information written to /home/oracle/Oracle9i/product/9.2.0/network/trace/listener.trc
    Trace level is currently 0
    Started with pid=11876
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
    Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=432.54.66.203.sfldmi01.ce.domain.net)(PORT=1521)))
    TNS-12545: Connect failed because target host or object does not exist
    TNS-12560: TNS:protocol adapter error
    TNS-00515: Connect failed because target host or object does not exist
    No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC)))
    And my sqlnet.ora file...
    # SQLNET.ORA Network Configuration File: /home/oracle/Oracle9i/product/9.2.0/network/admin/sqlnet.ora
    # Generated by Oracle configuration tools.
    NAMES.DEFAULT_DOMAIN = 432.54.66
    NAMES.DIRECTORY_PATH= (TNSNAMES, ONAMES, HOSTNAME)
    Here is the output from a tnsping...
    [oracle@ds26 oracle]$ tnsping DB9I.432.54.66
    TNS Ping Utility for Linux: Version 9.2.0.4.0 - Production on 18-JUL-2005 23:24:15
    Copyright (c) 1997 Oracle Corporation. All rights reserved.
    Used parameter files:
    /home/oracle/Oracle9i/product/9.2.0/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = some.domain.net)(PORT = 1521))) (CONNECT_DATA = (SERVICE_NAME = db9i)))
    OK (10 msec)
    And I can connect fine with...
    sqlplus user/[email protected]

    Posting the meaning of the error is always helpful;
    12505, 00000, "TNS:listener could not resolve SID given in connect descriptor"
    // *Cause:  The SID in the CONNECT_DATA was not found in the listener's tables.
    // *Action: Check to make sure that the SID specified is correct.
    // The SIDs that are currently registered with the listener can be obtained by
    // typing "LSNRCTL SERVICES <listener name>". These SIDs correspond to
    // SID_NAMEs in TNSNAMES.ORA, or db_names in INIT.ORA.
    // *Comment: This error will be returned if the database instance has not
    // registered with the listener; the instance may need to be started.
    And, a most peculiar hostname you have: 432.54.66.203.sfldmi01.ce.domain.net
    I suggest you change that to sfldmi01.ce.domain.net, and also change the names.default domain in sqlnet.ora to ce.domain.net.
    Also, check if your IP-address is indeed 203.432.54.66.
    Then, change tnsnames.ora, and let your entries end with the same ce.domain.net, not the numeric notitation.
    And you are not getting this on some tables, but on some connections, because you close and open your connecions - hence the use of MTS (which listens on address 203.432.54.66), probably. So you might readup on MTS, and make up your mind: now your using both MTS and dedicated (the latter configured in listener.ora, the former in the instance)

  • Problems with SSH: Connection Refused

    Greetings fellow Arch users,
    I have hit a bit of a snag that I could really use some extra help getting around. I've tried everything I can think of (and everything that Google thought might work) and I have my back rather against a wall, so I thought I'd come here to see if anyone can offer some advice.
    To make a long story short, I am a college student and am attempting to set up an ssh server on a desktop at my house so I can access it remotely from the college. I have the computer set up and the server running, however I am having difficulty making connections to it from my laptop. I know that the server is running, because I can log into it both from the server itself (sshing into local host) and from my laptop when I use the internal IP address.
    The server is on a static IP address within the network(192.168.0.75), and my router is configured to forward TCP port 1500 to it (I'm using 1500 as the port for my ssh server). However, when I attempt to log into the ssh server using my network's external IP address, the connection is refused. I used nmap to scan my network and found that, even though the proper ports are forwarded to the proper place as far as my Router's configuration interface is concerned, port 1500 is not listed as one of the open TCP ports. I also, to test it, temporarily disabled the firewalls on both the server and the client. That didn't help. The command that I am running is:
    ssh -p 1500 douglas@[external ip address
    As I am really not sure what is causing this problem, I don't know what information to provide. So here is everything that my inexperienced mind sees as likely being important. If you need anything more, let me know and I will do my best to provide it.
    Here is the sshd_config file from my server.
    # This is the sshd server system-wide configuration file. See
    # sshd_config(5) for more information.
    # This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
    # The strategy used for options in the default sshd_config shipped with
    # OpenSSH is to specify options with their default value where
    # possible, but leave them commented. Uncommented options override the
    # default value.
    Port 1500
    #AddressFamily any
    #ListenAddress 0.0.0.0
    #ListenAddress ::
    # The default requires explicit activation of protocol 1
    #Protocol 2
    # HostKey for protocol version 1
    #HostKey /etc/ssh/ssh_host_key
    # HostKeys for protocol version 2
    #HostKey /etc/ssh/ssh_host_rsa_key
    #HostKey /etc/ssh/ssh_host_dsa_key
    #HostKey /etc/ssh/ssh_host_ecdsa_key
    # Lifetime and size of ephemeral version 1 server key
    #KeyRegenerationInterval 1h
    #ServerKeyBits 1024
    # Ciphers and keying
    #RekeyLimit default none
    # Logging
    # obsoletes QuietMode and FascistLogging
    #SyslogFacility AUTH
    #LogLevel INFO
    # Authentication:
    #LoginGraceTime 2m
    PermitRootLogin no
    #StrictModes yes
    #MaxAuthTries 6
    #MaxSessions 10
    #RSAAuthentication yes
    #PubkeyAuthentication yes
    # The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
    # but this is overridden so installations will only check .ssh/authorized_keys
    AuthorizedKeysFile .ssh/authorized_keys
    #AuthorizedPrincipalsFile none
    #AuthorizedKeysCommand none
    #AuthorizedKeysCommandUser nobody
    # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
    #RhostsRSAAuthentication no
    # similar for protocol version 2
    #HostbasedAuthentication no
    # Change to yes if you don't trust ~/.ssh/known_hosts for
    # RhostsRSAAuthentication and HostbasedAuthentication
    #IgnoreUserKnownHosts no
    # Don't read the user's ~/.rhosts and ~/.shosts files
    #IgnoreRhosts yes
    # To disable tunneled clear text passwords, change to no here!
    #PasswordAuthentication yes
    #PermitEmptyPasswords no
    # Change to no to disable s/key passwords
    ChallengeResponseAuthentication no
    # Kerberos options
    #KerberosAuthentication no
    #KerberosOrLocalPasswd yes
    #KerberosTicketCleanup yes
    #KerberosGetAFSToken no
    # GSSAPI options
    #GSSAPIAuthentication no
    #GSSAPICleanupCredentials yes
    # Set this to 'yes' to enable PAM authentication, account processing,
    # and session processing. If this is enabled, PAM authentication will
    # be allowed through the ChallengeResponseAuthentication and
    # PasswordAuthentication. Depending on your PAM configuration,
    # PAM authentication via ChallengeResponseAuthentication may bypass
    # the setting of "PermitRootLogin without-password".
    # If you just want the PAM account and session checks to run without
    # PAM authentication, then enable this but set PasswordAuthentication
    # and ChallengeResponseAuthentication to 'no'.
    UsePAM yes
    #AllowAgentForwarding yes
    #AllowTcpForwarding yes
    #GatewayPorts no
    #X11Forwarding no
    #X11DisplayOffset 10
    #X11UseLocalhost yes
    PrintMotd no # pam does that
    #PrintLastLog yes
    #TCPKeepAlive yes
    #UseLogin no
    UsePrivilegeSeparation sandbox # Default for new installations.
    #PermitUserEnvironment no
    #Compression delayed
    #ClientAliveInterval 0
    #ClientAliveCountMax 3
    #UseDNS yes
    #PidFile /run/sshd.pid
    #MaxStartups 10:30:100
    #PermitTunnel no
    #ChrootDirectory none
    #VersionAddendum none
    # no default banner path
    #Banner none
    # override default of no subsystems
    Subsystem sftp /usr/lib/ssh/sftp-server
    # Example of overriding settings on a per-user basis
    #Match User anoncvs
    # X11Forwarding no
    # AllowTcpForwarding no
    # ForceCommand cvs server
    The ouptut of ip addr when run on the server:
    1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
    valid_lft forever preferred_lft forever
    2: enp8s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
    link/ether 00:21:9b:3a:be:94 brd ff:ff:ff:ff:ff:ff
    inet 192.168.0.75/24 brd 192.168.255.0 scope global enp8s0
    valid_lft forever preferred_lft forever
    inet6 fe80::221:9bff:fe3a:be94/64 scope link
    valid_lft forever preferred_lft forever
    Here is the output from running nmap on the network:
    Starting Nmap 6.40 ( http://nmap.org ) at 2013-09-28 21:05 EDT
    Initiating Ping Scan at 21:05
    Scanning address [2 ports]
    Completed Ping Scan at 21:05, 0.01s elapsed (1 total hosts)
    Initiating Parallel DNS resolution of 1 host. at 21:05
    Completed Parallel DNS resolution of 1 host. at 21:05, 0.05s elapsed
    Initiating Connect Scan at 21:05
    Scanning pa-addresss.dhcp.embarqhsd.net (address) [1000 ports]
    Discovered open port 80/tcp on address
    Discovered open port 443/tcp on address
    Discovered open port 23/tcp on address
    Discovered open port 21/tcp on address
    Completed Connect Scan at 21:05, 4.08s elapsed (1000 total ports)
    Nmap scan report for pa-address.dhcp.embarqhsd.net (address)
    Host is up (0.036s latency).
    Not shown: 995 closed ports
    PORT STATE SERVICE
    21/tcp open ftp
    23/tcp open telnet
    80/tcp open http
    443/tcp open https
    8080/tcp filtered http-proxy
    Read data files from: /usr/bin/../share/nmap
    Nmap done: 1 IP address (1 host up) scanned in 4.19 seconds
    Here is the ssh_config client-side:
    # $OpenBSD: ssh_config,v 1.27 2013/05/16 02:00:34 dtucker Exp $
    # This is the ssh client system-wide configuration file. See
    # ssh_config(5) for more information. This file provides defaults for
    # users, and the values can be changed in per-user configuration files
    # or on the command line.
    # Configuration data is parsed as follows:
    # 1. command line options
    # 2. user-specific file
    # 3. system-wide file
    # Any configuration value is only changed the first time it is set.
    # Thus, host-specific definitions should be at the beginning of the
    # configuration file, and defaults at the end.
    # Site-wide defaults for some commonly used options. For a comprehensive
    # list of available options, their meanings and defaults, please see the
    # ssh_config(5) man page.
    # Host *
    # ForwardAgent no
    # ForwardX11 no
    # RhostsRSAAuthentication no
    # RSAAuthentication yes
    # PasswordAuthentication yes
    # HostbasedAuthentication no
    # GSSAPIAuthentication no
    # GSSAPIDelegateCredentials no
    # BatchMode no
    # CheckHostIP yes
    # AddressFamily any
    # ConnectTimeout 0
    # StrictHostKeyChecking ask
    # IdentityFile ~/.ssh/identity
    # IdentityFile ~/.ssh/id_rsa
    # IdentityFile ~/.ssh/id_dsa
    # Port 22
    Protocol 2
    # Cipher 3des
    # Ciphers aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc
    # MACs hmac-md5,hmac-sha1,[email protected],hmac-ripemd160
    # EscapeChar ~
    # Tunnel no
    # TunnelDevice any:any
    # PermitLocalCommand no
    # VisualHostKey no
    # ProxyCommand ssh -q -W %h:%p gateway.example.com
    # RekeyLimit 1G 1h
    Output of ssh -v during connection attempt:
    OpenSSH_6.3, OpenSSL 1.0.1e 11 Feb 2013
    debug1: Reading configuration data /home/douglas/.ssh/config
    debug1: Reading configuration data /etc/ssh/ssh_config
    debug2: ssh_connect: needpriv 0
    debug1: Connecting to address [address] port 1500.
    debug1: connect to address address port 1500: Connection refused
    ssh: connect to host address port 1500: Connection refused
    Thank you guys ahead of time. Getting this server operational is hardly critical, it is just a side project of mine, but I would really like to see it working.
    Douglas Bahr Rumbaugh
    Last edited by douglasr (2013-09-29 02:58:56)

    Okay, so I finally have the opportunity to try and log in from a remote network. And. . .  it doesn't work. Which is just my luck because I now need to wait an entire week, at least, before I can touch the server again. Anyway, running ssh with the maximum verbosity I get this output:
    douglas ~ $ ssh -vvv -p 2000 address
    OpenSSH_6.3, OpenSSL 1.0.1e 11 Feb 2013
    debug1: Reading configuration data /home/douglas/.ssh/config
    debug1: Reading configuration data /etc/ssh/ssh_config
    debug2: ssh_connect: needpriv 0
    debug1: Connecting to address [address] port 2000.
    debug1: connect to address address port 2000: Connection timed out
    ssh: connect to host address port 2000: Connection timed out
    It takes a minute or two for the command to finish with the connection timeout, as one would expect. And yes, I am reasonably sure that the address that I am using is my home network's external IP. It is dynamic, but I checked it before I left which was just over an hour ago. I guess that it may have changed. I'll know that for sure in the morning, when my server sends me an automatic email with the network's current address. In the meantime I am operating under the assumption that the address I am using is correct. What else could be the problem?

  • Lion Server postfix mail not being delivered to mailboxes. "SMTP restriction `reject_invalid_helo_hostname' after `permit' is ignored" and "connect to private/policy: Connection refused" errors.

    All, Im stumped. In fact I have been on the phone with Apple Support and this has been escalated to the top engineers, as I think its got them too..
    Anyway, here is my problem..
    I'm running an Mac Mini with OS X 10.7.4 Server. I have had mail running on it for 2 months or so, without any issues. The mail was actually migrated from 10.6 in March, and It actually went smoothly. I have 3 domains which all recieve mail and they all work (or did up until 2 weeks ago)..
    So the story is this.. I can send mail from my domains, without issue.  imap and dovecot must be working.. cause all the stored mail, can be read with the mail IMAP client.. I can even transfer mail messages from one mailbox to another with Mail client. Sending mail is a breeze, it still works and the recipients still recieve their mail. But I noticed I wasnt getting any mail at all from those mailboxes... no mail, no spam, nothing.. which is unusal. I fired up Server admin and checked out the SMTP log, and this is what it showed for every email recieved: (xxxxxx is just me hiding sensitive info)
    Jul 21 14:25:20 xxxxxxxx postfix/postscreen[65857]: CONNECT from [17.158.233.225]:41909
    Jul 21 14:25:26 xxxxxxxx postfix/postscreen[65857]: PASS OLD [17.158.233.225]:41909
    Jul 21 14:25:26 xxxxxxxx postfix/smtpd[65858]: connect from nk11p03mm-asmtp994.mac.com[17.158.233.225]
    Jul 21 14:25:26 xxxxxxxx postfix/smtpd[65858]: warning: restriction `reject_invalid_helo_hostname' after `permit' is ignored
    Jul 21 14:25:27 xxxxxxxx postfix/smtpd[65858]: warning: connect to private/policy: Connection refused
    Jul 21 14:25:27 xxxxxxxx postfix/smtpd[65858]: warning: problem talking to server private/policy: Connection refused
    Jul 21 14:25:28 xxxxxxxx postfix/smtpd[65858]: warning: connect to private/policy: Connection refused
    Jul 21 14:25:28 xxxxxxxx postfix/smtpd[65858]: warning: problem talking to server private/policy: Connection refused
    Jul 21 14:25:28 xxxxxxxx postfix/smtpd[65858]: NOQUEUE: reject: RCPT from nk11p03mm-asmtp994.mac.com[17.158.233.225]: 451 4.3.5 Server configuration problem; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<nk11p99mm-asmtpout004.mac.com>
    Jul 21 14:25:28 azathoth postfix/smtpd[65858]: disconnect from nk11p03mm-asmtp994.mac.com[17.158.233.225]
    Ok, now what is odd, is these rejected messages are not even appearing in the mail queue in Server Admin. I have no idea why there are not being delivered
    Ive checked my postfix main.cf file and master.cf files they both look ok.. Ive even replaced them with the main.cf.defualt.10.7 and master.cf.default.10.7 files and to no avail... same problem..
    So in summary
    I can send mail out
    IMAP is working on the client end (thus dovecot is) exsisting stored emails can be accessed, read, moved unread etc..
    mail is coming into the sever, but its being rejected. there is NO rejection email sent back to the sender.
    mail is recieved by postfix, but cyrus isnt doing anything with it.. I have no idea where it goes...
    Could anyone shed light on this...
    my main.cf file:
    # Global Postfix configuration file. This file lists only a subset
    # of all 300+ parameters. See the postconf(5) manual page for a
    # complete list.
    # The general format of each line is: parameter = value. Lines
    # that begin with whitespace continue the previous line. A value can
    # contain references to other $names or ${name}s.
    # NOTE - CHANGE NO MORE THAN 2-3 PARAMETERS AT A TIME, AND TEST IF
    # POSTFIX STILL WORKS AFTER EVERY CHANGE.
    # SOFT BOUNCE
    # The soft_bounce parameter provides a limited safety net for
    # testing.  When soft_bounce is enabled, mail will remain queued that
    # would otherwise bounce. This parameter disables locally-generated
    # bounces, and prevents the SMTP server from rejecting mail permanently
    # (by changing 5xx replies into 4xx replies). However, soft_bounce
    # is no cure for address rewriting mistakes or mail routing mistakes.
    # soft_bounce = no
    # LOCAL PATHNAME INFORMATION
    # The queue_directory specifies the location of the Postfix queue.
    # This is also the root directory of Postfix daemons that run chrooted.
    # See the files in examples/chroot-setup for setting up Postfix chroot
    # environments on different UNIX systems.
    queue_directory = /private/var/spool/postfix
    # The command_directory parameter specifies the location of all
    # postXXX commands.
    command_directory = /usr/sbin
    # The daemon_directory parameter specifies the location of all Postfix
    # daemon programs (i.e. programs listed in the master.cf file). This
    # directory must be owned by root.
    daemon_directory = /usr/libexec/postfix
    # QUEUE AND PROCESS OWNERSHIP
    # The mail_owner parameter specifies the owner of the Postfix queue
    # and of most Postfix daemon processes.  Specify the name of a user
    # account THAT DOES NOT SHARE ITS USER OR GROUP ID WITH OTHER ACCOUNTS
    # AND THAT OWNS NO OTHER FILES OR PROCESSES ON THE SYSTEM.  In
    # particular, don't specify nobody or daemon. PLEASE USE A DEDICATED
    # USER.
    mail_owner = _postfix
    # The default_privs parameter specifies the default rights used by
    # the local delivery agent for delivery to external file or command.
    # These rights are used in the absence of a recipient user context.
    # DO NOT SPECIFY A PRIVILEGED USER OR THE POSTFIX OWNER.
    #default_privs = nobody
    # INTERNET HOST AND DOMAIN NAMES
    # The myhostname parameter specifies the internet hostname of this
    # mail system. The default is to use the fully-qualified domain name
    # from gethostname(). $myhostname is used as a default value for many
    # other configuration parameters.
    #myhostname = host.domain.tld
    #myhostname = virtual.domain.tld
    # The mydomain parameter specifies the local internet domain name.
    # The default is to use $myhostname minus the first component.
    # $mydomain is used as a default value for many other configuration
    # parameters.
    #mydomain = domain.tld
    # SENDING MAIL
    # The myorigin parameter specifies the domain that locally-posted
    # mail appears to come from. The default is to append $myhostname,
    # which is fine for small sites.  If you run a domain with multiple
    # machines, you should (1) change this to $mydomain and (2) set up
    # a domain-wide alias database that aliases each user to
    # [email protected].
    # For the sake of consistency between sender and recipient addresses,
    # myorigin also specifies the default domain name that is appended
    # to recipient addresses that have no @domain part.
    #myorigin = $myhostname
    #myorigin = $mydomain
    # RECEIVING MAIL
    # The inet_interfaces parameter specifies the network interface
    # addresses that this mail system receives mail on.  By default,
    azathoth:postfix root#
    azathoth:postfix root# less main.cf
    azathoth:postfix root# more main.cf
    # Global Postfix configuration file. This file lists only a subset
    # of all 300+ parameters. See the postconf(5) manual page for a
    # complete list.
    # The general format of each line is: parameter = value. Lines
    # that begin with whitespace continue the previous line. A value can
    # contain references to other $names or ${name}s.
    # NOTE - CHANGE NO MORE THAN 2-3 PARAMETERS AT A TIME, AND TEST IF
    # POSTFIX STILL WORKS AFTER EVERY CHANGE.
    # SOFT BOUNCE
    # The soft_bounce parameter provides a limited safety net for
    # testing.  When soft_bounce is enabled, mail will remain queued that
    # would otherwise bounce. This parameter disables locally-generated
    # bounces, and prevents the SMTP server from rejecting mail permanently
    # (by changing 5xx replies into 4xx replies). However, soft_bounce
    # is no cure for address rewriting mistakes or mail routing mistakes.
    # soft_bounce = no
    # LOCAL PATHNAME INFORMATION
    # The queue_directory specifies the location of the Postfix queue.
    # This is also the root directory of Postfix daemons that run chrooted.
    # See the files in examples/chroot-setup for setting up Postfix chroot
    # environments on different UNIX systems.
    queue_directory = /private/var/spool/postfix
    # The command_directory parameter specifies the location of all
    # postXXX commands.
    command_directory = /usr/sbin
    # The daemon_directory parameter specifies the location of all Postfix
    # daemon programs (i.e. programs listed in the master.cf file). This
    # directory must be owned by root.
    daemon_directory = /usr/libexec/postfix
    # QUEUE AND PROCESS OWNERSHIP
    # The mail_owner parameter specifies the owner of the Postfix queue
    # and of most Postfix daemon processes.  Specify the name of a user
    # account THAT DOES NOT SHARE ITS USER OR GROUP ID WITH OTHER ACCOUNTS
    # AND THAT OWNS NO OTHER FILES OR PROCESSES ON THE SYSTEM.  In
    # particular, don't specify nobody or daemon. PLEASE USE A DEDICATED
    # USER.
    mail_owner = _postfix
    # The default_privs parameter specifies the default rights used by
    # the local delivery agent for delivery to external file or command.
    # These rights are used in the absence of a recipient user context.
    # DO NOT SPECIFY A PRIVILEGED USER OR THE POSTFIX OWNER.
    #default_privs = nobody
    # INTERNET HOST AND DOMAIN NAMES
    # The myhostname parameter specifies the internet hostname of this
    # mail system. The default is to use the fully-qualified domain name
    # from gethostname(). $myhostname is used as a default value for many
    # other configuration parameters.
    #myhostname = host.domain.tld
    #myhostname = virtual.domain.tld
    # The mydomain parameter specifies the local internet domain name.
    # The default is to use $myhostname minus the first component.
    # $mydomain is used as a default value for many other configuration
    # parameters.
    #mydomain = domain.tld
    # SENDING MAIL
    # The myorigin parameter specifies the domain that locally-posted
    # mail appears to come from. The default is to append $myhostname,
    # which is fine for small sites.  If you run a domain with multiple
    # machines, you should (1) change this to $mydomain and (2) set up
    # a domain-wide alias database that aliases each user to
    # [email protected].
    # For the sake of consistency between sender and recipient addresses,
    # myorigin also specifies the default domain name that is appended
    # to recipient addresses that have no @domain part.
    #myorigin = $myhostname
    #myorigin = $mydomain
    # RECEIVING MAIL
    # The inet_interfaces parameter specifies the network interface
    # addresses that this mail system receives mail on.  By default,
    # the software claims all active interfaces on the machine. The
    # parameter also controls delivery of mail to user@[ip.address].
    # See also the proxy_interfaces parameter, for network addresses that
    # are forwarded to us via a proxy or network address translator.
    # Note: you need to stop/start Postfix when this parameter changes.
    #inet_interfaces = all
    #inet_interfaces = $myhostname
    #inet_interfaces = $myhostname, localhost
    # The proxy_interfaces parameter specifies the network interface
    # addresses that this mail system receives mail on by way of a
    # proxy or network address translation unit. This setting extends
    # the address list specified with the inet_interfaces parameter.
    # You must specify your proxy/NAT addresses when your system is a
    # backup MX host for other domains, otherwise mail delivery loops
    # will happen when the primary MX host is down.
    #proxy_interfaces =
    #proxy_interfaces = 1.2.3.4
    # The mydestination parameter specifies the list of domains that this
    # machine considers itself the final destination for.
    # These domains are routed to the delivery agent specified with the
    # local_transport parameter setting. By default, that is the UNIX
    # compatible delivery agent that lookups all recipients in /etc/passwd
    # and /etc/aliases or their equivalent.
    # The default is $myhostname + localhost.$mydomain.  On a mail domain
    # gateway, you should also include $mydomain.
    # Do not specify the names of virtual domains - those domains are
    # specified elsewhere (see VIRTUAL_README).
    # Do not specify the names of domains that this machine is backup MX
    # host for. Specify those names via the relay_domains settings for
    # the SMTP server, or use permit_mx_backup if you are lazy (see
    # STANDARD_CONFIGURATION_README).
    # The local machine is always the final destination for mail addressed
    # to user@[the.net.work.address] of an interface that the mail system
    # receives mail on (see the inet_interfaces parameter).
    # Specify a list of host or domain names, /file/name or type:table
    # patterns, separated by commas and/or whitespace. A /file/name
    # pattern is replaced by its contents; a type:table is matched when
    # a name matches a lookup key (the right-hand side is ignored).
    # Continue long lines by starting the next line with whitespace.
    # See also below, section "REJECTING MAIL FOR UNKNOWN LOCAL USERS".
    #mydestination = $myhostname, localhost.$mydomain, localhost
    #mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
    #mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
    #       mail.$mydomain, www.$mydomain, ftp.$mydomain
    # REJECTING MAIL FOR UNKNOWN LOCAL USERS
    # The local_recipient_maps parameter specifies optional lookup tables
    # with all names or addresses of users that are local with respect
    # to $mydestination, $inet_interfaces or $proxy_interfaces.
    # If this parameter is defined, then the SMTP server will reject
    # mail for unknown local users. This parameter is defined by default.
    # To turn off local recipient checking in the SMTP server, specify
    # local_recipient_maps = (i.e. empty).
    # The default setting assumes that you use the default Postfix local
    # delivery agent for local delivery. You need to update the
    # local_recipient_maps setting if:
    # - You define $mydestination domain recipients in files other than
    #   /etc/passwd, /etc/aliases, or the $virtual_alias_maps files.
    #   For example, you define $mydestination domain recipients in   
    #   the $virtual_mailbox_maps files.
    # - You redefine the local delivery agent in master.cf.
    # - You redefine the "local_transport" setting in main.cf.
    # - You use the "luser_relay", "mailbox_transport", or "fallback_transport"
    #   feature of the Postfix local delivery agent (see local(8)).
    # Details are described in the LOCAL_RECIPIENT_README file.
    # Beware: if the Postfix SMTP server runs chrooted, you probably have
    # to access the passwd file via the proxymap service, in order to
    # overcome chroot restrictions. The alternative, having a copy of
    # the system passwd file in the chroot jail is just not practical.
    # The right-hand side of the lookup tables is conveniently ignored.
    # In the left-hand side, specify a bare username, an @domain.tld
    # wild-card, or specify a [email protected] address.
    #local_recipient_maps = unix:passwd.byname $alias_maps
    #local_recipient_maps = proxy:unix:passwd.byname $alias_maps
    #local_recipient_maps =
    # The unknown_local_recipient_reject_code specifies the SMTP server
    # response code when a recipient domain matches $mydestination or
    # ${proxy,inet}_interfaces, while $local_recipient_maps is non-empty
    # and the recipient address or address local-part is not found.
    # The default setting is 550 (reject mail) but it is safer to start
    # with 450 (try again later) until you are certain that your
    # local_recipient_maps settings are OK.
    unknown_local_recipient_reject_code = 550
    # TRUST AND RELAY CONTROL
    # The mynetworks parameter specifies the list of "trusted" SMTP
    # clients that have more privileges than "strangers".
    # In particular, "trusted" SMTP clients are allowed to relay mail
    # through Postfix.  See the smtpd_recipient_restrictions parameter
    # in postconf(5).
    # You can specify the list of "trusted" network addresses by hand
    # or you can let Postfix do it for you (which is the default).
    # By default (mynetworks_style = subnet), Postfix "trusts" SMTP
    # clients in the same IP subnetworks as the local machine.
    # On Linux, this does works correctly only with interfaces specified
    # with the "ifconfig" command.
    # Specify "mynetworks_style = class" when Postfix should "trust" SMTP
    # clients in the same IP class A/B/C networks as the local machine.
    # Don't do this with a dialup site - it would cause Postfix to "trust"
    # your entire provider's network.  Instead, specify an explicit
    # mynetworks list by hand, as described below.
    # Specify "mynetworks_style = host" when Postfix should "trust"
    # only the local machine.
    #mynetworks_style = class
    #mynetworks_style = subnet
    #mynetworks_style = host
    # Alternatively, you can specify the mynetworks list by hand, in
    # which case Postfix ignores the mynetworks_style setting.
    # Specify an explicit list of network/netmask patterns, where the
    # mask specifies the number of bits in the network part of a host
    # address.
    # You can also specify the absolute pathname of a pattern file instead
    # of listing the patterns here. Specify type:table for table-based lookups
    # (the value on the table right-hand side is not used).
    #mynetworks = 168.100.189.0/28, 127.0.0.0/8
    #mynetworks = $config_directory/mynetworks
    #mynetworks = hash:/etc/postfix/network_table
    # The relay_domains parameter restricts what destinations this system will
    # relay mail to.  See the smtpd_recipient_restrictions description in
    # postconf(5) for detailed information.
    # By default, Postfix relays mail
    # - from "trusted" clients (IP address matches $mynetworks) to any destination,
    # - from "untrusted" clients to destinations that match $relay_domains or
    #   subdomains thereof, except addresses with sender-specified routing.
    # The default relay_domains value is $mydestination.
    # In addition to the above, the Postfix SMTP server by default accepts mail
    # that Postfix is final destination for:
    # - destinations that match $inet_interfaces or $proxy_interfaces,
    # - destinations that match $mydestination
    # - destinations that match $virtual_alias_domains,
    # - destinations that match $virtual_mailbox_domains.
    # These destinations do not need to be listed in $relay_domains.
    # Specify a list of hosts or domains, /file/name patterns or type:name
    # lookup tables, separated by commas and/or whitespace.  Continue
    # long lines by starting the next line with whitespace. A file name
    # is replaced by its contents; a type:name table is matched when a
    # (parent) domain appears as lookup key.
    # NOTE: Postfix will not automatically forward mail for domains that
    # list this system as their primary or backup MX host. See the
    # permit_mx_backup restriction description in postconf(5).
    #relay_domains = $mydestination
    # INTERNET OR INTRANET
    # The relayhost parameter specifies the default host to send mail to
    # when no entry is matched in the optional transport(5) table. When
    # no relayhost is given, mail is routed directly to the destination.
    # On an intranet, specify the organizational domain name. If your
    # internal DNS uses no MX records, specify the name of the intranet
    # gateway host instead.
    # In the case of SMTP, specify a domain, host, host:port, [host]:port,
    # [address] or [address]:port; the form [host] turns off MX lookups.
    # If you're connected via UUCP, see also the default_transport parameter.
    #relayhost = $mydomain
    #relayhost = [gateway.my.domain]
    #relayhost = [mailserver.isp.tld]
    #relayhost = uucphost
    #relayhost = [an.ip.add.ress]
    # REJECTING UNKNOWN RELAY USERS
    # The relay_recipient_maps parameter specifies optional lookup tables
    # with all addresses in the domains that match $relay_domains.
    # If this parameter is defined, then the SMTP server will reject
    # mail for unknown relay users. This feature is off by default.
    # The right-hand side of the lookup tables is conveniently ignored.
    # In the left-hand side, specify an @domain.tld wild-card, or specify
    # a [email protected] address.
    #relay_recipient_maps = hash:/etc/postfix/relay_recipients
    # INPUT RATE CONTROL
    # The in_flow_delay configuration parameter implements mail input
    # flow control. This feature is turned on by default, although it
    # still needs further development (it's disabled on SCO UNIX due
    # to an SCO bug).
    # A Postfix process will pause for $in_flow_delay seconds before
    # accepting a new message, when the message arrival rate exceeds the
    # message delivery rate. With the default 100 SMTP server process
    # limit, this limits the mail inflow to 100 messages a second more
    # than the number of messages delivered per second.
    # Specify 0 to disable the feature. Valid delays are 0..10.
    #in_flow_delay = 1s
    # ADDRESS REWRITING
    # The ADDRESS_REWRITING_README document gives information about
    # address masquerading or other forms of address rewriting including
    # username->Firstname.Lastname mapping.
    # ADDRESS REDIRECTION (VIRTUAL DOMAIN)
    # The VIRTUAL_README document gives information about the many forms
    # of domain hosting that Postfix supports.
    # "USER HAS MOVED" BOUNCE MESSAGES
    # See the discussion in the ADDRESS_REWRITING_README document.
    # TRANSPORT MAP
    # See the discussion in the ADDRESS_REWRITING_README document.
    # ALIAS DATABASE
    # The alias_maps parameter specifies the list of alias databases used
    # by the local delivery agent. The default list is system dependent.
    # On systems with NIS, the default is to search the local alias
    # database, then the NIS alias database. See aliases(5) for syntax
    # details.
    # If you change the alias database, run "postalias /etc/aliases" (or
    # wherever your system stores the mail alias file), or simply run
    # "newaliases" to build the necessary DBM or DB file.
    # It will take a minute or so before changes become visible.  Use
    # "postfix reload" to eliminate the delay.
    #alias_maps = dbm:/etc/aliases
    #alias_maps = hash:/etc/aliases
    #alias_maps = hash:/etc/aliases, nis:mail.aliases
    #alias_maps = netinfo:/aliases
    # The alias_database parameter specifies the alias database(s) that
    # are built with "newaliases" or "sendmail -bi".  This is a separate
    # configuration parameter, because alias_maps (see above) may specify
    # tables that are not necessarily all under control by Postfix.
    #alias_database = dbm:/etc/aliases
    #alias_database = dbm:/etc/mail/aliases
    #alias_database = hash:/etc/aliases
    #alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases
    # ADDRESS EXTENSIONS (e.g., user+foo)
    # The recipient_delimiter parameter specifies the separator between
    # user names and address extensions (user+foo). See canonical(5),
    # local(8), relocated(5) and virtual(5

    Ok 1st one. The warning restriction message relates to this line in main.cf:
    smtpd_helo_restrictions = permit_sasl_authenticated  permit_mynetworks  check_helo_access hash:/etc/postfix/helo_access  reject_non_fqdn_hostname  reject_invalid_hostname  permit reject_invalid_helo_hostname
    The last reject occurs after the single word "permit" and is ignored.
    However, that's not the problem.
    I'm not exactly sure what's happening, but this might be a clue.
    It would appear that either postfix is not being able to create the socket for private/policy or it's somehow created with the wrong permissions.  You might need to ramp up the debug level to get a better idea.
    You could check if it's being created by "netstat -a | grep private/policy" in terminal.
    My guess is that it's not being created because there is no setup statement in your master.cf file, but I don't understand why postfix would be looking for it if it isn't set up.  Private/policy I think relates to grey listing.  Maybe gives you a hint.

Maybe you are looking for