Jonathon Reinhart
76ef135d33
Clarify allowed_sender/allowed_recipient empty string behavior
2021-03-14 12:36:34 -04:00
Jonathon Reinhart
918df65a3a
Require that networks in allowed_nets are networks and not hosts
2021-03-13 20:40:25 -05:00
Jonathon Reinhart
0503c12ccd
Allow "allowed_nets" to be empty, meaning any network is allowed
2021-03-13 20:34:48 -05:00
Jonathon Reinhart
20ca816160
Discard mail if remote_host is not set
...
This is useful for test environments.
2021-03-13 09:28:04 -05:00
Jonathon Reinhart
9921b38046
Explicitly configure default logfile for stderr
2021-03-13 03:25:57 -05:00
Jonathon Reinhart
095fba119a
Change default logfile to empty string (meaning stderr)
...
The causes logrus to write to stderr.
2021-03-13 03:25:57 -05:00
Jonathon Reinhart
34cb47c364
Implement structured logs using logrus
...
This was based loosely on an earlier implementation by
Danny Kopping <danny.kopping@grafana.com >
2021-03-13 03:25:57 -05: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
Simon Legner
999cfea307
Fix typo "addresses"
2020-09-03 14:06:20 +02:00
Bernhard Froehlich
53c2c27647
Support LOGIN authentication on outgoing SMTP server
...
PR: #1
Obtained from: https://gist.github.com/andelf/5118732
2020-05-15 21:08:17 +00:00
Carlos Alberto Costa Beppler
769193ea4d
Adjust the description of remote_sender parameter.
...
It represents the e-mail address used while sending message to the outgoing SMTP server.
2019-09-06 21:00:35 -03:00
Bernhard Froehlich
ade7cbca36
Rename to smtprelay
2018-12-29 12:39:56 +00:00