RSS
 

SMTP-Server mit telnet testen

16 Aug

Wieder einer der “Persönlicher Reminder” Einträge.

Wie teste ich, ob ein SMTP-Server (ein meinem Fall der 192.168.2.1) erreichbar ist?

root@host:# telnet 192.168.2.1 25
Trying 192.168.2.1…
Connected to 192.168.2.1.
Escape character is ‘^]’.
220 mail.w7x.de ESMTP (517614eb467a777341f0958f0403081d)
ehlo localhost
250-mail.w7x.de Hello staging.localhost [192.168.2.5], pleased to meet you
250-SIZE 100000000
250-PIPELINING
250-8BITMIME
250 HELP
mail from:root@staging
250 Sender <root@staging> OK
rcpt to:alex@w7x.de
250 Recipient <alex@w7x.de> OK
data
354 Start mail input; end with <CRLF>.<CRLF>
subject: test
Das ist eine Testnachricht.
.
250 Ok: queued as 0341F1217C8
quit
221 mail.w7x.de Goodbye staging.localhost, closing connection
Connection closed by foreign host.
root@host:#

In meinem Fall kam jetzt eine Testnachricht an. Wenn der SMTP-Server hier Fehler meldet, gilt es diese zu lösen. Hier helfen zum Teil die Logfiles des SMTP-Servers oder auch die lokalen Logfiles unter /var/log/mail/

Viel Erfolg dabei!

 
No Comments

Posted in Software

 

Tags: , ,

Leave a Reply

You must be logged in to post a comment.