def ConfigureEmails(config):
 print '\n\n-=Monitoring/Email Domain=-\nEmails concerning alerts or updates must be sent to this domain.\n'
 domain = RetryQuestion('Email Domain e.g example.com', '^([\\.A-Za-z0-9-]+)*$', config_lib.CONFIG.Get('Logging.domain'))
 config.Set('Logging.domain', domain)
 print '\n\n-=Alert Email Address=-\nAddress where monitoring events get sent, e.g. crashed clients, broken server\netc.\n'
 email = RetryQuestion('Alert Email Address', '', ('grr-monitoring@%s' % domain))
 config.Set('Monitoring.alert_email', email)
 print '\n\n-=Emergency Email Address=-\nAddress where high priority events such as an emergency ACL bypass are sent.\n'
 emergency_email = RetryQuestion('Emergency Access Email Address', '', ('grr-emergency@%s' % domain))
 config.Set('Monitoring.emergency_access_email', emergency_email)

def ConfigureEmails ( config ) : print '\n\n-=Monitoring/Email Domain=-\nEmails concerning alerts or updates must be sent to this domain.\n' domain = RetryQuestion ( 'Email Domain e.g example.com' , '^([\\.A-Za-z0-9-]+)*$' , config_lib . CONFIG . Get ( 'Logging.domain' ) ) config . Set ( 'Logging.domain' , domain ) print '\n\n-=Alert Email Address=-\nAddress where monitoring events get sent, e.g. crashed clients, broken server\netc.\n' email = RetryQuestion ( 'Alert Email Address' , '' , ( 'grr-monitoring@%s' % domain ) ) config . Set ( 'Monitoring.alert_email' , email ) print '\n\n-=Emergency Email Address=-\nAddress where high priority events such as an emergency ACL bypass are sent.\n' emergency_email = RetryQuestion ( 'Emergency Access Email Address' , '' , ( 'grr-emergency@%s' % domain ) ) config . Set ( 'Monitoring.emergency_access_email' , emergency_email )
configure email notification addresses .