scan forwarder email alias.. ( its begin to be a big problem for us.. )

duke28

Verified User
Joined
Oct 30, 2005
Messages
281
Location
Montreal - Canada
hi,

sorry for my english..

but all email alias ( forwarder ) to a external email address ( example : [email protected] ) are not scanned...

spamassassin on our 50 servers.. just scan email for pop3 email...
not for forwarder ( alias email )

i need to ask to all custumers to create forwarder ( alias email ) to a local pop3 ONLY... ( not on a external adress email.. )

because all forwarder email to hotmail of viagra are not scanned and hotmail, yahoo, block the ip of mail server for spam policy.. AND I UNDERSTAND WHY.. all forward email alias are not scanned for delete spam before forward the mail to an hotmail adress...

IS IT POSSIBLE TO DO SOMETHING FOR SCAN ALL FORWARDER ( ALIAS EMAIL ) WITH SPAMASSASSIN ? not just pop3 adress email...

thx for help us...
this it only the big problem i have since many month...
 
Last edited:
hi,
the post you send to me.. is for it :

Change SpamAssassin to only scan local mailboxes

..

not for scan alias email forwarder..
 
Jeremy, I'm thinking I should add both the patch and the insert to the latest SpamBlocker exim.conf final release. What do you think?

Anyone else?

John (of DirectAdmin), your help item 156 is a bit ambiguous: you write:
However, this guide will not scan forwarders. If you want it to also scan forwarder, you can insert:
Code:
{!eq {}{${lookup{$local_part}lsearch{/etc/virtual/${domain}/aliases}}}} \
Just after the first instance of "{!eq {}{$lookup ....".
But I see only ONE instance of {!eq {}{$lookup.
Exactly where does the code go; after that one instance? Or am I missing something?
Thanks.

Jeff
 
so is it scan all alias email .. who people make a forward to hotmail ??

YES OR NOT ??

i dont understand why by default its not its.. because its make blacklisted the server on hotmail.. when spam is forward to hotmail...
 
so is it scan all alias email .. who people make a forward to hotmail ??
It appears that it will, but as you can see I've asked John of DirectAdmin to coment to make sure we put the line in the right place.
i dont understand why by default its not its.. because its make blacklisted the server on hotmail.. when spam is forward to hotmail...
That I can answer. Because I wrote the current exim.conf file used by DirectAdmin some time ago, and I never put it in.

I've already asked for comments (see my previous post above) to see if others believe it should be put into the next version, due out soon.

Jeff
 
and if user dont have active spamassassin for him domain..

is it going to scan the alias email ?

if not.. its not better..

all spam send to a alias email is forward to hotmail..
after it you are blocked..

so .... its really a big s-h-i-t..

i have 40 servers with 40 directadmin.. so i dont have time to explain all clients to do a alias email to a local domain name only..
 
Jeremy, I'm thinking I should add both the patch and the insert to the latest SpamBlocker exim.conf final release. What do you think?

Anyone else?

John (of DirectAdmin), your help item 156 is a bit ambiguous: you write:

But I see only ONE instance of {!eq {}{$lookup.
Exactly where does the code go; after that one instance? Or am I missing something?
Thanks.

Jeff
I think it should be added by default.

However, what would happen if the server didn't have SpamAssassin installed. The guide on DA's site at the URL http://help.directadmin.com/item.php?id=36 explains how to install SpamAssassin, but it's not installed by default. So, if the user does not have SpamAssassin installed, will adding this code into the exim.conf file cause any issues for those users?
 
its not what i mean sorry I HAVE DIFFICULT WITH ENGLISH..

( spamassassin is installed )
i mean when one users dont active the spamassassin for delete spam in the USER panel.. is it going to scan the alias email when the email is forward to hotmail..???

its really simple what i want..

I WANT all mail to be scanned with spamassassin.. ALL INCOMMING MAIL ( POP3 + ALIAS FORWARDER )
and if user i selected DONT DELETE SPAM.... I WANT THE SPAM BE DELETED ..

anyway im tired of this.. i just feel to broke something.. lol
i going to change all for something better with qmail with more tools

i dont speak english really.. you are lucky..
 
Last edited:
its not what i mean sorry I HAVE DIFFICULT WITH ENGLISH..

( spamassassin is installed )
i mean when one users dont active the spamassassin for delete spam in the USER panel.. is it going to scan the alias email when the email is forward to hotmail..???

its really simple what i want..

I WANT all mail to be scanned with spamassassin.. ALL INCOMMING MAIL ( POP3 + ALIAS FORWARDER )
and if user i selected DONT DELETE SPAM.... I WANT THE SPAM BE DELETED ..

anyway im tired of this.. i just feel to broke something.. lol
i going to change all for something better with qmail with more tools

i dont speak english really.. you are lucky..
The SpamAssassin setup, to my knowledge, is setup on a per domain basis. So, I'm not sure that what you are trying to accomplish will work. I'd think you'd need to configure SpamAssassin at the server level, rather than at the domain level. Other control panels, such as cPanel, are I believe going to be configured in much the same way. Some of them are even controlled at the user level, which I wish that DirectAdmin would support. :)

I would turn SpamAssassin on for all of your domains if you want SpamAssassin to scan all incoming mail (this can be scripted to automate turning it on) and then make the changes that I suggested above to your exim.conf file to have it scan all your local mailboxes and your forwarders.

Somebody else on this forum; however, might have a better suggestion for you.

Good luck! :)
 
Hello,

1) By default forwarders are scanned. The id=156 guide is used to not scan forwarders, so it's probably not what you want.

2)
i mean when one users dont active the spamassassin for delete spam in the USER panel.. is it going to scan the alias email when the email is forward to hotmail..???
If they have spamassassin enabled, but fail to set it to delete the spam, then all forwarded emails, including spam will be forwarded to hotmail. It's up to the user to select the option to delete the spam.


3) If you wanted to force all users who enable spamassassin to have the "delete high scoring spam" option on by default, you can edit the skins and set the variables so that they can't be changed by the user via DA (except the filemanager).

