.png)
Ich versuche jetzt schon seit viel zu langer Zeit, einen Mailserver über PostFix und DoveCot auf Ubuntu 14.04 einzurichten, und bin nun auf der Zielgeraden, es zum Laufen zu bringen.
Ich verwende eine virtuelle Maschine mit Ubuntu und habe für alle Ports für IMAP/POP (110,143,993,995) eine Portweiterleitung zu meiner virtuellen Maschine eingerichtet.
Wenn ich den Befehl 'telent localhost ' auf einem der oben aufgeführten Ports ausführe, kann ich eine Verbindung herstellen
root@ubuntu:/# telnet localhost 110
Trying ::1...
Connected to localhost.
Escape character is '^]'.
+OK Dovecot (Ubuntu) ready.
root@ubuntu:/# telnet localhost 143
Trying ::1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot (Ubuntu) ready.
a1 login < username > < password >
a1 OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS SPECIAL-USE BINARY MOVE] Logged in
root@ubuntu:/# telnet localhost 993
Trying ::1...
Connected to localhost.
Escape character is '^]'.
root@ubuntu:/# telnet localhost 995
Trying ::1...
Connected to localhost.
Escape character is '^]'.
sobald ich versuche, sie über die öffentliche IP durchzuführen, schlägt es fehl:
root@ubuntu:/# telnet < my domain > 110
Trying < ip of my computer that has port forwarding to my vm >...
telnet: Unable to connect to remote host: Connection refused
Wenn ich ein 'netstat' ausführe, um herauszufinden, was an welchen Ports passiert, können Sie feststellen, dass ich auf den richtigen Ports lausche
root@ubuntu:/# netstat -nl4
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:9306 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:15674 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:47580 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:9312 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:61613 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:15670 0.0.0.0:* LISTEN
#...
#... theres a few more ip's in here that I believe to be irrelevant
und zuletzt, nur um sicherzugehen, dass es Dovecot ist, der dort zuhört …
root@ubuntu:/# netstat -antup|grep dovecot
tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 104305/dovecot
tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 104305/dovecot
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 104305/dovecot
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 104305/dovecot
tcp6 0 0 :::993 :::* LISTEN 104305/dovecot
tcp6 0 0 :::995 :::* LISTEN 104305/dovecot
tcp6 0 0 :::110 :::* LISTEN 104305/dovecot
tcp6 0 0 :::143 :::* LISTEN 104305/dovecot
Die Portweiterleitung wurde für alle zuvor erwähnten Ports aktiviert. Meine Firewall ist vollständig deaktiviert und ich versuche, per Telnet auf meinen eigenen Rechner zuzugreifen. Der häufige Fehler „Auf dem Computer, mit dem Sie per Telnet kommunizieren möchten, ist Telnet nicht installiert“ sollte also nicht auf mich zutreffen. Und selbst wenn, auf meinem Macintosh ist Telnet ebenfalls installiert. Also trifft er wirklich nicht auf mich zu.
An diesem Punkt habe ich den Eindruck, dass es in meinem Router eine Konfiguration gibt, die mich daran hindert, meinen Computer über die öffentliche IP zu erreichen.
Ich bin für jede Hilfe und jeden Rat dankbar. Dies ist meine erste Mailserver-Installation, daher sind meine Kenntnisse auf diesem Gebiet nicht gerade überragend.
Antwort1
Sie werden durch das Fehlen eines NAT-Loopbacks aufgehalten. Möglicherweise können Sie es auf Ihrem Router aktivieren.
Antwort2
Einzelhandelsmodems in den USA blockieren Port 25 (gesetzlich vorgeschrieben), ebenso wie die meisten privaten ISPs. Für die anderen Dienste verbietet Dovecot standardmäßig Klartext-Logins (Telnet) – Sie müssen dies ändern: