{{Silently delete mail to the user at the current domain.}}
val defaultAlias = \email -> aliasPrim defaultSource (addressTarget email);
-{{When a message to the current domain doesn't match any other alias, and it
- doesn't match any systemwide username, send it to this e-mail address.}}
-val catchAllAlias = \email -> aliasPrim catchAllSource (addressTarget email);
-{{When a message to the current domain doesn't match any other alias, send it
- to this e-mail address, even if it matches a systemwide username.}}
+{{When a message to the current domain doesn't match any other alias, send it to
+ this e-mail address.}}
dns (dnsNS "ns1.hcoop.net");
dns (dnsNS "ns3.hcoop.net");
- dns (dnsDefaultA (ip_of_node default_node));
+ dns (dnsDefaultA (ip_of_node (web_node_to_node web_node)));
handleMail;
dns (dnsMX 1 "deleuze.hcoop.net");
mailbox <- Mailbox;
- catchAllAlias mailbox;
+ defaultAlias mailbox;
web "www" with
+ serverAliasDefault
end;
config
| _ => print ("Slave " ^ node
^ " returned unexpected command\n");
OpenSSL.close bio
- end
+ end
+ handle OpenSSL.OpenSSL s => print ("OpenSSL error: " ^ s ^ "\n")
fun doUser user =
let
print "\n";
Msg.send (bio, MsgOk)))
handle e as (OpenSSL.OpenSSL s) =>
- (print "OpenSSL error\n";
- app (fn x => print (x ^ "\n")) (SMLofNJ.exnHistory e))
+ (print ("OpenSSL error: " ^ s ^ "\n");
+ app (fn x => print (x ^ "\n")) (SMLofNJ.exnHistory e);
+ Msg.send (bio, MsgError ("OpenSSL error: " ^ s))
+ handle OpenSSL.OpenSSL _ => ())
| OS.SysErr (s, _) =>
(print "System error: ";
print s;
if C.Ptr.isNull reason then
()
else
- print (ZString.toML reason)
+ print (ZString.toML reason);
+ print "\n"
end
val readBuf : (C.uchar, C.rw) C.obj C.ptr' = C.alloc' C.S.uchar (Word.fromInt Config.bufSize)