You need to add a line to your AOLserver configuration file (config.tcl or whatever you called it):
ns_section "ns/parameters"
ns_param mailhost smtp.yourserver.com
The ns/parameters section will already be there, just add the mailhost param and AOLserver (and by extension .LRN/OpenACS) will use it rather than the machine it is working on.