Stupid SMTP error message

31 12 2006

What do you think this mail server wants to tell us:


220 mx27.web.de ESMTP WEB.DE V4.107#114 Sun, 31 Dec 2006 16:29:21 +0100
EHLO there
250-mx27.web.de Hello there [88.198.198.195]
250-SIZE 70254592
250-PIPELINING
250 HELP
MAIL FROM:
250 is syntactically correct
RCPT TO:
250 verified
DATA
550 Protocol violation

Was your first guess “this user doesn’t exist”? No? Mine neither…



Yet another way to kill your data

28 12 2006

What would you expect cvs rm -f (without any parameter) to do? Throw an error? Silently do nothing? Or recursively kill all the data you checked out, including anything you changed, only omitting files you haven’t added to the repository yet?

Whatever you expected, the last one is the correct answer…



Using dnsmasq and resolvconf with Linux-VServer

20 12 2006

I take care of a server running under Linux-VServer. LVS has a few weird gotchas, network-wise. Missing IPv6 support is not the worst. I mean, why IPv6 if I can’t even configure the IPv4 interfaces? And iptables doesn’t work. Oh, and I don’t even have a lo interface. Crap.

Yeah, I know the technical reasons for all this, its supposed to get better with NGNET, but its still weird.

Anyway, on that box runs a SpamAssassin, so at some point I decided to install dnsmasq as a caching nameserver (thats always a good idea if you have DNSBL and stuff enabled in SpamAssassin). Most the network config is pushed in from the host, just the nameservers had to be configured manually. I decided to configure resolvconf to do the name service stuff because it takes care that all servers (except SpamAssassin, seems like I’ll have to write a script for that when I’m in the mood) are restarted/reloaded when the DNS config changes.

Remember, there’s no lo device and so also no loopback address. dnsmasq has to listen on (one of) the VServer’s IPs. The file /etc/dnsmasq.conf looks like this (with a different IP address):

listen-address=5.4.3.2
bind-interfaces
query-port=1053
domain-needed
bogus-priv
cache-size=1024
no-negcache
log-queries

Because dnsmasq’s init script always adds 127.0.0.1 and doesn’t grep for the option listen-address (got to write a patch for that, too), I had to hard-code this IP in /etc/resolvconf/resolv.conf.d/base, too:

nameserver 5.4.3.2

I also switched to the ORSN resolvers because the name servers hosted by the provider seemed to be chronically overloaded and dropped requests like hell. I first added these via resolvconf -a, but see below.

It looked all very fine and worked well, until the admin of the host machine had to reboot the box(es). Suddenly dnsmasq refused all requests (I noticed this only after a few days). After some digging I found out that the file /var/run/dnsmasq/resolv.conf, which is supposed to be a filtered copy of the actual one, was empty. The simple reason was that resolvconf didn’t know anything about the two nameservers I added before.

To tell resolvconf about the desired nameservers I had to add the host-configured interface as a manual interface in /etc/network/interfaces:

auto eth0:dev
iface eth0:dev inet manual
dns-nameservers 217.146.139.5 62.157.101.211

This seems to work fine now, lets wait for the next reboot…



Ich werd Bauer

18 12 2006

Technik nervt.

Warum?

Sie funktioniert nicht. Zumindest nicht dann wenn sie soll/muss.

Oder das Software-Praktikum geht meiner und Helgas Hardware auf den Keks. Man weiß es nicht.

Bisherige Verluste dieses Semester:

  • Eine Partition. Ok, war kein Hardware-Fehler, sondern meine Doofheit. Ich wollte “noch mal eben” bevor ich im November nach Irland flog was auf mein Notebook kopieren. Da die Rechte auf meiner Datenpartition gerade nicht stimmen mach ich das als root. Also
    mount /dev/hda4 /mnt
    cp uml.tar.gz /dev/hda4

    Oops. Das wars dann wohl mit dem Dateisystem…
  • Ein Monitor. Eine Woche nachdem ich besagten Blödsinn gemacht habe, beschloss ich, dass ich noch paranoider werde und meine Workstation auf einen RAID-1 umstelle. Also alle Kabel abziehen, PC aus dem Regal zerren, aufschrauben, zusätzliche Platte rein, zuschrauben, wieder ins Regal und Kabel wieder anstöpseln. So weit so gut. Bis ich mit dem Monitorstecker gegen das PC-Gehäuse kam und plötzlich kleine Funken stoben. Das ist nicht gut. Erst Panik, dass irgendwas an meinem Rechner nicht in Ordnung ist, aber nach ein bisschen durchmessen rausgefunden, dass auf der Masse meines Monitor-Steckers eine nicht zu verachtende Spannung anliegt. Nicht toll, also Monitor erst mal austauschen…
  • Eine Festplatte. Helgas Notebook-Festplatte beschloss irgendwann letztens mit kaputten Sektoren um sich schmeißen zu müssen. Ersatz ist seit Freitag da.
  • Eine Notebook-Stromversorgung. Letzte Woche schaltete sich mein Notebook einfach mal spontan aus. Akku total leergesoffen. Obwohl am Netz. Nach einigem rumprobieren stellt sich heraus, dass der Stromanschluss am Notebook einen Wackelkontakt hat. Das Rumbiegen an den Pins im Stecker des Netzteils hat erst geholfen, dann aber immer weniger. Also bin ich heute zu Statronic gefahren und hab nen neuen passenden Hohlstecker gekauft. Hab dann hier zu Hause fast 1,5 Stunden gebraucht um das Teil dilletantisch anzulöten. Ergebnis: Alles beim Alten. Anscheinend ist der Kontakt in der Buchse nicht in Ordnung. Und was nu?? Ich brauch das Teil für Südafrika!
  • Ach ja, mein Kühlschrank gibt auch langsam den Geist auf; wenn der Kompressor anspringt, dann wackelt die ganze Arbeitsplatte und man hört ihn bis ins Wohnzimmer.

Ich glaub ich werd mein Studium canceln und sattel um auf Landwirt oder so. Da muss man zwar früh aufstehen, aber das Verhalten von Kühen ist wahrscheinlich um einiges vorhersagbarer als das von Hardware.