1
0
mirror of https://github.com/chylex/SMTP-Relay.git synced 2024-10-17 08:42:46 +02:00
Commit Graph

2 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