Unable to connect to remote host: Connection refused

Discussion in 'Server Operation' started by Happy, May 15, 2010.

  1. Happy

    Happy New Member

    I installed the The Perfect Server - Ubuntu Karmic Koala (Ubuntu 9.10) [ISPConfig 2]-not install ISPConfig 2 or the quota or DNS
    I then started installing
    Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 9.10)
    in section 12 testing postfix i get error Unable to connect to remote host: Connection refused

    ok I ran service postfix status
    return was post fix is not running

    so I start service postfix it starts and thenrun status update and it has stopped again

    Also unable to log into squirrelmail-webui comes up but get error when trying to login
    Another error is I am unable to bring up phpmyadmin

    Any ideas?
     
    Last edited: May 15, 2010
  2. falko

    falko Super Moderator ISPConfig Developer

    Any errors in /var/log/mail.log?
     
  3. Happy

    Happy New Member

    Here is the output attached from the mail log:

    From the looks of it as soon as I insert the following into the in to /etc/postfix/master.cf thats when it broke as I tested it before and it worked.

    amavis unix - - - - 2 smtp
    -o smtp_data_done_timeout=1200
    -o smtp_send_xforward_command=yes
    127.0.0.1:10025 inet n - - - - smtpd
    -o content_filter=
    -o local_recipient_maps=
    -o relay_recipient_maps=
    -o smtpd_restriction_classes=
    -o smtpd_client_restrictions=
    -o smtpd_helo_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,reject
    -o mynetworks=127.0.0.0/8
    -o strict_rfc821_envelopes=yes
    -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
    -o smtpd_bind_address=127.0.0.1
     

    Attached Files:

  4. falko

    falko Super Moderator ISPConfig Developer

    Make sure there is at least one whitespace in the lines following
    Code:
    amavis unix - - - - 2 smtp
    so that Postfix knows the following lines belong to that line. So
    Code:
    amavis unix - - - - 2 smtp
    -o smtp_data_done_timeout=1200
    -o smtp_send_xforward_command=yes
    127.0.0.1:10025 inet n - - - - smtpd
    -o content_filter=
    -o local_recipient_maps=
    -o relay_recipient_maps=
    -o smtpd_restriction_classes=
    -o smtpd_client_restrictions=
    -o smtpd_helo_restrictions=
    -o smtpd_sender_restrictions=
    -o smtpd_recipient_restrictions=permit_mynetworks,rej ect
    -o mynetworks=127.0.0.0/8
    -o strict_rfc821_envelopes=yes
    -o receive_override_options=no_unknown_recipient_chec ks,no_header_body_checks
    -o smtpd_bind_address=127.0.0.1 
    is wrong whereas
    Code:
    amavis unix - - - - 2 smtp
      -o smtp_data_done_timeout=1200
      -o smtp_send_xforward_command=yes
    
    127.0.0.1:10025 inet n - - - - smtpd
      -o content_filter=
      -o local_recipient_maps=
      -o relay_recipient_maps=
      -o smtpd_restriction_classes=
      -o smtpd_client_restrictions=
      -o smtpd_helo_restrictions=
      -o smtpd_sender_restrictions=
      -o smtpd_recipient_restrictions=permit_mynetworks,rej ect
      -o mynetworks=127.0.0.0/8
      -o strict_rfc821_envelopes=yes
      -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
      -o smtpd_bind_address=127.0.0.1 
    is correct.
     
  5. Happy

    Happy New Member

    great this issue resolved. the spaces got me:)
     

Share This Page