1

Topic: Disclaimer not working in control panel

==== Provide required information ====
- iRedMail version and backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Any related log? Log is helpful for troubleshooting.
====

Hi zhang,
I have followed  the below link to enable disclaimer message.
http://www.iredmail.org/forum/topic210- … mails.html
it is working fine when i made disclaimer entry in /etc/postfix/disclaimer/mydomain.txt
But if add through control panel it is not displaying in web mail.
Kindly advice.
Regards,
PineMail11

----

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

2

Re: Disclaimer not working in control panel

Do you have cron job to dump disclaimer to /etc/postfix/disclaimer/? The script is shipped in iRedAdmin-Pro-LDAP-1.7.2/tools/dump_disclaimer.py.

3

Re: Disclaimer not working in control panel

ZhangHuangbin wrote:

Do you have cron job to dump disclaimer to /etc/postfix/disclaimer/? The script is shipped in iRedAdmin-Pro-LDAP-1.7.2/tools/dump_disclaimer.py.

Hi Zhang,

we have configured  cronjob to dump in every one minute.

Treat this on high priority,This is an urgent requirement.




Regards,
PineMail11

4

Re: Disclaimer not working in control panel

Did you edit dump_disclaimer.py to use correct LDAP bind dn/password?

Try to dump disclaimer manually with below command:

# cd /path/to/iRedAdmin-Pro-LDAP-1.7.2/tools/
# python dump_disclaimer.py

Then check whether files under /etc/postfix/disclaimer/ are updated.

5

Re: Disclaimer not working in control panel

ZhangHuangbin wrote:

Did you edit dump_disclaimer.py to use correct LDAP bind dn/password?

Try to dump disclaimer manually with below command:

# cd /path/to/iRedAdmin-Pro-LDAP-1.7.2/tools/
# python dump_disclaimer.py

Then check whether files under /etc/postfix/disclaimer/ are updated.

Hi Zhang,

We have run the the python command and the files under /etc/postfix/disclaimer/ are getting updated.
But disclaimer is not getting attached with mails.

Please advise.

Regards,
PineMail11

6

Re: Disclaimer not working in control panel

Then there must be something wrong with your cron job.

- Is your cron job run as root user?
- Any error log reported by cron?

7

Re: Disclaimer not working in control panel

ZhangHuangbin wrote:

Then there must be something wrong with your cron job.

- Is your cron job run as root user?
- Any error log reported by cron?

Hi zhang,

Thanks for your support. Now disclaimer is working for us.

How can i block/disable disclaimer for internal domain users and it should work for only external domains.

Please advise,

Regards.
PineMail11

8

Re: Disclaimer not working in control panel

PineMail11 wrote:

How can i block/disable disclaimer for internal domain users and it should work for only external domains.

Sorry, i don't quite understand this question, could you please explain it with more details?

9

Re: Disclaimer not working in control panel

ZhangHuangbin wrote:
PineMail11 wrote:

How can i block/disable disclaimer for internal domain users and it should work for only external domains.

Sorry, i don't quite understand this question, could you please explain it with more details?

Hi Zhang,

Disclaimer should not add when i send mail to users of the same domain and disclaimer should add while sending mail to users of different domain.
For eg: When i send mail f user1@mydomain.com to user2@mydomain.com at a time disclaimer should not add.
And disclaimer should add when i send mail from user1@mydoamin.com to user3@otherdomain.com


Regards,
Pinemail11

10

Re: Disclaimer not working in control panel

Sorry, Amavisd inserts disclaimer text for all OUTGOING emails by default, it doesn't know which recipient is in the same domain.