Limiting matches for SMTP template rules

Limiting matches for SMTP template rules to envelope and headers