mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
Using sender addresses coming from a known domain is better.
fixed #187
This commit is contained in:
+2
-2
@@ -7,7 +7,7 @@ from modoboa.lib.emailutils import sendmail_simple
|
||||
@login_required
|
||||
@is_not_localadmin()
|
||||
def send_virus(request):
|
||||
status, error = sendmail_simple("virus@evil.tld", request.user.username, """
|
||||
status, error = sendmail_simple("virus@example.net", request.user.username, """
|
||||
This is the EICAR testvirus pattern.
|
||||
|
||||
X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*
|
||||
@@ -22,7 +22,7 @@ will detect and treat it as if it were a virus.
|
||||
@login_required
|
||||
@is_not_localadmin()
|
||||
def send_spam(request):
|
||||
status, error = sendmail_simple("spam@evil.tld", request.user.username, """
|
||||
status, error = sendmail_simple("spam@example.net", request.user.username, """
|
||||
This is the GTUBE, the
|
||||
Generic
|
||||
Test for
|
||||
|
||||
Reference in New Issue
Block a user