Ticket #5976 (closed defect: duplicate)
Problem with notification to internal domain names
| Reported by: | Andrew Van Pernis <andrew.vanpernis@…> | Owned by: | eblot |
|---|---|---|---|
| Priority: | low | Milestone: | |
| Component: | notification | Version: | 0.10-stable |
| Severity: | minor | Keywords: | |
| Cc: |
Description
I am using Trac for an internal project on a Windows network. Most users have only an internal e-mail address of the format <username>@mail.local, and users login via LDAP through the AD server. In the notification section of trac.ini, I have set smtp_default_domain = mail.local, but notifications are sent to <username>@mail.loca.
This appears to be the offending line in notification.py in NotifyEmail.
addrfmt = r"[\w\d_\.\-\+=]+\@(([\w\d\-])+\.)+([\w\d]{2,4})+"
If I change the range from 2-4 to 2-5 of the final section in the expression, then notification works correctly for me, but I'm sure there should be a more general solution for formation internal domain names.


