1

Topic: Rewrite mail header charset

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.2
- Linux/BSD distribution name and version: CentOS 6.5
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue: sieve.log
====

Hi,

Some mail clients add charset value to emails depending on the content but some charsets aren't supported by the SMTP smarthost i use.

Is there anyway to rewrite the "charset=cp932" to "charset=utf-8" on all outbound mail?

Thanks

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Rewrite mail header charset

m19 wrote:

Some mail clients add charset value to emails depending on the content but some charsets aren't supported by the SMTP smarthost i use.

Why does charset in email impact smarthost?

3

Re: Rewrite mail header charset

We use Amazon SES for smarthost and for some mails we get the following message

Diagnostic-Code: smtp; 554 Transaction failed: Unsupported encoding cp932.

Taken from SES requirements
=========================
The SMTP protocol requires that all data be sent in 7-bit ASCII format. If you want to use a different character encoding with the Amazon SES SMTP interface, you will need to apply your desired encoding to your subject and body, and then convert them to a valid 7-bit ASCII message before sending it to the SMTP endpoint.
=========================

Anyway we can do the above with Postfix for such encoding types?

4

Re: Rewrite mail header charset

Seems this is an issue of your mail composer, not MTA. Your mail composer should encode it correctly as you wish.