Koozali.org: home of the SME Server

Automatic footer - outgoing e-mails

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Automatic footer - outgoing e-mails
« Reply #15 on: August 24, 2007, 11:56:23 AM »
Blackbox

> You saved my life more than once! 

Yes I seem to recall that !


> ...the text does not get inserted to the bottom of the mail message. It gets attached as an attachment.
> ...this is not what my director and lawyer demands. They need to see the disclaimer as part of the messages.
> ...Do you know if this plugin can actually insert the text inside the email itself please?

Demand as much as they like, that's the way the feature works.
This "issue" was discussed in the bug report, and as far as I recall it's really an issue of how your email client reads the message. Yes it is technically an attachment, but when you read the message it is displayed as part of the message. It seemed like it could not be implemented any other way for various technical reasons, mainly associated with changing the message and therefore affecting digitally signed messages, which would then appear to be tampered with. Technically it's not possible/desirable to insert anything into the message.
Try it with different email clients.
Read the bug report again for clarification.
...

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Automatic footer - outgoing e-mails
« Reply #16 on: August 24, 2007, 12:18:38 PM »
This "issue" was discussed in the bug report, and as far as I recall it's really an issue of how your email client reads the message.

Ray is correct it does depend on what email client/format they use, in my testing I found some email clients post "inline" AND attach to the email, other email clients just attach to the email as you've found out.
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline dmay

  • *
  • 450
  • +0/-0
    • http://myezserver.com
Re: Automatic footer - outgoing e-mails
« Reply #17 on: August 24, 2007, 04:51:17 PM »
One option that may be of interest is to install a server-based commercial anti-virus program. The better ones offer an automatic footer mechanism with the ability to overide the included default footer with a custom one. The default footer is usually similar to: 'This message was scanned for viruses by'. Do some research and pick the antivirus program of your choice. "Inappropriate advertising endorsement, comment(s) removed"

Darrell
"Inappropriate advertising endorsement, comment(s) removed"

« Last Edit: October 20, 2008, 06:47:30 PM by byte »

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Automatic footer - outgoing e-mails
« Reply #18 on: August 24, 2007, 06:38:09 PM »
One option that may be of interest is to install a server-based commercial anti-virus program.

To be honest installing a commercial anti-virus will give you the same result as what is built in to the SME Server already, for example I was running a commercial anti-virus with the footer enabled, and then the developers coded a built in footer and there is no difference between the 2 they both work in the same manner.

dmay's post looks more like a ploy to market his site/product. (That's not intending to start a flame war.)
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline dmay

  • *
  • 450
  • +0/-0
    • http://myezserver.com
Re: Automatic footer - outgoing e-mails
« Reply #19 on: August 24, 2007, 06:57:13 PM »
To be honest installing a commercial anti-virus will give you the same result as what is built in to the SME Server already,
The original poster complained that the SME built in way created a footer attachment. Most of the commercial anti-virus products append the footer at the bottom of the message body. Totally different results.

Darrell

Offline slords

  • *****
  • 235
  • +3/-0
Re: Automatic footer - outgoing e-mails
« Reply #20 on: August 24, 2007, 07:09:50 PM »
One option that may be of interest is to install a server-based commercial anti-virus program. The better ones offer an automatic footer mechanism with the ability to overide the included default footer with a custom one. The default footer is usually similar to: 'This message was scanned for viruses by'.

And unless they are attaching the disclaimer as we are then they invalidate all digital signatures and DKIM/DomainKeys.  Or it is possible they just skip checking/signing digitally signed messages.  If you are working in an industry that relies on digital signatures on messages you will run into tons of problems with any product/program that attempts to modify the message body.

