If your using Roundcube 1.3.0 or above its no longer possible to use PHP's mail() function for sending mail so that should no longer be a problem. If your still having problems with emails being flagged as spam make sure all the DNS settings are correct for the domain your sending the email from.