

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
16 messages in net.sourceforge.lists.courier-users[courier-users] no mail from root's c...| From | Sent On | Attachments |
|---|---|---|
| Tim Lynch | Aug 1, 2003 6:02 pm | |
| Sam Varshavchik | Aug 1, 2003 6:54 pm | |
| Tim Lynch | Aug 4, 2003 11:57 am | |
| Jeff Jansen | Aug 4, 2003 12:21 pm | |
| Sam Varshavchik | Aug 4, 2003 12:41 pm | |
| Tim Lynch | Aug 4, 2003 2:04 pm | |
| Tim Lynch | Aug 6, 2003 11:27 am | |
| Tim Lynch | Aug 8, 2003 10:48 am | |
| Gordon Messmer | Aug 8, 2003 1:03 pm | |
| Gordon Messmer | Aug 8, 2003 2:37 pm | |
| Sam Varshavchik | Aug 8, 2003 5:50 pm | |
| Gordon Messmer | Aug 9, 2003 7:29 pm | |
| Sam Varshavchik | Aug 9, 2003 9:16 pm | |
| Tim Lynch | Aug 11, 2003 12:38 pm | |
| Sam Varshavchik | Aug 11, 2003 2:09 pm | |
| Jon Nelson | Aug 11, 2003 2:13 pm |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | [courier-users] no mail from root's cron/at jobs | Actions... |
|---|---|---|
| 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>--







