Emails with strange characters <SOLVED>

Discuss here how to configure hoteldruid and better use its features.

Moderator: marco

Post Reply
BATICA66
Posts: 3
Joined: Sun Jan 01, 2023 12:26 am

Emails with strange characters <SOLVED>

Post by BATICA66 »

Hi,

I have a problem on new installation with sending emails. I'm guessing the encoding problem. The emails look like this:

RGVhciBNciAsDQpJIGNvbmZpcm0geW91IHRoZSBhdmFpbGFiaWxpdHkgb2YgYW4gYXBhcnRtZW50
IGluIHRoZSBwZXJpb2QgZnJvbSBfX19fX19fX19fX19fXyB0byBfX19fX19fX19fX19fXy4gVGhl

if I send messages via some simple emai.php everything is fine

Does anyone have any idea what's going on?

Apache Version 2.4.55
PHP Version 8.1.14
MySQL Version 8.0.31-cll-lve
Architecture x86_64
Operating System linux
Shared IP Address 167.235.36.218
Path to Sendmail /usr/sbin/sendmail
Path to Perl /usr/bin/perl
Perl Version 5.26.3
Kernel Version 4.18.0-372.26.1.lve.1.el8.x86_64

Source of message:::

Return-Path: <wowhotel@host112.dwhost.net>
Delivered-To: katzbrandy@stcable.net
Received: from lmtp.stcable.net
by lmtp.stcable.net with LMTP id 2ERjORWj0mPGtwAAct6kHg
for <katzbrandy@stcable.net>; Thu, 26 Jan 2023 16:58:13 +0100
Received: from mx-a.stcable.net (mx-a.stcable.net [81.24.247.13])
by lmtp.stcable.net (Postfix) with ESMTP id E96454005F
for <katzbrandy@stcable.net>; Thu, 26 Jan 2023 16:58:13 +0100 (CET)
Received: from mx-a.stcable.net (localhost.localdomain [127.0.0.1])
by mx-a.stcable.net (Proxmox) with ESMTP id DC829E22F7
for <katzbrandy@stcable.net>; Thu, 26 Jan 2023 16:58:13 +0100 (CET)
Received: from host112.dwhost.net (host112.dwhost.net [167.235.36.218])
by mx-a.stcable.net (Proxmox) with ESMTP id CEC8AE22D7
for <katzbrandy@stcable.net>; Thu, 26 Jan 2023 16:58:12 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=wowhotel.rs
; s=default; h=Date:Message-Id:From:Subject:To:Sender:Reply-To:Cc:
MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID:
Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
:Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:
List-Subscribe:List-Post:List-Owner:List-Archive;
bh=86OUpP5bPMQ5LtIBynUEEAe0RVdyARDyZXDgmvYquRY=;
b=hMEiAabwrDNdEGBg0nMcSWvgXi
654pqLC89SG2ZSS6OqkLlM/ySRxpUws8twx4Ekl0RgnqEwpPG79go5US290wCwC7m1iALHJmM+8k
P
tHlusG/B+UiK0YPa+8MRXNRaUS7GdvAsxveNFYmrg4Hzck4dBjICfj+aeT6D73CUXM73MlAY1j2k+
EX0Y9xwJq6oCkXco52U8p7/iDTXVNroIQ7vod5/xV/o86WCDkLt83wGIlud+i3uHYxZA+U+NjKBXh
30FVM+E3WNcYu/zH5j8bntu30vctnABThtdsqak6afHqdhPYmp9EFLog8x0mLqZcDu5UqJNbhVSeA
1MxL1r4Q==;
Received: from wowhotel by host112.dwhost.net with local (Exim 4.95)
(envelope-from <wowhotel@host112.dwhost.net>)
id 1pL4dg-001aCL-48
for katzbrandy@stcable.net;
Thu, 26 Jan 2023 16:58:12 +0100
To: katzbrandy@stcable.net
Subject: Availability
X-PHP-Originating-Script: 1199:funzioni_email.php
From: <recepcija@wowhotel.rs>MIME-Version:1.0 Content-type: text/html@mx-a.stcable.net;,
charset=utf-8@mx-a.stcable.net,
"Content-Transfer-Encoding:base64"@mx-a.stcable.net
Message-Id: <E1pL4dg-001aCL-48@host112.dwhost.net>
Date: Thu, 26 Jan 2023 16:58:12 +0100
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - host112.dwhost.net
X-AntiAbuse: Original Domain - stcable.net
X-AntiAbuse: Originator/Caller UID/GID - [1199 980] / [47 12]
X-AntiAbuse: Sender Address Domain - host112.dwhost.net
X-Get-Message-Sender-Via: host112.dwhost.net: authenticated_id: wowhotel/primary_hostname/system
user
X-Authenticated-Sender: host112.dwhost.net: wowhotel
X-Source:
X-Source-Args:
X-Source-Dir: wowhotel.rs:/public_html/recepcija
X-SPAM-LEVEL: Spam detection results: 0
AWL 1.904 Adjusted score from AWL reputation of From: address
BAYES_00 -1.9 Bayes spam probability is 0 to 1%
DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid
DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain
HEADER_FROM_DIFFERENT_DOMAINS 0.249 From and EnvelopeFrom 2nd level mail domains are
different
PHP_ORIG_SCRIPT 0.001 Sent by bot & other signs
RCVD_IN_DNSWL_HI -5 Sender listed at https://www.dnswl.org/, high trust
SPF_HELO_PASS -0.001 SPF: HELO matches SPF record
SPF_PASS -0.001 SPF: sender matches SPF record
TVD_SPACE_RATIO 0.001 -
Last edited by BATICA66 on Fri Jan 27, 2023 11:12 pm, edited 1 time in total.
BATICA66
Posts: 3
Joined: Sun Jan 01, 2023 12:26 am

Re: Emails with strange characters

Post by BATICA66 »

Image
BATICA66
Posts: 3
Joined: Sun Jan 01, 2023 12:26 am

Re: Emails with strange characters <SOLVED>

Post by BATICA66 »

<problem solved>

On funzioni_email.php I have replaced line 225

default: $mailh_nl = "\n"; break;

with

default: $mailh_nl = "\r\n"; break;

So far, it's working well
marco
Posts: 1332
Joined: Tue Jul 05, 2005 6:00 pm
Location: Roma, Italia

Re: Emails with strange characters <SOLVED>

Post by marco »

Hello,
it seems that from version 8 php is recommending using \r\n, but in my experience \n still works on linux. Anyway I'll update to \r\n in next hoteldruid release (>3.0.5), even if this may cause some problems for qmail servers.

Regards,
Marco
Problems installing, configuring, upgrading?
Try the easiest way to use HotelDruid:
https://www.digitaldruid.net/hosted/index.php
Post Reply