13 messages in net.sourceforge.lists.courier-users[courier-users] sendmail works with r...
FromSent OnAttachments
Bruce JohnsonNov 28, 2005 8:07 pm 
Jerry AmundsonNov 28, 2005 8:35 pm 
Gordon MessmerNov 28, 2005 8:38 pm 
Sam VarshavchikNov 28, 2005 8:39 pm 
Bruce JohnsonNov 28, 2005 10:08 pm 
Nolan PflugNov 28, 2005 10:14 pm 
Bruce JohnsonNov 28, 2005 10:49 pm 
Sam VarshavchikNov 29, 2005 3:56 am 
Bruce JohnsonNov 29, 2005 8:19 am 
Bruce JohnsonNov 29, 2005 12:23 pm 
Gordon MessmerNov 29, 2005 12:49 pm 
Sam VarshavchikNov 29, 2005 3:30 pm 
Sam VarshavchikNov 29, 2005 3:33 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] sendmail works with root but not users (#2 solved)Actions...
From:Bruce Johnson (bru@backonline.net)
Date:Nov 28, 2005 10:08:40 pm
List:net.sourceforge.lists.courier-users

Gordon, thanks for the help on #2 sendmail extra line is exactly what was needed prior to the body syntax. Perfect solution :) Thanks so much.

Back to #1 for suid/sgid setting: After the install, these are the permission that were setup in /usr/lib/courier/bin directory (see below). My understanding about permissions, those were automatically setup in the install script and not by me, unless I missed it in the install instructions. I'm not sure why sendmail mail is set with the mail group and everything else is assigned the courier group. Just for fun, I changed the sendmail group id to courier and it didn't effect access for my non-root user. The fact is that when I type "sendm" and tab it autofills with sendmail properly ... so the program is found properly ... what I don't get is why it comes up with the following:

Sendmail: ERR: Permission denied 432 Service temporarily unavailable

drwxr-xr-x 2 bin bin 4096 Nov 28 22:46 ./ -rw-r--r-- 1 root root 0 Nov 28 22:46 test lrwxrwxrwx 1 root root 8 Nov 23 11:12 rmail -> sendmail* lrwxrwxrwx 1 root root 30 Nov 23 11:12 makedat -> /usr/lib/courier/share/makedat* -r-xr-xr-x 1 courier courier 61942 Nov 23 11:12 deliverquota* -r-xr-xr-x 1 courier courier 733630 Nov 23 11:12 imapd* -r-xr-xr-x 1 courier courier 58797 Nov 23 11:12 mailbot* -r-xr-xr-x 1 courier courier 57342 Nov 23 11:12 maildiracl* -r-xr-xr-x 1 courier courier 87953 Nov 23 11:12 maildirkw* -r-xr-xr-x 1 courier courier 70187 Nov 23 11:12 maildirmake* -r-xr-xr-x 1 courier courier 104582 Nov 23 11:12 makemime* -r-xr-xr-x 1 courier courier 76214 Nov 23 11:12 mimegpg* -r-xr-xr-x 1 courier courier 208511 Nov 23 11:12 reformime* -r-xr-xr-x 1 courier courier 11114 Nov 23 11:12 courier-config* -r-xr-xr-x 1 courier courier 1015613 Nov 23 11:12 couriermlm* -r-xr-xr-x 1 bin bin 202298 Nov 23 11:12 couriertls* -r-xr-xr-x 1 courier courier 61298 Nov 23 11:12 dotforward* -r-xr-xr-x 1 courier courier 28797 Nov 23 11:12 lockmail* -r-s--x--x 1 root courier 644873 Nov 23 11:12 maildrop* -r-xr-sr-x 1 courier courier 58331 Nov 23 11:12 mailq* -r-xr-xr-x 1 courier courier 150934 Nov 23 11:12 reformail* -r-x--x--x 1 root mail 72372 Nov 23 11:12 sendmail* -r-xr-xr-x 1 courier courier 124276 Nov 23 11:12 testmxlookup* -r-sr-sr-x 1 courier courier 56381 Nov 23 11:12 cancelmsg* -r-xr-xr-x 1 courier courier 12555 Nov 23 11:12 preline* lrwxrwxrwx 1 root root 52 Nov 22 19:18 addcr -> /usr/lib/courier/libexec/courier/modules/esmtp/addcr* drwxr-xr-x 9 courier courier 4096 Nov 22 19:18 ../

-----Original Message----- From: cour@lists.sourceforge.net [mailto:cour@lists.sourceforge.net] On Behalf Of Gordon Messmer Sent: Monday, November 28, 2005 9:39 PM To: cour@lists.sourceforge.net Subject: Re: [courier-users] sendmail works with root but not users

Bruce Johnson wrote:

1. I've created symbolic links to the sendmail in /usr/bin and other directories as suggested in the install guide. But, now I have old bash scripts running as "non-root" that are reporting 433 error message stating the service is unavailable (or something like that). It seems that the file permission are such that it won't allow execution and I'm not sure if that's the entire problem.

The 'sendmail' binary probably isn't suid/sgid properly. You must have missed one or more steps during the install.

2. I've also tried to run old scripts that use similar syntax as "cat textfile.txt | sendmail bruce" and I get the mail message as root but there is no body text as I had gotten with postfix. What is different about the new syntax of courier's "sendmail" syntax that prevents the body text from coming through?

I don't know about postfix, but Courier's sendmail expects headers to precede the body. If you're not writing your own headers, you should be doing this, instead:

cat textfile.txt | mail bruce

The 'mail' (mailx on some platforms) will write appropriate headers for you before giving the input to sendmail.