[Dovecot] dovecot and time
Rick Romero
rick at havokmon.com
Wed Jun 5 19:45:01 EEST 2013
I found something interesting via strace. lda is writing a timestamp
with utime before doign the fsync, but I'm really not a C guy, so I
have no idea why that's going on via procmail and not via commandline.
I assume it's related to the choice of pread64 vs read.
when called from commandline (working):
read(0, "July 14-20, 2013\n10 courses. Bon"..., 4096) = 4096
read(0, "s bigger\nthan most realistic cyb"..., 4096) = 4096
read(0, "olina company in\nnumerous small,"..., 4096) = 4096
read(0, "on't have any way to tell you\". "..., 4096) = 4096
read(0, "rer. This version of Chrome addr"..., 4096) = 4096
read(0, "edu.\n\nDr. Johannes Ullrich is Ch"..., 4096) = 3164
read(0, "", 932) = 0
umask(0177) = 077
open("/usr/home/vpopmail/domains/havokmon.com/rick/Maildir/tmp/1370448645.M589211P14191.smtp101", O_WRONLY|O_CREAT|O_EXCL|O_TRUNC|O_LARGEFILE, 0777) =
11
umask(077) = 0177
open("/usr/home/vpopmail/domains/havokmon.com/rick/Maildir/dovecot.index.cache", O_RDWR|O_LARGEFILE) =
12
fstat64(12, {st_mode=S_IFREG|0600, st_size=1568768, ...}) = 0
mmap2(NULL, 1568768, PROT_READ, MAP_SHARED, 12, 0) = 0xb7064000
fstat64(11, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0
write(11, "Return-Path: <newsbites at sans.org"..., 8192) = 8192
write(11, "s bigger\nthan most realistic cyb"..., 8192) = 8192
write(11, "on't have any way to tell you\". "..., 11356) = 11356
fstat64(11, {st_mode=S_IFREG|0600, st_size=27740, ...}) = 0
fsync(11) = 0
_llseek(11, 0, [27740], SEEK_END) = 0
close(11) = 0
time(NULL) = 1370448645
umask(0177) = 077
when called from procmail (not working):
pread64(10, "00.vfemail.net,S=10941\n968 W2552"..., 4064, 52993) = 4064
pread64(10, "53 :1361943010.39085.mx100.vfema"..., 4087, 57057) = 4087
pread64(10, " :1364597743.43999.mx100.vfemail"..., 4085, 61144) = 4085
pread64(10, "mx100.vfemail.net,S=15951\n17287 "..., 4065, 65229) = 4065
pread64(10, "637P32360.smtp101.vfemail.net,S="..., 4074, 69294) = 3967
pread64(10, "", 107, 73261) = 0
umask(0177) = 077
open("/usr/home/vpopmail/domains/havokmon.com/rick/Maildir/tmp/1370449940.M313792P17436.smtp101", O_WRONLY|O_CREAT|O_EXCL|O_TRUNC|O_LARGEFILE, 0777) =
11
umask(077) = 0177
open("/usr/home/vpopmail/domains/havokmon.com/rick/Maildir/dovecot.index.cache", O_RDWR|O_LARGEFILE) =
12
fstat64(12, {st_mode=S_IFREG|0600, st_size=1575936, ...}) = 0
mmap2(NULL, 1575936, PROT_READ, MAP_SHARED, 12, 0) = 0xb70b0000
fstat64(11, {st_mode=S_IFREG|0600, st_size=0, ...}) = 0
read(0, "", 1127) = 0
write(11, "Return-Path: <dovecot-bounces at do"..., 2911) = 2911
utime("/usr/home/vpopmail/domains/havokmon.com/rick/Maildir/tmp/1370449940.M313792P17436.smtp101", [2013/06/05-16:32:20, 2013/06/05-21:32:18]) =
fsync(11) = 0
_llseek(11, 0, [2911], SEEK_END) = 0
close(11) = 0
time(NULL) = 1370449940
umask(0177) = 077
Should I attach full traces? They're 32k and 64k respectively. Sorry
about the lack of threading, I had my subscription off and didn't get
a copy to reply to :/
Rick
More information about the dovecot
mailing list