Page 1 of 1
Signature only in HAM
Posted: 11 Jan 2016 10:51
by nicola.piazzi
In my configuration these 2 files :
/etc/MailScanner/reports/en/inline.sig.in.txt
/etc/MailScanner/reports/en/inline.sig.in.html
contains some link to add in whitelist the sender and the host of the sender
but content of these 2 files is appended to ham only
how can I append also to spam messages ?
Re: Signature only in HAM
Posted: 14 Jan 2016 07:43
by nicola.piazzi
no one can help me

Re: Signature only in HAM
Posted: 17 Jan 2016 16:09
by shawniverson
You can append to spam too. Check out inline sigs options for spam in EFA-Configure.
Re: Signature only in HAM
Posted: 18 Jan 2016 07:46
by nicola.piazzi
Sorry but I am unable to find where to act in EFA-Configure menu
Re: Signature only in HAM
Posted: 18 Jan 2016 08:05
by DaN
Posted: 18 Jan 2016 08:11
by nicola.piazzi
-deleted-
Re: Signature only in HAM
Posted: 18 Jan 2016 09:19
by nicola.piazzi
EFA-Configure option 9 + 3 invoke /var/EFA/lib/EFA-Configure/func_asksigrules
func_asksigrules write domains that we want to add signatures in sig.html.rules and sig.text.rules
But this is intended only for ham messages
If you watch /etc/MailScanner/MailScanner.conf you see
Spam Actions = deliver header "X-Spam-Status:Yes"
High Scoring Spam Actions = store deliver header "X-Spam-Status:Yes"
Non Spam Actions = store deliver header "X-Spam-Status:No" custom(nonspam)
Only Non Spam Actions has custom(nonspam) as an action
and it invoke script : /usr/lib/MailScanner/MailScanner/CustomFunctions/CustomAction.pm
In the script there is token creation and signature addition only in nonspam subroutine
I think that it can't be a good thing to add custom(nonspam) as an action of Spam Actions and High Scoring Spam Actions
Re: Signature only in HAM
Posted: 19 Jan 2016 08:37
by nicola.piazzi
Only way that works is to add custom(nonspam) action also in Spam Actions like here, so it works , I have a look of the code and I cant find problem doing this, do you think that can be problems ?
Spam Actions = deliver header "X-Spam-Status:Yes"
High Scoring Spam Actions = store deliver header "X-Spam-Status:Yes"
Non Spam Actions = store deliver header "X-Spam-Status:No" custom(nonspam)
Re: Signature only in HAM
Posted: 23 Jan 2016 13:24
by shawniverson
Add custom(spam) or use EFA-Configure here:
9) Spam Settings --> 1) Non Spam Settings
Re: Signature only in HAM
Posted: 25 Jan 2016 08:04
by nicola.piazzi
Sorry shawni but EFA-Configure can be used only 4 Non Spam settings
I already have signature in incoming non spam, in need also in incoming spam
Adding custom(spam) doesnt solve
signatures are added only adding custom(nonspam) also to spam messages
the program CustomAction.pm add signatures only when called with nonspam option
Re: Signature only in HAM
Posted: 25 Jan 2016 13:21
by shawniverson
I am looking at the code right now...
Code: Select all
if ($param =~ /^spam$/ ) {
return EFASpamNotify($message);
}
sub EFASpamNotify {
my($message) = @_;
my($token);
$token = EFACreateToken();
#if (!$token) { return; }
$message->{token} = $token;
# Notify user
HandleSpamNotify($message);
return 0;
}
Yes it is there. Told you the wrong menu option 9) Spam Settings --> 2) Spam Settings
[EFA] Spam Notification Settings:
[EFA] By default, EFA notifies users of lower scoring
[EFA] spam when spam is stored in quarantine. Users
[EFA] can release the message by clicking the link
[EFA] link in the {Spam Not Delivered} notification.
[EFA] You can optionally choose to disable
[EFA] this feature, especially if your users are
[EFA] abusing this feature and causing Spamassassin
[EFA] to autolearn and poison the Bayesian filter.
[EFA] Do you want to DISABLE spam notification? [y/N]:
Re: Signature only in HAM
Posted: 25 Jan 2016 13:24
by nicola.piazzi
yes, and you see that only with nonspam parameter it ll attach the signature
i dont think that is a problem to use custom(nonspam ) also in spam messages
Re: Signature only in HAM
Posted: 25 Jan 2016 13:27
by shawniverson
I see what you are saying. You want the actual message signed, not a notification about a spam message.
Re: Signature only in HAM
Posted: 25 Jan 2016 13:30
by shawniverson
This should be doable. You need a slightly modified routine so that instead of submitting non-spam as spam, you submit spam as non-spam.
Is that correct?
Re: Signature only in HAM
Posted: 25 Jan 2016 15:46
by nicola.piazzi
Actually both spam & nonspam are passed to Exchange
difference is spam-statys Yes or No
but to have inline.signature i mist add custom(nonspam) action