Forcing domains in email addresses

Is there a way to force email address entered to be user@example.com
rather than accept just “user”?

Also, in 3.8 (as opposed to 3.6), if you enter just “user”, the email is
not sent, but no error message is given about it.

Thanks

-Mathieu

Found the difference. RT3.6 use Mail::Address, RT3.8 uses
Email::Address. The later just ignores strings without a @ in there. See
example below.

Regardless, I’d like to be able to just block any email address that
have no domain.

$ perl -MMail::Address -e ‘print join(“\n”, map { $_->address }
Mail::Address->parse(q{abc def@example.com})).“\n”’

abc

def@example.com

$ perl -MEmail::Address -e ‘print join(“\n”, map { $_->address }
Email::Address->parse(q{abc def@example.com})).“\n”’

def@example.comFrom: rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] On Behalf Of Mathieu
Longtin
Sent: July 29, 2008 10:37
To: rt-users@lists.bestpractical.com
Subject: [rt-users] Forcing domains in email addresses

Is there a way to force email address entered to be user@example.com
rather than accept just “user”?

Also, in 3.8 (as opposed to 3.6), if you enter just “user”, the email is
not sent, but no error message is given about it.

Thanks

-Mathieu