Bernd Plagge
2017-07-05 14:33:51 UTC
Hi all
I recently found some cases were blacklisted email addresses (recorded in /var/lib/courier/track) were not cleared by the "courier clear ***@domain" command.
Permissions for the directory are:
linde:/var/lib/courier# ls -l
total 544
drwxr-x--- 2 daemon daemon 4096 Jul 5 00:05 allfilters
drwxr-x--- 2 daemon daemon 4096 Nov 29 2010 calendar
- -rw------- 1 root root 524288 Jul 5 23:04 couriersslcache
drwxr-x--- 2 daemon daemon 4096 May 21 2016 filters
drwxr-xr-x 4 daemon daemon 4096 Jul 5 23:21 msgq
drwxr-x--- 7 daemon daemon 4096 Jul 5 23:25 msgs
drwxrwx--- 5 daemon daemon 4096 Jul 5 22:08 tmp
drwxr-xr-x 2 daemon daemon 4096 Jul 5 23:29 track
I ran strace and here is the result:
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7421000
set_thread_area({entry_number:-1, base_addr:0xb7421700, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 (entry_number:6)
mprotect(0xb75d5000, 8192, PROT_READ) = 0
mprotect(0xb75f7000, 4096, PROT_READ) = 0
mprotect(0xb764c000, 4096, PROT_READ) = 0
mprotect(0xb77be000, 24576, PROT_READ) = 0
mprotect(0x8051000, 4096, PROT_READ) = 0
mprotect(0xb77fe000, 4096, PROT_READ) = 0
munmap(0xb77c8000, 48644) = 0
brk(NULL) = 0x9816000
brk(0x983b000) = 0x983b000
chdir("/usr") = 0
setgid32(1) = 0
getuid32() = 0
setgroups32(1, [1]) = 0
setuid32(1) = 0
open("/var/lib/courier/track/416462", O_WRONLY|O_CREAT|O_APPEND|O_LARGEFILE, 0666) = 3
_llseek(3, 0, [173], SEEK_END) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=173, ...}) = 0
write(3, "1499264814 ***@domain.com"..., 33) = 33
close(3) = 0
fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0
write(1, "***@domain.com cleared.\n", 30) = 30
exit_group(0) = ?
I'm running Courier 0.73 (Debian upgrade failed).
Sorry, I'm not very good at reading traces. Any ideas what the reason might be?
Thanks for any help!
Bernd
I recently found some cases were blacklisted email addresses (recorded in /var/lib/courier/track) were not cleared by the "courier clear ***@domain" command.
Permissions for the directory are:
linde:/var/lib/courier# ls -l
total 544
drwxr-x--- 2 daemon daemon 4096 Jul 5 00:05 allfilters
drwxr-x--- 2 daemon daemon 4096 Nov 29 2010 calendar
- -rw------- 1 root root 524288 Jul 5 23:04 couriersslcache
drwxr-x--- 2 daemon daemon 4096 May 21 2016 filters
drwxr-xr-x 4 daemon daemon 4096 Jul 5 23:21 msgq
drwxr-x--- 7 daemon daemon 4096 Jul 5 23:25 msgs
drwxrwx--- 5 daemon daemon 4096 Jul 5 22:08 tmp
drwxr-xr-x 2 daemon daemon 4096 Jul 5 23:29 track
I ran strace and here is the result:
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7421000
set_thread_area({entry_number:-1, base_addr:0xb7421700, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0 (entry_number:6)
mprotect(0xb75d5000, 8192, PROT_READ) = 0
mprotect(0xb75f7000, 4096, PROT_READ) = 0
mprotect(0xb764c000, 4096, PROT_READ) = 0
mprotect(0xb77be000, 24576, PROT_READ) = 0
mprotect(0x8051000, 4096, PROT_READ) = 0
mprotect(0xb77fe000, 4096, PROT_READ) = 0
munmap(0xb77c8000, 48644) = 0
brk(NULL) = 0x9816000
brk(0x983b000) = 0x983b000
chdir("/usr") = 0
setgid32(1) = 0
getuid32() = 0
setgroups32(1, [1]) = 0
setuid32(1) = 0
open("/var/lib/courier/track/416462", O_WRONLY|O_CREAT|O_APPEND|O_LARGEFILE, 0666) = 3
_llseek(3, 0, [173], SEEK_END) = 0
fstat64(3, {st_mode=S_IFREG|0644, st_size=173, ...}) = 0
write(3, "1499264814 ***@domain.com"..., 33) = 33
close(3) = 0
fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0
write(1, "***@domain.com cleared.\n", 30) = 30
exit_group(0) = ?
I'm running Courier 0.73 (Debian upgrade failed).
Sorry, I'm not very good at reading traces. Any ideas what the reason might be?
Thanks for any help!
Bernd