Connection refused at localhost

Hi,
I got a problem binding a Socket(just try a few like 3090 or 22222) with ip = localhost...
What can be the error?
new Socket("127.0.0.1", 3090);
java.net.ConnectException: Connection refused: connect
     at java.net.PlainSocketImpl.socketConnect(Native Method)
     at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
     at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
...Olek

Do you want to make a connection, or bind to a port? They are different actions. You can't connect unless there is something listening on the specified port. If bind, see that Socket method.

Similar Messages

  • Please help: connection refused on localhost

    I'm using RMI in a BEA WebLogic 7 environment. I've written an RMI object that
    registers itself (with Naming.rebind) in its main method:
    myObject mo = new myObject();
    Naming.rebind("//localhost:7001/my_object", mo);
    I am importing standard RMI packages, not WebLogic RMI packages. The code itself
    appears to be fine, and I have deployed it as a startup class in WebLogic 7. Problem
    is, when I restart WebLogic and that Naming.rebind call is executed, it returns:
    java.net.ConnectException:
    Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect (Native Method) ...
    I am running WebLogic on port 7001 on my local workstation, which has a dynamic
    network IP,
    so I need to bind at either 127.0.0.1:7001 or localhost:7001. I have tried both
    repeatedly in my code, with and without the port number, and everything fails.
    I also played with the Socket permissions in the weblogic.policy file and fileRealm.properties
    file, but still no connection. I'm at wit's end. Can you help, please?

    I am having the same problem. Surprizing thing is the creator (SAP) itself is not solving the problem.
      created: jce/
    inflated: jce/local_policy.jar
    inflated: jce/US_export_policy.jar
    inflated: jce/README.txt
    inflated: jce/COPYRIGHT.html
    C:\DOCUME1\ADMINI1\LOCALS~1\Temp\sapinst_exe.1164.1274306683
    jre\jce\COPYRIGHT.html
    C:\DOCUME1\ADMINI1\LOCALS~1\Temp\sapinst_exe.1164.1274306683
    jre\jce\local_policy.jar
    C:\DOCUME1\ADMINI1\LOCALS~1\Temp\sapinst_exe.1164.1274306683
    jre\jce\README.txt
    C:\DOCUME1\ADMINI1\LOCALS~1\Temp\sapinst_exe.1164.1274306683
    jre\jce\US_export_policy.jar
            4 file(s) copied.
    Start mode: gui (Gui only)
    Connection parameters:
      GuiServer host: localhost
      GuiServer port: 21212
      GUI mode      : normal
    Starting...
    <<< frog.jar: version 7.20.12 06/06/08 sap.theme: null >>>
    Exit status of child: 1

  • 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

  • Connection Refused by localhost

    Good morning all. I'm very new (hence the newbie corner) so I was hoping to get some insight on an issue I've run up against and haven't figured out yet. I have -Syu'd and am using the most recent yaourt and yaourt-gui packages from AUR to install packages more easily. I recently installed the most recent plex-media-server-plexpass package, which requires I access it through localhost:32400.
    So this is where I get the "Connection to the Server Refused" when trying to access the localhost. Unless a firewall got added in the original Arch install or KDE/plasma packages, I have not deliberately installed a software firewall in this system, so to my knowledge that's not the issue. Do I need to be running Apache/LAMP? Is there something in permissions I am missing?
    Thanks for the help.
    Note that I know the service is running, as when I go to /opt/plexmediaserver and run sh start.sh I am notified that the service is already running.

    Glad it is solved    I guess I'll drag you through iptables -L and %netstat -lp  another time
    BTW, I serve Plex from this laptop to my Roku -- it is pretty much my entire TV watching solution.  I don't know what you intend to stream, but I find that a lot of the commercial stuff from the major broadcasters don't stream to the browser that well.  I have better luck plexhometheater
    Be sure to add [SOLVED] to the thread title.
    Last edited by ewaller (2015-03-15 17:12:21)

  • Could not connect to host localhost on port 21212

    Hi Experts,
    I am trying to install SAP NW 2004s SR1 with Linux [Red Hat Enterprise Linux AS release 4 (Nahant Update 4)
    , Kernel (2.6.9-42.EL)] and Oracle 10.2. I am getting the following error:
    =============
    SAP NetWeaver
    SAPinst Installation GUI
    Could not connect to host localhost on port 21212
    java.net.ConnectException:Connection refused
    Host: localhost
    Port 21212
    ==================
    I am using SDK 1.4.2_16.
    Kindly  help me to resolve go ahead in installation.
    Regards.......Yogesh

    Hi Yogesh,
    The error comes if  :-
    1. Incorrect version of JDK.
    2. Java_Home is not set.
    3.The port is already as an old binary is using it.
    Please check on the above lines.
    Thanks
    Pankaj

  • Javax.mail.MessagingException: Connection refused: connect on localhost

    Hello,
    I am using Tomcat5.0.28 for a javamail servlet program. I am giving the hostname as localhost. After entering the input details in my html file, i get the error- "javax.mail.MessagingException: Connection refused: connect; nested exception is: java.net.ConnectException: Connection refused: connect " .
    can anybody help me regarding in solving error.
    Thanks.

    First, you're using a very old version of JavaMail.  Please upgrade.  Some of the properties you're setting aren't supported in that old version.
    Second, you don't need the socket factory properties, get rid of them.
    Finally, it looks like you're trying to connect on port 143 using SSL.  Port 143 is the non-SSL port.  That's probably not going to work.  Still, it looks like something is refusing to let you connect at all.  If you really can telnet from the same machine your program is running on to the same server machine on port 143, then you probably have some sort of firewall that's preventing your program from connecting.  Please post the entire debug output if it still fails after correcting the problems above.  (Move the setDebug call to before the getStore call.)

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

  • Connection refused.

    Hi,
    i am using NetBeans IDE 5.,5 and trying out the NewsApp tutorial for Entity beans.
    When i run the project I get the following error,
    How shall i fix this,
    Thanks in advance.
    deployment started : 0%
    Deploying application in domain failed;
    Internal Exception: java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: java.net.ConnectException : Error opening socket to server localhost on port 1527 with message : Connection refused: no further informationError Code: 0
    E:\Sitaraman\OSS1\Projects\NewsApp\nbproject\build-impl.xml:183: Deployment error:
    The module has not been deployed.
    See the server log for details.
    BUILD FAILED (total time: 13 seconds)

    Hi,
    I had not started the database server. Going to tools->start db server fixed the problem.
    Sitaraman

  • Connection Refused Error while running AS ABAP Initial Load

    All,
    I've never connected SAP NW IdM to an actual SAP system before, and I feel like I'm missing some obvious step of configuration, but I can't figure out what.
    We are in the process of trying provision user accounts to our SAP ABAP systems. My first step was to try to read all of the existing accounts from the ABAP system:
    Our Basis team created me a Communication user with the proper authorizations (I ensured that the authorizations included in SAP_BC_SEC_IDM_COMMUNICATION)
    I created a repository using the SAP NewWeaver AS ABAP (Specific Application Server) Repository Template (No CUA, No SNC) using that user's credentials
    I then used the Job Wizard and used the job template AS ABAP - Initial Load, specifying my repository above.
    When I run the job I get the following:
    Initializing SAP connection with parameters:
    com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to message server failed Connect_PM MSHOST=<IPADDRESS>, R3NAME=<SID>, GROUP=PUBLIC LOCATION CPIC (TCP/IP) on local host ERROR partner not reached (host <IPADDRESS>, service sapms<SID>) TIME Wed Jun 01 13:54:36 201 RELEASE 640 COMPONENT NI (network interface) VERSION 37 RC -10 MODULE nixxi_r.cpp LINE 8840 DETAIL NiPConnect2 SYSTEM CALL SiPeekPendConn ERRNO 10061 ERRNO TEXT WSAECONNREFUSED: Connection refused COUNTER 1
    Error Init failed
    I'm running SAP NW IdM 7.1 SP5 on Windows Server 2003 with MSSQL 2005. The ABAP server is on a UNIX box with an Oracle 10.2 dB.
    Is there additional configuration that needs to take place on the ABAP side to accept the connection?
    I've tried to find documentation on this, but have been unsuccessful. If someone could point me to the correct documents, or at least point me in the right direction for troubleshooting, it would be greatly appreciated.

    Ankur,
    Looks like the endpoint URL of the webservice is not updated and still pointing to the localhost. Try changing it to http://<ip_addres_of_your_server>:7101..... and see if it works fine then.
    -Arun

  • Connection refused--while executing (HttpConnection) Connector.open(url);

    Hi,
    i'm using netbeans mobility 5.0
    as i was new to this mobile programming i'm getting the output as "Connection Refused"
    plz plz plz plz....... help me out from this problem
    here is my code..
    code:_
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.io.*;
    import java.io.*;
    public class FileViewer extends MIDlet implements CommandListener
    private Display display; // Reference to Display object
    private TextBox tbViewer; // View file contents in a textbox
    private Command cmView; // Command to view file
    private Command cmExit; // Command to exit
    private String url = "http://www.corej2me.com/midpbook_v1e1/scratch/fileViewer.hlp";
    public FileViewer()
    display = Display.getDisplay(this);
    // Define commands
    cmView = new Command("View", Command.SCREEN, 2);
    cmExit = new Command("Exit", Command.EXIT, 1);
    tbViewer = new TextBox("Viewer", "", 250, TextField.ANY);
    tbViewer.addCommand(cmView);
    tbViewer.addCommand(cmExit);
    tbViewer.setCommandListener(this);
    public void startApp()
    display.setCurrent(tbViewer);
    private void viewFile() throws IOException
    HttpConnection http = null;
    InputStream iStrm = null;
    try
    http = (HttpConnection) Connector.open(url);
    // Client Request
    // 1) Send request method
    http.setRequestMethod(HttpConnection.GET);
    // 2) Send header information (this header is optional)
    http.setRequestProperty("User-Agent", "Profile/MIDP-1.0 Configuration/CLDC-1.0");
    // 3) Send body/data - No data for this request
    // Server Response
    // 1) Get status Line
    System.out.println("Msg: " + http.getResponseMessage());
    System.out.println("Code: " + http.getResponseCode());
    // 2) Get header information
    if (http.getResponseCode() == HttpConnection.HTTP_OK)
    // 3) Get data (show the file contents)
    iStrm = http.openInputStream();
    int length = (int) http.getLength();
    if (length > 0)
    byte serverData[] = new byte[length];
    iStrm.read(serverData);
    tbViewer.setString(new String(serverData));
    finally
    if (iStrm != null)
    iStrm.close();
    if (http != null)
    http.close();
    public void pauseApp()
    public void destroyApp(boolean unconditional)
    public void commandAction(Command c, Displayable s)
    if (c == cmView)
    try
    viewFile();
    catch (Exception e)
    System.out.println(e.toString());
    else if (c == cmExit)
    destroyApp(false);
    notifyDestroyed();
    output*
    build.xml(debug)*
    some....
    Application descriptor does not declare any MIDlet. Direct execution is not allowed.
    Generated "C:\Documents and Settings\Lakshmi Narayan J\jlnexample\dist\jlnexample.jar" is 2655 bytes.
    post-jar:
    debug:
    C:\Documents and Settings\Lakshmi Narayan J\jlnexample\src\.timestamp
    Starting emulator in debug server mode on port 1469
    com.sun.kvem.midletsuite.InvalidJadException: Reason = 22
    The manifest or the application descriptor MUST contain the attribute: MIDlet-1
    nbdebug:
    KdpDebugTask connecting to debugger 1 ..
    KdpDebugTask connecting to debugger 2 ..
    KdpDebugTask connecting to debugger 3 ..
    KdpDebugTask connecting to debugger 4 ..
    KdpDebugTask connecting to debugger 5 ..
    Connecting JPDA Debugger to emulator timed out after 5 attempts and 31 seconds.
    C:\Documents and Settings\Lakshmi Narayan J\jlnexample\nbproject\build-impl.xml:306: The following error occurred while executing this line:
    C:\Documents and Settings\Lakshmi Narayan J\jlnexample\nbproject\build-impl.xml:311: Connecting JPDA Debugger to emulator timed out after 5 attempts and 31 seconds.
    BUILD FAILED (total time: 43 seconds)
    Debugger console:
    Attaching to localhost:1469
    Connection refused.
    Edited by: LAKSHMI_NARAYAN_J on Jun 23, 2008 9:54 AM

    It's called potential deadlock. The emulator blocks your app 'cause any connection and commandAction needs its own thread. So I suggest use a new thread with this http connection then your program will be run successful.

  • Connection refused to host: connection timed out

    I have been struggling with this problem a couple of days now so I really hope someone can help me. I am trying to get rmi to work in a NAT environment. We use a firewall, so I have opened port 1099 and 2020 which I use as a fixed port for communication (just to be sure it is not a firewall thing); I use the following code:
    //server
    public class ComputeEngine extends UnicastRemoteObject
    implements Compute
    public ComputeEngine() throws RemoteException {
    super();
    public String getMessage() {
    return "you have successfully connected to the server";
    public static void main(String[] args) {
    if (System.getSecurityManager() == null) {
    System.setSecurityManager(new RMISecurityManager());
    try {
    String port = args[0];
    try {
    RMISocketFactory.setSocketFactory(new FixedPortRMISocketFactory(Integer.parseInt(port)));
    } catch (IOException e) {
    e.printStackTrace();
    LocateRegistry.createRegistry( 1099 );
    catch (RemoteException e1) {
    e1.printStackTrace();
    String name = "rmi://localhost/Compute";
    try {
    Compute engine = new ComputeEngine();
    Naming.rebind(name, engine);
    System.out.println("ComputeEngine bound");
    while(true); //stay alive
    } catch (Exception e) {
    System.err.println("ComputeEngine exception: " + e.getMessage());
    e.printStackTrace();
    public Socket createSocket(String host, int port)
    throws IOException {
    System.out.println("creating socket to host : " + host + " on port " + port);
    return new Socket(host, port);
    * Create a server socket on the specified port (port 0 indicates
    * an anonymous port) and writes out some debugging info
    * @param port the port number
    * @return the server socket on the specified port
    * @exception IOException if an I/O error occurs during server socket
    * creation
    * @since JDK1.1
    public ServerSocket createServerSocket(int port)
    throws IOException {
    port = (port == 0 ? portnumber : port);
    System.out.println("creating ServerSocket on port " + port);
    return new ServerSocket(port);
    //client
    public class ComputePi {
    public static void main(String args[]) {
    if (System.getSecurityManager() == null) {
    System.setSecurityManager(new RMISecurityManager());
    try {
    String name = "rmi://" + args[0] + "/Compute";
    Compute comp = (Compute) Naming.lookup(name);
    System.out.println("connected to server");
    System.out.println(comp.getMessage());
    } catch (Exception e) {
    System.err.println("ComputePi exception: " + e.getMessage());
    e.printStackTrace();
    I start the client with:
    java -Djava.security.policy=policy.all -jar client.jar 194.2.4.6:1099
    I start the server with:
    java -Djava.rmi.server.codebase="file:/C:\RMI\\server.jar" -Djava.rmi.server.hostname="194.2.4.6" -Djava.security.policy=policy.all -jar server.jar 2020
    As you can see I set the "-Djava.rmi.server.hostname" property which should be a solution to the NAT problem. However I keep getting the following exception!!??!!:
    ComputePi exception: Connection refused to host: 194.2.4.6; nested exception is:
         java.net.ConnectException: Connection timed out: connect
    java.rmi.ConnectException: Connection refused to host: 194.2.4.6; nested exception is:
         java.net.ConnectException: Connection timed out: connect
         at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
         at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
         at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
         at sun.rmi.server.UnicastRef.newCall(Unknown Source)
         at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
         at java.rmi.Naming.lookup(Unknown Source)
         at client.ComputePi.main(ComputePi.java:14)
    Caused by: java.net.ConnectException: Connection timed out: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(Unknown Source)
         at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
         at java.net.PlainSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown Source)
         at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown Source)
         ... 7 more
    Can anyone help me with this, please??????
    kind regards,
    Christiaan

    Yes, i can ping it from the client.
    I have also noticed that when i run my server with the option -Djava.rmi.server.hostname=IP the applications stops automatically after a few minuts...
    I'm not using nothing about codebase. I have the stub and skel classes in server and client machines..
    I add the complete exception:
    Client exception: java.rmi.ConnectException: Connection refused to host: external_IP; nested exception is:
    java.net.ConnectException: Connection timed out: connect
    java.rmi.ConnectException: Connection refused to host: external_IP; nested exception is:
    java.net.ConnectException: Connection timed out: connect
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:567)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:101)
    at example.hello.Server_Stub.sayHello(Unknown Source)
    at example.hello.Client.main(Client.java:55)
    Caused by: java.net.ConnectException: Connection timed out: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
    at java.net.Socket.connect(Socket.java:426)
    at java.net.Socket.connect(Socket.java:376)
    at java.net.Socket.<init>(Socket.java:291)
    at java.net.Socket.<init>(Socket.java:119)
    at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirect
    SocketFactory.java:22)
    at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMaster
    SocketFactory.java:128)
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:562)
    ... 5 more

  • JSTL xml is killing me... Tomcat 5.5 question - Connection refused: connec

    I have the following code in my jsp file:
    <%
    String req_url="http://localhost/nolabook/books.xml";
    //String req_url="http://www.SOMESERVER.com/books.xml";
    %>
    <c:import var="xml" url='<%= req_url %>' />
    <c:import var="xslt" url="transform.xsl" />
    <x:transform doc="${xml}" xslt="${xslt}" >
    </x:transform>If I use 'req_url' with localhost then everything is ok and I see the result I want to. The xsl is perfect, the output is flawless.
    If I try to load the same books.xml from a remote server I got the following exception:
    ...and the exception is: javax.servlet.jsp.JspException: Problem accessing the absolute URL "http://www.SOMESERVER.com/books.xml". java.net.ConnectException: Connection refused: connect
    It drives me nuts and I cannot move on with my project because of this.
    I use java 1.5 with Apache Tomcat 5.5.17
    No firewalls, no port closures, no security systems nothing on my developer machine...
    And of course, if I just place the URL(.../books.xml) into my browser it reads and shows the books.xml file.
    I need help please because I'm drained...
    Message was edited by:
    ayrtonsf1

    please see the following site for the solution:
    http://www.cs.wcupa.edu/~rkline/Java/xml_examples.html
    summary:
    You will also need the jar files from the Xalan distribution whose web site is:
    http://xml.apache.org/xalan-j/
    The latest version is 2.7.0 and the binary distribution can be downloaded from the course server at
    xalan-j_2_7_0-bin.zip
    which contains the JAR file needed for XPath and Xerces compilation usages. Extracting the zip file yields the directory xalan-j_2_7_0. Within it look for the files (also downloadable from these links):
    xalan.jar, xercesImpl.jar, serializer.jar
    These JAR files will need to be made available to Eclipse. The easiest way, as before, is to install them directly into
    apache-tomcat-5.5.17/common/lib
    good luck,
    -zak guler

  • Connection refused with java, but not javaw

    I have a ServerSocket based program...listening on a port. It is really a very simple program. And I can run it with javaw. Then I can use another problem, for example, telnet to connect to that port, just to prove I can connect to that port. Everything is fine.
    Now if I run the exactly the same ServerSocket program with java, then I got the connection refused error.
    It is weird.
    Do you know why? Do you know a good socket troubleshooting tool on Windows? I am afraid of the viruses, so I haven't downloaded any free tools yet.

    You're right.
    The Norton personal firewall does not handle localhost to localhost correctly. I do all the tests on the same machine. The netstat -an shows the port is listening in either case. But now I know the firewall blocks one of them silently. No rule prompt was triggered. Worse, no logging produced for that particular access.
    Thanks. You've been very helpful.

  • Java.rmi.ConnectException: Connection refuse

    Hi all,
    I have built a simple RMI client server application.I can run client & server fine locally.
    However if I test this appplication over the internet, I get this exception on the client:
    java.rmi.ConnectException: Connection refused to host: 169.254.157.53; nested exception is:
    java.net.ConnectException: Connection timed out: connectConnection refused to host:169.254.157.53
    The RMI server is running on my PC and the client on a friend's remote PC.Both PCs are connected to Internet.
    I don't have any firewall running on my PC (including windows XP firewall). The server RMI lookup on the client happens correctly,
    the exception is raised when the client tries to call the remote method on the server.
    Here is an extract of my RMI server code (it works locally):
    public static void main(String[] args) throws Exception {
              try {
              // args[0] contains the database server name given as command line argument, arg[1] contains binary path that contains weather jpeg files     
              CPrimaryWeatherServer test = new CPrimaryWeatherServer(args[0], args[1]);
              Naming.rebind("rmi://localhost:1099/WeatherPrimaryService", test);
              System.out.println("Serveur m�t�o principal d�marr�");
              } catch (Exception e){ System.out.println(e.getMessage());}
    Here is an extract of my RMI client code (it works locally):
    try{
                        rec=1;
                        leftClik=1;
                        System.out.println("Before RMI lookup");
                        IPrimaryWeatherServerService serveur =(IPrimaryWeatherServerService)Naming.lookup("rmi://"+primWS+":1099/WeatherPrimaryService");
                        System.out.println("After RMI lookup");
                        System.out.println("Before server method call");
                        z=serveur.getFullWeatherData(); --> exception is raised here
                        System.out.println("After RMI server method call");
    I am directly connected to Internet using an ethernet card connected to an ADSL modem.169.254.157.53 is the automatic IP of my network card different from the IP given by my ISP. By the way, the client tries to contact me using my DNS name that resolves correctly to my ISP IP adress.
    Thanks a lot for help,

    because I am guessing that a local IP address is being embedded into the stub so the clien't can't find the remote server. I am guessing because you didn't provide the exception or its text. Anyway the suggestion will cause the correct public IP address/hostname to be embedded into the stub.

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

Maybe you are looking for