Hi,
you can use so called backdoor mechanism at the moment. The avastrelay will listen on port 25 and scanned mail will be forwarded to qmail, that will listen on hidden port (for example 10025).