From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Sun, 28 Aug 2011 11:15:18 -0400 To: 9fans@9fans.net Message-ID: <1e4b6a22f3604eb4351f1d52fb9c6518@ladd.quanstro.net> In-Reply-To: References: <20110811195500.2034be49@zinc.9fans.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] mail client; general question web vs command Topicbox-Message-UUID: 168fa52a-ead7-11e9-9d60-3106f5b1d025 > 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? i would think that a.com is wrong. you need to use your real domain. 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 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 $* 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