> 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.syk...@gmail.com
> rsyk...@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

Reply via email to