mjl- / mox

modern full-featured open source secure mail server for low-maintenance self-hosted email
https://www.xmox.nl
MIT License
3.36k stars 89 forks source link

Can't add an account via the command line #180

Closed naddika closed 1 week ago

naddika commented 2 weeks ago
# [ ...mox quick start  ...]

$ ./mox config account add a1 a1@<my_real_domain>.email
adding account: bad request: address not available: domain does not exist

$ ./mox config account add a1 a1@my_fake_domain123.com
adding account: bad request: parsing email address: invalid email address: idna: to ascii: idna: disallowed rune U+005F

where <my_real_domain>.email is my real domain with the tld email. It's not the domain I specified in quickstart

RobSlgm commented 2 weeks ago

Just to make sure: What did you do after mox quickstart ?

Without something like ./mox config domain add <my_real_domain.email> postmaster no domain except the host domain exists. Check ./config/domains.conf --> is you email domain configured?

naddika commented 2 weeks ago

Just to make sure: What did you do after mox quickstart ?

Nothing

Without something like ./mox config domain add postmaster no domain except the host domain exists.

Yes, that was the reason.

naddika commented 2 weeks ago

Another question related to this: if I run

./mox import maildir acc1 Inbox /var/vmail/my_old_domain.com/a1/Maildir/

multiple times, which I have done for an experiment, all the emails will get imported all over again. Namely, there'll be created duplicates. I thought that they'd get overwritten. Other than deleting them now manually, is there other way?

RobSlgm commented 2 weeks ago

@naddika Not to my knowledge.

The fastest way is with ./mox config account rm acc1 followed by a rm -r /home/mox/data/accounts/acc1 and re-create account and re-import.

mjl- commented 1 week ago

indeed, recreating the account would be the best way. or logging in and removing the messages manually. it can be worth deduplicating messages on import in the future. for now i've documented that messages aren't deduplicated as a heads up.