postalserver / postal

📮 A fully featured open source mail delivery platform for incoming & outgoing e-mail
https://postalserver.io
MIT License
14.76k stars 1.04k forks source link

Routing: can not add additional routes of other type #3149

Open McPizza0 opened 1 week ago

McPizza0 commented 1 week ago

Describe the bug

cant add additional endpoints to routes primary route is http tried adding address and smtp both fail - across all mailservers

client shows an error

and server has the following in web logs 2024-08-28 19:35:42 +0000 INFO PATCH /org/o-01j1cm9w4yekzadw53m5h7cck1/servers/ps-01j5v9q80me2rthbstckv5j55j/routes/3bb98586-e516-403c-9ca8-717bd0d8214d (422) event=request transaction=3548acaa939bcec574ad controller=RoutesController action=update format=json method=PATCH path=/org/o-01j1cm9w4yekzadw53m5h7cck1/servers/ps-01j5v9q80me2rthbstckv5j55j/routes/3bb98586-e516-403c-9ca8-717bd0d8214d request_id=aa6927c4-5726-43d0-8f39-7c82a41865c4 ip_address=79.xx.xx.96 status=422 view_runtime=0.13073720037937164 db_runtime=344.69743728637695

-- with primary = http endpoint i can only add more http endpoints cant add smtp or address

if SMTP is primary can add http as secondary but incoming messages are sent to SMTP endpoint ONLY not sent to http endpoint

To Reproduce

add http route as primary add smtp route as secondary - see error

- add smtp as primary add http/address as secondary send mail mail only delivered to primary

Expected behaviour

to be able to add and mix various route types as primary/secondary and for all mail to be delivered to all destinations correctly

Environment details

willpower232 commented 6 days ago

I am unable to replicate this on version 3.3.4, can you try updating your Postal to the latest version?