postalserver / postal

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

BUG: routed emails not sent when ClamAV is enabled. #2989

Open Reftek85 opened 6 months ago

Reftek85 commented 6 months ago

Describe the bug

When clamav is enabled, I can send emails using the SMTP connector with an SMTP key, but when I try to reply to an email that was sent from the SMTP that try to use a route and an address endpoint, it cannot send the mail the message is stuck in "Incoming Messages" with this error message

May 24, 2024 12:34 Error An internal error occurred while sending this message. This message will be retried automatically. TypeError: no implicit conversion of Array into String

To Reproduce

1 clamav installed 2 postal.yml clamav: enabled: true host: 127.0.0.1 port: 2000 3 postal restart 4 new email to route1@domain.com from your prefered email client application 5 mail comes in and stays stuck

Expected behaviour

message should be sent to the route

Screenshots

image image

Environment details

Additional information/context

same error mentionned here #2941

uhlhosting commented 6 months ago

@Reftek85 one thing is certain, in my case I get this error and my clamav is not running.

clamav:
  enabled: false
  host: 127.0.0.1
  port: 2000
WEBDIENSTE commented 1 month ago

+1

uhlhosting commented 1 month ago

@Reftek85 make sure your spamd / spamassassin is running.