Category: Linux

  • Check if port (25 is used for example) is opened. curl -vv telnet://DestinationServerName:25 Example of command to send e-mail using curl. More parameters and information can be found here: https://everything.curl.dev/usingcurl/smtp curl smtp://mail.example.com –mail-from myself@example.com –mail-rcpt receiver@example.com –upload-file email.txt Creating Example.txt (using vi editor). $ vi filename.txt # vi (vee eye)…

    +
  • nc -C mail.domain.com 25 HELO senderdomain.com MAIL FROM:sender@example.org RCPT TO:rcpt@example.com DATA From: sender@example.org To: rcpt@example.com Subject: subject example Date: Fri, 10 Jan 2019 12:00:00 +0000 . QUIT

    +