Jonathon Reinhart
4fd6bb1004
Refactor common code in listener setup
2021-02-14 23:30:31 -05:00
Jonathon Reinhart
fd3f513b18
Don't run ListenAndServe in a goroutine
...
Any errors returned in ListenAndServe() (e.g. port already in use) will be
swallowed and not evident to the user.
2021-02-14 23:24:25 -05:00
Jonathon Reinhart
b202a2209e
Refactor out getTLSConfig()
2021-02-14 23:21:42 -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
Bernhard Fröhlich
5c2e28ac36
Merge pull request #7 from JonathonReinhart/allow-empty-auth-email
...
Allow email field to be empty in allowedUsers file to accept any sending address
2021-02-09 14:18:06 +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 Fröhlich
9040a456cf
Create codeql-analysis.yml
2020-09-28 21:26:31 +02:00
Bernhard Fröhlich
d5c5e25d03
Merge pull request #4 from simon04/addresses
...
Fix typo "addresses"
2020-09-04 15:14:35 +02:00
Simon Legner
999cfea307
Fix typo "addresses"
2020-09-03 14:06:20 +02:00
Bernhard Froehlich
f166c13350
Bump Version string
2020-06-14 18:51:16 +00:00
Bernhard Froehlich
ed1c3a9888
Merge branch 'master' of github.com:decke/smtprelay
2020-06-07 17:19:52 +00:00
Bernhard Froehlich
6f3bd16988
The check if authentication was properly done is redundant now as of smtpd v0.2.0
...
See: 32be721d71
2020-06-07 17:17:28 +00:00
Bernhard Froehlich
4e0bf0908d
Update dependencies
2020-06-07 17:15:57 +00:00
Bernhard Fröhlich
6662fb7155
Merge pull request #3 from nwillems/add-hasher-tool
...
Add helper to do hashing
2020-06-06 07:58:51 +02:00
Nicolai Willems
076fd65dea
Use default cost for bcrypt
2020-06-05 22:48:33 +02:00
Bernhard Froehlich
880c3c365c
Update dependencies and chrj/smtpd to latest master which contains a fix for us
2020-06-04 08:41:19 +00:00
Nicolai Willems
36673ae3f0
Add helper to do hashing
2020-05-24 21:07:29 +02:00
Bernhard Froehlich
b42ad6ddc9
Add release script as requested in #2
2020-05-20 18:33:40 +00:00
Bernhard Froehlich
999ccab778
Fix spelling
2020-05-16 10:44:04 +00: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
Bernhard Froehlich
2afbe67407
Add Go Report Card badge
2020-05-11 13:56:24 +00:00
Bernhard Froehlich
00b96161b3
Remove duplication of TLS cipher suites for tls:// and startssl://
2020-05-11 13:52:25 +00:00
Bernhard Froehlich
e10cbcdbb0
Update crypto dependency
2020-05-11 13:33:33 +00:00
Bernhard Froehlich
0e643f7230
Update CI to go 1.14
2020-03-02 10:46:59 +00:00
Bernhard Froehlich
324585c63c
Update list of cipher suites and add ciphers for TLS 1.3
2020-03-02 10:45:02 +00:00
Bernhard Froehlich
92cb02e46b
Update crypto dependency
2020-03-02 10:44:35 +00:00
Bernhard Froehlich
62fcc11f61
Update crypto dependency
2019-12-16 19:20:48 +00:00
Bernhard Froehlich
bfe8d39bb3
Merge branch 'master' of github.com:decke/smtprelay
2019-10-30 20:58:57 +00:00
Bernhard Froehlich
cbb6f523c5
Update crypto dependency
2019-10-30 20:57:38 +00:00
Bernhard Fröhlich
eb4a6b9eb6
Remove Travis CI
2019-10-20 13:24:42 +02:00
Bernhard Fröhlich
45db4ef786
Play with GitHub Actions
2019-10-20 13:21:39 +02:00
Bernhard Froehlich
946effcbcf
Use Go 1.13 for CI
2019-10-14 09:55:05 +00:00
Bernhard Froehlich
118d1b88c2
Add Travis CI support and remove drone.yml
2019-10-14 09:51:09 +00:00
Bernhard Froehlich
5fd6aad9b1
Update project URL from code.bluelife.at to GitHub
2019-10-14 09:29:49 +00:00
Bernhard Froehlich
21b597f351
Bump version to 1.3.0
2019-09-07 11:31:28 +00:00
Bernhard Froehlich
5f82b4736c
Update dependencies
2019-09-07 11:31:05 +00:00
Bernhard Fröhlich
de430286b3
Merge branch 'remote-sender' of beppler/smtprelay into master
2019-09-07 06:20:28 +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
Carlos Alberto Costa Beppler
0b65e904d8
Allows specify the sender used on SMTP conversation with outgoing server.
2019-09-06 17:07:37 -03:00
Bernhard Froehlich
2c9645ac68
Add drone config
2019-05-09 08:17:45 +00:00
Bernhard Froehlich
770e819e2b
Improve error checking
2019-02-21 08:29:49 +00:00
Bernhard Froehlich
d11f8d81ea
Fix formatting
2019-02-21 08:27:12 +00:00
Bernhard Froehlich
6270d75571
Improve TLS Config to prefer server ciphers, remove 3DES ciphers and require TLS 1.1 or higher
2019-01-08 15:09:29 +00:00
Bernhard Froehlich
92be537b25
Bump version to 1.2.0
2019-01-07 12:03:27 +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
Bernhard Froehlich
ab850e8765
Use proper hostname instead of "localhost" for outgoing mails
2018-12-28 15:40:43 +00:00
Bernhard Froehlich
a82b0faf96
Check sender email against auth file when user is authenticated
2018-12-28 15:30:55 +00:00