You also run into issues with trying to figure out which part of a multi-part mime message to update.  Many people are sending in HTML/mixed-HTML format these days.  Trying to differentiate between an attached html page or text document becomes a real nightmare (and I've seen many commercial scanners completely botch messages in this format).
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs,
and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." -- Rich Cook

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Automatic footer - outgoing e-mails
« Reply #21 on: August 24, 2007, 07:11:54 PM »
The original poster complained that the SME built in way created a footer attachment.

But its not the SME Server fault, it's actually the email client used i.e outlook/thunderbird.

Quote
Most of the commercial anti-virus products append the footer at the bottom of the message body. Totally different results.

Not true as I've been using a commercial anti-virus for past year and the current commercial anti-virus apply's the footer exactly the same way SME Server's built in footer, I've even spoken to the commercial anti-virus developers and they do not at this time have a way to insert the footer within the actually email message as it will just attach as an attachment.
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline dmay

  • *
  • 450
  • +0/-0
    • http://myezserver.com
Re: Automatic footer - outgoing e-mails
« Reply #22 on: August 24, 2007, 07:30:27 PM »
Not true as I've been using a commercial anti-virus
Maybe not true for whatever program you are using. BD works fine.

-----Original Message-----
From: Darrell May [mailto:dmay@]
Sent: Friday, August 24, 2007 12:27 PM
To: May, Darrell
Subject: Footer test

Footer test.

Regards,

Darrell May
Tallgrass Ranch

--
This message was scanned for viruses by BitDefender for Linux Mail Servers.
For more information please visit http://wwww.bitdefender.com/
« Last Edit: August 24, 2007, 11:00:20 PM by dmay »

Offline byte

  • *
  • 2,183
  • +2/-0
Re: Automatic footer - outgoing e-mails
« Reply #23 on: August 24, 2007, 07:44:47 PM »
Maybe not true for whatever program you are using. BD works fine.

It's actually BD which I use too, and as you show it does attach "inline", but it also attaches as an attachment to.

At the end of the day it really does depend on your email client as the built in SME Server code for the footer does also attach "inline" as well as an attachment.

Have you tested the SME Server's email footer option with various email clients ?
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline LucLenaerts

  • 3
  • +0/-0
Re: Automatic footer - outgoing e-mails
« Reply #24 on: October 20, 2008, 12:44:26 PM »
I have tested the disclaimer as documented in the wiki and it seems to work. I have noticed that the text for the disclaimer is included as "text/plain". It is also possible to have an attachment in text/html? There is also a reference about various switches that can be applied, but I can't find them. Has anybody an idea if this is possible?
Thanks.
Luc

Offline Alex Wong

  • *
  • 5
  • +0/-0
Re: Automatic footer - outgoing e-mails
« Reply #25 on: November 26, 2008, 09:20:08 AM »
yes, it seems like just attached the file "disclaimer.txt" in e-mail.

anyone have idea so that the message in "/service/qpsmtpd/config/disclaimer" can be embedded in the mail.

some code showed in "/usr/share/qpsmtpd/plugins/disclaimer":

  my $parser = new MIME::Parser;
  $parser->output_under( $self->spool_dir() );
  $parser->extract_uuencode(1);
  my $ent = $parser->parse_open( $transaction->body_filename() );

  $ent->make_multipart( 'mixed', Force => 1 ) if $ent->mime_type ne 'multipart/mixed';
  $ent->attach( Data => join("\n", @lines),
                Encoding => $self->{_args}->{mime_encoding} || '-SUGGEST',
                Filename => $self->{_args}->{mime_filename} || 'disclaimer.txt',
                Type => $self->{_args}->{mime_type} || 'text/plain');
  if ($ent->parts <= 2) {
    $transaction->header->empty();
    $transaction->header($ent->head());
  }
  $transaction->header->replace( 'X-Qpsmtp-Disclaimer', $fromhost );
  $self->log(LOGNOTICE, "Attached disclaimer for domain: $fromhost");

I am also a guy would like implement this email footer.

thanks.

Offline David Harper

  • *
  • 653
  • +0/-0
  • Watch this space
    • Workgroup Technology Solutions
Re: Automatic footer - outgoing e-mails
« Reply #26 on: November 26, 2008, 09:43:21 AM »
See the wiki for instructions -- this thread is a bit out of date I think.

Offline Alex Wong

  • *
  • 5
  • +0/-0
Re: Automatic footer - outgoing e-mails
« Reply #27 on: November 26, 2008, 10:23:02 AM »
hi, thx for your reply...

yes, i know this solution already...

but my question is: it is possible the message can be embedded NOT attached in the mail like LucLenaerts say...

i read bug report & forum about this issue, but cannot find any hit to do that.

anyone can help.

thanks.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Automatic footer - outgoing e-mails
« Reply #28 on: November 26, 2008, 02:02:17 PM »
hi

AFAIR it's not a server issue but a client one..

ciao
Stefano