-rw-r--r-- 1 root root 318 2011-04-22 15:04 /etc/postfix/dynamicmaps.cf
by default. Which programs are using it and when? Before dropping
privileges? After? Does /usr/sbin/sendmail use it?
Yeah, I know. It's a patch.
Just asking if 644 is the ultima ratio or if (under special
circumstances) something like mode 640, user root, group postfix might
work as well.
--
Ralf Hildebrandt
Geschäftsbereich IT | Abteilung Netzwerk
Charité - Universitätsmedizin Berlin
Campus Benjamin Franklin
Hindenburgdamm 30 | D-12203 Berlin
Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
ralf.hil...@charite.de | http://www.charite.de
/etc/postfix and everything under it must be owned by root and not
writable by anyone else.
dynamicmaps.cf is from Lamont Jones's Debian feature that allows
support for LDAP, *SQL etc. to be added without recompiling Postfix.
However, not all the world is Debian.
As for run-time privileges, Postfix daemons open tables before
dropping privileges.
Postfix commands such as postmap open tables with the privileges
of the user itself (if invoked by root, postmap may decide that
root privileges are too powerful, for example, when a table is
owned by a non-root user).
> Just asking if 644 is the ultima ratio or if (under special
> circumstances) something like mode 640, user root, group postfix might
> work as well.
This file contains no secrets, unless you have put some secret
in the comments.
Wietse
> This file contains no secrets, unless you have put some secret
> in the comments.
I was also wondering why somebody would want to somehow hide the
contents.
Every postfix program that deals with maps/dictionaries uses
this file. Since all dicts are open as root, it's used before
dropping privileges.
> Yeah, I know. It's a patch.
>
> Just asking if 644 is the ultima ratio or if (under special
> circumstances) something like mode 640, user root, group postfix might
> work as well.
And immediately after that, postfix-start will complain about
wrong permissions of a file in /etc/postfix/.
No, dynamicmaps.cf is very like main.cf or master.cf files.
What special cirsumstances you're talking about?
Thanks,
/mjt
> > This file contains no secrets, unless you have put some secret
> > in the comments.
>
> I was also wondering why somebody would want to somehow hide the
> contents.
Unlikely, since postdrop/postqueue don't run as root, and potentially
use tables, I would expect these to break if the list of dynamically
loadable tables is not world-readable.
--
Viktor.