Am Montag, dem 10.07.2023 um 09:39 -0400 schrieb Viktor Dukhovni via Postfix-users: > 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 $( ... ). > Ya, the original line in the script is $(( ... ) || ( ...)), just removed the part after || in the email to the list to avoid a very long line...
Thanks for your help! Robert -- Robert Senger _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org