Entries tagged as mail
Angefangen hab ich dieses Blog (oder diesen, wie man mag) wohl im Dezember 2004, da war ich noch relativ frisch im Studium. Aus der Beschreibung vom Leben eines Infostudenten wurde ein gemischtes Allerlei. Einige Jahre später bin ich dann auch mal fertig, das Diplom ist abgeholt, der CIP-Shell-Account aufgeräumt und grad hab ich meinen Mailaccount ausgeleert.
Das war im übrigen nicht ganz trivial. Neue Shell nach der ersten Zeile, dann die Passwörter in .pass-local und .pass-remote schreiben und ab gehts. Die letzte Zeile ist für Thunderbird oder dovecot, einer von beiden schnallt keine Unterordner, die nicht selber angelegt wurden.
ssh -L 8143:imap.remote:143 user@shell.remote
imapsync --host1 localhost --user1 user --port1 8143 --passfile1 .pass-remote --host2 localhost --user2 localuser --prefix2 'INBOX.Uni.' --passfile2 .pass-local --noauthmd5 --exclude '^INBOX.spambox' 2>&1 | tee out.txt
find Maildir -type d -name "*Uni*" | grep -v "/cur" | grep -v "/tmp" | grep -v "/new" | sed 's:Maildir/\.::' >> Maildir/subscriptions
Bleibt nur noch die Frage, was jetzt draus wird.
Das war im übrigen nicht ganz trivial. Neue Shell nach der ersten Zeile, dann die Passwörter in .pass-local und .pass-remote schreiben und ab gehts. Die letzte Zeile ist für Thunderbird oder dovecot, einer von beiden schnallt keine Unterordner, die nicht selber angelegt wurden.
ssh -L 8143:imap.remote:143 user@shell.remote
imapsync --host1 localhost --user1 user --port1 8143 --passfile1 .pass-remote --host2 localhost --user2 localuser --prefix2 'INBOX.Uni.' --passfile2 .pass-local --noauthmd5 --exclude '^INBOX.spambox' 2>&1 | tee out.txt
find Maildir -type d -name "*Uni*" | grep -v "/cur" | grep -v "/tmp" | grep -v "/new" | sed 's:Maildir/\.::' >> Maildir/subscriptions
Bleibt nur noch die Frage, was jetzt draus wird.
Bevor ichs wieder vergesse, vm-pop3d via stunnel und xinetd. (Wie kommt man eigentlich auf die saudumme Syntax von "-- progname --original --arguments"
Hab circa 3mal in der manpage drübergelesen, bis ichs gerafft hab. Und wieso wirft stunnel dann nicht wenigstens einen sinnvollen Fehler, wenn man gleich mit "-- --original" anfängt?
service pop3s
{
socket_type = stream
protocol = tcp
wait = no
instances = 25
user = tequila
group = tequila
server = /usr/bin/stunnel
server_args = -l /usr/local/sbin/vm-pop3d -p /etc/stunnel/stunnel.pem -- vm-pop3d --user=tequila --group=tequila
log_type = SYSLOG local4 info
log_on_success = PID HOST EXIT DURATION
log_on_failure = HOST ATTEMPT
}
Hab circa 3mal in der manpage drübergelesen, bis ichs gerafft hab. Und wieso wirft stunnel dann nicht wenigstens einen sinnvollen Fehler, wenn man gleich mit "-- --original" anfängt?
service pop3s
{
socket_type = stream
protocol = tcp
wait = no
instances = 25
user = tequila
group = tequila
server = /usr/bin/stunnel
server_args = -l /usr/local/sbin/vm-pop3d -p /etc/stunnel/stunnel.pem -- vm-pop3d --user=tequila --group=tequila
log_type = SYSLOG local4 info
log_on_success = PID HOST EXIT DURATION
log_on_failure = HOST ATTEMPT
}
I've been using vm-pop3d for quite some time on Debian sarge and never had any problems.
After making the same setup on a Debian etch machine it would always die after the pop3 call of UIDL.
After some digging in the sourcecode and finally being able to reproduce it with some crashes after free() I tried the Rambo method of commenting out the call to free(), recompiling and testing - it worked.
Still not really grasping what is going on here I'll have a closer look again.
And I'm hoping a pop3d process started from inetd won't live long enough to produce any memleak.
Time to grab my "Operating systems" by Tanenbaum and read up on memory management again and compare that to Linux :P
After making the same setup on a Debian etch machine it would always die after the pop3 call of UIDL.
After some digging in the sourcecode and finally being able to reproduce it with some crashes after free() I tried the Rambo method of commenting out the call to free(), recompiling and testing - it worked.
Still not really grasping what is going on here I'll have a closer look again.
And I'm hoping a pop3d process started from inetd won't live long enough to produce any memleak.
Time to grab my "Operating systems" by Tanenbaum and read up on memory management again and compare that to Linux :P
Nachdem heut jemand in #debian.de unbedingt irgendwas mit Email-Headern größer als 5KB testen wollte, hab ich meine phänomenalen Programmierkenntnisse rausgekramt und dieses Meisterwerk fabriziert:
Habs natürlich an mich selber geschickt und wollte die Email aus Thunderbird 1.5 speichern - jedesmal ist TB reproduzierbar abgestürzt. Egal ob per Strg+S oder "Datei->Speichern als..." (sollte es nicht "unter" heissen?) oder per Kontextmenü. Aber angezeigt hat er sie ohne Probleme. Seltsam sowas.
php -r '$to="";$a="";for($i=0;$i<1024;$i++){$a.="a";}for($i=0;$i<6;$i++){$to.=$a."@catchalldomnain.de, ";}mail(substr($to, 0, -2),"s","m");'Habs natürlich an mich selber geschickt und wollte die Email aus Thunderbird 1.5 speichern - jedesmal ist TB reproduzierbar abgestürzt. Egal ob per Strg+S oder "Datei->Speichern als..." (sollte es nicht "unter" heissen?) oder per Kontextmenü. Aber angezeigt hat er sie ohne Probleme. Seltsam sowas.
(Page 1 of 1, totaling 5 entries)
Layout by Ricky Wilson | Serendipity Template by Carl Galloway | Login
About
Life's a bitch, life's a whore. Nothing less, nothing more.
Read More
Der Autor...
... studierte bisher Informatik. Und zwar an der LMU München. Nebenher arbeitete er als PHP-Entwickler und Admin. Seit kurzem sogar Vollzeit und in Farbe
Quicksearch
last.fm
Song: World On Fire
Artist: Sarah McLachlan
1. February 2012, 13:30
Song: Grafton Street
Artist: Dido
1. February 2012, 13:24
Song: Warrior's Dance (Benga Remix)
Artist: The Prodigy
16. October 2011, 17:18
5. February 2012, 06:02


