Re: Submitting to freedb HOW?

Todd Zullinger <[email protected]> Thu, 1 Jun 2006 19:27:25 -0400
Newsgroups gmane.comp.multimedia.grip.user
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Joi,

Joi Ellis wrote:
> On Mon, 24 Apr 2006, Todd Zullinger wrote:
> 
>> Jesse wrote:
>>> How can Grip send an email to [email protected] when it
>>> does not know what my SMTP mail server is?
>> 
>> It uses the sendmail command on your system.  That will connect
>> directly to the freedb.org mail server and submit the mail.
>> 
>>> Where do I enter this information in the config?
>> 
>> Nowhere.  :)
>> 
>  
> Finally, I pipe in.  This configuration assumption is too
> simplistic.

Not really. :)

> For instance, my local DSL provider BLOCKS all outbound and inbound
> port 25 packets coming from or going to any machine with a customer
> IP address, in a lame attempt to block spam.

First, I assume you mean that they block port 25 to anything other
than their own SMTP servers.  If they are blocking it completely and
not providing their customers with an SMTP server to use for sending
mail, then they are just horribly wrong and foolish and there's not
much I can say to help you other than to complain loudly to them and
get a different provider if they don't change their boneheaded
policies.

> This means I can't use sendmail without going through an ssh tunnel,
> even when I'm using authenticated SMTP via my primary ISP in
> Minneapolis.

You can still use sendmail.  You just need to configure it to use your
DSL provider's SMTP server as the smarthost (sendmail's terminology I
believe).  I use postfix as my MTA of choice, so the configuration is
a little different.  But the result is the same, the sendmail command
accepts mail and delivers it.

The alternative would be to have a full SMTP client built into grip,
which would be a big waste, IMO.  Grip doesn't even include it's own
encoder, it simply acts as a front end for others.  And encoding is
one of the primary tasks of the software.  It's not unreasonable to do
the same thing for the much less frequent task of submitting mail to
CDDB.

> You really should consider making this configurable, in the same way
> one can configure the mp3 encoder and the ripper.  

(I wouldn't be the one to make that change.  I'm just a grip user, not
a coder. :)

There are many programs on a typical linux system that expect to find
a sendmail program for sending mail.  IMHO, grip is doing the right
thing here.  The solution is to configure sendmail or a sendmail
compatible wrapper.

You could install something like msmpt or ssmtp if you don't want to
have sendmail installed on your system.  As long as there is a way for
grip to call the command sendmail things should work out.

You should even be able to setup sendmail (or a wrapper) to use your
ssh tunnel.  This is the beauty of the unix design principle that you
have many small applications which do one thing well and that you can
chain together to accomplish all sorts of things no one has thought of
yet.

- -- 
Todd        OpenPGP -> KeyID: 0xD654075A | URL: www.pobox.com/~tmz/pgp
======================================================================
Pick battles big enough to matter, yet small enough to win.
    --Jonathan Kozol

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: When crypto is outlawed bayl bhgynjf jvyy unir cevinpl.

iG0EARECAC0FAkR/d90mGGh0dHA6Ly93d3cucG9ib3guY29tL350bXovcGdwL3Rt
ei5hc2MACgkQuv+09NZUB1rJ1gCg/fyxcwPrsmUYUEJtBX8q1evG26AAnjDbesWq
ENWDrCv8qJ5l+rQW84dY
=1xJm
-----END PGP SIGNATURE-----