Rather edit the check domain function to lookup the alias table Sent from my iPhone
> On 14 Oct 2014, at 12:35 PM, ManicD <[email protected]> wrote: > > Ok, poor solution so far > > https://github.com/akissa/baruwa2/blob/master/baruwa/forms/accounts.py > > class AddressForm(Form): > """Add alias address""" > address = TextField(_('Email Address'), > [validators.Required(message=REQ_MSG), > validators.Email(message=EMAIL_MSG)*, check_domain*]) > enabled = BooleanField(_('Enabled')) > > > Can be edited to > > > class AddressForm(Form): > """Add alias address""" > address = TextField(_('Email Address'), > [validators.Required(message=REQ_MSG), > validators.Email(message=EMAIL_MSG)]) > enabled = BooleanField(_('Enabled')) > > > This removes the CHECK_DOMAIN validation and rely on user competence > (dangerous i know) but works. > > > > > -- > View this message in context: > http://baruwa-users-list.963389.n3.nabble.com/Alias-Domain-adding-to-user-account-The-domain-xxxxxxxxxxxxxxxx-com-is-not-local-tp4027467p4027469.html > Sent from the Baruwa users list mailing list archive at Nabble.com. > > _______________________________________________ > http://pledgie.com/campaigns/12056 _______________________________________________ http://pledgie.com/campaigns/12056

