Sendmail Question; unable to send mail as normal user
Matthew Seaman
m.seaman at infracaninophile.co.uk
Sat Aug 5 11:01:58 UTC 2006
Frank Staals wrote:
> $ mail frankstaals at gmx.net
> Subject: test
> usertest
> .
> EOT
> $ /etc/mail/submit.cf: line 0: cannot open: Permission denied
Yes -- it's to do with the separation of powers between sendmail-MSP
(Mail Submission Program) and sendmail-MTA (Mail Transport Agent). Invoking
/usr/sbin/sendmail from the command line, or via one of the standard Unix
command line mail clients connects you with the MSP instance. That runs
with your UID, but is setgid to 'smmsp'. /etc/mail/submit.cf is the
configuration file for that sendmail instance.
Double check the file system ownership and permissions on /etc/mail and
/etc/mail/submit.cf -- they should be as follows:
happy-idiot-talk:/etc/mail:% ls -ld /etc/mail /etc/mail/submit.cf
drwxr-xr-x 3 root wheel 1024 Aug 4 12:04 /etc/mail/
-r--r--r-- 1 root wheel 40406 Aug 4 12:04 /etc/mail/submit.cf
Note: using /etc/mail/Makefile to rebuild any of sendmail's tables or
configuration files means that all files should be installed with the
correct permissions. There's instructions in the comments at the
beginning of the Makefile
Cheers,
Matthew
--
Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard
Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
Kent, CT11 9PW
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20060805/a59a6a27/signature.pgp
More information about the freebsd-questions
mailing list