3

I'm trying to set up mutt to work with our internal email server. Our user names have the form

[email protected]

But when mutt tries to authenticate, it appends the mail server's url to the username string:

[email protected]@mail.domain.lan

Authentication fails, and I'm assuming this is the reason why.

Here's my full muttrc:

set imap_user = "[email protected]"
set folder = "imaps://mail.domain.lan:993/"
set spoolfile = +INBOX
set imap_check_subscribed
set postponed = +Drafts
set record = +Sent
set header_cache = "~/.cache/mutt"
set certificate_file = "~/.mutt/certificate"
unset imap_passive
set imap_keepalive = 300
set mail_check = 120

We don't have the this problem with Thunderbird, using the same configuration. Is there a wat force mutt not to append the servers url?

2
  • How are you constructing imap_user? Is it hardcoded or are you doing variable interpolation that might not be doing what you expect?
    – Chris Down
    Commented Jul 30, 2015 at 17:31
  • It's hard coded. imap_user = [email protected]
    – orodbhen
    Commented Jul 30, 2015 at 23:29

1 Answer 1

3

I'd recommend using URL syntax notation for the IMAP folder as explained in the manual.

This should work for the mailbox name:

imaps://[email protected]:[email protected]

From the manual:

This has the advantage that multiple IMAP, POP3 or SMTP servers may be specified (which isn't possible using, for example, $imap_user). The username may contain the “@” symbol being used by many mail systems as part of the login name.

1
  • I tried setting the folder directive as you suggest, but it didn't change anything. It still attempts to authenticate for [email protected]@mail.domain.lan
    – orodbhen
    Commented Jul 31, 2015 at 13:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .