Subject: [sup-talk] sending mail; setting smtp server

From: [email-masked] (Edward Ocampo-Gooding)
Date: Wed, 03 Oct 2007 00:06:10 -0400

Hi Folks,

William: thanks for writing Sup; while it's still got a few wrinkles in it (it'd 
be really nice to have an auto-completion thing for contact addresses), I think 
this thing is going to be really cool.

I'm wondering how I go about setting the smtp server with which to send email - 
I didn't see it covered in the readme or faq, so if someone could clarify that, 
I'd really appreciate it. As it stands, Sup is trying to use sendmail as it's 
setup in config.yml, but is failing silently and marking my messages as sent.

Thanks again,
Edward

---

From: [email-masked] (Ian Taylor)
Date: Wed, 03 Oct 2007 01:17:21 -0400

> this thing is going to be really cool.

He recently told me this was implemented and I think it autocompletes
from your ~/.sup/contacts.txt, so you'll have to add entries there.

> setup in config.yml, but is failing silently and marking my messages as sent.

Here's how I'm doing it.

I used to use nbsmtp, but not I'm using msmtp.

I actually send mail out through different smtp servers for each
account (through various ssh port forwards, etc), so I set up my
~/.msmtprc with multiple accounts defined.

In ~/.sup/config.yaml:

:accounts:
  :someaccount:
    :sendmail: msmtp --account=[NAME_OF_ACCOUNT_IN_SMTPRC] -t

-- 
Ian Taylor

---

From: [email-masked] (vasudeva)
Date: Wed, 3 Oct 2007 13:51:24 -0400

* on 10-03-07, Ian Taylor wrote:
> > I'm wondering how I go about setting the smtp server with which
> > to send email - I didn't see it covered in the readme or faq, so
> > if someone could clarify that, I'd really appreciate it. As it
> > stands, Sup is trying to use sendmail as it's setup in
> > config.yml, but is failing silently and marking my messages as
> > sent.
>
> Here's how I'm doing it.
>

I can't be the only one wondering who's going to be the first to set
up a wiki somewhere, so we can store and maintain all these little
snippets of wisdom, without trawling through the README, FAQ, and
mailing list.

(Yes, I realize this is essentially me volunteering self for this
purpose, but I just couldn't take it any longer. If anyone else'd
rather...)

/></

--
linkswarm.com :: Collaborative Insolence
vasudeva.linkswarm.com/gallery :: For The Faint of Heart

---

From: [email-masked] (William Morgan)
Date: Wed, 03 Oct 2007 14:13:51 -0700

> snippets of wisdom, without trawling through the README, FAQ, and

Ask and ye shall receive. http://sup.rubyforge.org/wiki/wiki.pl

Also accepting patches to the FAQ!

-- 
William <wmorgan-sup at masanjin.net>

---

From: [email-masked] (William Morgan)
Date: Wed, 03 Oct 2007 14:44:05 -0700

> from your ~/.sup/contacts.txt, so you'll have to add entries there.

Pretty much. Any To: prompt that Sup provides should auto-complete on
both your contact list and on the 10 most recent contacts. So you should
always see stuff when you hit tab unless you have no messages in your
index.

BTW, you shouldn't have to edit contacts.txt by hand. If you hit 'i'
when highlighting an email address in thread-view-mode, that works like
Mutt's alias.

---

From: [email-masked] (William Morgan)
Date: Wed, 03 Oct 2007 14:52:42 -0700

Excerpts from Edward Ocampo-Gooding's message of Tue Oct 02 21:06:10 -0700 2007:
> I'm wondering how I go about setting the smtp server with which to
> send email - I didn't see it covered in the readme or faq, so if
> someone could clarify that, I'd really appreciate it.

Sup calls out to a sendmail binary rather than talking SMTP directly. So
you will have to configure your system to do the right thing. On Debian
and Debian-based systems there are nice configuration scripts for
telling sendmail to relay all outgoing email to a smarthost, deliver it
directly, etc.

> As it stands, Sup is trying to use sendmail as it's setup in
> config.yml, but is failing silently and marking my messages as sent.

Sup checks whether the command failed and should tell you if so. Do you
have a sendmail binary that's just eating the mail, or is Sup somehow
screwing up the system call return value check?

---

From: [email-masked] (William Morgan)
Date: Fri, 05 Oct 2007 14:34:31 -0700

Excerpts from William Morgan's message of Wed Oct 03 14:52:42 -0700 2007:
> Sup calls out to a sendmail binary rather than talking SMTP directly.

To be clear, it would be possible to have Sup talk SMTP directly, if
that were beneficial to people. I like handing off work to other
software when possible, and I figured most Sup users would have a
working sendmail, but I could be wrong. What do people think?

---

From: [email-masked] (William Morgan)
Date: Sat, 06 Oct 2007 08:51:49 -0700

Excerpts from CHRIS LEE's message of Fri Oct 05 19:11:20 -0700 2007:
> As a *nix junkie, the automatic answer is: let each tool do it's job
> and not include your own SMTP client. However, most gui-based MUAs for
> Windows include an SMTP client.

That's been my philosophy with Sup so far. And if the question really is
better Windows support, that's not compelling enough of an argument for
me (at least right now!). Sup makes a lot of Unix-specific assumptions
and fixing those is pretty low on the priority queue.

> So how about this for a compromise: Write a stand-alone tool,
> supmailer, that sup can use in place of sendmail, but uses the sup
> configuration files?

There actually is good SMTP support right in the Ruby standard library,
so I don't think I'd have to be that dramatic. The question is, is there
a significant fraction of users trying to run Sup on systems that don't
have a working sendmail setup? I'm guessing the answer is no. (Sorry
Edward!) Opinions to the contrary (and patches) accepted.

---

From: [email-masked] (Claes Nästén)
Date: Sun, 7 Oct 2007 11:37:56 +0200

Hi,

> working sendmail, but I could be wrong. What do people think?

Well, one could always use something like msmtp http://msmtp.sourceforge.net/
instead of a full MTA. However, I have not followed this discussion closely,
but would it then be possible to specify a full sendmail command if one can
not replace /usr/sbin/sendmail ?

> _______________________________________________
> sup-talk mailing list
> sup-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/sup-talk

-- 
Claes N?st?n, <me{@}pekdon.net>, http://www.pekdon.net/

"Money has corrupted so much in this world, life would be meaningless
if it kills music as well." - Bin?rpilot
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/sup-talk/attachments/20071007/18e608c9/attachment.bin

---

From: [email-masked] (William Morgan)
Date: Sun, 07 Oct 2007 13:06:51 -0700

Excerpts from Claes N?st?n's message of Sun Oct 07 02:37:56 -0700 2007:
> Well, one could always use something like msmtp
> http://msmtp.sourceforge.net/ instead of a full MTA. However, I have
> not followed this discussion closely, but would it then be possible to
> specify a full sendmail command if one can not replace
> /usr/sbin/sendmail ?

You can send the sendmail command used in config.yaml by specifying a
:sendmail: line for the default account.