Results 1 to 3 of 3

Thread: configuring msmtp and alpine for yahoo mail plus

  1. #1
    Join Date
    Jan 2009
    Location
    U.S. Pacific Northwest
    Beans
    138

    [solved] configuring msmtp and alpine for yahoo mail plus

    Hello,
    I am trying to get alpine to work for receiving and sending mail through my yahoo account. mpop works beautifully, but I cannot get msmtp to work. I suspect problems with both alpine and msmtp configuration.
    One problem is that alpine insists on sticking my machine name into the mail address, which won't work. I haven't figured out how to stop this.
    Second, I can't get msmtp to send. Well, maybe it does -- if I try sending a file from the command line to my email address, I get a blank message.
    Note also: my yahoo account name is not the same as my ubuntu user name.
    Anyone have this working?

    Pasted .mpoprc (sanitized where appropriate)(note this part works):
    -------------------
    defaults
    keep on
    tls on
    tls_starttls off
    tls_trust_file /etc/ssl/certs/Equifax_Secure_Certificate_Authority.cer
    only_new on
    delivery mda "/usr/bin/procmail -f ’%F’ -d $USER"
    account mymailaccount
    host pop.mail.yahoo.com
    user mymailaccount
    password imnotthatdumb
    account default : mymailaccount
    ----------------------

    Pasted .msmtprc (doesn't appear to work)(sanitized):
    ---------------------
    defaults
    tls on
    tls_starttls off
    tls_trust_file /etc/ssl/certs/Equifax_Secure_Certificate_Authority.cer
    logfile /home/myubuntuusername/msmtplog
    syslog on
    account yahoo
    host plus.smtp.mail.yahoo.com
    port 465
    auto_from off
    from mymailaccount@yahoo.com
    user mymailaccount
    password imnotthatdumb

    account default : yahoo
    ---------------------------------
    Last edited by doctordruidphd; February 19th, 2009 at 11:43 PM. Reason: solved

  2. #2
    Join Date
    Dec 2006
    Beans
    7,349

    Re: configuring msmtp and alpine for yahoo mail plus

    Hi doctordruidphd,

    Quote Originally Posted by doctordruidphd View Post
    Pasted .msmtprc (doesn't appear to work)(sanitized):
    ---------------------
    Code:
    defaults
    tls on
    tls_starttls off
    tls_trust_file /etc/ssl/certs/Equifax_Secure_Certificate_Authority.cer
    logfile /home/myubuntuusername/msmtplog
    syslog on
    account yahoo
    host plus.smtp.mail.yahoo.com
    port 465
    auto_from off
    from mymailaccount@yahoo.com
    user mymailaccount
    password imnotthatdumb
    I have no experience with yahoo mail but you could try a different approach for the certs. Install the ca-certs:

    Code:
    $ sudo apt-get install openssl ca-certificates
    and alter the lines I have highlighted in your config to:

    Code:
    tls on                       
    tls_starttls on              
    tls_trust_file /etc/ssl/certs/ca-certificates.crt
    I have not tested this with yahoo as I don't have a yahoo account but it might be worth a try. 2 other thoughts:

    1. I presume the port number is correct?
    2. What does /home/myubuntuusername/msmtplog show?



    Andrew

  3. #3
    Join Date
    Jan 2009
    Location
    U.S. Pacific Northwest
    Beans
    138

    Re: configuring msmtp and alpine for yahoo mail plus

    Thanks for your reply. I thought I had closed this, but maybe it didn't post.

    I did finally get it to work. The problem was simple. I had not set up the .pinerc file right. The sendmail configuration line should read:

    sendmail-path="/usr/bin/msmtp --account=yahoo -f doctordruidphd@yahoo.com -t"

    All I did was leave off the -t, and it didn't work. It took quite a bit of research to find that.

    FYI, I installed the certs manually. That part went fine,

    I also solved the problem of apline sticking my account@hostname in my email address using alpine's "role" capability. See the manual or hit <shift> # at the main menu.

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
  •