We have a domain setup domain.co.uk and we added an alias of domain.com.
Then we added a user account on that domain user@domain.co.uk and tried to add a alias address to that user user@domain.com but when we try to add this we get an error "The domain: domain.com is not local"
As a note: Installation was done with www.baruwa-install.com, it could be related but doubting it.
We have a domain setup domain.co.uk and we added an alias of domain.com.
Then we added a user account on that domain user@domain.co.uk and tried to add a alias address to that user user@domain.com but when we try to add this we get an error "The domain: domain.com is not local" As a note: Installation was done with www.baruwa-install.com, it could be related but doubting it.
My 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), checkdomain]) 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=EMAILMSG)]) enabled = BooleanField(('Enabled'))
This removes the CHECK_DOMAIN validation and rely on user competence (dangerous i know) but works.