Well I thought it might be that I had not restarted qmail after installing the rpm, so I rebooted the server, but still I can send email to everyone@mydomain.com from outside. So here is the file:
#------------------------------------------------------------
# DO NOT MODIFY THIS FILE! It is updated automatically by the
# e-smith server and gateway software. Instead, modify the source
# template in the /etc/e-smith/templates directory. For more
# information, see
http://www.e-smith.org.
#
# copyright (C) 1999, 2000 e-smith, inc.
#------------------------------------------------------------
# Don't allow bang paths via us
noto:ALL:ALL:*!*@*:551 Sorry %H (%I), I don't allow unauthorized relaying. You can't use me to send mail from %F to %T.
# Don't allow two @s (equivalent to %hack) via us
noto:ALL:ALL:*@*@*:551 Sorry %H (%I), I don't allow unauthorized relaying. You can't use me to send mail from %F to %T.
# Don't allow %hack relay via us
noto:ALL:ALL:*%*@*:551 Sorry %H (%I), I don't allow unauthorized relaying. You can't use me to send mail from %F to %T.
# Allow relaying from the local network
allow:127.0.0.1:ALL:ALL
allow:192.168.0.0/24:ALL:ALL
# Prohibit access to these addresses from the outside world
noto:ALL:ALL:everyone@*.zbe.com everyone@zbe.com:551 Sorry %H (%I), you cannot send mail to %T from outside our local network.
noto:ALL:ALL:everyone@*.zbeworkstream.com everyone@zbeworkstream.com:551 Sorry %H (%I), you cannot send mail to %T from outside our local network.
noto:ALL:ALL:maxtest@*.zbe.com maxtest@zbe.com:551 Sorry %H (%I), you cannot send mail to %T from outside our local network.
noto:ALL:ALL:maxtest@*.zbeworkstream.com maxtest@zbeworkstream.com:551 Sorry %H (%I), you cannot send mail to %T from outside our local network.
noto:ALL:ALL:shared@*.zbe.com shared@zbe.com:551 Sorry %H (%I), you cannot send mail to %T from outside our local network.
noto:ALL:ALL:shared@*.zbeworkstream.com shared@zbeworkstream.com:551 Sorry %H (%I), you cannot send mail to %T from outside our local network.
# Allow any of our domains
allow:ALL:ALL:*.zbe.com *@zbe.com
allow:ALL:ALL:*.zbeworkstream.com *@zbeworkstream.com
# Just say no to anything else, we won't relay for people we don't know.
noto:ALL:ALL:ALL:551 Sorry %H(%I), I don't allow unauthorized relaying. Please use another SMTP host to mail from %F to %T
#------------------------------------------------------------
# TEMPLATE END
#------------------------------------------------------------