* Passwordless multi-account SMTP
@ 2012-04-03 15:29 Jacek Generowicz
2012-04-03 15:41 ` Patrick Totzke
2012-04-03 15:46 ` James Vasile
0 siblings, 2 replies; 3+ messages in thread
From: Jacek Generowicz @ 2012-04-03 15:29 UTC (permalink / raw)
To: notmuch
Hello,
I'm trying to use notmuch from Emacs. I have a number of SMTP accounts
through which I would need to send mail. Suggested solutions I have
found fall into 3 categories:
+ Gnus posting styles. (I'd rather stay clear of gnus, at present.)
+ Writing plaintext passwords in the MSMTP config files. (I'm rather
relutctant to leave plaintext passwords lying around.)
+ Emacs' own SMTP library. (I don't understand how to get it to deal
with many accounts in a non-gnus based way. It also seems to be
undergoing an interface change in the transition from Emacs 23 to
24, and it was already confusing enough without that complication.)
To further complicate matters, I'm looking for a solution which queues
any messages which are sent while the machine is offline. (It seems
that MSMTP and Emacs SMTP library do offer some help in those
respects.)
Hints gratefully received.
Thank you.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Passwordless multi-account SMTP
2012-04-03 15:29 Passwordless multi-account SMTP Jacek Generowicz
@ 2012-04-03 15:41 ` Patrick Totzke
2012-04-03 15:46 ` James Vasile
1 sibling, 0 replies; 3+ messages in thread
From: Patrick Totzke @ 2012-04-03 15:41 UTC (permalink / raw)
To: Jacek Generowicz, notmuch
Hi Jacek,
I am using msmtp for this: I keep my passwords in an encrypted
file and use a shellscript to decrypt and grep for passwords
in combination with msmtp's `passwordeval` option.
Have a look at
https://github.com/pazz/configs/blob/master/.msmtprc
https://github.com/pazz/scripts/blob/master/getpwd
I have a similar setup for offlineimap (configs also on github).
All this works quite nicely together with my ssh-agent (gnome-keyring-daemon)
which unlocks my gnupg keys upon login.
HTH,
/p
Quoting Jacek Generowicz (2012-04-03 16:29:07)
>Hello,
>
>I'm trying to use notmuch from Emacs. I have a number of SMTP accounts
>through which I would need to send mail. Suggested solutions I have
>found fall into 3 categories:
>
>+ Gnus posting styles. (I'd rather stay clear of gnus, at present.)
>
>+ Writing plaintext passwords in the MSMTP config files. (I'm rather
> relutctant to leave plaintext passwords lying around.)
>
>+ Emacs' own SMTP library. (I don't understand how to get it to deal
> with many accounts in a non-gnus based way. It also seems to be
> undergoing an interface change in the transition from Emacs 23 to
> 24, and it was already confusing enough without that complication.)
>
>To further complicate matters, I'm looking for a solution which queues
>any messages which are sent while the machine is offline. (It seems
>that MSMTP and Emacs SMTP library do offer some help in those
>respects.)
>
>Hints gratefully received.
>
>Thank you.
>_______________________________________________
>notmuch mailing list
>notmuch@notmuchmail.org
>http://notmuchmail.org/mailman/listinfo/notmuch
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Passwordless multi-account SMTP
2012-04-03 15:29 Passwordless multi-account SMTP Jacek Generowicz
2012-04-03 15:41 ` Patrick Totzke
@ 2012-04-03 15:46 ` James Vasile
1 sibling, 0 replies; 3+ messages in thread
From: James Vasile @ 2012-04-03 15:46 UTC (permalink / raw)
To: Jacek Generowicz, notmuch
[-- Attachment #1: Type: text/plain, Size: 1400 bytes --]
On Tue, 3 Apr 2012 17:29:07 +0200, Jacek Generowicz <jacek.generowicz@cern.ch> wrote:
> Hello,
>
> I'm trying to use notmuch from Emacs. I have a number of SMTP accounts
> through which I would need to send mail. Suggested solutions I have
> found fall into 3 categories:
>
> + Gnus posting styles. (I'd rather stay clear of gnus, at present.)
>
> + Writing plaintext passwords in the MSMTP config files. (I'm rather
> relutctant to leave plaintext passwords lying around.)
>
> + Emacs' own SMTP library. (I don't understand how to get it to deal
> with many accounts in a non-gnus based way. It also seems to be
> undergoing an interface change in the transition from Emacs 23 to
> 24, and it was already confusing enough without that complication.)
>
> To further complicate matters, I'm looking for a solution which queues
> any messages which are sent while the machine is offline. (It seems
> that MSMTP and Emacs SMTP library do offer some help in those
> respects.)
>
> Hints gratefully received.
I use a slightly modified msmtpq for queuing and I have some hooks that
run profiles to choose SMTP server and other options based on
sender/receiver/last search. Passwords are plain text but my fs is
encrypted. If you want, you could encrypt the password file with gpg
and use gpg-agent to grab the password as needed from the file.
Good luck.
[-- Attachment #2: Type: application/pgp-signature, Size: 489 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-04-03 15:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-03 15:29 Passwordless multi-account SMTP Jacek Generowicz
2012-04-03 15:41 ` Patrick Totzke
2012-04-03 15:46 ` James Vasile
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).