Adam Cooke
0c1f9250d4
docs: add message_db.encoding to config docs
2024-03-01 21:36:19 +00:00
Adam Cooke
fadca88f45
fix: raise an error if MX lookup times out during sending
...
This avoids potentially sending mail to the A record when an MX query times out.
closes #2833
2024-03-01 21:36:07 +00:00
Adam Cooke
77e818a472
test: add test for multiline headers
2024-03-01 18:28:25 +00:00
Adam Cooke
2621a190b1
fix: fixes issue with SMTP sender with address endpoints
2024-03-01 18:27:53 +00:00
Adam Cooke
0140dc4483
feat: only accept RFC-compliant End-of-DATA sequence
...
Previously Postal was fairly forgiving about line endings. This requires that the end of data sequence is `<CR><LF>.<CR><LF>`.
2024-03-01 17:12:10 +00:00
Adam Cooke
a9ade3c8bc
chore(gha): upgrade github checkout action, don't create arm images for CI, add qemu
2024-03-01 13:08:11 +00:00
Adam Cooke
0b468f97c5
chore: remove -j4 from bundle install as it shouldn't be needed
2024-03-01 13:00:10 +00:00
Adam Cooke
afa1726d0d
docs: add new repo readme welcome image
...
Signed-off-by: Adam Cooke <adam@krystal.io >
2024-03-01 12:43:53 +00:00
Adam Cooke
7963c8af16
chore: consolidate platforms in Gemfile
2024-03-01 11:00:26 +00:00
Adam Cooke
1d094be652
Merge pull request #2829 from postalserver/refactor-smtp-sender
...
Refactor SMTP Sender
2024-03-01 10:56:40 +00:00
Adam Cooke
5b022b9394
chore: reduce threads for bundling in docker
2024-03-01 10:21:51 +00:00
Adam Cooke
633c509a45
refactor: refactor the SMTP sender
2024-03-01 09:54:22 +00:00
Charlie Smurthwaite
be0df7b463
fix: translate unicode domain names to Punycode for compatibility with DNS ( #2823 )
2024-02-29 15:02:30 +00:00
Adam Cooke
ae30cc7615
fix: ensure encoding is set for message db
2024-02-27 19:04:40 +00:00
Adam Cooke
de88201f61
chore: add arm64 platform
2024-02-27 08:07:39 +00:00
Adam Cooke
0163ac3d10
feat: new configuration system (and schema) ( #2819 )
2024-02-26 12:41:57 +00:00
Adam Cooke
1c5ff5a9a6
feat: add option to delay starting processes until all migrations are run
2024-02-24 15:10:02 +00:00
Adam Cooke
bea7450d8f
feat: add prometheus metrics to worker
2024-02-24 11:19:48 +00:00
Adam Cooke
0fcf778a51
fix: fixes potential issue if machine hostname cannot be determined
2024-02-24 11:03:04 +00:00
Adam Cooke
2e7b36c1be
feat: add prometheus metrics to smtp server
2024-02-24 11:01:28 +00:00
Adam Cooke
a7a9a18b20
fix: set correct component in health server log lines
2024-02-24 10:24:34 +00:00
Adam Cooke
a2eb70edf1
feat: add health server and prometheus metrics to worker
2024-02-23 22:51:38 +00:00
Adam Cooke
1ae8ef6401
chore: upgrade bundler to 2.5.6
2024-02-23 22:51:37 +00:00
Adam Cooke
b89e0a9e82
refactor: remove token logins
2024-02-23 22:51:37 +00:00
Adam Cooke
ecd09a2445
chore: upgrade rails to 7.0 and other dependencies
2024-02-23 22:51:37 +00:00
Adam Cooke
cfc1c9b73e
docs: update SECURITY policy
2024-02-23 22:51:37 +00:00
Adam Cooke
38465de120
refactor: remove unnecessary modules
2024-02-23 22:51:37 +00:00
Adam Cooke
b8ad732152
refactor: move tracking middleware
2024-02-23 22:51:37 +00:00
Adam Cooke
64b2704b02
refactor: move lib/postal/user_creator to app/util/user_creator
2024-02-23 22:51:37 +00:00
Adam Cooke
e3bc9da253
refactor: move lib/postal/received_header to app/lib/received_header
2024-02-23 22:51:36 +00:00
Adam Cooke
5cc9eb3df7
refactor: move lib/postal/reply_separator to app/lib/reply_separator
2024-02-23 22:51:36 +00:00
Adam Cooke
321ab95936
refactor: move lib/postal/smtp_server to app/lib/smtp_server
2024-02-23 22:51:36 +00:00
Adam Cooke
73a55a5053
refactor: move senders in to app/senders/
2024-02-23 22:51:36 +00:00
Adam Cooke
eb246bb4e7
refactor: move app/util/* to app/lib/
2024-02-23 22:51:36 +00:00
Adam Cooke
93fc120f44
refactor: move worker from lib/worker to app/lib/worker
2024-02-23 22:51:36 +00:00
Adam Cooke
a44e1f9081
refactor: refactors message dequeueing ( #2810 )
2024-02-23 22:51:36 +00:00
Adam Cooke
07eb15246f
docs: update docs for how IP address allocation works
...
closes #2209
2024-02-23 22:51:35 +00:00
Adam Cooke
870b26c2f2
refactor: move Postal::QueryString to app/util/query_string
2024-02-23 22:51:35 +00:00
Adam Cooke
05d2ec4d04
refactor: move Postal::BounceMessage to app/models/bounce_message
2024-02-23 22:51:35 +00:00
Adam Cooke
77faf886b3
refactor: move Postal::DKIMHeader to app/util/dkim_header
2024-02-23 22:51:35 +00:00
Adam Cooke
ed6da11b65
chore: add annotations to factories and models specs
2024-02-23 22:51:35 +00:00
Adam Cooke
8765d8e57a
test: add tests for DNSResolver
2024-02-23 22:51:35 +00:00
Adam Cooke
ee86311525
test: move Postal::RpecHelpers to spec/helpers
2024-02-23 22:51:35 +00:00
Adam Cooke
1a4158699c
refactor: refactor DNS resolution
...
This commit also adds some of tests for the Domain model. It was during the writing of these tests that the DNS resolution refactoring requirement became apparent.
2024-02-23 22:51:34 +00:00
Adam Cooke
3bbbc70bc1
test: move TestLogger to spec/helpers
2024-02-23 22:51:34 +00:00
Adam Cooke
2023200d91
test: add tests for Server model
2024-02-23 22:51:34 +00:00
Adam Cooke
8b61100082
test: additional tests for batched messages when unqueueing messages
2024-02-23 22:51:34 +00:00
Adam Cooke
27b7ced3bc
chore: remove non-breaking spaces from comments
2024-02-23 22:51:34 +00:00
Adam Cooke
b4016f6b49
test: add tests for message unqueueing
...
This adds a comprehensive set of tests for the message unqueueing service.
Additionally, it improves how message databases are used for testing environments.
2024-02-23 22:51:34 +00:00
Adam Cooke
465f4d8247
test: fix test that was failing due to time differences
2024-02-23 22:51:34 +00:00