Adam Cooke
0f9882f132
refactor: remove explicit autoload
2024-01-30 09:15:25 +00:00
Charlie Smurthwaite
8b525d0381
fix: match IPv4 mapped IPv6 addresses when searching for SMTP-IP credentials
2023-05-15 01:10:43 +01:00
Charlie Smurthwaite
f0a8aca6e1
fix: duplicate string before modifying it to prevent frozen string errors
2023-05-15 00:52:32 +01:00
Adam Cooke
957b784658
chore: Upgrade to Ruby 3.2.1 & Rails 6.0
...
* chore: upgrade to rails 6.0
* chore: upgrade ruby to 3.2.1
* chore: upgrade bundler
* chore: upgrade execjs
* chore: upgrade to rails 6.1
* chore: switch to sentry-ruby from raven
* chore: add extra platforms to gemfile
2023-04-06 11:40:45 +01:00
Charlie Smurthwaite
159509a3ed
Connect to SMTP by IP addresses rather than hostname
2023-03-22 14:46:06 +00:00
Joost Kalwij - van Horssen
c6fb8d223b
Make resent-sender header optional ( #2384 )
2023-03-22 14:01:04 +00:00
Charlie Smurthwaite
1e3622c49a
Consistently treat tinyint(1) fields in message database as booleans ( #2380 )
...
* Update mysql2 query call to cast booleans
* Treat messages:held field as boolean
* Treat messages:inspected field as boolean
* Treat messages:spam field as boolean
* Treat messages:threat field as boolean
* Treat messages:bounce field as boolean
* Treat messages:received_with_ssl field as boolean
* Treat deliveries:sent_with_ssl field as boolean
2023-03-22 13:49:48 +00:00
Charlie Smurthwaite
87e9b3e346
Use DKIM identifier from config file instead of hardcoded value
2023-03-17 12:25:10 +00:00
Charlie Smurthwaite
fd289c46fd
style(rubocop): fix all safe auto correctable offenses
2023-03-16 15:50:53 +00:00
Florent Poinsaut
2e82deebae
Allow SMTP server to load different key types ( #2126 )
2023-03-13 14:11:10 +00:00
Charlie Smurthwaite
a188a161cb
Truncate 'output' field to avoid overflowing varchar(512) in database
2023-03-13 13:50:16 +00:00
wadabum
9b1ed1e7e1
Log access CRAM-MD5 authentication failures ( #2304 )
...
see https://github.com/postalserver/postal/issues/1182#issuecomment-1360832523
2023-03-13 11:41:51 +00:00
Wouter van Os
9f4ef8f57a
fix: do not change \r to \r\n ( #2154 )
...
As this may cause issues when a new buffer is exactly in between \r and \n.
Fixes #1624
2023-01-23 15:09:35 +00:00
Charlie Smurthwaite
a7dd19baac
Use non-blocking function to negotiate TLS connections
2022-11-09 13:55:17 +00:00
Adam Cooke
0dc6824a8f
fix: retry connections without SSL when SSL issue is encountered during smtp sending
2022-09-12 12:48:49 +01:00
Grex
6bace2c905
Add explicit DNS timeout
...
This makes DNS timeouts occur much more quickly and avoid clients with nonfunctional reverse DNS timing out while waiting for a response to their EHLO requests.
2022-08-17 11:13:24 +01:00
Dmitriy Alekseev
9f0697f194
feat: support for AMQPS for rabbitmq connections ( #1911 )
...
* Support AMQPS
* Update rabbit_mq.rb
2022-03-16 09:38:13 +00:00
Adam Cooke
d22237d0ec
chore: support for different postal environments
2022-02-14 14:35:01 +00:00
Ayoub AMINE
1beb30869a
Remove duplicate character
2021-11-19 13:23:38 +01:00
Adam Cooke
232b605f5b
fix(dkim): fixes timing race condition when signing emails
...
closes #1652
2021-10-21 08:55:04 +00:00
Adam Cooke
a1277baba5
feat: support for using rspamd for spam filtering
2021-08-02 19:57:33 +00:00
Adam Cooke
dfe1970afb
refactor: refactor message inspectors into own classes
2021-08-02 15:55:47 +00:00
Adam Cooke
2a11e0c0a5
fix(logging): fix spelling of graylog
2021-08-02 14:43:06 +00:00
Adam Cooke
476129cc1b
fix(dkim): ensure DKIM-Signature headers are appropriately wrapped
...
closes #339
2021-08-01 21:00:37 +00:00
Adam Cooke
1247dae2e0
feat(ui): add footer with links to docs and discussions
2021-07-30 19:41:14 +00:00
Adam Cooke
4e5b621232
refactor: remove old logging defaults based on /opt/postal
2021-07-29 16:25:25 +00:00
Adam Cooke
5cd06e126b
fix: remove a few leftover fast server artifacts
2021-07-29 16:10:53 +00:00
Adam Cooke
17dd7cc757
refactor: remove the fast server
2021-07-29 11:20:47 +00:00
Adam Cooke
8e3294ba1a
feat(config): support for loading a postal.local.yml config file from the config root if it exists
2021-07-29 11:16:44 +00:00
Adam Cooke
189dfa509b
fix(dkim): fixes bug with signing dkim bodies
2021-07-28 17:01:42 +00:00
Adam Cooke
e9a52e9512
refactor(dkim_signing): refactor dkim signing with direct reference to RFC
2021-07-28 14:15:50 +00:00
Adam Cooke
52a23fa86f
fix: replace Fixnum with Integer
...
closes #996
2021-07-28 08:53:05 +00:00
Vishnu Sudhakaran
e8ba9ee427
fix(smtp_server): updated line split logic, normalize all linebreaks to \r\n ( #897 )
...
Co-authored-by: Vishnu S <vishnu@zerodha.com >
2021-07-27 23:15:38 +01:00
Will Power
670ea65712
fixes for link conversion ( #296 )
2021-07-27 23:08:53 +01:00
Adam Cooke
4a410c8c9f
feat(smtp_server): allow bind address to be configured
...
closes #1166
2021-07-27 22:00:16 +00:00
Adam Cooke
e0ba05acb1
fix(smtp_server): fixes issue with malformed rcpt to
...
closes #1299
closes #1019
2021-07-27 14:32:29 +00:00
Adam Cooke
bc22394fdd
fix(smtp_server): refactor mx lookups to randomly order mx records with the same priority
...
closes #1408
closes #1405
2021-07-27 14:07:38 +00:00
Adam Cooke
fcb63616e1
fix(smtp_server): attempt to redact plain-text passwords from log output
2021-07-27 13:10:32 +00:00
Adam Cooke
c09ab62d0c
chore: various tweaks to support running tests in the CI
2021-07-26 17:40:56 +00:00
Adam Cooke
1d22ca0f85
fix: always obey POSTAL_CONFIG_ROOT
2021-07-26 11:21:26 +00:00
Jim
70d9ba6d09
Add log line for failed authentication attempts
...
Resolves #1182
2020-10-01 12:35:34 +01:00
Charlie Smurthwaite
044edd9afa
renumber migration
2020-10-01 10:53:07 +01:00
Charlie Smurthwaite
1ecc4684cd
Truncate long message subjects when storing metadata
...
This avoids SQL errors dropping messages when subjects are too long.
2020-10-01 10:45:30 +01:00
Charlie Smurthwaite
752558f0f3
Change SQL charset for message_db to utf8mb4
...
Squashed commit of the following:
commit c434c868d111fd091f638216e2dec2685c7ac296
Author: Charlie Smurthwaite <charlie@krystal.uk >
Date: Thu Oct 1 10:37:17 2020 +0100
change utf8mb4_bin to utf8mb4_unicode_ci
commit 68031c470b41edd9906e3b10ccbb6d2c71a2c9a7
Merge: 9f277d4 9b98339
Author: Charlie Smurthwaite <charlie@krystal.uk >
Date: Thu Oct 1 10:29:02 2020 +0100
Merge remote-tracking branch 'origin/master' into mb4
commit 9f277d4ce2
Author: Petter Helset <petter@helset.eu >
Date: Thu Oct 26 15:15:16 2017 +0200
Migrate message database with main database
commit 3be337e265
Author: Petter Helset <petter@helset.eu >
Date: Thu Oct 26 14:45:26 2017 +0200
Migrations for existing messagedbs to utf8mb4
commit 3d8d3956fe
Author: Petter Helset <petter@helset.eu >
Date: Thu Oct 26 13:49:57 2017 +0200
Change SQL charset for message_db to utf8mb4
2020-10-01 10:39:30 +01:00
Dmitriy Alekseev
71b059f9d2
Add common DKIM headers ( #1218 )
...
Add commonly used headers to DKIM signatures
2020-09-30 16:04:36 +01:00
Charlie Smurthwaite
9a3d568b27
Add IP-based SMTP authentication ( #1149 )
2020-07-17 11:43:51 +01:00
Will Power
5c7802d218
add migration to increase links url size ( #683 )
2020-07-17 10:38:04 +01:00
Will Power
73b4afdb2b
Bypass for newer OpenSSL versions ( #999 )
2020-07-17 10:35:24 +01:00
Adam Cooke
b08af5ab7d
Add docker
2020-02-12 16:29:32 +00:00
Dan Pastori
7e5403ace1
Add reply_to in JSON API ( #850 )
2019-12-05 17:25:36 +00:00