Commit Graph

8 Commits

Author SHA1 Message Date
Bernhard Froehlich 7f34fcbc99 gofmt: Fix formatting 2021-02-16 15:57:50 +00:00
Jonathon Reinhart 0e8986ca79 Expand allowedUsers email field to support comma-separated and domains (#9)
* Expand allowedUsers email field to support comma-separated and domains

Closes #8

* Refactor AuthFetch() to return AuthUser struct

Also, this breaks out a parseLine() function which can be easily tested.

* Ignore empty addrs after splitting commas

This ignores a trailing comma

* Add tests for auth parseLine()

* Update documentation in smtprelay.ini

* Fix bug where addrAllowed() was incorrectly case-sensitive

* Update allowedUsers allowed domain format to require leading @

This disambiguates a local user ('john.smith') from a domain ('example.com')
2021-02-14 22:16:18 +01:00
Jonathon Reinhart f33105f83c Allow email field to be empty in allowedUsers file
In this case, it is not checked.
2021-02-09 00:00:36 -05:00
Bernhard Froehlich d11f8d81ea Fix formatting 2019-02-21 08:27:12 +00:00
Bernhard Froehlich b9d1663a18 Fixes for new authentication code 2019-01-07 11:52:25 +00:00
Bernhard Froehlich 3a96014c70 Revert package renaming 2018-12-29 13:08:10 +00:00
Bernhard Froehlich ade7cbca36 Rename to smtprelay 2018-12-29 12:39:56 +00:00
Bernhard Froehlich ab341c697d Code refactoring and rename package 2018-12-29 12:24:32 +00:00