bitnami / vms

Bitnami VMs
https://bitnami.com
Other
206 stars 43 forks source link

[Redmine] sending mail connection refused #1436

Closed paincoder closed 5 months ago

paincoder commented 7 months ago

Describe your issue as much as you can

Dear bitnami/redmine

We are encoutnering email notification. Kindly see the below configuration settings and error details. Please help it is urgent issue. Thank you so much for help.

image

image

Error Details: I, [2024-03-06T06:53:55.816076 #2613202] INFO -- : [5a51388d-9828-49f7-b599-fc914fd54814] [ActiveJob] [ActionMailer::MailDeliveryJob] [74c2cdcb-3a63-4cd1-8708-85fee7f95d69] Rendered mailer/issue_edit.text.erb within layouts/mailer (Duration: 14.3ms | Allocations: 7463) I, [2024-03-06T06:53:55.816211 #2613202] INFO -- : [5a51388d-9828-49f7-b599-fc914fd54814] [ActiveJob] [ActionMailer::MailDeliveryJob] [74c2cdcb-3a63-4cd1-8708-85fee7f95d69] Rendered layout layouts/mailer.text.erb (Duration: 14.4ms | Allocations: 7505) I, [2024-03-06T06:53:55.819341 #2613202] INFO -- : [5a51388d-9828-49f7-b599-fc914fd54814] [ActiveJob] [ActionMailer::MailDeliveryJob] [74c2cdcb-3a63-4cd1-8708-85fee7f95d69] Rendered mailer/issue_edit.html.erb within layouts/mailer (Duration: 2.6ms | Allocations: 1537) I, [2024-03-06T06:53:55.819814 #2613202] INFO -- : [5a51388d-9828-49f7-b599-fc914fd54814] [ActiveJob] [ActionMailer::MailDeliveryJob] [74c2cdcb-3a63-4cd1-8708-85fee7f95d69] Rendered layout layouts/mailer.html.erb (Duration: 3.1ms | Allocations: 2009) E, [2024-03-06T06:53:55.828124 #2613202] ERROR -- : [5a51388d-9828-49f7-b599-fc914fd54814] [ActiveJob] [ActionMailer::MailDeliveryJob] [74c2cdcb-3a63-4cd1-8708-85fee7f95d69] Email delivery error: Connection refused - connect(2) for 127.0.0.1:25 I, [2024-03-06T06:53:55.828254 #2613202] INFO -- : [5a51388d-9828-49f7-b599-fc914fd54814] [ActiveJob] [ActionMailer::MailDeliveryJob] [74c2cdcb-3a63-4cd1-8708-85fee7f95d69] Performed ActionMailer::MailDeliveryJob (Job ID: 74c2cdcb-3a63-4cd1-8708-85fee7f95d69) from Inline(mailers) in 34.57ms I, [2024-03-06T06:53:55.828501 #2613202] INFO -- : [5a51388d-9828-49f7-b599-fc914fd54814] [ActiveJob] Enqueued ActionMailer::MailDeliveryJob (Job ID: 74c2cdcb-3a63-4cd1-8708-85fee7f95d69) to Inline(mailers) with arguments: "Mailer", "issue_edit", "deliver_now", {:args=>[#<GlobalID:0x00007fd8d07bdd50 @uri=#<URI::GID gid://redmine-app/User/167>>, #<GlobalID:0x00007fd8d07bd760 @uri=#<URI::GID gid://redmine-app/Journal/110360>>]}

Thansk & Regards, Ye

mdhont commented 7 months ago

Did you follow this guide:

https://docs.bitnami.com/virtual-machine/apps/redmine/configuration/configure-smtp/

paincoder commented 7 months ago

Did you follow this guide:

https://docs.bitnami.com/virtual-machine/apps/redmine/configuration/configure-smtp/

I've tried as above guide link. But it still doesn't work.

I tried the below setting as well. It could not be help. May I ask could it be network related issue? image

Thanks & Regards Ye

mdhont commented 7 months ago

Did you configure the domain and https?

paincoder commented 6 months ago

Hi @mdhont,

I will check and get back to you.

Thanks & Regards, Ye

paincoder commented 6 months ago

Hi @mdhont

Yes, we configured https and domain (under opt/bitnami/redmine/config/configuration.yml) already.

image

image

Thanks & Regards, Ye

mdhont commented 6 months ago

Could you try using port 587 as mentioned in the guide?

paincoder commented 6 months ago

Could you try using port 587 as mentioned in the guide?

Hi mdhont,

We are not using gmail smtp. Our mail server port is 25.

Thanks & Regards, Ye

mdhont commented 6 months ago

Is port 25 accesible?

telnet localhost 25
paincoder commented 6 months ago

Is port 25 accesible?

telnet localhost 25

Email is still issue: image

for localhost image

for email server image

Please check. Thanks

paincoder commented 6 months ago

Please close this case. Finally Email notification works. We found typo in config file. lol

github-actions[bot] commented 5 months ago

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

github-actions[bot] commented 5 months ago

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.