I'm trying to setup
Postfix from Entware (a repo for embedded devices).
There is no SElinux involved and chroot is disabled in master.cf.
# postconf -n command_directory = /opt/sbin compatibility_level = 2 config_directory = /opt/etc/postfix daemon_directory = /opt/libexec/postfix data_directory = /opt/var/lib/postfix debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 default_database_type = cdb inet_protocols = ipv4 mail_spool_directory = /opt/var/mail manpage_directory = no myhostname = domain.nl mynetworks = 126.96.36.199,188.8.131.52 queue_directory = /opt/var/spool/postfix shlib_directory = /opt/lib/postfix smtputf8_enable = no unknown_local_recipient_reject_code = 550
The issue is that
postfix set-permissions isn't able to figure out the
root user name. This distribution comes by default with a "root" user named "admin". At least I think that the user name is the issue, because of:
# postfix set-permissions find: unknown user root # ls -lah /opt/sbin/postdrop -rwxr-xr-x 1 NewRootUser root 246.8K Sep 8 22:33 /opt/sbin/postdrop
With the help of https://wiki.zimbra.com/wiki/Steps_to_fix_permission_and_ownership_of_Postfix_binaries_manually_due_to_bug_on_zmfixperm is tried to fix the differences (
755 was already set):
# chown AdminUserName:postdrop /opt/sbin/postdrop # chown AdminUserName:postdrop /opt/sbin/postqueue # chmod g+s /opt/sbin/postdrop # chmod g+s /opt/sbin/postqueue
# postfix check postsuper: fatal: scan_dir_push: open directory defer: Permission denied
How to make
postfix set-permissions learn the
new root user name?
Or how to manually do the steps that
postfix set-permissions should do?
Or where in the postfix source code can one find the actions that are executed for flag