This patch is indented for people who run QMail for personal mail hosting and want to route all outgoing mail through there ISP smtp server. The reason to route outgoing mail through you ISP is that some smtp servers won’t accept mail from dynamic ip addresses. To do this in QMail you configure smtproutes control file to direct all outgoing mail to your ISP’s smtp server (see man qmail-remote(8)). However, some ISPs require SMTP authentication for outing mail which qmail doesn’t support. This patch provides support for SMTP authetication.

Build

  • Apply the patch to the code.
  • Follow the normal build process for making QMail.
  • If the same qmail verision is already installed via a package you can copy over just the qmail-route binary, you won’t need to install the complete built version

Configure

smtpauth – create this file in your control directory and put you ISP’s username in it. The username must be base64 encoded. To do this you can use this website to get the base64 encode string. Enter you username and click encode. Copy the result to this file

smtppasswd – create this file in your control directory and put you ISP’s password in it. The password must be base64 encoded. To do this you can use this website to get the base64 encode string. Enter you password and click encode. Copy the result to this file

Issues

  • There a know issues that the smtpauth file must exist. If it doesn’t qmail-route will crash.is file