some email html content converted to txt

General eFa discussion
Post Reply
viper407
Posts: 25
Joined: 09 Mar 2022 09:55

some email html content converted to txt

Post by viper407 »

Hi

I have emails from some domains stripping the html content and only showing text.

I went and looked at MailScanner.conf and the setting "Convert HTML To Text = no" is currently set.

Which other line could be causing html content to be removed and replaced with text?

Thank you
Edward
viper407
Posts: 25
Joined: 09 Mar 2022 09:55

Re: some email html content converted to txt

Post by viper407 »

Anyone with feedback?
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: some email html content converted to txt

Post by pdwalker »

Not enough information given to understand your problem. Can you be explicit in what exactly is happening?
viper407
Posts: 25
Joined: 09 Mar 2022 09:55

Re: some email html content converted to txt

Post by viper407 »

My customer receives html emails from various places however the entire body of the email has all the images removed and you only have url's to the images and text.

Here is an example of an email:

mydomain: Dahua Switch SWDA105, 4-Port PoE Switch Unmanaged

mydomain: Dahua Switch SWDA105, Why not switch? 4-Port PoE Switch
Unmanaged

View this mail in browser

Grey_Line(1).jpg

SWDA105 (DH-PFS3106-4ET-60) is an access layer PoE switch that
supports simultaneous access to maximum of four cameras and is
applicable for outdoor monitoring scenes such as scenic spots,
road junctions, coal mines and substations. With its mazing
working temperature set between -30°C to 65°C this switch is
great for all scenarios.

* 4-Port PoE Switch (Unmanaged)
* Layer two Hardened PoE switch
* Supports PoE power management
* MAC auto learning and aging, MAC address capacity is 8K
* Conforms to IEEE802.3af and IEEE802.3at power supply standard.
Port 1 supports Hi-PoE 60W power supply
* Supports IEEE802.3, IEEE802.3u,IEEE802.3ab/z and IEEE802.3X
standards
* Wide working temperature design: -30°C~ 65°C
* Supports dual power backup

(
https://mydomain.evlink17.net/servlet/l ... 260/297942
)

(
sales@mydomain.com?subject=mydomain%20Dahua%20Switch's%20&body=Fullname:%0D%0ACell%20Number:%0D%0ACompany%20Name:%0D%0AProduct%20Interested%20In:
)

Follow us on our social media platforms

(
https://mydomain.evlink17.net/servlet/l ... 260/297943
)

(
https://mydomain.evlink17.net/servlet/l ... 260/297944
)

(
https://mydomain.evlink17.net/servlet/l ... 260/297945
)

to see more upcoming specials & events

Dahua_cooper_intro_e-mailer-18.jpg?v=1583841056716
--202203258082510:200:20
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" style="background: #cfcfcf;">
<head>
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: some email html content converted to txt

Post by pdwalker »

Describe the mail flow for me.

How does mail get into the system? How many servers/devices/ does the mail go through before it hits your customers mailbox?

As far as I know, EFA/Mailscanner* do not strip out images from some emails. Is there something else doing before the mail gets to EFA?

* Actually, Mailscanner has lots of options, so I might have overlooked something.
viper407
Posts: 25
Joined: 09 Mar 2022 09:55

Re: some email html content converted to txt

Post by viper407 »

before mail would come from the internet to exchange and the emails were received without an issue.

eFA is now in front of exchange and only since the change does it do this to the emails with html content.
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: some email html content converted to txt

Post by pdwalker »

Hmmm... I've never heard of that before, so unless Exchange is doing something new, it must be EFA.

Let me dig through the /etc/MailScanner/MailScanner.conf and see if anything jumps out at me.
viper407
Posts: 25
Joined: 09 Mar 2022 09:55

Re: some email html content converted to txt

Post by viper407 »

Thank you, I tested it earlier by changing mx records to Exchange directly and the mails are coming through fine. When i put eFa back, i get the emails as per my example.

It might be something small that needs to be changed I am guessing?
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: some email html content converted to txt

Post by pdwalker »

sending you a pm.
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: some email html content converted to txt

Post by pdwalker »

What are the settings of the following in your mailscanner.conf?
Spam Actions =
High Scoring Spam Actions =
Non Spam Actions =
viper407
Posts: 25
Joined: 09 Mar 2022 09:55

Re: some email html content converted to txt

Post by viper407 »

Here are the settings in the mailscanner.conf file:

Spam Actions = store
High Scoring Spam Actions = store
Non Spam Actions = deliver header "X-Spam-Status:No"
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: some email html content converted to txt

Post by pdwalker »

can you send me your full mailscanner.conf configuration file?

otherwise, I have no idea.
viper407
Posts: 25
Joined: 09 Mar 2022 09:55

Re: some email html content converted to txt

Post by viper407 »

yes sure, will send it in the morning
viper407
Posts: 25
Joined: 09 Mar 2022 09:55

Re: some email html content converted to txt

Post by viper407 »

Hi there

From a previous post I found viewtopic.php?t=1462) I changed the options below from disarm to yes. I did 1 at a time until all the emails were shown correctly.

Allow IFrame Tags = disarm
Allow Form Tags = disarm
Allow Script Tags = disarm
Allow WebBugs = disarm
Allow Object Codebase Tags = disarm
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: some email html content converted to txt

Post by pdwalker »

Can you check the settings of these two parameters in your installation?

Convert Dangerous HTML To Text =
Convert HTML To Text =

My settings for the above two are "no", while the other Allow* parameters are set to disarm. I think that is why my html mail goes through untouched.

I'm not sure what the default setting is. If it's not the default, then I've changed it years ago and forgot I did it.

[edit: the default installation settings are "no"]
Post Reply