Skip to content

Instantly share code, notes, and snippets.

@nandosola
Last active April 26, 2024 07:28
Show Gist options
  • Save nandosola/f1c31e5004b6c9b54dbb51d877bc3b63 to your computer and use it in GitHub Desktop.
Save nandosola/f1c31e5004b6c9b54dbb51d877bc3b63 to your computer and use it in GitHub Desktop.
Back to CLI
@nandosola
Copy link
Author

nandosola commented Nov 12, 2019

From NeoMutt 20191111 (OS X Catalina, MacPorts) it seems login will fail for a GMail-hosted custom domains (@mydomain.com) and a vanilla GMail account (@gmail.com).

  1. Create entries for custom domain in /etc/hosts pointing to Google's own servers:
108.177.15.108  imap.mydomain.com
74.125.193.108  smtp.mydomain.com
  1. For each account, handle users and passwords like this:
account-hook mydomain 'set imap_user="[email protected]"; set imap_pass="****"; set smtp_pass="****"'
…

And change all URLs (imaps://, smtps://) form gmail.com to mydomain.com where necessary.

See: https://neomutt.org/guide/optionalfeatures#account-hook

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment