Koozali.org formerly Contribs.org

Email disclaimer

Offline mdo

  • *
  • 355
Email disclaimer
« on: December 01, 2017, 03:40:44 AM »
Hi

I have followed the Wiki in trying to set up an email disclaimer
https://wiki.contribs.org/Email#How_do_I_enable_and_configure_a_disclaimer_in_email_messages
but I cannot get this working, even with the simplest test set up in the disclaimer text file.

ll /service/qpsmtpd/config/
total 144
-rw-r--r-- 1 root    root     410 Jul 30  2016 badcountries
-rw-r--r-- 1 root    root     493 Mar 16  2017 badhelo
... cut ...
-rw-r--r-- 1 root    root      30 Nov 30 15:17 disclaimer
drwxr-s--- 2 qpsmtpd qpsmtpd 4096 Nov 30 15:18 dkim
-rw-r--r-- 1 root    root     468 Jul  5  2016 dnsbl_allow
.. cut ...

cat /service/qpsmtpd/config/disclaimer
Text only
-------------------

signal-event email-update does not create any errors or visible issues.

The Wiki document states:
"Note also the criteria for when a disclaimer is attached
(see http://bugs.contribs.org/show_bug.cgi?id=2648)"

This bug and the development out of this was in 2007 (= SME7.x times) and at that time a contrib ("smeserver-qpsmtpd") was needed. I myself tested this successfully at that time but I am unsure about today's requirements. Do we still need the contrib? The Wiki document does not say this and it looks like the contrib, which currently exists only in our smetest repository might not have been reviewed since SME 8.0 times and never released for SME9?

Just looking out here whether someone else is successfully suing a disclaimer.

Thanks,
Michael
...

Offline Jean-Philippe Pialasse

  • *
  • 1,079
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Email disclaimer
« Reply #1 on: December 01, 2017, 06:59:00 PM »
Seems that you found a part of the doc that needs update:

smeserver-qpsmtpd is core now, so you do not need to install it

it provides what is  needed:
# rpm -ql smeserver-qpsmtpd|grep disc
/etc/e-smith/templates/var/service/qpsmtpd/config/peers/0/65disclaimer
/etc/e-smith/templates/var/service/qpsmtpd/config/peers/local/65disclaimer
/etc/e-smith/templates/var/service/qpsmtpd/config/plugins/65disclaimer
/usr/share/qpsmtpd/plugins/disclaimer


regarding the absence of error, signal-event does not return visible errors, only an error code not visible. To see if everything went good or wrong you should check at the /var/logs/messages content you should also check at /var/logs/qpsmtpd/current


few side notes about disclaimers :
- they won't be assigned to your mails sent directly through qmail (ie most of the internal deamon sent mails, and msot importantly mail sent by php scripts running on apache server, for those you could use a contrib to force using qpsmtpd)

- disclaimers are a waste of email space, and server processing time, a risk to break email signatures (dkim ...), and have no legal value unless placed manually by the sender "Disclaimers appear to have arisen as a result of imitation and habit rather than because they are effective. " see https://en.wikipedia.org/wiki/Email_disclaimer

Offline mdo

  • *
  • 355
Re: Email disclaimer
« Reply #2 on: December 06, 2017, 02:40:51 AM »
Thank you for the reply and helping me.

When I wrote "signal-event email-update does not create any errors or visible issues" I meant that I checked /var/log/messages for the results of template expansions after initiation the "email-update". There are no errors at all. Below is the qpsmtpd related extract which I believe to be the important part. Should I expect in there the generation of a file "/var/service/qpsmtpd/config/disclaimer"?

Dec  6 12:33:13 mdo002sv esmith::event[18122]: expanding /var/service/clamd/env/MEMLIMIT
Dec  6 12:33:13 mdo002sv esmith::event[18122]: expanding /var/service/qpsmtpd/runenv
Dec  6 12:33:13 mdo002sv esmith::event[18122]: expanding /var/service/qpsmtpd/peers/0
Dec  6 12:33:13 mdo002sv esmith::event[18122]: expanding /var/service/qpsmtpd/peers/local
Dec  6 12:33:13 mdo002sv esmith::event[18122]: expanding /var/service/qpsmtpd/ssl/cert.pem
Dec  6 12:33:13 mdo002sv esmith::event[18122]: expanding /var/service/qpsmtpd/config/plugin_dirs
Dec  6 12:33:13 mdo002sv esmith::event[18122]: expanding /var/service/qpsmtpd/config/tls_protocols
Dec  6 12:33:13 mdo002sv esmith::event[18122]: expanding /var/service/qpsmtpd/config/IP
Dec  6 12:33:13 mdo002sv esmith::event[18122]: expanding /var/service/qpsmtpd/config/loglevel
Dec  6 12:33:13 mdo002sv esmith::event[18122]: expanding /var/service/qpsmtpd/config/signatures_patterns
Dec  6 12:33:13 mdo002sv esmith::event[18122]: expanding /var/service/qpsmtpd/config/tls_ciphers
Dec  6 12:33:13 mdo002sv esmith::event[18122]: expanding /var/service/qpsmtpd/config/badmailfrom
Dec  6 12:33:13 mdo002sv esmith::event[18122]: expanding /var/service/qpsmtpd/config/badrcptto_ext
Dec  6 12:33:13 mdo002sv esmith::event[18122]: expanding /var/service/qpsmtpd/config/dnsbl_zones
Dec  6 12:33:13 mdo002sv esmith::event[18122]: expanding /var/service/qpsmtpd/config/tls_before_auth
Dec  6 12:33:13 mdo002sv esmith::event[18122]: expanding /var/service/qpsmtpd/config/norelayclients
Dec  6 12:33:13 mdo002sv esmith::event[18122]: expanding /var/service/qpsmtpd/config/timeout
Dec  6 12:33:13 mdo002sv esmith::event[18122]: expanding /var/service/qpsmtpd/config/rhsbl_zones
Dec  6 12:33:13 mdo002sv esmith::event[18122]: expanding /var/service/qpsmtpd/config/whitelisthosts
Dec  6 12:33:13 mdo002sv esmith::event[18122]: expanding /var/service/qpsmtpd/config/whitelistsenders
Dec  6 12:33:13 mdo002sv esmith::event[18122]: expanding /var/service/qpsmtpd/config/goodrcptto
Dec  6 12:33:13 mdo002sv esmith::event[18122]: expanding /var/service/qpsmtpd/config/uribl_zones
Dec  6 12:33:13 mdo002sv esmith::event[18122]: expanding /var/service/qpsmtpd/config/relayclients
Dec  6 12:33:13 mdo002sv esmith::event[18122]: expanding /var/service/qpsmtpd/config/badrcptto
Dec  6 12:33:13 mdo002sv esmith::event[18122]: expanding /var/service/qpsmtpd/config/badcountries
Dec  6 12:33:13 mdo002sv esmith::event[18122]: expanding /var/service/qpsmtpd/config/timeoutsmtpd
Dec  6 12:33:13 mdo002sv esmith::event[18122]: expanding /var/service/qpsmtpd/config/spool_dir
Dec  6 12:33:13 mdo002sv esmith::event[18122]: expanding /var/service/qpsmtpd/config/smtpgreeting
Dec  6 12:33:13 mdo002sv esmith::event[18122]: expanding /var/service/qpsmtpd/config/plugins
Dec  6 12:33:14 mdo002sv esmith::event[18122]: expanding /var/service/qpsmtpd/config/dnsbl_allow
Dec  6 12:33:14 mdo002sv esmith::event[18122]: expanding /var/service/qpsmtpd/config/invalid_resolvable_fromhost
Dec  6 12:33:14 mdo002sv esmith::event[18122]: expanding /var/service/qpsmtpd/config/badhelo
Dec  6 12:33:14 mdo002sv esmith::event[18122]: expanding /var/service/qpsmtpd/config/memory_threshold
Dec  6 12:33:14 mdo002sv esmith::event[18122]: expanding /var/service/qpsmtpd/config/whitelisthelo
Dec  6 12:33:14 mdo002sv esmith::event[18122]: expanding /var/service/qpsmtpd/config/subject_prefix
Dec  6 12:33:14 mdo002sv esmith::event[18122]: expanding /var/service/qpsmtpd/config/peers/0
Dec  6 12:33:14 mdo002sv esmith::event[18122]: expanding /var/service/qpsmtpd/config/peers/local
Dec  6 12:33:14 mdo002sv esmith::event[18122]: expanding /var/service/sqpsmtpd/runenv

I understand your warnings about the "waste of email space" but wanted to use this as the quickest way to add a temporary, Xmas related message to all outgoing emails with office opening hours (and we do not expect this to be "nicely" looking if there are emails with html footers"

Thanks,
Michael
...

Re: Email disclaimer
« Reply #3 on: December 06, 2017, 03:11:20 AM »
Along time ago I tried it and the result is bad. If any send email isn't in pure text mode then the email is with "bad formatted" typo...
Smeserver.it -  Soluzioni e supporto su Sme server in Italia

Offline Jean-Philippe Pialasse

  • *
  • 1,079
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Email disclaimer
« Reply #4 on: December 06, 2017, 04:20:58 PM »
This is a sweet use of disclaimer ;)


As i said you also have to check in qpsmtpd current log while sending a mail.

Fumetto,
Then a nfr would be html detection and 2 versions of the disclaimer.

Offline mdo

  • *
  • 355
Re: Email disclaimer (solved)
« Reply #5 on: January 12, 2018, 09:11:16 PM »
Should have reported back earlier that the disclaimer actually IS working. My test configuration was wrong, I was sending out to a recipient email domain that is defined as local (part of our VPN set up). When testing to an external email address (i.e. Gmail) the disclaimer works.

A NFR for an html formatted disclaimer sounds great and I feel encouraged to do so shortly. 
...