Page 1 of 1

possible to block return@*.*

Posted: 26 Jan 2019 10:52
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 1066 times
but it doesn't seem to work ...

thanks in advance

Re: possible to block return@*.*

Posted: 26 Jan 2019 17:03
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

Re: possible to block return@*.*

Posted: 26 Jan 2019 19:35
by Qlink
hi shawniverson,

thanks for your help.

i've tried this:
efa.PNG
efa.PNG (13.15 KiB) Viewed 1051 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 )

Re: possible to block return@*.*

Posted: 26 Jan 2019 19:58
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

Re: possible to block return@*.*

Posted: 27 Jan 2019 20:36
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 1037 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 ...

:( :( :(

Re: possible to block return@*.*

Posted: 27 Jan 2019 23:53
by shawniverson

Code: Select all

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