Connection refused

Infos:

  • Used Zammad version: 6.4.1-1733418007.181ec27f.centos8
  • Used Zammad installation type: package
  • Operating system: AlmaLinux 8.10 (Cerulean Leopard)
  • Browser + version: Chromium 124.0.6367.218

Hi, I’m trying to configure my first email channel on Zammad. First I configured email notificacion settings. This went ok.

After, I started adding my first email account. First it was thinking for a long time and returned an 504.

When trying again, when I input email account again, when hitting continue in IMAP settings, it marks host input red, with a red message at the top: Connection refused.

I’ve checked production.log and seems like connection is really ok:

I, [2024-12-06T04:39:33.583544#694-184640]  INFO -- : Started POST "/api/v1/channels_email_notification" for 81.32.19.32 at 2024-12-06 04:39:33 +0100
I, [2024-12-06T04:39:33.595296#694-184640]  INFO -- : Processing by ChannelsEmailController#notification as JSON
I, [2024-12-06T04:39:33.595419#694-184640]  INFO -- :   Parameters: {"adapter"=>"smtp", "options"=>{"host"=>"mail.domain.es", "user"=>"mail@domain.es", "password"=>"[FILTERED]", "port"=>"587", "ssl_verify"=>true}, "channel_id"=>1}
I, [2024-12-06T04:39:33.671131#694-184640]  INFO -- : Completed 200 OK in 75ms (Views: 0.8ms | ActiveRecord: 8.8ms | Allocations: 6911)

Strangely enough, if I now try to resend notification email settings, it also gives me this Conexión rechazada / Connection refused error at the top.

My mail server is selfhosted at a Plesk instance.

How may I debug this?

Thanks.

Expected behavior:

  • Add email account

Actual behavior:

  • Form says “Connection refused” on mail host.

Steps to reproduce the behavior:

  • Zammad > Manage > Channels > Email > Accounts > New

Zammad cannot connect to your Mail Server as it refuses the connection. Check your firewalls etc. This is not a Zammad issue.