Hi,
I have a strange problem with my courier-mta (v. 0.47).
Since 2 weeks or so, the sendmail command doesn't work anymore.
As I didn't change anything, I don't understand what happens.
In the courier-mta logs, I only see that mails are deferred.
The sendmail command gives me following error :
-----8<-----
sendmail: ERR: submitclient: EOF from submit.
432 Service temporarily unavailable.
sendmail: Unable to submit message.
-----8<-----
So I straced the sendmail, and saw that it could not open
/var/run/courier/authdaemon/socket.
# strace -v -o debug-info.txt -f -s 128 su - testuser -c "./sendmail.sh"
(sendmail.sh : sendmail testuser2 <input.txt)
-----8<-----
31438 fcntl64(6, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
31438 connect(6, {sa_family=AF_FILE,
path="/var/run/courier/authdaemon/socket"}, 110) = -1 EACCES (Permission denied)
31438 select(7, NULL, [6], NULL, {15, 0}) = 1 (out [6], left {15, 0})
31438 getsockopt(6, SOL_SOCKET, SO_ERROR, [0], [4]) = 0
31438 select(7, NULL, [6], NULL, {15, 0}) = 1 (out [6], left {15, 0})
31438 write(6, "PRE . courier greisby\n", 22) = -1 ENOTCONN (Transport endpoint
is not connected)
31438 close(6) = 0
31438 write(1, "450 Service temporarily unavailable.\n", 37) = 37
-----8<-----
I then checked the folder, the socket, the sendmail command and the submit
command :
drwxrwx--- daemon daemon /var/run/courier/authdaemon/
srwxrwxrwx root root /var/run/courier/authdaemon/socket
-rwsr-xr-x root daemon /usr/sbin/sendmail
-rwxr-xr-x root root /usr/lib/courier/courier/submit
I'm don't know strace well, but I think that the uid and gid at this moment are
the user ones (I saw setgid and setuid calls in the log), not the courier ones
(daemon:daemon).
I did a chmod o+x to /var/run/courier/authdaemon/ and the authentication worked
again.
I'm pretty sure that the problem doesn't come from there, but I wanted a quick
fix. Well... it still doesn't work.
Now it cannot create files in /var/lib/courier/tmp :
-----8<-----
5288 open("118356/1183566505.5288.mail.zenon-media.net",
O_WRONLY|O_CREAT|O_TRUNC|O_EXCL, 0660) = -1 EACCES (Permission denied)
5288 clone(child_stack=0,
flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTIDSIGCHLD, child_tidptr=0xb7d62ae8)
= 5289
5288 wait4(-1, <unfinished ...>
5289 execve("/usr/lib/courier/courier/submitmkdir", ["submitmkdir", "118356"],
["TCPREMOTEHOST=localhost", "TCPREMOTEIP=127.0.0.1", "TCPREMOTEINFO=uid 1017",
"SHELL=/bin/sh", "BOFHSPFHELLO=all", "BOFHSPFMAILFROM=off", "BOFHSPFFROM=off",
"BOFHSPFTRUSTME=1", "BOFHSPFHARDERROR=softfail", "BOFHSPFHELO=off"]) = -1
EACCES (Permission denied)
5289 unlink("118356/1183566505.5288.mail.zenon-media.net") = -1 ENOENT (No
such file or directory)
5289 unlink("118356/D3") = -1 ENOENT (No such file or directory)
5289 unlink("118356/D3.1") = -1 ENOENT (No such file or directory)
5289 unlink("118356/C3.1") = -1 ENOENT (No such file or directory)
-----8<-----
The directory /var/lib/courier/tmp/118356 exists and is owned by daemon:daemon,
with rwxrwx--- rights.
Just to be sure, I did a chmod o+rwx on it, and sendmail succeeded. But the
files created are owned by the user, and stay forever (undelivered) :
-rw-rw---- testuser users /var/lib/courier/tmp/118356/C94716
-rw-rw---- testuser users /var/lib/courier/tmp/118356/D94716
There is something wrong here, but I have no idea what...
Only sendmail fails. All other courier-mta parts are working (smtp, pop, imap
and maildrop).
Any clue?
Thanks!
--
Christophe Greisberger <[EMAIL PROTECTED]>
______________________________________________________________
AIM: AlGaws - Yahoo: AlGaws
ICQ: 54291996 - MSN: [EMAIL PROTECTED]
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users