ork / mutt-office365

A mutt configuration file ready for Office 365
309 stars 56 forks source link

set from = "$my_username@$my_domain" is wrong for my company #21

Open bdamm opened 6 years ago

bdamm commented 6 years ago

At my company, $my_username is different from my sending email address. Specifically

my_domain=itron.com
my_username=bdamm
from=benjamin.damm@itron.com

So, I need a way to override the "from" value.

As currently written, the "muttrc" gives me the option to source gal, aliases, or mailing_lists, but none of those seem like the appropriate place to override the default value of "from". Maybe "gal"? I'm not sure of its intent.

jon-peel commented 3 years ago

I think in muttrc is what you are looking for.

You have

set imap_user="$my_username@$my_domain"
set imap_pass=$my_password

You can just override that. Or create your own settings variables in the "user" and reference those instead.

and then you also want to check the SMTP settings

set realname = $my_realname
set from = "$my_username@$my_domain"
set smtp_pass = $my_password
set hostname = $my_domain
set smtp_url = "smtp://$my_username@$my_domain@outlook.office365.com:587/"