mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 05:14:08 -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
|
transport = remote_smtp
|
||||||
no_more
|
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:
|
userforward:
|
||||||
driver = redirect
|
driver = redirect
|
||||||
check_local_user
|
check_local_user
|
||||||
|
@ -250,11 +255,6 @@ localuser_fwd_only:
|
||||||
transport = devnull
|
transport = devnull
|
||||||
condition = ${if exists{/etc/exim4/domains/$domain/fwd_only}{${lookup{$local_part}lsearch{/etc/exim4/domains/$domain/fwd_only}{true}{false}}}}
|
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:
|
localuser:
|
||||||
driver = accept
|
driver = accept
|
||||||
transport = local_delivery
|
transport = local_delivery
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue