At the same location where the provided link tells you to configure OOF is another option for “Allow automatic forward”. Unchecking this option will prevent users from forwarding (externally only if I remember correct). If you want to enable this feature for special domains you can just create another rule set specifically for this domain.