2014-11-26 19 views
5

Il server su cui sto lavorando è FreeBSD e sendmail ha recentemente smesso di inviare e-mail. Ho fatto molta ricerca su google e ho provato molte cose da molti siti Web diversi, ma finora non ha funzionato nulla.connessione sendmail rifiutata da 127.0.0.1

Ecco l'output di un comando sendmail:

# echo "test" | mail -v -s test [email protected] 
[email protected] Connecting to [127.0.0.1] via relay... 
[email protected] Deferred: Connection refused by [127.0.0.1] 

Ecco un telnet sulla porta 25:

# telnet localhost 25 
Trying 127.0.0.1... 
telnet: connect to address 127.0.0.1: Connection refused 
Trying ::1... 
telnet: connect to address ::1: Connection refused 
telnet: Unable to connect to remote host 

Ecco parte di un'uscita netstat:

tcp4  0  0 the.first.ip.address.25    *.*     LISTEN 
tcp4  0  0 the.second.ip.address.26   *.*     LISTEN 
tcp4  0  0 the.third.ip.address.25    *.*     LISTEN 
tcp4  0  0 the.fourth.ip.address.25   *.*     LISTEN 
tcp4  0  0 the.main.server.ip.address.25  *.*     LISTEN 

alcune cose che ho Ho provato finora:

1) changed settings /etc/hosts file 
2) changed settings in the .mc file, then make, make install, service sendmail restart 
3) directly changed the .cf file since changing .mc file didn't fix the problem, then "service sendmail restart" 

Sono aperto alle idee se qualcuno ha avuto questo problema prima o sa come risolverlo.

Grazie!

risposta

0

Assicurarsi che sendmail è attivata in /etc/rc.conf:

sendmail_enable="YES" 

controllare i file di log e /var/log/messages/var/log/maillog.

Se ciò non fornisce informazioni sufficienti, assicurarsi che il proprio sendmail sia impostato per accettare la posta da localhost e che il firewall non stia bloccando l'accesso.

0

Per verificare che la porta 25 è aperta provare a utilizzare sockstat come radice, ad esempio:

sockstat -4l 

Usa sysrc per garantire sendmail è abilitato/iniziato il tempo di avvio:

sysrc sendmail_enable="YES" 

Start/Restart per

/etc/rc.d/sendmail restart 

In alternativa, si consiglia per configurare ssmpt in sostituzione di sendmail, in modo che sia possibile utilizzare il proprio provider per inviare e-mail.

Problemi correlati