mail setup

This is probably something really simple, but I can’t put my finger on it.
Everytime I try to run mail or mailx it gives me a “permission denied”
error.
There seems to be very little information out there on how to initially
setup the mail or mailx configuration. Any help would be highly
appreciated.

Not sure how they relate, but my vmail is working just fine. Problem is I
want to be able to write cron scripts to automatically send out emails when
a file shows up in a certain directory.

Thanks again,

Ben

First try (as root) /etc/make_links. If that doesn’t fix it,

chmod g+s /usr/bin/mail /usr/spool/mail
chgrp -R mail /usr/bin/mail /usr/spool/mail
chmod -R g+rw /usr/spool/mail

Better yet, edit /etc/make_links - look for the test to see if
/usr/spool/mail exists. Move the “fi” up so the above commands
will run even though the dir exists.

Richard

Ben Burns wrote:

This is probably something really simple, but I can’t put my finger on it.
Everytime I try to run mail or mailx it gives me a “permission denied”
error.
There seems to be very little information out there on how to initially
setup the mail or mailx configuration. Any help would be highly
appreciated.

Not sure how they relate, but my vmail is working just fine. Problem is I
want to be able to write cron scripts to automatically send out emails when
a file shows up in a certain directory.

Thanks again,

Ben

Ben Burns <bburns@nyab.com> wrote:

This is probably something really simple, but I can’t put my finger on it.
Everytime I try to run mail or mailx it gives me a “permission denied”
error.
There seems to be very little information out there on how to initially
setup the mail or mailx configuration. Any help would be highly
appreciated.

Not sure how they relate, but my vmail is working just fine. Problem is I
want to be able to write cron scripts to automatically send out emails when
a file shows up in a certain directory.

Not sure this is it… but are they owned by group mail, and have the
setgid bit set?

-David

QNX Training Services
dagibbs@qnx.com