XMailforum is a readonly knowledge archive now.

Registering as a new user or answering posts is not possible anymore.

Might the force be with you, to find here what you are looking for.

2019-09-20 - hschneider, Admin

Cookie Disclaimer: This forum uses only essential, anonymous session cookies (xmailforum*), nothing to be scared of.

XMail Forum -> Adding a Disclaimer to outgoing mail?

Reply to this topicStart new topicStart Poll

> Adding a Disclaimer to outgoing mail?, How?
BooT
Posted: Jun 28 2004, 01:50 PM
Quote Post


Guru
**********

Group: Members
Posts: 747
Member No.: 375
Joined: 29-November 02



Hi again all

One of my clients want all his outgoing mail to contain a e-mail Disclaimer.

How do i do that for only his domain? Or maybe 2 domains that is hosted with me...but not on all domains?

Thanx

BooT



--------------------
________________________________________________________________________________

--= Running XMail Server 1.22 on Windows 2003 Virtual Server Since 16 August 2006 =--
[--- Ran Xmail on 2000 Server till Aug 2006 ---]
[--- 1.21 From 21 June 2005 till 15 Jan 2006---]
[--- 1.20 From 20 July 2004 till 21 June 2005---]
[--- 1.17 From 20 October 2003 till 20 July 2004---]
PMEmail Poster
Top
atomant
Posted: Jun 28 2004, 01:55 PM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 1776
Member No.: 427
Joined: 18-January 03



You'll need a custom filter for this.


--------------------
Bye,
Sasa



-------------------------------------------------------------------

All electric machines work on smoke...when the smoke escape from machines, they don't work anymore
Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming or what?"
PMEmail PosterUsers WebsiteICQ
Top
BooT
Posted: Jun 28 2004, 02:06 PM
Quote Post


Guru
**********

Group: Members
Posts: 747
Member No.: 375
Joined: 29-November 02



Yea.... But has anyone done this b4? And if not could someone post it here when they have done it?


smile.gif

Thanx



--------------------
________________________________________________________________________________

--= Running XMail Server 1.22 on Windows 2003 Virtual Server Since 16 August 2006 =--
[--- Ran Xmail on 2000 Server till Aug 2006 ---]
[--- 1.21 From 21 June 2005 till 15 Jan 2006---]
[--- 1.20 From 20 July 2004 till 21 June 2005---]
[--- 1.17 From 20 October 2003 till 20 July 2004---]
PMEmail Poster
Top
atomant
Posted: Jun 29 2004, 06:35 AM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 1776
Member No.: 427
Joined: 18-January 03



Hmmm...MayVortex has done similar with his AV script, where it ads a footer in the message. Maybe he will find some time to make it.


--------------------
Bye,
Sasa



-------------------------------------------------------------------

All electric machines work on smoke...when the smoke escape from machines, they don't work anymore
Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming or what?"
PMEmail PosterUsers WebsiteICQ
Top
MayVortex
Posted: Jun 29 2004, 09:21 AM
Quote Post


Script Guru
*****

Group: Members
Posts: 194
Member No.: 354
Joined: 13-November 02



I think this task can be done by using filters.post-data.tab and script like this:

filters.post-data.tab
CODE

"/var/MailRoot/filters/filter-post.pl"[tab]"@@FILE"[tab]"@@USERAUTH"


filter-post.pl
CODE

#!/usr/bin/perl

if ($ARGV[1] ne 'your_user@your_domain.com'){exit (0);}

open(T,$ARGV[0]);
$cnt=0;
while(<T>){
   $_ =~ s/\r//g;
   $_ =~ s/\n//g;
   if(($_ =~ /boundary/)and(!$cnt)){
       $cnt++;
       @tb = split('\=',$_);
       $tb = $tb[1];
       $tb =~ s/\"//g;
   }
   if(($tb)and($_ =~ /\-\-$tb/)and($cnt==1)){
       $cnt++;
       print "Place your text here\r\n";
       print $_."\r\n";
   }
}
close(T);


I'm not sure that this script will work well... I realy have no time...
PMEmail Poster
Top
BooT
Posted: Jun 29 2004, 09:21 AM
Quote Post


Guru
**********

Group: Members
Posts: 747
Member No.: 375
Joined: 29-November 02



Hmmm

That could work....

smile.gif

MayVortex ? Could you pls do this for us?

Thanx

BooT



--------------------
________________________________________________________________________________

--= Running XMail Server 1.22 on Windows 2003 Virtual Server Since 16 August 2006 =--
[--- Ran Xmail on 2000 Server till Aug 2006 ---]
[--- 1.21 From 21 June 2005 till 15 Jan 2006---]
[--- 1.20 From 20 July 2004 till 21 June 2005---]
[--- 1.17 From 20 October 2003 till 20 July 2004---]
PMEmail Poster
Top
BooT
Posted: Jun 29 2004, 09:28 AM
Quote Post


Guru
**********

Group: Members
Posts: 747
Member No.: 375
Joined: 29-November 02



Thanx...Will give it a smash.........

Wil this work on 1.17?

And can i replace 'your_user@your_domain.com' with '*@your_domain.com' for all users in that domain?

Thanx

BooT



--------------------
________________________________________________________________________________

--= Running XMail Server 1.22 on Windows 2003 Virtual Server Since 16 August 2006 =--
[--- Ran Xmail on 2000 Server till Aug 2006 ---]
[--- 1.21 From 21 June 2005 till 15 Jan 2006---]
[--- 1.20 From 20 July 2004 till 21 June 2005---]
[--- 1.17 From 20 October 2003 till 20 July 2004---]
PMEmail Poster
Top
BooT
Posted: Jun 29 2004, 09:45 AM
Quote Post


