Von: Stephan Loges <dk8lv@m15.de> Datum: Sonntag, 19. Dezember 1999 21:00
Hallo,
Hallo!
Konfiguration:
Desktop (SuSE5.1) mit isdn (ippp0, ippp1) und eth0 domain: linux.gr-rheide.de 192.168.0.99 Dial on Demand aktiviert masquerading aktiviert
im Netz mit
Notebook (SuSE6.3) mit eth0 domain: notebook.gr-rheide.de 192.168.0.98
Meine Vorstellungen: 1. email, welche vom desktop beim ISP abgeholt wurde, auch an Benutzer XYZ auf dem Notebook zu forwarden.
man procmail, man procmailrc, man procmailex oder: Desktop als Mailserver nutzen, auf dem Notebook mit fetchmail holen.
2. mail von desktop an notebook und zurueck, schliesst 1. mit ein.
sendmail + fetchmail + procmail desktop: sind ja beide in unterschiedlichen domains, also in die mailertable eintragen: notebook.gr-rheide.de<TAB>smtp:192.168.0.98 linux.gr-rheide.de<TAB>local: .<TAB> smtp:dein.provider.com die acces ebenfalls anpassen, so daß Mail von Deinem Notebook relayt werden kann. anschl. übersetzen und sendmail neu starten. notebook: analog zum Desktop
3. mit dem notebook via dekstop internet zu machen, alle protokolle.
<Soweit ich das verstanden habe> keine Erfahrung, vermute aber, den Desktop als Gateway eintragen und ene Default-route auf den Desktop (eth0) legen. Auf dem Desktop eine Default-Route auf ippp0 legen, so daß er für alles, was er nicht kennt, Deinen ISP anwählt. </Soweit ich das verstanden habe>
zu 2. von desktop an notebook hats bisher nie geklappt. lokale mail wird nicht an user@notebook.gr-rheide weitergereicht, sondern verbleibt als lokale mail auf dem desktop.
da könnte Dir evtl. eine Kombination aus /etc/mail/virtusertable und procmail helfen.
vom notebook zum desktop klappt es schon. anfangs hatte dies grundsaetzlich mit einem dns lookup begonnen (anwahl beim ISP), aber die mail landete beim empfaenger auf dem desktop. dies lag daran, das ich die existierenden nameserver, die auch auf dem desktop konfiguriert sind, in /etc/resolv.conf eintrug. nach dem beseitigen dieser und dem verbleib von 192.168.0.99 als default route gab es keine dns lookups mehr und mail wurde ebenso dem desktop zugestellt. dies hatte jedoch folgen, die insbesondere bei 3. zu merken sind.
zu 3. mit eintrag der nameserver die auch der desktop nutzt, gehen alle protokolle via eth0 -> desktop -> masquerading -> ippp* und alles laeuft bestens. nach dem austragen der nameserver auf dem notebook (siehe zu 2.) gehen die protokolle nur noch auf eine ip, nicht aber auf eine domain vom notebook aus. klar, denn der desktop ist ja auch nicht als dns konfiguriert.
Dann tu das und tragen den Desktop als Nameserver auf dem Notebook ein. Auf letzterem dann einen Cache-only DNS mit dem Desktop als forwarder. (Siehe DNS-Howto)
Ausserdem scheint der Desktop nicht in der Lage zu sein, lokale Mail zu forwarden (lokal hier = LAN). Das mag an falschen
Sind denn die user auf dem Desktop und dem Notebook identisch?
Eintraegen in sendmail.cf bzw. rc.config liegen, aber hier habe ich mich mehr oder weniger auf YasT bzw. das Handbuch und meinen Verstand verlassen...
:-)
Ich denke es waere wohl zuviel des Guten hier auch noch saemtliche infrage kommenden konfig. Dateien zu posten ?
Stimmt. Aber zu Deinem Problem mit der Mail-forward-Geschichte kannst Du mir ja (als PM?) die /etc/mail/*table files zukommen lassen. Ich bin zwar kein Experte, aber vielleicht kann ich trotzdem helfen. Grüße Volker -- The main failure in computers is usually between keyboard and chair. Volker Tanner <VolkerTanner@kade.de>
participants (1)
-
Volker Tanner