Setting up a smarthost in qmail


I’m trying to set up email so that it relays through a provider. I’m using Mail Baby (similar to MailChannels). They give you a relay host, a username and a password.

For instance, their instructions for DA (Postfix) can be found here. However, since Interworx is using qmail, I’m having a hard time translating this for qmail.

I’ve tried setting up /var/qmail/control/smtproutes to the following, none of them worked:|username|password

This did not work. username password

This also did not work.

Both of them returned the error “Remote host said: 530 Error: authentication Required” so I assume it can connect to the relay, but it cannot authenticate.

How do I do this? Is it even possible (I’m assuming it should be as it’s unlikely that I’m the first person to ever do this).


There are a few forum posts over smtp route which work

Many thanks


Setting up Mailgun or Sendgrid as Smarthost for sending email - General Interworx Control Panel Info / General Inquries - Interworx Forum

How to: Edit SMTP Settings — InterWorx documentation