Advertisement: Linux VPS from $4/month - contact support for custom offer.
+ Post New Thread
Results 1 to 1 of 1

Thread: How to setup mailbox on a Linux Debian home PC using "mutt"?

  1. #1
    Administrator
    Join Date
    Mar 2013
    Posts
    2,767

    How to setup mailbox on a Linux Debian home PC using "mutt"?

    Having Linux Debian PC, I have been wondering about how to receive email from erroneous cronjobs, other apps like ZFS ZED and how to send mail to the internet.
    I think that the Linux "mutt" is good since it allows sending also attachments.

    Install: sudo apt install mutt

    Read mail: mutt
    Visual interface can be controlled using keys (some tips are in the header of the mutt UI):
    arrows
    enter to view selected mail
    "d" to mark mail for deletion (you can confirm it using $ or let mutt ask about deletion when you quit it)
    "q" to quit or go back (or Ctrl+C)
    "m" send new mail/message
    "?" for help/other shortcuts

    Send mail from a CLI (not from UI using "m" key): echo -e "Hello,\nHow are you?"|mutt -s "Subject" -a "/path/to/attachment.pdf" recipientusername

    In order to send to an internet server, I guess user need to have a system hostname in a FQDN (Fully qualified domain name) format, meaning "something.domain.name". This domain does not need to be registered, yet without it (along with absence of a SPF, DKIM, DMARC), recipient mail server may mark the incoming mail as junk/spam. Anyway to setup a FQDN hostname, at least in a Debian Linux, i can run:

    hostnamectl # to view current hostname
    hostnamectl set-hostname workstation.mydomain.tld # to set a new hostname

    Do You have tips to using mutt better way, for example simple SPF setup etc.?
    Last edited by Fli; 07-15-2024 at 05:40 AM.

+ Post New Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
 Protected by : ZB BLOCK  &  StopForumSpam