[GH-ISSUE #25] The system cannot send emails, settings ignored #20

Closed
opened 2026-02-26 09:35:13 +03:00 by kerem · 4 comments
Owner

Originally created by @NetRelay on GitHub (Sep 26, 2012).
Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/25

The system itself cannot send emails (e.g. by means of "Send Settings" button) because it open connection to port 25 and sends "EHLO localhost", instead of port 587 and a fqdn as a EHLO. Obviously:

Sep 26 08:37:44 mail3 postfix/smtpd[22477]: NOQUEUE: reject: RCPT from mail3[123.123.123.123]: 504 5.5.2 : Helo command rejected: need fully-qualified hostname; from=postmaster@domain.it to=test1@johndoe.com proto=ESMTP helo=

This happens because of "smtpd_recipient_restrictions" in postfix main.cf file:
"reject_non_fqdn_hostname"

Email should be sent through the submission port defined in master.cf

In application.ini I can read:

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; See: http://framework.zend.com/manual/en/zend.mail.smtp-authentication.html
;;
;; Ensure you have a working mail server configuration so the system can
;; send emails:
;;
resources.mailer.smtphost = "mail3.domain.it"
;resources.mailer.username = ""
;resources.mailer.password = "96"
;resources.mailer.auth = ""
;resources.mailer.ssl = ""
resources.mailer.port = "587"

But it doesn't work…

What am I missing? What am I doing wrong?

TIA…

Originally created by @NetRelay on GitHub (Sep 26, 2012). Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/25 The system itself cannot send emails (e.g. by means of "Send Settings" button) because it open connection to port 25 and sends "EHLO localhost", instead of port 587 and a fqdn as a EHLO. Obviously: Sep 26 08:37:44 mail3 postfix/smtpd[22477]: NOQUEUE: reject: RCPT from mail3[123.123.123.123]: 504 5.5.2 <localhost>: Helo command rejected: need fully-qualified hostname; from=postmaster@domain.it to=test1@johndoe.com proto=ESMTP helo=<localhost> This happens because of "smtpd_recipient_restrictions" in postfix main.cf file: "reject_non_fqdn_hostname" Email should be sent through the submission port defined in master.cf In application.ini I can read: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; See: http://framework.zend.com/manual/en/zend.mail.smtp-authentication.html ;; ;; Ensure you have a working mail server configuration so the system can ;; send emails: ;; resources.mailer.smtphost = "mail3.domain.it" ;resources.mailer.username = "" ;resources.mailer.password = "96" ;resources.mailer.auth = "" ;resources.mailer.ssl = "" resources.mailer.port = "587" But it doesn't work… What am I missing? What am I doing wrong? TIA…
kerem closed this issue 2026-02-26 09:35:13 +03:00
Author
Owner

@barryo commented on GitHub (Oct 10, 2012):

Thanks for this issue report. This issue is that the code uses Zend_Mail() directly in a number of places rather than using a mail resource and so these parameters are ignored.

This will be fixed in a future release.

<!-- gh-comment-id:9293791 --> @barryo commented on GitHub (Oct 10, 2012): Thanks for this issue report. This issue is that the code uses Zend_Mail() directly in a number of places rather than using a mail resource and so these parameters are ignored. This will be fixed in a future release.
Author
Owner

@barryo commented on GitHub (Sep 10, 2013):

Fixed in V3.

<!-- gh-comment-id:24149181 --> @barryo commented on GitHub (Sep 10, 2013): Fixed in V3.
Author
Owner

@etherden commented on GitHub (Aug 27, 2014):

Helo, I have version V3.0.10 and I have this troubles ):

<!-- gh-comment-id:53565771 --> @etherden commented on GitHub (Aug 27, 2014): Helo, I have version V3.0.10 and I have this troubles ):
Author
Owner

@vesl commented on GitHub (Mar 13, 2016):

Hi,
I guess have a solution.
I just commented this line resources.mailer.smtphost = "localhost"
So then vimbadmin send a mail from IP eg : 10.0.0.253
Then add your local IP in my_networks and permit_my_networks in helo restriction.
That's works :-)

<!-- gh-comment-id:195966114 --> @vesl commented on GitHub (Mar 13, 2016): Hi, I guess have a solution. I just commented this line resources.mailer.smtphost = "localhost" So then vimbadmin send a mail from IP eg : 10.0.0.253 Then add your local IP in my_networks and permit_my_networks in helo restriction. That's works :-)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ViMbAdmin-opensolutions#20
No description provided.