1
0
Fork 0
Commit Graph

305 Commits

Author SHA1 Message Date
chylex dc2e90b7d6
Add option to override From header for individual accounts 2023-07-08 18:48:34 +02:00
chylex b32b44e77f
Update example config INI 2023-07-08 14:23:34 +02:00
chylex f503402e89
Configure allowed senders and recipients on individual accounts 2023-07-08 14:23:34 +02:00
chylex b9509593e5
Forbid empty allowed_from list and use wildcard to mean all addresses are allowed 2023-07-08 14:02:57 +02:00
chylex 4df671e547
Change account config file to use YAML instead of JSON 2023-07-08 14:02:57 +02:00
chylex 31b9c46f99
Replace From/To headers in relayed emails 2023-07-07 13:40:40 +02:00
chylex 35468aff6d
Forbid unknown keys when reading account JSON 2023-07-07 08:34:49 +02:00
chylex a142dc3cfe
Replace strings.ToLower with strings.EqualFold 2023-07-07 07:34:12 +02:00
chylex 636f78a0ec
Move utility functions in smtp package 2023-07-07 07:25:34 +02:00
chylex e7353824c5
Refactor SMTP relay and client code 2023-07-06 19:33:36 +02:00
chylex 725f732ab5
Make INI file the only way to read configuration 2023-07-06 12:56:30 +02:00
chylex febeb3bbe5
Refactor configuration loading and error handling 2023-07-06 11:51:22 +02:00
chylex a241b313ae
Refactor logger construction and error handling 2023-07-06 10:09:30 +02:00
chylex 7f8b140d4a
Reorganize source code directories 2023-07-05 11:03:12 +02:00
chylex 0df317e34c
Add .idea folder to .gitignore 2023-07-04 23:21:12 +02:00
chylex aad22aba76
Add support for multiple accounts with own SMTP remotes 2023-07-03 11:39:08 +02:00
chylex 882f78b7f2
Add Dockerfile 2023-07-03 08:11:22 +02:00
chylex a4a97716e2
Change hasher utility to accept passwords from stdin 2023-07-03 08:10:10 +02:00
chylex 7a6128c724
Update smtpd dependency to latest commit 2023-07-03 08:09:14 +02:00
Bernhard Froehlich 6857874c88
Fix Release workflow 2023-06-16 06:54:15 +00:00
Bernhard Froehlich 9051ffddf7
Fix Go CI action 2023-06-16 06:39:24 +00:00
Bernhard Froehlich 7e318cbcbc
Bump minimum Go version to 1.20 2023-06-16 06:31:10 +00:00
Bernhard Froehlich 5d625efa45
Bump Go version for CI and release builds to 1.20 2023-06-16 06:25:09 +00:00
Bernhard Fröhlich df0580c8e6
Merge pull request #119 from decke/dependabot/go_modules/golang.org/x/crypto-0.10.0
Bump golang.org/x/crypto from 0.9.0 to 0.10.0
2023-06-14 16:09:30 +02:00
dependabot[bot] 3697382181
Bump golang.org/x/crypto from 0.9.0 to 0.10.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.9.0 to 0.10.0.
- [Commits](https://github.com/golang/crypto/compare/v0.9.0...v0.10.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-14 10:57:05 +00:00
Bernhard Fröhlich 76ecb52831
Merge pull request #116 from decke/dependabot/go_modules/github.com/stretchr/testify-1.8.4
Bump github.com/stretchr/testify from 1.8.3 to 1.8.4
2023-06-12 16:01:06 +02:00
dependabot[bot] c7651c36a3
Bump github.com/stretchr/testify from 1.8.3 to 1.8.4
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.3 to 1.8.4.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.3...v1.8.4)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-12 11:08:39 +00:00
Bernhard Fröhlich b4cef48825
Merge pull request #118 from decke/dependabot/go_modules/github.com/peterbourgon/ff/v3-3.3.2
Bump github.com/peterbourgon/ff/v3 from 3.3.1 to 3.3.2
2023-06-12 13:05:10 +02:00
dependabot[bot] 620355677d
Bump github.com/peterbourgon/ff/v3 from 3.3.1 to 3.3.2
Bumps [github.com/peterbourgon/ff/v3](https://github.com/peterbourgon/ff) from 3.3.1 to 3.3.2.
- [Release notes](https://github.com/peterbourgon/ff/releases)
- [Commits](https://github.com/peterbourgon/ff/compare/v3.3.1...v3.3.2)

---
updated-dependencies:
- dependency-name: github.com/peterbourgon/ff/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-12 10:57:36 +00:00
Bernhard Fröhlich ab24fb4427
Merge pull request #117 from decke/dependabot/go_modules/github.com/sirupsen/logrus-1.9.3
Bump github.com/sirupsen/logrus from 1.9.2 to 1.9.3
2023-06-07 08:36:40 +02:00
dependabot[bot] 71fcfb8f0d
Bump github.com/sirupsen/logrus from 1.9.2 to 1.9.3
Bumps [github.com/sirupsen/logrus](https://github.com/sirupsen/logrus) from 1.9.2 to 1.9.3.
- [Release notes](https://github.com/sirupsen/logrus/releases)
- [Changelog](https://github.com/sirupsen/logrus/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sirupsen/logrus/compare/v1.9.2...v1.9.3)

---
updated-dependencies:
- dependency-name: github.com/sirupsen/logrus
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-05 10:57:29 +00:00
Bernhard Fröhlich 68cc6954d0
Merge pull request #115 from decke/dependabot/go_modules/github.com/stretchr/testify-1.8.3
Bump github.com/stretchr/testify from 1.8.2 to 1.8.3
2023-05-20 17:38:03 +02:00
dependabot[bot] b0001c4842
Bump github.com/stretchr/testify from 1.8.2 to 1.8.3
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.2 to 1.8.3.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.2...v1.8.3)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-19 10:57:09 +00:00
Bernhard Fröhlich 330ecc9603
Merge pull request #114 from decke/dependabot/go_modules/github.com/sirupsen/logrus-1.9.2
Bump github.com/sirupsen/logrus from 1.9.0 to 1.9.2
2023-05-18 13:13:24 +02:00
dependabot[bot] eb670615d2
Bump github.com/sirupsen/logrus from 1.9.0 to 1.9.2
Bumps [github.com/sirupsen/logrus](https://github.com/sirupsen/logrus) from 1.9.0 to 1.9.2.
- [Release notes](https://github.com/sirupsen/logrus/releases)
- [Changelog](https://github.com/sirupsen/logrus/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sirupsen/logrus/compare/v1.9.0...v1.9.2)

---
updated-dependencies:
- dependency-name: github.com/sirupsen/logrus
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-18 10:57:12 +00:00
Bernhard Fröhlich ab5d3e3aa7
Merge pull request #112 from decke/dependabot/go_modules/golang.org/x/crypto-0.9.0
Bump golang.org/x/crypto from 0.8.0 to 0.9.0
2023-05-09 13:09:49 +02:00
Bernhard Fröhlich 7b962e06e5
Merge pull request #111 from decke/dependabot/go_modules/github.com/peterbourgon/ff/v3-3.3.1
Bump github.com/peterbourgon/ff/v3 from 3.3.0 to 3.3.1
2023-05-09 13:09:27 +02:00
dependabot[bot] 3e49c58b95
Bump golang.org/x/crypto from 0.8.0 to 0.9.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.8.0 to 0.9.0.
- [Commits](https://github.com/golang/crypto/compare/v0.8.0...v0.9.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-09 10:57:09 +00:00
dependabot[bot] f7df20258e
Bump github.com/peterbourgon/ff/v3 from 3.3.0 to 3.3.1
Bumps [github.com/peterbourgon/ff/v3](https://github.com/peterbourgon/ff) from 3.3.0 to 3.3.1.
- [Release notes](https://github.com/peterbourgon/ff/releases)
- [Commits](https://github.com/peterbourgon/ff/compare/v3.3.0...v3.3.1)

---
updated-dependencies:
- dependency-name: github.com/peterbourgon/ff/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-09 10:57:05 +00:00
Bernhard Fröhlich b2544f8da8
Merge pull request #110 from decke/dependabot/github_actions/wangyoucao577/go-release-action-1.38
Bump wangyoucao577/go-release-action from 1.37 to 1.38
2023-05-01 18:47:00 +02:00
dependabot[bot] a2e2ab7592
Bump wangyoucao577/go-release-action from 1.37 to 1.38
Bumps [wangyoucao577/go-release-action](https://github.com/wangyoucao577/go-release-action) from 1.37 to 1.38.
- [Release notes](https://github.com/wangyoucao577/go-release-action/releases)
- [Commits](https://github.com/wangyoucao577/go-release-action/compare/v1.37...v1.38)

---
updated-dependencies:
- dependency-name: wangyoucao577/go-release-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-05-01 10:57:42 +00:00
Bernhard Fröhlich 755b8b2d8e
Merge pull request #109 from decke/dependabot/go_modules/golang.org/x/crypto-0.8.0
Bump golang.org/x/crypto from 0.7.0 to 0.8.0
2023-04-07 13:29:52 +02:00
dependabot[bot] a632f62b45
Bump golang.org/x/crypto from 0.7.0 to 0.8.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.7.0 to 0.8.0.
- [Release notes](https://github.com/golang/crypto/releases)
- [Commits](https://github.com/golang/crypto/compare/v0.7.0...v0.8.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-07 10:57:15 +00:00
Bernhard Fröhlich 10100b140d
Merge pull request #108 from decke/dependabot/github_actions/wangyoucao577/go-release-action-1.37
Bump wangyoucao577/go-release-action from 1.36 to 1.37
2023-03-21 12:09:18 +01:00
dependabot[bot] 0f95efa66f
Bump wangyoucao577/go-release-action from 1.36 to 1.37
Bumps [wangyoucao577/go-release-action](https://github.com/wangyoucao577/go-release-action) from 1.36 to 1.37.
- [Release notes](https://github.com/wangyoucao577/go-release-action/releases)
- [Commits](https://github.com/wangyoucao577/go-release-action/compare/v1.36...v1.37)

---
updated-dependencies:
- dependency-name: wangyoucao577/go-release-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-21 10:57:22 +00:00
Bernhard Fröhlich 34d61707ab
Merge pull request #107 from decke/dependabot/github_actions/actions/setup-go-4
Bump actions/setup-go from 3 to 4
2023-03-16 16:20:55 +01:00
dependabot[bot] e032832820
Bump actions/setup-go from 3 to 4
Bumps [actions/setup-go](https://github.com/actions/setup-go) from 3 to 4.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](https://github.com/actions/setup-go/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-16 10:19:08 +00:00
Bernhard Froehlich 2affd381ba
Update go dependencies 2023-03-06 15:34:22 +00:00
Bernhard Fröhlich d86165d5e4
Merge pull request #106 from decke/dependabot/go_modules/golang.org/x/crypto-0.7.0
Bump golang.org/x/crypto from 0.6.0 to 0.7.0
2023-03-06 16:31:38 +01:00
dependabot[bot] e611751852
Bump golang.org/x/crypto from 0.6.0 to 0.7.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/golang/crypto/releases)
- [Commits](https://github.com/golang/crypto/compare/v0.6.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-06 10:58:26 +00:00