mirror of
https://github.com/opensolutions/ViMbAdmin.git
synced 2026-04-26 00:36:00 +03:00
[GH-ISSUE #25] The system cannot send emails, settings ignored #20
Labels
No labels
bug
feature
feature
improvement
improvement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ViMbAdmin-opensolutions#20
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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…
@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.
@barryo commented on GitHub (Sep 10, 2013):
Fixed in V3.
@etherden commented on GitHub (Aug 27, 2014):
Helo, I have version V3.0.10 and I have this troubles ):
@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 :-)