possible to block return@*.*

General eFa discussion
Post Reply
Qlink
Posts: 14
Joined: 25 Dec 2016 23:43

possible to block return@*.*

Post by Qlink »

hi guys,

i'm getting a load of spam mails through with ~90% return@abc-xyz.xx|return@def.qwer.xx|return@uvw.iop.xx
sender domains are always different, but the "return@" pretty constant ...

is it possible to block return@*.* or at least return@*.com or return@*.pl ?

i've tried
efa.PNG
efa.PNG (885 Bytes) Viewed 3635 times
but it doesn't seem to work ...

thanks in advance
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: possible to block return@*.*

Post by shawniverson »

Blacklist method (?)
From: return
To: default

Haven't tried this myself, but this might work. Not sure if this will catch the username portion of the email or not.

Another idea is create a Spamassassin rule and give it a high score
Qlink
Posts: 14
Joined: 25 Dec 2016 23:43

Re: possible to block return@*.*

Post by Qlink »

hi shawniverson,

thanks for your help.

i've tried this:
efa.PNG
efa.PNG (13.15 KiB) Viewed 3620 times
but it doesn't work. return@xyz.com mails are still coming through...

any other way how can i solve this with web ui ?

i'm afraid creating spam assassin rules is above my skills (read about it there https://wiki.apache.org/spamassassin/WritingRules )
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: possible to block return@*.*

Post by shawniverson »

Edit /etc/mail/spamassasin/local.cf and add this:

Code: Select all

header FROM_RETURN      From =~ /return\@/i
score FROM_RETURN       10
describe FROM_RETURN   return@example.org detected
Qlink
Posts: 14
Joined: 25 Dec 2016 23:43

Re: possible to block return@*.*

Post by Qlink »

hi shawniverson,

thanks for your input.

i don't even know how to add this rule to the config:
efa.png
efa.png (20.73 KiB) Viewed 3606 times
i can't open the .cf file with vi command, i cant't change directory with cd /etc/mail/spamassasin/
i can't even list directories ...
sorry, as i said i'm a gui/menu guy ...

:( :( :(
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: possible to block return@*.*

Post by shawniverson »

Code: Select all

sudo nano /etc/mail/spamassassin/local.cf
:whistle:
Post Reply