The "unsafe map file" references more than just the file, the
security in sendmail prevents it from using files in any directory
that is writable by anyone but the owner too. The directories you
need to check for 775 or 777 permissions and change them to 755 or
751 are "/", "/usr", "/usr/local", "/usr/local/majordomo", and
"/usr/local/majordomo/lists".
The out of date .cf file referred to is the sendmail.cf file. It
would be my guess that sendmail has been updated on your machine,
without any update to the sendmail.cf or the sendmail.mc for
building the sendmail.cf file.
You could/should change the sendmail.cf to point to a symbolic
link to the majordomo aliases in /etc/mail instead of directly
at the source file for those aliases. As root, execute these
commands:
ln -s /usr/local/majordomo/majordomo.aliases /etc/mail/majordomo.aliases
then edit the sendmail.cf file looking for /usr/local/majordomo and
replace it with /etc/mail. Now you can;
newaliases
and restart sendmail.
Dan Liston
Diana Kirk wrote:
> I'm suddenly having a problem with permissions with my mailing lists. I received the following "Returned mail" when trying to submit a post:
>
> ----- The following addresses had permanent fatal errors -----
> :include:/usr/local/majordomo/lists/wordstar
> (expanded from: wordstar-list)
>
> ----- Transcript of session follows -----
> 451 4.0.0 hash map "Alias1": unsafe map file /usr/local/majordomo/majordomo.aliases.db: Permission denied
> 550 5.2.4 :include:/usr/local/majordomo/lists/wordstar... Cannot open /usr/local/majordomo/lists/wordstar: Permission denied
>
> I checked the files and they seemed fine. The permissions for majordomo.aliases.db and majordomo.aliases are the same: 644. The majordomo directory has a permission of 755.
>
> I ran newaliases and received the following message.
>
> Warning: .cf file is out of date: sendmail 8.12.9 supports version 10, .cf file is version 9
> /etc/mail/aliases: 7 aliases, longest 122 bytes, 592 bytes total
> hash map "Alias1": unsafe map file /usr/local/majordomo/majordomo.aliases.db: Permission denied
> WARNING: cannot open alias database /usr/local/majordomo/majordomo.aliases
> Cannot create database for alias file /usr/local/majordomo/majordomo.aliases
>
> Is the .cf file it's referrring to majordomo.cf or sendmail.cf? What is hash map "Alias 1"? What do you suggest I do?
>
> Thanks for your help.
>
> Diana Kirk
> --
> Registered Linux User #327485
> Visit "WordStar & GNU/Linux"
> http://www.wordstar2.com
> Also, see the WordStar Users Group
> http://www.wordstar2.com/cbabbage/wordstar
Follow-Ups:
References:
|
|