Majordomo exec resend failed

IceHosting

Verified User
Joined
Oct 6, 2004
Messages
20
Location
Netherlands
Hello,

I got a strange problem with Majordomo. Everytime someone tries to mail to a list (or subscribe) the following return mail is produced:

This message was created automatically by mail delivery software.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

pipe to |/etc/virtual/majordomo/wrapper resend -C /etc/virtual/domain.nl/majordomo/majordomo.cf -l test -h domain.nl -f owner-test [email protected]
generated by [email protected]
local delivery failed

The following text was generated during the delivery attempt:

------ pipe to |/etc/virtual/majordomo/wrapper resend -C /etc/virtual/domain.nl/majordomo/majordomo.cf -l test -h domain.nl -f owner-test [email protected]
generated by [email protected] ------

wrapper: Trying to exec /etc/virtual/majordomo/resend failed: Permission denied
Did you define PERL correctly in the Makefile?
HOME is HOME=/etc/virtual/majordomo,
PATH is PATH=/bin:/usr/bin:/usr/ucb,
SHELL is SHELL=/bin/sh,
MAJORDOMO_CF is MAJORDOMO_CF=/etc/virtual/majordomo/majordomo.cf

I already checked the permissions off the resend file:

[root@server20 ~]# ls -l /etc/virtual/majordomo/resend
-rwxr-xr-x 1 majordomo daemon 29919 Nov 1 14:17 /etc/virtual/majordomo/resend

The exim log entry:
2012-11-01 14:42:17 1TTv2H-0006fO-78 <= x H=(x) [x] P=esmtps X=TLSv1:DHE-RSA-AES256-SHA:256 S=3008 id=x T="subscribe" from <x> for [email protected]
2012-11-01 14:42:17 1TTv2H-0006fO-78 ** |/etc/virtual/majordomo/wrapper resend -C /etc/virtual/domain.nl/majordomo/majordomo.cf -l test -h domain.nl -f owner-test [email protected] <[email protected]> F=<x> R=majordomo_aliases T=majordomo_pipe: Child process of majordomo_pipe transport returned 71 (could mean internal operating system error) from command: /etc/virtual/majordomo/wrapper

System details:
Centos 6.3
Default directadmin installation

I updated exim and directadmin and tried to reinstall majordomo but whitout success.

Does anybody know how i can solve this issue?
 
Majordomo is a perl script, so you need to make sure your scripts point to the right perl and your perl is executable. Look at the first line of /etc/virtual/majordomo/resend if it shows "#!/usr/bin/perl" then it means that it will use the perl located in /usr/bin . Make sure that is executable.

Another thing to look at is that your wrapper is set uid root:
-rwsr-xr-x 1 root daemon 7911 Sep 19 2011 wrapper

Which means when it runs, it will run as though it were root. If it isn't, it may have problems executing some of the scripts majordomo needs.
 
Toml

Thanks for your reply.

I checked the first line, and it was fine; ""#!/usr/bin/perl"
Then i checked the readwrite permission of /usr/bin/perl and somehow only the user and group may use the program.

I changed to a chmod 755 and now majordomo is now working.

I couldn't find this error, because when i run the perl script manually it runs fine (because I am root and root is also the owner of perl).


Before:
[root@server20 ~]# ls -alh /usr/bin/perl
-rwxr-x--- 2 root root 6.8K Jun 22 15:28 /usr/bin/perl

and now it is:

[root@server20 ~]# ls -alh /usr/bin/perl
-rwxr-xr-x 2 root root 6.8K Jun 22 15:28 /usr/bin/perl
 
Last edited:
Back
Top