On Mon, Jul 10, 2023 at 03:24:54PM +0200, Robert Senger wrote:

> Hey, that was me! My full given name *is* Robert'); DROP ...
> 
> CONFDIR=/etc/postfix
> POSTMAP=/usr/sbin/postmap
> LOCAL_VIRTUAL_USERS=mysql:${CONFDIR}/virtual_mailboxes.mysql.cf
> 
> recipient=$(printf '%s' "$2" | sed 's/[<>]//g')
> username=$(([ ! -z ${LOCAL_VIRTUAL_USERS} ] && ${POSTMAP} -q "${recipient}" 
> ${LOCAL_VIRTUAL_USERS}))

This is closer, but note that $(( ... )) is for **arithmetic**
expressions, not command sustitution.  You want $( ... ).

-- 
    Viktor.
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to