This seems not to be a Roundcube problem. RoundCube is just a client which delivers mails to your SMTP server. Your SMTP server is responsible to deliver emails to recipients. Gmail and Yahoo is known to be very restrictive in accepting mails. This may have various issues (f.e. missing SPF record in your DNS settings, etc.).