rule       local
address    !
result     ""@

rule       local
address    a!
result     ""@a.MYDOMAIN

rule       local
address    !b
result     b@

rule       local
address    a!b
result     b@a.MYDOMAIN

rule       local
address    %
result     ""@

rule       local
address    a%
result     a@

rule       local
address    %b
result     ""@b.MYDOMAIN

rule       local
address    a%b
result     a@b.MYDOMAIN

rule       local
address    @
result     ""

rule       local
address    a@
result     a@

rule       local
address    a@.
result     a@.

rule       local
address    a@b
result     a@b.MYDOMAIN

rule       local
address    a@b.
result     a@b

rule       remote
address    !
result     ""@

rule       remote
address    a!
result     ""@a.INVALID_DOMAIN

rule       remote
address    !b
result     b@

rule       remote
address    a!b
result     b@a.INVALID_DOMAIN

rule       remote
address    %
result     ""@

rule       remote
address    a%
result     a@

rule       remote
address    %b
result     ""@b.INVALID_DOMAIN

rule       remote
address    a%b
result     a@b.INVALID_DOMAIN

rule       remote
address    @
result     ""

rule       remote
address    a@
result     a@

rule       remote
address    a@.
result     a@.

rule       remote
address    a@b
result     a@b.INVALID_DOMAIN

rule       remote
address    a@b.
result     a@b

