Results 1 to 2 of 2

Thread: Sending email with MUTT

  1. #1
    Join Date
    May 2008
    Location
    Ottawa ON, Canada
    Beans
    132
    Distro
    Ubuntu 16.04 Xenial Xerus

    Sending email with MUTT

    I'm following the mutt configuration that's listed
    HTML Code:
    https://medium.com/@mritunjaysharma394/how-to-set-up-mutt-text-based-mail-client-with-gmail-993ae40b0003
    and it seems that the imap side of the configuration is working, but the smtp side is not.

    When I try to send an email, I get a the SMTP error
    Code:
    SMTP session failed: 501 5.5.4 https://support.google.com/mail/?p=helo
    . Is there something I am doing wrong in the SMTP configuration or missing?

    muttrc file:

    Code:
    # ================  IMAP ====================
    set imap_user = yourusername@gmail.com
    set imap_pass = yourpassword
    set spoolfile = imaps://imap.gmail.com/INBOX
    set folder = imaps://imap.gmail.com/
    set record="imaps://imap.gmail.com/[Gmail]/Sent Mail"
    set postponed="imaps://imap.gmail.com/[Gmail]/Drafts"
    set mbox="imaps://imap.gmail.com/[Gmail]/All Mail"
    set header_cache = "~/.mutt/cache/headers"
    set message_cachedir = "~/.mutt/cache/bodies"
    set certificate_file = "~/.mutt/certificates"
    # ================  SMTP  ====================
    set smtp_url = "smtp://yourusername@smtp.gmail.com:587/"
    set smtp_pass = $imap_pass
    set ssl_force_tls = yes # Require encrypted connection
    # ================  Composition  ====================
    set editor = "vim"      # Set your favourite editor.
    set edit_headers = yes  # See the headers when editing
    set charset = UTF-8     # value of $LANG; also fallback for send_charset
    # Sender, email address, and sign-off line must match
    unset use_domain        # because joe@localhost is just embarrassing
    set realname = "Your Name"
    set from = "yourusername@gmail.com"
    set use_from = yes

  2. #2
    Join Date
    May 2008
    Location
    Ottawa ON, Canada
    Beans
    132
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Sending email with MUTT

    So the resolution to this for anyone in the future is to set a set hostname="gmail.com" at the bottom.

    Also, I had to make sure that my postfix configurations were updated and I followed this guide:
    https://help.skysilk.com/support/sol...as-gmail-relay

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •