6.0.0-beta1
7/7/25

[#12116] Unicode Domains are passed to sendmail -> Can't send emails to/from unicode domains
Summary Unicode Domains are passed to sendmail -> Can't send emails to/from unicode domains
Queue Horde Framework Packages
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester peter.meier+horde (at) immerda (dot) ch
Created 03/14/2013 (4498 days ago)
Due
Updated 04/01/2013 (4480 days ago)
Assigned 03/15/2013 (4497 days ago)
Resolved 03/16/2013 (4496 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
04/01/2013 01:39:22 AM Michael Slusarz Comment #6 Reply to this comment
However it does not fix it if the sending address should also be 
encoded as IDN, as $from is not touched.
Fixed.
04/01/2013 01:39:04 AM Git Commit Comment #5 Reply to this comment
Changes have been made in Git (master):

commit 03da9ed59c80288992a3bd205701b1c820fcaf2f
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Sun Mar 31 19:37:51 2013 -0600

     Bug #12116: Also need to IDN encode from addresses before sending

  framework/Mail/lib/Horde/Mail/Transport.php        |   31 ++++++++++++++++++
  framework/Mail/lib/Horde/Mail/Transport/Mock.php   |    5 ++-
  .../Mail/lib/Horde/Mail/Transport/Sendmail.php     |   21 +-----------
  framework/Mail/lib/Horde/Mail/Transport/Smtp.php   |   19 +++--------
  framework/Mail/lib/Horde/Mail/Transport/Smtpmx.php |   12 ++-----
  framework/Mail/test/Horde/Mail/SendTest.php        |   34 
+++++++++++++++++---
  6 files changed, 73 insertions(+), 49 deletions(-)

http://git.horde.org/horde-git/-/commit/03da9ed59c80288992a3bd205701b1c820fcaf2f
03/30/2013 03:31:12 PM peter (dot) meier+horde (at) immerda (dot) ch Comment #4 Reply to this comment
commit c7eea0d03139cd8994cef27be3d9cfcfdec6b346
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Fri Mar 15 18:49:02 2013 -0600

     [mms] Correctly encode IDN domains when sending mail (Bug #12116).
This fixes the bug only partially: For the recipients.

However it does not fix it if the sending address should also be 
encoded as IDN, as $from is not touched.

As a workaround I added:

         $from = new Horde_Mail_Rfc822_Address($from);
         $from = $from->writeAddress(array('idn' => true));

before:

         $mail = @popen($this->_sendmailPath . 
(empty($this->_sendmailArgs) ? '' : ' ' . $this->_sendmailArgs) . ' -f 
' . escapeshellarg($from) . ' -- ' . $recipients, 'w');

Should I open a new ticket for this issue?
03/16/2013 12:57:03 AM Michael Slusarz Comment #3
State ⇒ Resolved
Reply to this comment
Fixed in Horde_Mail 2.0.5.
03/16/2013 12:56:51 AM Git Commit Comment #2 Reply to this comment
Changes have been made in Git (master):

commit c7eea0d03139cd8994cef27be3d9cfcfdec6b346
Author: Michael M Slusarz <slusarz@horde.org>
Date:   Fri Mar 15 18:49:02 2013 -0600

     [mms] Correctly encode IDN domains when sending mail (Bug #12116).

  framework/Mail/lib/Horde/Mail/Transport.php |   16 ++++++++++++----
  framework/Mail/package.xml                  |    4 ++--
  framework/Mail/test/Horde/Mail/SendTest.php |   15 +++++++++++++++
  3 files changed, 29 insertions(+), 6 deletions(-)

http://git.horde.org/horde-git/-/commit/c7eea0d03139cd8994cef27be3d9cfcfdec6b346
03/15/2013 09:30:47 AM Jan Schneider State ⇒ Assigned
Assigned to Michael Slusarz
 
03/15/2013 09:29:51 AM Jan Schneider Version ⇒ Git master
Queue ⇒ Horde Framework Packages
 
03/14/2013 07:05:51 PM peter (dot) meier+horde (at) immerda (dot) ch Comment #1
Priority ⇒ 1. Low
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Queue ⇒ IMP
Summary ⇒ Unicode Domains are passed to sendmail -> Can't send emails to/from unicode domains
Type ⇒ Bug
Reply to this comment
While IMP and everybody tries to take care that unicode domains are 
passed down in the framework as idn-encoded. Such an e-mail will still 
be passed as unicode to sendmail.

This happens because on L112 of Horde/Mail/Transport/Sendmail.php [1] 
the recipients are parsed (again). So on Line 111 a unicode domain is 
idn-encoded, while on Line 113 they are back as unicode domains.

This makes it impossible to send as a unicode domain user, nor send 
mails to a unicode domain.

[1] 
https://github.com/horde/horde/blob/master/framework/Mail/lib/Horde/Mail/Transport/Sendmail.php#L112

Saved Queries