This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SMTP Proxy connection refused

Hi @ All

i have installed the UTM 9 Release (9.000-8) and enabled the SMTP Proxy. But i cant connect from the Internet or the local network:

connection refused


anybody an idea?
thanks[:)]


This thread was automatically locked due to age.
  • You're in the wrong forum... let me move you [:)]

    CTO, Convergent Information Security Solutions, LLC

    https://www.convergesecurity.com

    Sophos Platinum Partner

    --------------------------------------

    Advice given as posted on this forum does not construe a support relationship or other relationship with Convergent Information Security Solutions, LLC or its subsidiaries.  Use the advice given at your own risk.

  • the problems only at utm9 
    i have installed und configured asg8, save a backup file and recovered in utm9, but still the same problem: connection refused on port 25
  • the problems only at utm9 
    i have installed und configured asg8, save a backup file and recovered in utm9, but still the same problem: connection refused on port 25


    Hi,
    ever tried to disable the 'Adbdvanced anti-spam features' like (reject invalid help messages, BATV, SPF,  Greylisting)?
    Checked already packetfilter.log?

    Cheers,
    ciscoman
  • the file display following:
    /var/chroot-smtp/tmp/smtpd_debug.log

    1 Carp::carp
    2 DBI::__ANON__
    3 DBI::connect
    4 modules::sql::sql_connect
    MASTER[21887] WARN at Tue Jul 24 08:52:49 2012 -------------------------------------------------------
    Unable to connect to database, retrying in 10 seconds.
    1 modules::sql::sql_connect
    2 modules::sql::sql_tables
    MASTER[21887] WARN at Tue Jul 24 08:52:59 2012 -------------------------------------------------------
    DBI connect('dbname=smtp;host=db_host.local;port=5432;','postgres',...) failed: FATAL:  database "smtp" does not exist at /modules/sql.pm line 42
    1 Carp::carp
    2 DBI::__ANON__
    3 DBI::connect
    4 modules::sql::sql_connect
    MASTER[21887] WARN at Tue Jul 24 08:52:59 2012 -------------------------------------------------------
    Unable to connect to database, retrying in 10 seconds.
    1 modules::sql::sql_connect
    2 modules::sql::sql_tables
    s
  • FATAL:  database "smtp" does not exist at /modules/sql.pm line 42
    Seems your database is broken. Without a functioning database, the smtp proxy doesn't work. Try rebuilding the database or better yet, reinstall and import your backup.
  • thanks for your answer[:)]

    how can i rebuild the database?
    I've tried some new installations, unfortunately, remains at the utm starting postgresql depend.
  • I always rebuild after database corruption but you can try the following


    /var/mdw/scripts/smtp stop
    dropdb -U postgres smtp
    su - postgres /var/storage/pgsql/init/smtp.sh
    /var/mdw/scripts/smtp start

    BAlfson NOTE 2016-07-12: In newer versions, the third line (starts with su -) must be replaced by createdb -U postgres


    and look for any error messages. 

    Edit: Here is an article I found explaining the above How to reset the SMTP database for Astaro security gateway - Knowledgebase - Support - Sophos

  • it works perfekt [[:)]] thank you very much.
    utm:/root # /var/mdw/scripts/smtp stop
    :: Stopping SMTP Proxy
    [ ok ]
    utm:/root # dropdb -U postgres smtp
    dropdb: database removal failed: ERROR:  database "smtp" does not exist
    utm:/root # createdb -U postgres smtp
    utm:/root # /var/mdw/scripts/smtp start
    :: Starting SMTP Proxy
    [ ok ]


    thread can be closed[[:)]]
  • How's your disk space? (run 'df -h')

    Barry