Home › Forums › Support › Error: address in mailbox given [username] does not comply with RFC 2822, 3.6.2. This topic contains 4 replies, has 3 voices, and was last updated by abiralo 4 months ago. Viewing 5 posts - 1 through 5 (of 5 total) Author Posts September 13, 2015 at 2:45 pm #910 mcsilverParticipant I got this on my self-hosted Ubuntu 15.04: Address in mailbox given [username] does not comply with RFC 2822, 3.6.2. I managed to solve it by editing my .env file, which I have located here: /var/www/ninja/.env For my SMTP settings, I had entered just my username for MAIL_USERNAME, which does suffice for my ISP but it seems that Invoice Ninja requires the first email address for the username. Instead of: MAIL_USERNAME=john_doe it requires: [email protected] I hope this helps someone. September 15, 2015 at 6:41 pm #918 Hillel CorenKeymaster Thanks for sharing this! January 16, 2019 at 2:37 pm #18371 abiraloParticipant I have given the [email protected] but not working (self-hosted ) Any idea? January 16, 2019 at 2:39 pm #18372 Hillel CorenKeymaster Are your mail settings correct in the .env file? March 18, 2019 at 9:00 am #20095 abiraloParticipant Yes, I have corrected the .env file Author Posts Viewing 5 posts - 1 through 5 (of 5 total) You must be logged in to reply to this topic.