[Dovecot] deliver to root
Hi,
we use dovecot 1.1.11 on a RH Server with sendmail. Local delivery is done with deliver:
Mlocal, P=/usr/local/libexec/dovecot/deliver, F=lsDFMAw5:/|@qSPfhn9, S=EnvFromL/HdrFromL, R=EnvToL/HdrToL, T=DNS/RFC822/X-Unix, A=deliver -d $u
This setup works without issues for us, but mail to root has a problem with deliver:
deliver(root): Mar 04 16:31:31 Error: userdb(root) returned 0 as uid deliver(root): Mar 04 16:31:31 Error: userdb(root) returned 0 as gid deliver(root): Mar 04 16:31:31 Error: User root is missing UID (set mail_uid)
Is it generally not possible to use deliver to deliver mail to root?
Thanks Philipp
- Philipp Kolmann <kolmann@zid.tuwien.ac.at> [2009-03-04 17:02]:
This setup works without issues for us, but mail to root has a problem
with deliver:
Not an answer to your exact question, but usually, it's recommended to forward mail for root to another user, for instance in /etc/aliases.
-- Vegard Svanberg <vegard@svanberg.no> [*Takapa@IRC (EFnet)]
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, 4 Mar 2009, Philipp Kolmann wrote:
deliver(root): Mar 04 16:31:31 Error: userdb(root) returned 0 as uid deliver(root): Mar 04 16:31:31 Error: userdb(root) returned 0 as gid deliver(root): Mar 04 16:31:31 Error: User root is missing UID (set mail_uid)
This is part of my dovecot.conf:
Valid UID range for users, defaults to 500 and above. This is mostly
to make sure that users can't log in as daemons or other system users.
Note that denying root logins is hardcoded to dovecot binary and can't
be done even if first_valid_uid is set to 0.
#first_valid_uid = 500 #last_valid_uid = 0
Bye,
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBSa9213WSIuGy1ktrAQKdZAf+L9hjgQ7PlcOw7nK8B1BZ2EqbaU/enze3 4FHDoMIHACnPO53lseICfANDG9VW4JonS4dr0b9TYVl7gkfMvsFX3MShRBZaxEyZ MWYjDzZL0o9kim3/B9oqcvWMMC2tl0B6JtLx8aoK4TFNgWtLHgEEHdzA8/1oDVPj nkerWRkRC4VeMZli6jBLaqNU4gqH9t5Cc+8s9NZ3mJ73csJG1TcQbaS98zyWwGLc OEjpPlM7h5LD9jsB6pLNYRQroRu0duNs8PuSMCNBoBnJX1Jboa6HUB6wfAFK/DSd Z2hCMjhe8ktKWBdYMbwuNL2HdY1xa4dstyQ0X+lhs07sdaXdk2xOhA== =bpfk -----END PGP SIGNATURE-----
Steffen Kaiser <skdovecot@smail.inf.fh-brs.de> wrote:
On Wed, 4 Mar 2009, Philipp Kolmann wrote:
deliver(root): Mar 04 16:31:31 Error: userdb(root) returned 0 as uid deliver(root): Mar 04 16:31:31 Error: userdb(root) returned 0 as gid deliver(root): Mar 04 16:31:31 Error: User root is missing UID (set mail_uid)
This is part of my dovecot.conf:
Valid UID range for users, defaults to 500 and above. This is mostly
to make sure that users can't log in as daemons or other system users.
Note that denying root logins is hardcoded to dovecot binary and can't
be done even if first_valid_uid is set to 0.
#first_valid_uid = 500 #last_valid_uid = 0
Bye,
Anyway, standard security practise is to define alias (in aliases file) to redirect deliveries to "normal user".
-- [pl>en: Andrew] Andrzej Adam Filip : anfi@onet.eu "I have five dollars for each of you." -- Bernhard Goetz
participants (4)
-
Andrzej Adam Filip
-
Philipp Kolmann
-
Steffen Kaiser
-
Vegard Svanberg