You need to edit your /etc/tcp.smtp file to include the IPs from where you are going to send mail. Then you need to execute /usr/local/etc/rc.d/qmail.sh cdb to rebuild that file. I don't know if you have to restart qmail after this.