atom feed16 messages in net.sourceforge.lists.courier-users[courier-users] no mail from root's c...
FromSent OnAttachments
Tim LynchAug 1, 2003 6:02 pm 
Sam VarshavchikAug 1, 2003 6:54 pm 
Tim LynchAug 4, 2003 11:57 am 
Jeff JansenAug 4, 2003 12:21 pm 
Sam VarshavchikAug 4, 2003 12:41 pm 
Tim LynchAug 4, 2003 2:04 pm 
Tim LynchAug 6, 2003 11:27 am 
Tim LynchAug 8, 2003 10:48 am 
Gordon MessmerAug 8, 2003 1:03 pm 
Gordon MessmerAug 8, 2003 2:37 pm 
Sam VarshavchikAug 8, 2003 5:50 pm 
Gordon MessmerAug 9, 2003 7:29 pm 
Sam VarshavchikAug 9, 2003 9:16 pm 
Tim LynchAug 11, 2003 12:38 pm 
Sam VarshavchikAug 11, 2003 2:09 pm 
Jon NelsonAug 11, 2003 2:13 pm 
Subject:[courier-users] no mail from root's cron/at jobs
From:Tim Lynch (admi@thirdage.com)
Date:Aug 1, 2003 6:02:39 pm
List:net.sourceforge.lists.courier-users

on redhat 7.3, courier 0.39 and 0.42

and yeah, the alias root to nonpriv account, i know. output from root's batch job disappears and (even better) no log. output from nonpriv user's jobs send ok.

this works: # /usr/bin/sendmail <<eof From: root To: root Subject: dammit

testing eof

a simple batch job like ``echo "echo this is a test" | batch'', as root, produces no mail.

atd does it's thing, output in /var/spool/at/spool/bfoo, execve's sendmail, but it looks like the fd's get mixed up in courier/submit and it throws EBADF:

close(2) = 0 close(3) = 0 close(0) = 0 close(1) = 0 dup(1) = -1 EBADF (Bad file descriptor) dup(4) = 0 close(1) = -1 EBADF (Bad file descriptor) close(4) = 0 chdir("/usr/lib/courier") = 0 execve("/usr/lib/courier/libexec/courier/submit", ["submit", "local", "dns; loca lhost (localhost [127.0"..., "uid 0"], [/* 3 vars */]) = 0 uname({sys="Linux", node="blahblahblah --<snip>-- fstat64(0, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40014000 read(0, 0x40014000, 4096) = -1 EBADF (Bad file descriptor) _exit(1) = ?

versus nonpriv user's job:

close(4) = 0 close(5) = 0 close(0) = 0 close(1) = 0 dup(3) = 0 dup(6) = 1 close(3) = 0 close(6) = 0 chdir("/usr/lib/courier") = 0 execve("/usr/lib/courier/libexec/courier/submit", ["submit", "local", "dns; loca lhost (localhost [127.0"..., "uid 500"], [/* 3 vars */]) = 0 uname({sys="Linux", node="blahblahblah --<snip>-- fstat64(0, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40 014000 read(0, "root\n", 4096) = 5 --<etc>--