Guru
**********

Group: Members
Posts: 747
Member No.: 375
Joined: 29-November 02



Hmmm...tried it...does not seem to work.....?



--------------------
________________________________________________________________________________

--= Running XMail Server 1.22 on Windows 2003 Virtual Server Since 16 August 2006 =--
[--- Ran Xmail on 2000 Server till Aug 2006 ---]
[--- 1.21 From 21 June 2005 till 15 Jan 2006---]
[--- 1.20 From 20 July 2004 till 21 June 2005---]
[--- 1.17 From 20 October 2003 till 20 July 2004---]
PMEmail Poster
Top
atomant
Posted: Jun 29 2004, 10:14 AM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 1776
Member No.: 427
Joined: 18-January 03



Looks like you'll need to upgrade to Xmail 1.20.


--------------------
Bye,
Sasa



-------------------------------------------------------------------

All electric machines work on smoke...when the smoke escape from machines, they don't work anymore
Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming or what?"
PMEmail PosterUsers WebsiteICQ
Top
BooT
Posted: Jun 29 2004, 10:16 AM
Quote Post


Guru
**********

Group: Members
Posts: 747
Member No.: 375
Joined: 29-November 02



Is 1.20 Stable yet? And does all the other stuff work with 1.20?
Old Filters,Ubimail....etc?



--------------------
________________________________________________________________________________

--= Running XMail Server 1.22 on Windows 2003 Virtual Server Since 16 August 2006 =--
[--- Ran Xmail on 2000 Server till Aug 2006 ---]
[--- 1.21 From 21 June 2005 till 15 Jan 2006---]
[--- 1.20 From 20 July 2004 till 21 June 2005---]
[--- 1.17 From 20 October 2003 till 20 July 2004---]
PMEmail Poster
Top
atomant
Posted: Jun 29 2004, 10:20 AM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 1776
Member No.: 427
Joined: 18-January 03



It is stable and everything works well.


--------------------
Bye,
Sasa



-------------------------------------------------------------------

All electric machines work on smoke...when the smoke escape from machines, they don't work anymore
Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming or what?"
PMEmail PosterUsers WebsiteICQ
Top
BooT
Posted: Jun 29 2004, 11:07 AM
Quote Post


Guru
**********

Group: Members
Posts: 747
Member No.: 375
Joined: 29-November 02



Upgrade by adding .exe's into BIN folder? as usual? Or other stuff aswell?



--------------------
________________________________________________________________________________

--= Running XMail Server 1.22 on Windows 2003 Virtual Server Since 16 August 2006 =--
[--- Ran Xmail on 2000 Server till Aug 2006 ---]
[--- 1.21 From 21 June 2005 till 15 Jan 2006---]
[--- 1.20 From 20 July 2004 till 21 June 2005---]
[--- 1.17 From 20 October 2003 till 20 July 2004---]
PMEmail Poster
Top
MayVortex
Posted: Jun 29 2004, 11:27 AM
Quote Post


Script Guru
*****

Group: Members
Posts: 194
Member No.: 354
Joined: 13-November 02



QUOTE (MayVortex @ Jun 29 2004, 09:21 AM)
I'm not sure that this script will work well...

ups... my mistake...

CODE

#!/usr/bin/perl

if ($ARGV[1] ne 'your_user@your_domain.com'){exit (0);}

open(T,$ARGV[0]);
$cnt=0;
open(TX,">".$ARGV[0]);
while(<T>){
� �$_ =~ s/\r//g;
� �$_ =~ s/\n//g;
� �if(($_ =~ /boundary/)and(!$cnt)){
� � � �$cnt++;
� � � �@tb = split('\=',$_);
� � � �$tb = $tb[1];
� � � �$tb =~ s/\"//g;
� �}
� �if(($tb)and($_ =~ /\-\-$tb/)and($cnt==1)){
� � � �$cnt++;
� � � �print "Place your text here\r\n";
� �}
� �print TX $_."\r\n";
}
close(TX);
close(T);
PMEmail Poster
Top
MayVortex
Posted: Jun 29 2004, 11:35 AM
Quote Post


Script Guru
*****

Group: Members
Posts: 194
Member No.: 354
Joined: 13-November 02



QUOTE

Wil this work on 1.17?

Nope... It Works only with filters.post-data.tab

[quote]
And can i replace 'your_user@your_domain.com' with '*@your_domain.com' for all users in that domain?
[/qoute]

replace
CODE

if ($ARGV[1] ne 'your_user@your_domain.com'){exit (0);}


CODE

if($ARGV[1] !~ /\@your_domain.com/){exit (0);}
PMEmail Poster
Top
BooT
Posted: Jun 29 2004, 11:53 AM
Quote Post


Guru
**********

Group: Members
Posts: 747
Member No.: 375
Joined: 29-November 02



Thanx May....

I will 1st have to Upgrade to 1.20 b4 i can test it again....

Thanx



--------------------
________________________________________________________________________________

--= Running XMail Server 1.22 on Windows 2003 Virtual Server Since 16 August 2006 =--
[--- Ran Xmail on 2000 Server till Aug 2006 ---]
[--- 1.21 From 21 June 2005 till 15 Jan 2006---]
[--- 1.20 From 20 July 2004 till 21 June 2005---]
[--- 1.17 From 20 October 2003 till 20 July 2004---]
PMEmail Poster
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | Scripting Corner | Next Newest »

Reply to this topicStart new topicStart Poll