Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] sending mail; setting smtp server
@ 2007-10-03  4:06 Edward Ocampo-Gooding
  2007-10-03  5:17 ` Ian Taylor
  2007-10-03 21:52 ` William Morgan
  0 siblings, 2 replies; 10+ messages in thread
From: Edward Ocampo-Gooding @ 2007-10-03  4:06 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [sup-talk] sending mail; setting smtp server
  2007-10-03  4:06 [sup-talk] sending mail; setting smtp server Edward Ocampo-Gooding
@ 2007-10-03  5:17 ` Ian Taylor
  2007-10-03 17:51   ` [sup-talk] Knowledge Store? vasudeva
  2007-10-03 21:44   ` [sup-talk] sending mail; setting smtp server William Morgan
  2007-10-03 21:52 ` William Morgan
  1 sibling, 2 replies; 10+ messages in thread
From: Ian Taylor @ 2007-10-03  5:17 UTC (permalink / raw)


Excerpts from Edward Ocampo-Gooding's message of Wed Oct 03 00:06:10 -0400 2007:
> 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.

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.

> 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 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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [sup-talk] Knowledge Store?
  2007-10-03  5:17 ` Ian Taylor
@ 2007-10-03 17:51   ` vasudeva
  2007-10-03 21:13     ` William Morgan
  2007-10-03 21:44   ` [sup-talk] sending mail; setting smtp server William Morgan
  1 sibling, 1 reply; 10+ messages in thread
From: vasudeva @ 2007-10-03 17:51 UTC (permalink / raw)


* on 10-03-07, Ian Taylor wrote:
> Excerpts from Edward Ocampo-Gooding's message of Wed Oct 03
> 00:06:10 -0400 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. 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 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

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



^ permalink raw reply	[flat|nested] 10+ messages in thread

* [sup-talk] Knowledge Store?
  2007-10-03 17:51   ` [sup-talk] Knowledge Store? vasudeva
@ 2007-10-03 21:13     ` William Morgan
  0 siblings, 0 replies; 10+ messages in thread
From: William Morgan @ 2007-10-03 21:13 UTC (permalink / raw)


Excerpts from vasudeva's message of Wed Oct 03 10:51:24 -0700 2007:
> 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.

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

Also accepting patches to the FAQ!

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [sup-talk] sending mail; setting smtp server
  2007-10-03  5:17 ` Ian Taylor
  2007-10-03 17:51   ` [sup-talk] Knowledge Store? vasudeva
@ 2007-10-03 21:44   ` William Morgan
  1 sibling, 0 replies; 10+ messages in thread
From: William Morgan @ 2007-10-03 21:44 UTC (permalink / raw)


Excerpts from Ian Taylor's message of Tue Oct 02 22:17:21 -0700 2007:
> 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.

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.

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [sup-talk] sending mail; setting smtp server
  2007-10-03  4:06 [sup-talk] sending mail; setting smtp server Edward Ocampo-Gooding
  2007-10-03  5:17 ` Ian Taylor
@ 2007-10-03 21:52 ` William Morgan
  2007-10-05 21:34   ` William Morgan
  1 sibling, 1 reply; 10+ messages in thread
From: William Morgan @ 2007-10-03 21:52 UTC (permalink / raw)


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?


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [sup-talk] sending mail; setting smtp server
  2007-10-03 21:52 ` William Morgan
@ 2007-10-05 21:34   ` William Morgan
       [not found]     ` <20071006021120.GI422@chrislee.dhs.org>
  2007-10-07  9:37     ` Claes Nästén
  0 siblings, 2 replies; 10+ messages in thread
From: William Morgan @ 2007-10-05 21:34 UTC (permalink / raw)


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?

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [sup-talk] sending mail; setting smtp server
       [not found]     ` <20071006021120.GI422@chrislee.dhs.org>
@ 2007-10-06 15:51       ` William Morgan
  0 siblings, 0 replies; 10+ messages in thread
From: William Morgan @ 2007-10-06 15:51 UTC (permalink / raw)


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.

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [sup-talk] sending mail; setting smtp server
  2007-10-05 21:34   ` William Morgan
       [not found]     ` <20071006021120.GI422@chrislee.dhs.org>
@ 2007-10-07  9:37     ` Claes Nästén
  2007-10-07 20:06       ` William Morgan
  1 sibling, 1 reply; 10+ messages in thread
From: Claes Nästén @ 2007-10-07  9:37 UTC (permalink / raw)


Hi,

On Fri, Oct 05, 2007 at 02:34:31PM -0700, William Morgan wrote:
> 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?
>

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 ?

> 
> -- 
> William <wmorgan-sup at masanjin.net>
> _______________________________________________
> 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 


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [sup-talk] sending mail; setting smtp server
  2007-10-07  9:37     ` Claes Nästén
@ 2007-10-07 20:06       ` William Morgan
  0 siblings, 0 replies; 10+ messages in thread
From: William Morgan @ 2007-10-07 20:06 UTC (permalink / raw)


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.

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-10-07 20:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-03  4:06 [sup-talk] sending mail; setting smtp server Edward Ocampo-Gooding
2007-10-03  5:17 ` Ian Taylor
2007-10-03 17:51   ` [sup-talk] Knowledge Store? vasudeva
2007-10-03 21:13     ` William Morgan
2007-10-03 21:44   ` [sup-talk] sending mail; setting smtp server William Morgan
2007-10-03 21:52 ` William Morgan
2007-10-05 21:34   ` William Morgan
     [not found]     ` <20071006021120.GI422@chrislee.dhs.org>
2007-10-06 15:51       ` William Morgan
2007-10-07  9:37     ` Claes Nästén
2007-10-07 20:06       ` William Morgan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox