I’m trying to get command line email working with msmtp and gmail. Msmtp works with basic smtp servers with plain login.
But gmail requires oauth2. For that we are supposed to use mailctl (installed as mailctl-bin from AUR).
I’ve installed mailctl but the install does not provide the basic config files (some templates exist but they are opaque to me as to how to set them up). Does anyone have mailctl working to provide gmail service for msmtp? If so, could you provide more instructions for setting it up?
yes; the msmtp config is clear, but what I don’t know is how to set up the mailctl config files (like ~/.config/mailctl/config.yaml, service.yaml etc?)
I have never used msmtp. On my RPi (running Debian 11) I installed mailutils and ssmtp and it was very easy to configure to work with Gmail - I only had to add a credentials to a single config file.
thanks mithrial - app password is the (very) simple answer. I did not see the option because 2 factor auth was not turned on my google account. Seems to work perfectly now.
(I would still kind of like to know how to use mailctl to do this however.)