Configuración de envío de correos
Seguridad
fuente: http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html
http://www.oracle.com/technetwork/java/javamail/index.html
Como wget no sirve se debe bajar en el equipo local y luego enviarlo con rsync o pscp si estas en windows
Desktop Linux
Servidor OpenGTS
Editamos el archivo /etc/tomcat7/policy.d/04webapps.policy e incluimos al final
grant codeBase "file:${catalina.home}/webapps/track/WEB-INF/-" {
permission java.util.PropertyPermission "*", "read,write";
permission java.security.AllPermission;
};
grant codeBase "file:${catalina.home}/webapps/events/WEB-INF/-" {
permission java.util.PropertyPermission "*", "read,write";
permission java.security.AllPermission;
};
grant codeBase "file:${catalina.home}/webapps/mologogo/WEB-INF/-" {
permission java.util.PropertyPermission "*", "read,write";
permission java.security.AllPermission;
};
Make sure the above values are appropriate for your installation.
root: Gps2013*
Version: 2.4.7 Database created: gts Privileges granted to user: gts Validating table columns ... ---------------------------------------------------------------------- Table 'Account' [-1] Creating table ... Table 'AccountString' [-1] Creating table ... Table 'User' [-1] Creating table ... Table 'UserAcl' [-1] Creating table ... Table 'GroupList' [-1] Creating table ... Table 'Device' [-1] Creating table ... Table 'Transport' [-1] Creating table ... Table 'UniqueXID' [-1] Creating table ... Table 'DeviceGroup' [-1] Creating table ... Table 'DeviceList' [-1] Creating table ... Table 'Driver' [-1] Creating table ... Table 'EventData' [-1] Creating table ... Table 'Geozone' [-1] Creating table ... Table 'Resource' [-1] Creating table ... Table 'Role' [-1] Creating table ... Table 'RoleAcl' [-1] Creating table ... Table 'StatusCode' [-1] Creating table ... Table 'SystemProps' [-1] Creating table ... Table 'EventTemplate' [-1] Creating table ... Table 'PendingPacket' [-1] Creating table ... Table 'Property' [-1] Creating table ... Table 'Diagnostic' [-1] Creating table ... ---------------------------------------------------------------------- Column validation completed successfully. ---------------------------------------------------------------------- Updating GTS Version: 2.4.7 Updating DMTP Version: 1.3.5
===================================================================================== No errors reported No warnings reported =====================================================================================
Test de envio de correo Antes de debe configurar en el archivo custom.conf los parametros de envio de correo
# --- SMTP # - (outgoing email configuration parameters) smtp.host=smtp.example.com smtp.port=465 smtp.user=someuser smtp.user.emailAddress=some...@example.com smtp.password=somepass smtp.enableSSL=true #smtp.enableTLS=true
* $ bin/checkInstall.sh -sendMail terra...@gmail.com
sampleData/README.txt
o de forma automatica
Ejemplo
smtp.port=465 smtp.user=someuser smtp.user.emailAddress=someuser...@example.com smtp.password=somepass smtp.enableSSL=true #smtp.enableTLS=true