1

Topic: Unable to set html desclaimer

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9
- Deployed with iRedMail Easy or the downloadable installer? installer
- Linux/BSD distribution name and version: Ubuntu 18
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? NO
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hello,

I am trying to setup disclaimer, as per your docs i am able to setup the discalimer in txt but i am unable to set it up in HTML format, I have gone through your two old topics and made changes on the server.

https://forum.iredmail.org/topic5390-ir … -html.html
https://forum.iredmail.org/topic5075-ir … mains.html

But html code is comes in text format in the mail.  I have tried removing --disclaimer part in altermime, also tried putting --disclaimer-html first but no luck.

Please help me to solve this issue.

----

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

2

Re: Unable to set html desclaimer

AlterMIME program is too old and sometimes buggy. No good idea to solve this. sad

3

Re: Unable to set html desclaimer

hits wrote:

But html code is comes in text format in the mail.  I have tried removing --disclaimer part in altermime, also tried putting --disclaimer-html first but no luck.

is my setting:

1).
/etc/postfix/disclaimer]#vi ab-cd.com.txt

-----------------
Ab-Cd 電子
Ab-Cd Corp.,Ltd. http://www.ab-cd.com.

2).
/etc/postfix/disclaimer]# vi ab-cd.com.html

<div id="disclaimer_separator"></div>
<div style='color: #008b8b; margin-top: 5px; font-size: 12px; padding: 5px'>
    <span style='font-size: 12px'><p>----------</p><strong>DISCLAIMER</strong></span><br/>
    <span style="color: #8A8A8A; font-family: 'Calibri', sans-serif; font-size: 10pt; font-weight: regular;">
    This e-mail and any attachments are confidential ,proprietary and may be protected by legal privilege.  Any unauthorized review, copying, disclosure, or distribution of any information contained in or attached hereto is <strong>STRICTLY PROHIBITED</strong> .  If you have received this message in error, please destroy the message or delete it from your system immediately and notify the sender.  Thank you.</span><br/><div>
    <span itemprop="name">Ab-Cd Corp., Ltd.</span>
    <span style="color: #008b8b; font-family: 'Calibri', sans-serif; font-size: 12pt; font-weight: regular"><strong>Ab-Cd 電子</strong></span><a href="http://www.ab-cd.com" itemprop="url">http://www.ab-cd.com</a>.</div>

3).vi /etc/amavisd/amavisd.conf

$defang_maps_by_ccat{+CC_CATCHALL} = [ 'disclaimer' ];

$altermime = '/usr/bin/altermime';

@altermime_args_disclaimer = qw(--disclaimer=/etc/postfix/disclaimer/_OPTION_.txt --disclaimer-html=/etc/postfix/disclaimer/_OPTION_.html --force-for-bad-html);

@disclaimer_options_bysender_maps = ({
    # Per-domain, per-user disclaimer setting:
    # '<domain>' => /path/to/disclaimer.txt,
    # '<email>' => /path/to/disclaimer.txt,
    'ab-cd.com' => 'ab-cd.com',
    # Catch-all disclaimer setting: /etc/postfix/disclaimer/default.txt
    '.' => 'default',

 test31

Post's attachments

18.JPG
18.JPG 66.02 kb, 1 downloads since 2021-06-30 

You don't have the permssions to download the attachments of this post.