Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use multiple e-mail accounts? #9

Open
maitra opened this issue Dec 29, 2019 · 5 comments
Open

How to use multiple e-mail accounts? #9

maitra opened this issue Dec 29, 2019 · 5 comments

Comments

@maitra
Copy link

maitra commented Dec 29, 2019

How does one set up multiple e-mail accounts, for example, personal gmail account, work account on outlook and family account on gmx? I know how to set up smtp, etc.

@hydrargyrum
Copy link
Owner

Do you plan to use mbsync for fetching and msmtp for sending or other tools?

@maitra
Copy link
Author

maitra commented Jan 9, 2020

I typically use fetchmail and procmail to populate my local mail folders. I use smtp. However, for O365, neither of this work so I use python-o365. So, I guess the answer is a combination, not the same for each mail account.

@hydrargyrum
Copy link
Owner

There are several parts to configure.

Fetchers

  1. Open the Lierre settings
  2. "Fetchers" tab
  3. click the "+" to load a fetcher plugin
  4. choose the "command" plugin
  5. name it (for example "fetchmail")
  6. type the command you'd like to run (e.g. "fetchmail -v")

If you want to run procmail too or run fetchmail with different options, you can repeat steps 3-6, multiple times if desired, just choose a different name each time. The "command" plugin type can be used several times.
If you want to, you can wrap it all in a unique script, for example fetch.sh, but that can be less flexible.

These commands will be run when you click the big "refresh" tool button. Or periodically if you load some "periodic refresh" plugin. Or when necessary if the "imapidle" plugin is loaded (I should write a "fetchmail --idle" plugin).

Identities

Identities are basically sender info. You don't need to configure them to receive emails on different mailboxes, but you need to configure them if you want to send from multiple addresses. An "identity" is basically associated one of your sender addresses.

The configuration UI is not ready yet. You'll have to edit ~/.config/lierre/config YAML file.

Here's an example:

identities:
  personal:
    email: nickname@personal.example.com
    name: maitra
    sender_plugin: sender_personal
  work:
    email: john.doe@professional.example.com
    name: 'John Doe'
    sender_plugin: sender_work

The values to put for sender_plugin keys will be used in the next section.

Senders

  1. Open the Lierre settings
  2. "Senders" tab
  3. click the "+" to load a sender plugin
  4. choose the plugin type you want (more on that later)
  5. name it, choosing a name you will refer to in the identities config (for example, use "sender_personal" as in our previous identities config)
  6. configure the plugin for sending using nickname@personal.example.com for example

Repeat steps 3-6 for each of your sender addresses/identities, naming the plugin instance each time like the associated identity.

Regarding the plugin type to choose, right now, Lierre only supports sending emails using commands msmtp and sendmail. But I can add more plugins. I've never used O365, I will look into python-o365 though I don't have any account to test it.

@hydrargyrum
Copy link
Owner

However, for O365, neither of this work

After searching very quickly on it, doesn't smtp.office365.com work?

@maitra
Copy link
Author

maitra commented Jan 10, 2020

Thanks for the details. python-o365 like interface is needed when we have to access our outlook accounts using two-factor authentication but that provided by a third party such as OKTA or Duo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants