Forwarding email - adaline/dockermail GitHub Wiki

There is a way to automatically forward email to another account and save it to dockermail as well.

Keep in mind that forwarding email will break the SPF checks and may get your server blacklisted. To forward email correctly you would need to add SRS service which dockermail does not currently provide.

If your domain is example.com and your email is [email protected], you want to forward to [email protected] then the basic config should be like this:

{
  "settings": {
    "myhostname": "example.com"
  },
  "domains": {
    "example.com" :
      [
        {
          "email": "[email protected] [email protected]",
          "aliases": ["[email protected]"]
        },
        {
          "email": "[email protected]",
          "password": "{SHA256-CRYPT}$5$ojXGqoxOAygN91er$VQD/8dDyCYOaLl2yLJlRFXgl.NSrB3seZGXBRMdZAr6"
        }
      ]
  }
}

Big thanks to @bpavacic and @hheimbuerger for this info.