This guide does not include Installation of Qmail.
SMTP Authentication functionality is not included in Qmail. To add it to Qmail, you have to apply a patch. Please follow below steps to apply this patch and use SMTP2GO as your outgoing mail server (smarthost).
Copy the downloaded patch to Qmail’s source folder.
Stop the ‘Qmail’ service and run the following commands from Qmail’s source folder:
Create smtproutes control file with the following content. Usually, the control files are located in the/var/qmail/control/ folder.
Create remotesecrets control file with following content:
Replace USERNAME with your SMTP2GO Username and PASSWORD with your SMTP2GO password.
Start the ‘Qmail’ service.
You may test your settings by sending a test message from command line using qmail-inject as below or using your mail client.
Note: If you see an error ‘550 unable to verify sender address’ when trying to send an email after setting up, this means your ‘From’ email address doesn’t have a valid MX record setup yet. All emails must be sent from an email address that has an MX record at its domain name.
Try SMTP2GO free for as long as you like:Try SMTP2GO Free → Paid plans available for over 1,000 emails/month.