mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-14 18:49:17 -07:00
Tell Exim to not to forward emails that is marked as SPAM
I just re-ordered rules, based on this suggestion: https://forum.vestacp.com/viewtopic.php?f=12&t=11271&start=10#p51410 I guess that forwarding SPAM to GMail can hurt server reputation. Not sure if @serghey-rodin think this is OK idea, so let he decide.
This commit is contained in:
parent
1096fcda9c
commit
4d9721ba29
1 changed files with 5 additions and 5 deletions
|
@ -209,6 +209,11 @@ dnslookup:
|
|||
transport = remote_smtp
|
||||
no_more
|
||||
|
||||
localuser_spam:
|
||||
driver = accept
|
||||
transport = local_spam_delivery
|
||||
condition = ${if eq {${if match{$h_X-Spam-Status:}{\N^Yes\N}{yes}{no}}} {${lookup{$local_part}lsearch{/etc/exim4/domains/$domain/passwd}{yes}{no_such_user}}}}
|
||||
|
||||
userforward:
|
||||
driver = redirect
|
||||
check_local_user
|
||||
|
@ -250,11 +255,6 @@ localuser_fwd_only:
|
|||
transport = devnull
|
||||
condition = ${if exists{/etc/exim4/domains/$domain/fwd_only}{${lookup{$local_part}lsearch{/etc/exim4/domains/$domain/fwd_only}{true}{false}}}}
|
||||
|
||||
localuser_spam:
|
||||
driver = accept
|
||||
transport = local_spam_delivery
|
||||
condition = ${if eq {${if match{$h_X-Spam-Status:}{\N^Yes\N}{yes}{no}}} {${lookup{$local_part}lsearch{/etc/exim4/domains/$domain/passwd}{yes}{no_such_user}}}}
|
||||
|
||||
localuser:
|
||||
driver = accept
|
||||
transport = local_delivery
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue