LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Majordomo, Sendmail and Permission Denied (https://www.linuxquestions.org/questions/linux-general-1/majordomo-sendmail-and-permission-denied-23257/)

notsoevil 06-12-2002 11:28 AM

Majordomo, Sendmail and Permission Denied
 
I am setting up majordomo per the INSTALL file, I am issuing the command (as it suggests):

Code:

echo 'lists' | mail majordomo
Here is the snippet from /var/log/maillog:

Jun 12 12:15:48 dragon sendmail[19324]: g5CGFmgQ019324: from=<root@localhost>, size=6, class=0, nrcpts=1, msgid=<200206121615.g5CGFm9o019323@localhost>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]

Jun 12 12:15:48 dragon sendmail[19323]: g5CGFm9o019323: to=majordomo, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30015, relay=localhost [127.0.0.1], dsn=2.0.0, stat=Sent (g5CGFmgQ019324 Message accepted for delivery)

Jun 12 12:15:48 dragon sendmail[19325]: g5CGFmgQ019324: g5CGFmgQ019325: clone: owner=root

Jun 12 12:15:49 dragon sendmail[19327]: NOQUEUE: SYSERR(majordomo): /etc/mail/sendmail.cf: line 0: cannot open: Permission denied

Jun 12 12:15:49 dragon sendmail[19325]: g5CGFmgQ019325: to="|wrapper majordomo", ctladdr=<majordomo@localhost> (8/0), delay=00:00:01, xdelay=00:00:00, mailer=prog, pri=30016, dsn=2.0.0, stat=Sent

I do have smrsh set up, with appropriate symlinks in /var/adm/sm.bin (and /etc/smrsh just in case) to /usr/local/majordomo/wrapper

When compiling the wrapper, I edited the Makefile to the appropriate UID and GID -- the UID is to the user majordomo and GID is to the same group that sendmail belongs to.

I even tried setting up majordomo with the exact same UID/GID as sendmail, but there was no difference.

Something of interest, which seems like it might be related, I get the 'sendmail.cf: line 0: cannot open: Permission denied' error when, after running 'wrapper config-test' as a unprivileged user, the config-test asks if you want to register majordomo. I said yes, and the process fails, printing that error message to the screen.

From what I can see from the error, the majordomo user does not have permission to open the sendmail.cf file. But I don't understand why it would even need to do so.

Any and all help would be appreciated.


All times are GMT -5. The time now is 01:55 AM.