2014-11-26 15 views
5

Serwer, na którym się znajduję jest FreeBSD i sendmail właśnie niedawno przestał wysyłać e-maile. Robiłem wiele badań w google i próbowałem wielu rzeczy z wielu różnych stron internetowych, ale jak dotąd nic nie zadziałało.połączenie sendmail odrzucone przez 127.0.0.1

Oto wyjście z sendmail polecenia:

# 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] 

Oto telnet na porcie 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 

Oto część wyjście 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 

Niektóre rzeczy jak dotąd próbowaliśmy:

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" 

Jestem otwarty na pomysły, jeśli ktoś miał wcześniej ten problem lub wie, jak to naprawić.

Dzięki!

Odpowiedz

0

Upewnij się, że sendmail jest włączony /etc/rc.conf:

sendmail_enable="YES" 

Sprawdź logi /var/log/messages i /var/log/maillog.

Jeśli to nie daje wystarczającej ilości informacji, upewnij się, że twój sendmail jest skonfigurowany tak, aby akceptował pocztę z localhost i że twój firewall nie blokuje dostępu.

0

Aby sprawdzić, czy port 25 jest otwarty spróbuj sockstat jak root, na przykład:

sockstat -4l 

Zastosowanie sysrc celu zapewnienia Sendmail jest włączona/rozpoczęła się na starcie systemu:

sysrc sendmail_enable="YES" 

Start/Uruchom ponownie przez czynność:

/etc/rc.d/sendmail restart 

Alternatywnie możesz chcieć skonfigurować ssmpt jako zamiennik dla sendmaila, abyś mógł używać własnego dostawcy do wysyłania e-maili.

Powiązane problemy