9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Rudolf Sykora <rudolf.sykora@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] mail client; general question web vs command
Date: Sun, 28 Aug 2011 20:22:10 +0200	[thread overview]
Message-ID: <CAOEdRO2za1VcgEbR=WfQErybDZpkADBd3rhz7-NB3DQ-EvpyKw@mail.gmail.com> (raw)
In-Reply-To: <1e4b6a22f3604eb4351f1d52fb9c6518@ladd.quanstro.net>

Hello,

On 28 August 2011 17:15, erik quanstrom <quanstro@quanstro.net> wrote:
>> now when I try (74.125.39.108 should be smtp.gmail.com):
>> cat q | upas/smtp -a -d -h a.com 74.125.39.108 rudolf.sykora@gmail.com
>> rsykora@cern.ch
>
> i'm confused.  are you using plan 9 or p9p?

p9p now

> i would think that a.com is wrong. you need to use your real domain.

you may well be right. I have no idea what/why I should write there. I
am using a notebook that is used regularly at diferent places and the
only thing I now want is to pass my e-mail to gmail via smtp (where I
have an account) so that it then can be sent further. Thus I'd expect
that all I need is i) the mail itself with the info to whom it should
be sent, and ii) login/password for the gmail account. I don't see any
reason for any other domain name... I just wrote that a.com there so
that there is something (so, simply, understand that I do not
understand...).

> also i think you want the real target system, not an ip address.
> mx lookup for google isn't broken for me.
>
>        ; fn mxquery {x=`{ndb/dnsquery google.com mx | sort +1n | sed 1q}; echo $x(4)>[1=2]; ndb/dnsquery $x(4)}
>        ; mxquery google.com >[2=]
>        aspmx.l.google.com ip   74.125.47.27

well, is there any difference if I use smtp.gmail.com or the
corresponding ip? (for the former to work I need, I have a feeling,
add sth somewhere [ndb?], so the ip was easier for the experiment).

> on plan 9, upas typically uses /mail/lib/remotemail to send
> to remote systems.  my remotemail looks like
>
>        #!/bin/rc
>        sender = $1; addr = $2; * = $*(3-)
>        fd=`{/bin/upas/aliasmail -f $sender}
>        switch($fd){
>        case *.*
>                ;
>        case *
>                fd=quanstro.net
>        }
>        exec /bin/upas/smtp -h $fd $addr $sender $*
>

on p9p a similar thing is also in remotemail...

> this is invoked by qmail/kickqueue which are tickled
> by sending mail and/or a cron job.
>
>        ; cat /cron/upas/cron
>        # kick mail retries (replace ladd with your system)
>        0,10,20,30,40,50 * * * *        ladd            /bin/upas/runq -a /mail/queue /mail/lib/remotemail
>
>        # clean up after grey list
>        47 4 * * *      ladd    rm -rf /mail/grey/tmp/*/*
>
> ymmv, and there may be nupasisms in here.
>
> - erik

Ok. But putting aside the way how different programs are invoked,
finally there is always that line with
/bin/upas/smtp -h $fd $addr $sender $*
that actually sends the mail (which it reads from stdin). This line of
yours has to have -a added since gmail needs authentication (so
finally a key in factotum). So before engaging the rewrite,
remotemail, vf, qer, runq, ... (?) programs, I would like to be able
to send an email using just this and be sure it works...

Thanks
Ruda



  reply	other threads:[~2011-08-28 18:22 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-31 20:00 Rudolf Sykora
2011-07-31 20:14 ` Jacob Todd
2011-08-02  4:36   ` Akshat Kumar
2011-08-04 15:49   ` Mathieu Lonjaret
2011-08-06 14:16     ` Rudolf Sykora
2011-08-11 10:42       ` Rudolf Sykora
2011-08-11 10:54         ` Mathieu Lonjaret
2011-08-11 10:55           ` Mathieu Lonjaret
2011-08-13 18:38           ` Rudolf Sykora
2011-08-13 23:26             ` Fazlul Shahriar
2011-08-14 14:50               ` Rudolf Sykora
2011-08-13 23:40             ` Mathieu Lonjaret
2011-08-27 17:59           ` Rudolf Sykora
2011-08-11 12:20         ` Fazlul Shahriar
2011-08-11 16:34           ` John Floren
2011-08-11 17:55             ` David du Colombier
2011-08-28 14:09               ` Rudolf Sykora
     [not found]               ` <CAOEdRO1k0X8tU+QMazETGs2rT4NmMazWPJSDN_79Wd=TbcrHzA@mail.gmail.c>
2011-08-28 15:15                 ` erik quanstrom
2011-08-28 18:22                   ` Rudolf Sykora [this message]
2011-08-31 14:22                     ` Richard Miller
2011-09-09 19:48                       ` Rudolf Sykora
2011-09-14 12:39                         ` Richard Miller
2011-09-19 13:06                           ` Rudolf Sykora
2011-09-20  7:47                             ` David du Colombier
2011-09-21 15:46                               ` Rudolf Sykora
2011-11-16 19:12                                 ` David du Colombier
     [not found]                       ` <CAOEdRO3f7oLw5UmoNu3L4q88PE-be6UEAWEAGLFJ6o2MPjhLxg@mail.gmail.c>
2011-09-10 11:29                         ` erik quanstrom
2011-08-27 17:51     ` Rudolf Sykora
2011-07-31 21:17 ` dexen deVries
2011-08-01  4:22   ` hiro
2011-08-01 11:18 ` Ethan Grammatikidis
2011-08-02 20:32 ` Lyndon Nerenberg (VE6BBM/VE7TFX)
2011-08-02 13:07 erik quanstrom
2011-08-02 13:42 ` Russ Cox
2011-08-02 15:02   ` Charles Forsyth
2011-08-02 19:20     ` David Leimbach
2011-08-03 22:18   ` Akshat Kumar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOEdRO2za1VcgEbR=WfQErybDZpkADBd3rhz7-NB3DQ-EvpyKw@mail.gmail.com' \
    --to=rudolf.sykora@gmail.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).