> smtp=host!987
Too clever! I'm not sure it would work, though, because in
/sys/src/upas/smtp/mxdial.c the invocation is explicitly:
addr = netmkaddr(addr, 0, "smtp");
and changing the port by altering /lib/ndb/common:
tcp=smtp port=25
would be more extreme than I would be comfortable with.
I already added
tcp=submit port=587
to /lib/ndb/common, so I'm OK with changing mxdial.c:
addr = netmkaddr(addr, 0, "submit");
and use a recompiled smtp as "submit". I will insert that in
/mail/lib/remotemail:
exec /bin/upas/submit -as -u [email protected] -h $fd $addr $sender
$*
and rely on my /mail/lib/rewrite to point the above to the NetBSD MXer
in Cape Town. Not a solution for everybody, but I'm in the right
situation to use it.
Lucio.
PS: I noted that netmkaddr isn't mentioned in the man page where it
appears only as its invocation. So I may be making the wrong
assumptions. I haven't checked the source.
-------------------------------------------------------------------------------------
This email has been scanned by the MxScan Email Security System.
-------------------------------------------------------------------------------------