/usr/local/directadmin/data/skins/enhanced/user/email/spamassassin.html

In it, you'll find something like this
Code:
<tr><td class=list align=center><input type=radio name=high_score_block value="yes" |high_score_block_yes|></td><td class=list>|LANG_YES_DELETE_HS_SPAM| <input type=text name=high_score value="|high_score|" maxlength=2 size=2> |LANG_1_99_NO_DEC|</td></tr>
<tr><td class=list2 align=center><input type=radio name=high_score_block value="no" |high_score_block_no|></td><td class=list2>|LANG_NO_DO_NOT_DEL_HSS|</td></tr>
You'll want to change it to:
Code:
<tr><td class=list align=center><input type=radio name=high_score_block value="yes" [b]checked[/b]></td><td class=list>|LANG_YES_DELETE_HS_SPAM| <input type=text name=high_score value="|high_score|" maxlength=2 size=2> |LANG_1_99_NO_DEC|</td></tr>
<tr><td class=list2 align=center><input type=radio name=high_score_block value="no"></td><td class=list2>|LANG_NO_DO_NOT_DEL_HSS|</td></tr>
Basically, delete the |high_score_block_yes| and change it with checked and delete |high_score_block_no|, replaced with nothing.

What this will do is always set it to use the high score deletion by default. If the user choses "no", and hits save, then it will be set to no, but when the page is loaded again, it will show "yes" again, so if they hit save, it will be set to yes. If you totally want to remove their option to have it to "no", so that it always blocks high scoring spam, you can insert disabled into the bits where you deleting/changing things in the html which prevents them from modifying it at all.... or just set the form options to "hidden" ... well, there are many ways of doing it, chose whichever works best for your situation.

John
 
1) By default forwarders are scanned.

not for me .. and i use the exim.conf of spamblocker 2

# Spam Assassin
spamcheck_director:
driver = accept
condition = "${if and { \
{!def:h_X-Spam-Flag:} \
{!eq {$received_protocol}{spam-scanned}} \
{!eq {$received_protocol}{local}} \
{exists{/home/${lookup{$domain}lsearch{/etc/virtual/domainowners}{$value}}/.spamassassin/user_prefs}} \
{<{$message_size}{100k}} \
} {1}{0}}"
retry_use_local_part
transport = spamcheck
no_verify
 
Last edited:
Note that scanning a message is in absolutely no way related to where a message ends up. Only the filters in /etc/virtual/domain.com/filter determines where a message goes, based on the message headers, so check that as well.

The condition you've got there shows that there is no checks at all for the message type, so if normal messages are working but forwarders are not, then it's not because of spamassassin.

John
 
Can you check the headers of the messages that arrive to hotmail/yahoo. See if you've got the spam headers there.
Again, the spamcheck you've got makes no discrimniation on message type.

John
 
so what i need ?

yes.. really .. i verify it before post here.. lol

not scanned really.. in the headers nothing about spam scanned if its just a alias email to a external email adress..
 
The message that arrive to hotmail/yahoo forwarded from your box... view the message headers.

You're looking for headers like:

X-Spam-Checker-Version:
X-Spam-Level:
X-Spam-Status:

etc..

John
 
Back
Top