HEX
Server: Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips
System: Linux interdata.1727142276 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: dalieudr (1043)
PHP: 7.4.28
Disabled: exec, passthru, shell_exec, system
Upload Files
File: //usr/libexec/postfix/aliasesdb
#!/bin/bash

ALIASESDB_STAMP=/var/lib/misc/postfix.aliasesdb-stamp

make_aliasesdb() {
        if [ "$(/usr/sbin/postconf -h alias_database)" == "hash:/etc/aliases" ]
        then
                # /etc/aliases.db may be used by other MTA, make sure nothing
                # has touched it since our last newaliases call
                [ /etc/aliases -nt /etc/aliases.db ] ||
                        [ "$ALIASESDB_STAMP" -nt /etc/aliases.db ] ||
                        [ "$ALIASESDB_STAMP" -ot /etc/aliases.db ] || return 0
                /usr/bin/newaliases
                touch -r /etc/aliases.db "$ALIASESDB_STAMP"
        else
                /usr/bin/newaliases
        fi
}

make_aliasesdb