You are not logged in.

#1 2008-02-14 00:39:42

ionflux
Member
From: Boston, MA
Registered: 2007-06-20
Posts: 18

Mutt IMAP and Diffie-Hellmann prime

Hi,

I am trying to setup Mutt for IMAP access, but cannot get SMTP to work.
I can read and delete my mail, but when I try sending a message I get the response: "Relaying denied; no authenticators available".
Here is the relevant part of my .muttrc:

set folder = imaps://po14.mit.edu
set spoolfile = +INBOX
set smtp_url = smtps://outgoing.mit.edu
set ssl_force_tls = "yes"

I also tried using the combination Mutt + Offlineimap + Msmtp; when I try sending a message, I get:
"The Diffie-Hellmann prime sent by the server is unacceptable (too short)".

What do you think the problem could be?

Thank you in advance for your help.

Offline

#2 2008-02-14 01:20:00

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: Mutt IMAP and Diffie-Hellmann prime

I had this problem some time ago. I think I couldn't solve it, so I ditched msmtp for nbsmtp, which didn't fail me yet. I have

set sendmail="/usr/bin/nbsmtp"

in my .muttrc. Your .nbsmtprc should look probably more-less like this:

relayhost=outgoing.mit.edu
fromaddr=**your e-mail address**
auth_user=**username**
use_tls=True
use_starttls=False

(Probably needs some tweaking, I'm not sure how that mit server authenticates. At my uni, the smtp server checks that "fromaddr" is a university address, and that auth_user is a valid university login.

Offline

#3 2008-02-14 03:10:53

ionflux
Member
From: Boston, MA
Registered: 2007-06-20
Posts: 18

Re: Mutt IMAP and Diffie-Hellmann prime

Hi Bender,

Thank you very much for your prompt reply and your help!
I tried your suggestion, using the debug option, and here is the last part of the message I get:

------------------
... Sender ok
[->] RCPT TO:<my_username@mit.edu>
Recipient REJECTED [my_username@mit.edu] -> '5.7.1 <my_username@mit.edu>... Relaying denied. Proper authentication required.'
No recipients were accepted by the server, exiting
Error in send_mail
Mail NOT sent.
------------------

Is it possible that this might be due to the fact that I don't put my password in the nbsmtprc??
I am assuming it will ask for it.

Thank you so much for your help!

Offline

#4 2008-02-14 04:14:53

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: Mutt IMAP and Diffie-Hellmann prime

I think nbsmtp won't ask for anything. You'll probably need to specify the password in the .nbsmtprc by 'auth_pass=**password**'. (And of course set the permissions on that file!).

Offline

#5 2008-02-14 05:22:05

ionflux
Member
From: Boston, MA
Registered: 2007-06-20
Posts: 18

Re: Mutt IMAP and Diffie-Hellmann prime

Hi Bender,

It WORKS!!  Thank you SO much for your help!
For some reason, it needed the password to be present in the nbsmtprc config file.

Out of curiosity, I tried adding the password to my old IMAP muttrc file, using

set smtp_url = ...
set smtp_pass = password

but it did NOT work.   Yet, it works with Gmail even without password in the config file.
It's a mystery to me.  Anyway, now I can finally send emails from my regular account.

Thank you SO much for suggesting nbsmtp!

Offline

#6 2008-02-14 05:33:55

bender02
Member
From: UK
Registered: 2007-02-04
Posts: 1,328

Re: Mutt IMAP and Diffie-Hellmann prime

No problem.

For the .muttrc parameters: if you have smtp_* set up, mutt treats them as parameters when calling sendmail. Now msmtp creates a link (probably to /usr/bin/sendmail), which mutt calls by default; whereas nbsmtp does not (and hence you need to set up 'set sendmail=/usr/bin/nbsmtp'). I don't know how well can msmtp handle those smtp_* parameters.
EDIT: I'm sure nbsmtp cannot handle them.

As for gmail, with gmail you might not need to supply a password, but what gmail smtp server does is that it silently replaces the "From: ..." line in your e-mail. Hence, when you use gmail smtp server, the "From" address of outgoing e-mails will *always* be your gmail address.

Last edited by bender02 (2008-02-14 05:34:39)

Offline

#7 2008-02-14 22:08:55

ionflux
Member
From: Boston, MA
Registered: 2007-06-20
Posts: 18

Re: Mutt IMAP and Diffie-Hellmann prime

Hi Bender,

I see.

Thank you for offering your expertise.  Very much appreciated!

Offline

#8 2008-04-09 15:13:31

sevenfourk
Member
Registered: 2008-02-21
Posts: 185

Re: Mutt IMAP and Diffie-Hellmann prime

guys, thank yall on this page smile solved my issues


No cause is lost if there is but one fool left to fight for it.

Offline

Board footer

Powered by FluxBB