> On 10 Jul 2023, at 5:50 am, Matus UHLAR - fantomas via Postfix-users > <postfix-users@postfix.org> wrote: > >>> #!/bin/bash >>> user=`echo "$2" | sed 's/[<>]//g'` >>> ret=`echo "select destination from virtual_aliases where >>> source=\"$user\";" | /usr/bin/mysql -upostfix -psecretpassword >>> mailserver | tail -n 1` >>> if [ -z "$ret" ]; then >>> echo "nobody... deliverable: mailer local, user $user" >>> else >>> echo "nobody... deliverable: mailer local, user $ret" >>> fi
I do hope the final code avoids the https://xkcd.com/327/ issues seen above. -- Viktor. _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org