Enable sim-local mail by default
This is safe. With this setup mail addressed to outside destinations (any address not ending in internal_object_host) is silently discarded. By default the internal_object_host is defined as lsl.opensim.local
This commit is contained in:
@@ -77,8 +77,8 @@ namespace OpenSim.Region.CoreModules.Scripting.EmailModules
|
||||
private string IMAP_SERVER_LOGIN = null;
|
||||
private string IMAP_SERVER_PASSWORD = null;
|
||||
|
||||
private bool m_enableEmailToExternalObjects = true;
|
||||
private bool m_enableEmailToSMTP = true;
|
||||
private bool m_enableEmailToExternalObjects = false;
|
||||
private bool m_enableEmailToSMTP = false;
|
||||
|
||||
private ParserOptions m_mailParseOptions;
|
||||
|
||||
@@ -140,7 +140,7 @@ namespace OpenSim.Region.CoreModules.Scripting.EmailModules
|
||||
if (EmailConfig == null)
|
||||
return;
|
||||
|
||||
if(!EmailConfig.GetBoolean("enabled", false))
|
||||
if(!EmailConfig.GetBoolean("enabled", true))
|
||||
return;
|
||||
|
||||
m_enableEmailToExternalObjects = EmailConfig.GetBoolean("enableEmailToExternalObjects", m_enableEmailToExternalObjects);
|
||||
|
||||
@@ -281,8 +281,11 @@
|
||||
; HttpProxyExceptions = ".mydomain.com;localhost"
|
||||
|
||||
;# {emailmodule} {} {Provide llEmail and llGetNextEmail functionality? (requires SMTP server)} {DefaultEmailModule} none
|
||||
;; The email module requires some configuration. It needs an SMTP
|
||||
;; server to send mail through.
|
||||
;; By default email only works within the boundaries of a sim
|
||||
;; For intersim mail, all sims involved need to use the same IMAP mailbox
|
||||
;; and enableEmailToExternalObjects = true in [Email]
|
||||
;; If you want to also allow mail to enter and leave the grid, SMTP will
|
||||
;; also need to be setup
|
||||
; emailmodule = DefaultEmailModule
|
||||
|
||||
;# {SpawnPointRouting} {} {Set routing method for Telehub Spawnpoints} {closest random sequence} closest
|
||||
@@ -533,12 +536,9 @@
|
||||
; DefaultEstateOwnerPassword = password
|
||||
|
||||
[Email]
|
||||
;; The SMTP server enabled the email module to send email to external
|
||||
;; destinations.
|
||||
|
||||
;# {enabled} {[Startup]emailmodule:DefaultEmailModule} {Enable module?} {true false} false
|
||||
;# {enabled} {[Startup]emailmodule:DefaultEmailModule} {Enable module?} {true false} true
|
||||
;; Enable the email module
|
||||
; enabled = false
|
||||
; enabled = true
|
||||
|
||||
;# {enabled} {[Startup]emailmodule:DefaultEmailModule} {maximum number of emails from a object owner per hour} {} 500
|
||||
; MailsFromOwnerPerHour = 500
|
||||
@@ -566,10 +566,12 @@
|
||||
; host_domain_header_from = "127.0.0.1"
|
||||
|
||||
; SMTP configuration: (off-grid mail)
|
||||
;; The SMTP server enabled the email module to send email to external
|
||||
;; destinations.
|
||||
|
||||
;# {enabled} {[Startup]emailmodule:DefaultEmailModule} {Enable send to the world?} {true false} true
|
||||
;# {enabled} {[Startup]emailmodule:DefaultEmailModule} {Enable send to the world?} {true false} false
|
||||
;; Enable sending email to the world.
|
||||
; enableEmailToSMTP = true
|
||||
; enableEmailToSMTP = false
|
||||
|
||||
;# {SMTP_SERVER_FROM} {[Startup]emailmodule:DefaultEmailModule enabled:true} {SMTP server from name?} {}
|
||||
; some smtp servers require a known From email address or will give Error 500 - Envelope from address is not authorised
|
||||
@@ -605,10 +607,10 @@
|
||||
|
||||
; Imap configuration: (grid-local mail)
|
||||
|
||||
;# {enabled} {[Startup]emailmodule:DefaultEmailModule} {Enable send to objects to regions not on instance?} {true false} true
|
||||
;# {enabled} {[Startup]emailmodule:DefaultEmailModule} {Enable send to objects to regions not on instance?} {true false} false
|
||||
;; Enable sending email to regions not on current opensimulator instance.
|
||||
;; Requires a dedicated IMAP account, locally or remote
|
||||
; enableEmailToExternalObjects = true
|
||||
; enableEmailToExternalObjects = false
|
||||
|
||||
;# {IMAP_SERVER_TLS} {[Startup]emailmodule:DefaultEmailModule enabled:true} {IMAP use TLS?} {} false
|
||||
; IMAP_SERVER_TLS = false
|
||||
|
||||
@@ -314,9 +314,12 @@
|
||||
; ##
|
||||
; ## EMAIL MODULE
|
||||
; ##
|
||||
;; The email module requires some configuration. It needs an SMTP
|
||||
;; server to send mail through.
|
||||
;emailmodule = DefaultEmailModule
|
||||
;; By default email only works within the boundaries of a sim
|
||||
;; For intersim mail, all sims involved need to use the same IMAP mailbox
|
||||
;; and enableEmailToExternalObjects = true in [Email]
|
||||
;; If you want to also allow mail to enter and leave the grid, SMTP will
|
||||
;; also need to be setup
|
||||
emailmodule = DefaultEmailModule
|
||||
|
||||
; ##
|
||||
; ## ANIMATIONS
|
||||
@@ -624,12 +627,12 @@
|
||||
|
||||
|
||||
[Email]
|
||||
enabled = false
|
||||
enabled = true
|
||||
|
||||
;enabled = true
|
||||
;internal_object_host = lsl.opensim.local
|
||||
|
||||
;enableEmailToSMTP = true
|
||||
;enableEmailToSMTP = false
|
||||
;host_domain_header_from = 127.0.0.1
|
||||
;SMTP_SERVER_FROM = ""
|
||||
;SMTP_SERVER_HOSTNAME = 127.0.0.1
|
||||
@@ -640,7 +643,7 @@
|
||||
;SMTP_VerifyCertChain = true
|
||||
;SMTP_VerifyCertNames = true
|
||||
|
||||
;enableEmailToExternalObjects = true
|
||||
;enableEmailToExternalObjects = false
|
||||
;IMAP_SERVER_HOSTNAME = 127.0.0.1
|
||||
;IMAP_SERVER_PORT = 143
|
||||
;IMAP_SERVER_TLS = false
|
||||
|
||||
Reference in New Issue
Block a user