Hi List users,
I have a question regarding Majordomo wherein it is not responding to commands. When ever we send commands like "help", "subscribe" etc to Majordomo it does not send any response back. When I investigated I noticed that the file /majordomo/Log file was not getting updated and it was around 150 MB in size. I moved the file "Log" to a back up file and created a new file "Log" with the same permission. Inspite of this the file "Log" is not getting updated.
At the sametime sending out of mails is working fine. We are using sendmail as the mailer. I can also see that commands are reaching majordomo and they can be found in the mail box of user majordomo under /var/mail
Can someone please let me know what could be causing Majordomo to ignore/not respond to the commands. We haven’t changed any permission. Do I need to stop and start something.
Thanks in Advance.
I’m unfortunately not really familiar with Sendmail or Majordomo, and hopefully someone with some more experience in one of both may chime in.
But in the hopes of getting you looking in the right direction, it sounds like the email aliases/commands that would normally trigger a call to the majordomo scripts aren’t getting called by Sendmail.
So I’d check the email aliases, and verify that they’re setup correctly, and calling the appropriate commands.
What’re the appropriate entries in usr/local/majordomo/aliases or /etc/aliases?
What’s /etc/group look like?
What are the owner/group and permissions of majordomo and wrapper?
What’s in that log file?
… gotta start somewhere…
In the aliases file we have the following definition for majordomo
other users (for each mailing list) are defined like this
newtestlist-out: "|/home/majordom/majordomo/wrapper resend -l newtestlist newtestlist-list"
newtestlist-request: "|/home/majordom/majordomo/wrapper majordomo -l newtestlist"
when ever we send mails, it goes to each user and gets filtered (checks if it is coming from a authorized email id) through .procmailrc (present in each users home folder). The wrapper seems to work fine since the mails are being sent out when ever we send mail to mailing list newtestlist.
The majordom users home folder has the following permission
drwxr-xr-x 8 majordom daemon 1024 Apr 7 11:25 majordom/
and group entry for daemon is
The permissions for majordomo are
-rwsr-xr-x 1 root daemon 10000 Sep 14 2000 wrapper*
-rwxr-xr-x 1 majordom daemon 24420 Feb 14 2005 majordomo.pl*
-rw-r–r-- 1 majordom daemon 10770 Jan 26 14:05 majordomo.cf
-rw-rw-r-- 1 majordom daemon 0 May 6 11:41 Log (I recreated this Log file after moving the old 150 MB file)
The other thing I noticed was that the mail folder for user majordom is around 7 MB where as for other users it is zero
-rw------- 1 btesh mail 0 Apr 3 11:56 btesh
-rw------- 1 majordom mail 7776557 May 7 10:19 majordom
Should I stop and start sendmail ?
Sorry it took so long to get back to you, I didn’t see your post.
Are you using postfix or sendmail?
a typical entry in aliases is:
majordomo: "|/usr/local/majordomo/wrapper majordomo"
a typical set of entries for lists, either directly in "aliases" or in /usr/local/majordomo/majordomo.aliases:
newtestlist: "|/usr/local/majordomo/wrapper resend -l newtestlist newtestlist-list"
newtestlist-request: "|/usr/local/majordomo/wrapper request-answer newtestlist"
Change the files "majordomo" and "wrapper" in /usr/local/majordomo
#chown majordomo:nobody majordomo wrapper
#chmod 755 majordomo wrapper
might as well do the same thing to the list and list config files, as well.
Assuming "nobody" is in group 99 in etc/passwd make sure that your majordomo entry looks something like this:
If you’re running postfix,
and make sure that
Run the following commands:
restart sendmail / postfix
Try sending an email to firstname.lastname@example.org with "help" in the body.
Let us know what happens.