Postfix: connection refused error

Discussion in 'Server Operation' started by tosin, Oct 29, 2007.

  1. tosin

    tosin New Member

    Dear All,

    Please I need help. My postfix server gives the following error when client system on the LAN try to send out mail. ¨delivery temporary suspended: connect to 127.0.0.1 [127.0.0.1]: connection refused¨.
    Mails been pulled by fetchmail are not been delivered to clients and outgoing mails are not delivered either. I can do telnet localhost 25 and get the following.


    [root@mandriva ~]# telnet mandriva.amlbti.lan 25
    Trying 127.0.0.1...
    Connected to mandriva.amlbti.lan (127.0.0.1).
    Escape character is '^]'.
    220 mandriva.amlbti.lan ESMTP Postfix (2.3.3) (Mandriva Linux)
    ehlo localhost
    250-mandriva.amlbti.lan
    250-PIPELINING
    250-SIZE 10240000
    250-VRFY
    250-ETRN
    250-STARTTLS
    250-AUTH DIGEST-MD5 LOGIN PLAIN
    250-AUTH=DIGEST-MD5 LOGIN PLAIN
    250-ENHANCEDSTATUSCODES
    250-8BITMIME
    250 DSN
    starttls
    220 2.0.0 Ready to start TLS

    Pls find below my main.cf file and my mail log.

    main.cf

    # Please be sure to read the /usr/share/doc/postfix-*/README.MDK file
    # to learn about differences from stock postfix to Mandriva package.
    # This file contains only the parameters changed from a default install
    # see /etc/postfix/main.cf.dist for a commented, fuller version of this file.

    # These are changed by postfix install script
    readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
    html_directory = /usr/share/doc/postfix-2.3.3/html
    sendmail_path = /usr/sbin/sendmail.postfix
    setgid_group = postdrop
    command_directory = /usr/sbin
    manpage_directory = /usr/share/man
    daemon_directory = /usr/lib64/postfix
    newaliases_path = /usr/bin/newaliases
    mailq_path = /usr/bin/mailq
    global_config_directory = /etc/postfix

    # User configurable parameters
    mydestination = $myhostname, localhost.$mydomain, $mydomain
    mynetworks = 192.168.63.0/24, 127.0.0.0/8
    smtpd_sasl_local_domain =
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_security_options = noanonymous
    broken_sasl_auth_clients = yes
    smtpd_recepient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
    myorigin = $mydomain
    smtpd_tls_auth_only = no
    smtp_use_tls = yes
    smtpd_use_tls = yes
    smtp_tls_note_starttls_offer = yes
    smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
    smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
    smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
    smtpd_tls_loglevel = 1
    smtpd_tls_received_header = yes
    smtpd_tls_session_cache_timeout = 3600s
    tls_random_source = dev:/dev/urandom
    #delay_warning_time = 4h
    smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) (Mandriva Linux)
    unknown_local_recipient_reject_code = 450
    smtp-filter_destination_concurrency_limit = 2
    lmtp-filter_destination_concurrency_limit = 2
    content_filter = lmtp-filter:127.0.0.1:10025
    receive_override_options = no_address_mappings
    recipient_delimiter = +
    owner_request_special = no
    #alias_maps = hash:/etc/postfix/aliases, hash:/var/lib/mailman/data/aliases
    sample_directory = /etc/postfix
    mail_spool_directory = /var/spool/mail
    relay_domains =
    myhostname = mandriva.amlbti.lan
    mydomain = amlbti.lan

    Errors


    Oct 26 13:00:57 mandriva postfix/postfix-script: fatal: the Postfix mail system is not running
    Oct 26 13:01:03 mandriva postfix/master[16127]: fatal: bind 0.0.0.0 port 25: Address already in use
    Oct 26 13:01:08 mandriva postfix/postfix-script: fatal: the Postfix mail system is not running
    Oct 26 13:01:13 mandriva postfix/master[16185]: fatal: bind 0.0.0.0 port 25: Address already in use
    Oct 26 13:01:15 mandriva postfix/master[16240]: fatal: bind 0.0.0.0 port 25: Address already in use
    Oct 26 13:01:18 mandriva postfix/master[16295]: fatal: bind 0.0.0.0 port 25: Address already in use
    Oct 26 13:01:30 mandriva postfix/master[16414]: fatal: bind 0.0.0.0 port 25: Address already in use
    Oct 26 13:01:34 mandriva postfix/postfix-script: fatal: the Postfix mail system is not running
    Oct 26 13:01:56 mandriva postfix/smtpd[15974]: fatal: connect #11 to subsystem /var/spool/postfix/private/proxymap: No such file or directory
    Oct 26 13:02:53 mandriva postfix/postfix-script: fatal: the Postfix mail system is not running
    Oct 26 13:02:57 mandriva master[16744]: fatal: master_spawn: exec /usr/lib64/postfix/smtpd: No such file or directory
    Oct 26 13:03:58 mandriva master[16762]: fatal: master_spawn: exec /usr/lib64/postfix/smtpd: No such file or directory
    Oct 26 13:04:59 mandriva master[16765]: fatal: master_spawn: exec /usr/lib64/postfix/smtpd: No such file or directory
    Oct 26 13:05:46 mandriva postfix/postfix-script: fatal: the Postfix mail system is not running
    Oct 26 13:05:46 mandriva postfix/postfix-script: fatal: the Postfix mail system is not running
    Oct 26 13:05:59 mandriva postfix/master[17815]: fatal: bind 127.0.0.1 port 25: Address already in use
    Oct 26 13:06:05 mandriva postfix/postfix-script: fatal: the Postfix mail system is not running
    Oct 26 13:07:40 mandriva postfix/smtpd[17816]: fatal: connect #11 to subsystem /var/spool/postfix/private/proxymap: No such file or directory
    Oct 26 13:08:30 mandriva postfix/postfix-script: fatal: the Postfix mail system is not running
    Oct 26 13:08:41 mandriva master[18015]: fatal: master_spawn: exec /usr/lib64/postfix/smtpd: No such file or directory
    Oct 26 13:09:14 mandriva postfix/postfix-script: fatal: the Postfix mail system is not running
    Oct 26 13:09:36 mandriva last message repeated 2 times
    Oct 26 13:15:16 mandriva postfix/postfix-script: fatal: the Postfix mail system is already running
    Oct 26 13:54:52 mandriva postfix[9634]: fatal: bad string length 0 < 1: sample_directory =
    Oct 26 13:55:02 mandriva postfix[9635]: fatal: bad string length 0 < 1: sample_directory =
    Oct 26 13:55:16 mandriva postfix[9636]: fatal: bad string length 0 < 1: sample_directory =
    Oct 26 13:57:44 mandriva postfix/postfix-script: fatal: usage: postfix start (or stop, reload, abort, flush, check, set-permissions, upgrade-configuration)
    Oct 26 19:22:40 mandriva postfix[7975]: fatal: bad string length 0 < 1: sample_directory =

    Warnings

    Oct 26 13:08:18 mandriva postfix/master[11822]: warning: master_wakeup_timer_event: service pickup(public/pickup): No such file or directory
    Oct 26 13:08:42 mandriva postfix/master[11822]: warning: process /usr/lib64/postfix/smtpd pid 18015 exit status 1
    Oct 26 13:08:42 mandriva postfix/master[11822]: warning: /usr/lib64/postfix/smtpd: bad command startup -- throttling
    Oct 26 13:09:18 mandriva postfix/master[11822]: warning: master_wakeup_timer_event: service pickup(public/pickup): No such file or directory
    Oct 26 12:09:37 mandriva postfix/qmgr[11824]: warning: connect to transport lmtp-filter: No such file or directory
    Oct 26 13:09:42 mandriva postfix/smtpd[19665]: warning: connect #1 to subsystem /var/spool/postfix/private/proxymap: No such file or directory
    Oct 26 13:09:52 mandriva postfix/smtpd[19665]: warning: connect #2 to subsystem /var/spool/postfix/private/proxymap: No such file or directory
    Oct 26 13:10:02 mandriva postfix/smtpd[19665]: warning: connect #3 to subsystem /var/spool/postfix/private/proxymap: No such file or directory
    Oct 26 14:50:50 mandriva postfix/smtpd[12550]: warning: TLS library problem: 12550:error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol:s23_srvr.c:562:
    Oct 26 16:49:59 mandriva postfix/smtpd[7503]: warning: TLS library problem: 7503:error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol:s23_srvr.c:562:
    Oct 26 16:50:51 mandriva postfix/smtpd[7503]: warning: TLS library problem: 7503:error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol:s23_srvr.c:562:
    Oct 29 07:46:38 mandriva postfix/smtpd[8234]: warning: TLS library problem: 8234:error:140760FC:SSL routines:SSL23_GET_CLIENT_HELLO:unknown protocol:s23_srvr.c:562:


    Please suggest possible solution as am almost confused now.

    many thanks.

    Tosin
     
  2. falko

    falko Super Moderator Howtoforge Staff

    What are the outputs of
    Code:
    netstat -tap
    and
    Code:
    uname -a
    ? Does /usr/lib/postfix/smtpd (not /usr/lib64/postfix/smtpd) exist?
     

Share This Page