Gentoo msmtp and local mail

I have installed msmtp to handle mail I send from mutt using my accounts. But, I would like to get mail from local users, such as cron-jobs and smartmontools as well.
I have researched it, and have found that Gentoo blocks use of more than one Mail Transfer Agent (MTA). This, I found from this forum answer
msmtp is counted as an MTA, and thus, I cannot install sendmail or exim, which my Debian system uses.
So, my alternatives seem to be to either

  1. configure the msmtp sendmail symlink to use one account by default, and use a sane “from” address.
  2. Manually install msmtp after emerging another MTA.

The drawback with 1. is that I will get cron mail to one of my accounts, rather than having it local to the computer. And I need to be careful when setting it up, so that I don’t run into the problem in this question.

The drawback with 2. is that it is more of a hack to enable use of two MTAs. I wonder why Gentoo forbids use of two MTAs while Debian accepts it.

To be continued

Leave a Reply

Your email address will not be published. Required fields are marked *