Package Location: /scripts/output/JamfConnectMonitor-2.3.0.pkg
Schema Location: /scripts/output/jamf_connect_monitor_schema.json
SMTP Configuration is now REQUIRED for email notifications
- System mail fallback has been removed due to reliability issues
- You must configure SMTP settings in the Configuration Profile
- Supports Gmail, Office365, or corporate SMTP servers
-
Port 465 Support
- Default port changed from 587 to 465 everywhere
- Proper SSL/TLS detection (port 465 uses SSL, 587 uses STARTTLS)
- Works with networks that block port 587
-
Enhanced SMTP Authentication
swakswith --tlsc for port 465mailxwith proper SSL configuration- Multiple fallback methods
- No system mail fallback - SMTP only
-
Email Reliability
- Removed unreliable system mail that caused silent failures
- Clear error messages when SMTP is not configured
- No more stuck emails in local mail queues
- Log into Jamf Pro
- Navigate to: Settings → Computer Management → Packages
- Click New
- Upload
JamfConnectMonitor-2.3.0.pkg - Set Category: Security or Utilities
- Navigate to: Computers → Configuration Profiles → New
- Name: "Jamf Connect Monitor - Email Settings"
- Add Payload: Application & Custom Settings
- Configure:
- Source: Custom Schema
- Preference Domain:
com.macjediwizard.jamfconnectmonitor - Upload Schema: Use
jamf_connect_monitor_schema.jsonfrom output folder
- Configure Settings in GUI:
Email Recipient: your-email@domain.com SMTP Server: smtp.gmail.com SMTP Port: 465 ← IMPORTANT: Use 465, not 587 SMTP Username: your-email@domain.com SMTP Password: [Gmail App Password - 16 characters] SMTP From Address: your-email@domain.com Company Name: Your Organization
- Navigate to: Computers → Policies → New
- General:
- Display Name: "Install Jamf Connect Monitor"
- Trigger: Recurring Check-in (or Self Service)
- Packages:
- Add
JamfConnectMonitor-2.3.0.pkg - Action: Install
- Add
- Scope:
- Target test computers first
- Go to: https://myaccount.google.com/security
- Enable 2-Step Verification (if not already)
- Click "App passwords"
- Generate new app password for "Mail"
- Copy the 16-character password
- Use this in the Configuration Profile SMTP Password field
After deployment, SSH into the test Mac and run:
# Verify files installed
ls -la /usr/local/bin/jamf_connect_monitor.sh
ls -la /Library/LaunchDaemons/com.macjediwizard.jamfconnectmonitor.plist
# Check if daemon is running
sudo launchctl list | grep jamfconnectmonitor
# Check if Configuration Profile is applied
sudo defaults read /Library/Managed\ Preferences/com.macjediwizard.jamfconnectmonitor
# Test configuration reading
sudo /usr/local/bin/jamf_connect_monitor.sh test-config
# Send test email
sudo /usr/local/bin/jamf_connect_monitor.sh test-email your-email@domain.com
# Check logs if issues
tail -f /var/log/jamf_connect_monitor/monitor.log
# Test port 465 (should work)
nc -zv smtp.gmail.com 465
# Test port 587 (may be blocked)
nc -zv smtp.gmail.com 587
# If you have the source code on the test machine
sudo /path/to/tools/email_test.sh test your-email@domain.com
# Or run diagnostics
sudo /path/to/tools/email_test.sh diagnostics
-
Check logs:
tail -f /var/log/jamf_connect_monitor/monitor.log -
Verify Configuration Profile:
sudo defaults read /Library/Managed\ Preferences/com.macjediwizard.jamfconnectmonitor | grep SMTP -
Test network connectivity:
nc -zv smtp.gmail.com 465 -
Common Issues:
- Port 587 blocked: Make sure Configuration Profile uses port 465
- Authentication failed: Use Gmail App Password, not regular password
- No SMTP configured: Email notifications will be disabled (no system mail fallback)
When email test succeeds, you should see:
✅ Test email sent successfully!
Please check your inbox for the test message.
The test email will have subject: "🧪 Jamf Connect Monitor Test Email - [hostname]"
After successful testing:
- Check email received with proper formatting
- Verify logs show successful SMTP authentication
- Test a real violation (optional):
# Add a test admin user sudo dseditgroup -o edit -a testuser admin # Wait for monitoring to detect (up to 5 minutes) # Check if notification sent
Once testing succeeds:
- Expand scope to production computers
- Monitor logs for first 24 hours
- Adjust notification settings as needed
- Check logs:
/var/log/jamf_connect_monitor/ - Run diagnostics:
sudo jamf_connect_monitor.sh test-config - Email test:
sudo jamf_connect_monitor.sh test-email
Version: 2.4.0
SMTP Provider: Select from dropdown (Gmail, Office365, SendGrid, etc.)
Port Configuration: 587 (STARTTLS) default, 465 (SSL) also supported