Timeline for Configuring mail command to use msmtp
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 8 at 20:37 | comment | added | Atherion |
I didn't want to install other programs, so I was able to figure it out. If it doesn't exist already create /etc/mailutils.conf then add the following line. mailer { url "sendmail:///usr/bin/msmtp"; }
|
|
Apr 4, 2021 at 22:26 | comment | added | JBC | This worked From moritzvd.com/email-with-smtp-debian-ubuntu In order to be able to use the mail command wee need to install mailx sudo apt-get install bsd-mailx Set mail transport agent to use msmtp sudo nano /etc/mail.rc append the following: set mta=/usr/bin/msmtp | |
Mar 21, 2021 at 22:14 | comment | added | Mathias Weidner |
You can look with strings $(which mail) what filename is compiled in. On an Ubuntu 18.04 I am using, the local config file seems to be ~/.mailrc.
|
|
Mar 21, 2021 at 22:13 | comment | added | JBC | It might be an issue with msmtp-mta, but it's hard to find documentation on that. wiki.debian.org/msmtp | |
Mar 21, 2021 at 22:03 | comment | added | JBC | edit: The log files are there but show no update once I removed postfix (it was overkill for this project). | |
Mar 21, 2021 at 21:56 | comment | added | JBC | Config files are to be found nowhere. The commands in the manual do not return any results, and they are not on the suggested locations. The programs seem to be communicating because the keyring prompt pops up and the login options are set only in ~/.msmtprc Editing question again. Could not find the log files either. | |
Mar 21, 2021 at 11:06 | history | answered | Mathias Weidner | CC BY-SA 4.0 |