> ... What should I have done instead? require 'socket.smtp' as suggested before. You said it worked, right? Remove smtp.lua from /usr/local/share/lua/5.1/ but leave it in /usr/share/lua/5.1/socket/ to make sure it still works.