Code Monkey home page Code Monkey logo

Comments (2)

imthenachoman avatar imthenachoman commented on May 4, 2024

USEREMAIL mispelled as USRMAIL

Fixed. Thanks!

@hellresistor Could you look through the other comments? You had added the section so I thought you might know best?

from how-to-secure-a-linux-server.

hellresistor avatar hellresistor commented on May 4, 2024

@kevinwheeler

cat <<EOF> .msmtprc assumes you are running the command inside /root I think.

yes.

It would be good to at least note that the script is broken and any caveats in the meantime if no one wants to spend the time to implement all of the changes right now. I spent a lot of extra time investigating why things weren't working before realizing that the config said smtp.google.com instead of smtp.gmail.com

When uploaded, was working .... some time ago ... (years...)

It may be good to note that there is a way to enter your password from command line interactive standard input without having to ever type it out in a command line command otherwise, because commands can get logged in .bash_history for example as noted here https://wiki.archlinux.org/title/msmtp

run history -ac

It also maybe should be noted to not store the MSMTP script in a file if you want to avoid having your password / the PWDEMAIL stored in a file in plain text.

If you aren't going to use OAuth, you need to set up an app password for your gmail account. You can't just use your main password. The process for doing so can be found here https://caupo.ee/blog/2020/07/05/how-to-install-msmtp-to-debian-10-for-sending-emails-with-gmail/

I had some trouble with the GPG stuff, but I forget what exactly.

There quite possibly could be more errors, because as of 5 hours ago, I didn't have any experience with any of this, and I don't know what many of the commands in the MSMTP setup script are doing.

Just delete de script file, after configuration ....
well, time pass, and maybe some configs have changed.. if you read the script.. you maybe understand the auth its done by gpg encrypted password file... the auth need run in memory. yes maybe no to much secure to locate a encrypted encrypted password walking on the RAM ...
That was my research ... 2/3 years ago.
What I see on that website, its loging with an app password generated by google. This is to encrypt the password in a file, with this resolve the situation on locate password inside a file in plain-text.
Maybe is possible do a "mix" and play with gpg, encrypto psw files, and that method pf auth by google.

I also think it would be good to mention that people can install either msmtp or Exim4. (I think this is the case, right?). With no context about any of this stuff, it took me a bit to realize this.

run : msmtp --help
you have no context... what exactly is your problem/error , or what you need? maybe this is not the solution for your needs :|

USEREMAIL mispelled as USRMAIL

MAILPROV uses smtp.google.com instead of smtp.gmail.com and I'm not sure if the port is supposed to be here either

USERLOC is unused

Purpose errors ;) force people read and understand what the code do.

@imthenachoman heya, sorry late delay, loose on time ;)
let this friend give us an output with your update and than i will take a look whats happen ^^

The table of contents link in the README.md file that goes to the MSMTP section doesn't work.

@imthenachoman maybe should you correct this, i not have exp on github editing tools/commands ^^

from how-to-secure-a-linux-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.