--- tmda-ofmipd	2003-06-15 11:27:24.000000000 -0600
+++ tmda-ofmipd.new	2003-10-25 05:16:50.000000000 -0600
@@ -755,6 +755,7 @@
         self.push('235 AUTH successful')
         print >> DEBUGSTREAM, 'Auth: ', 'succeeded for user', \
               "'%s'" % self.__auth_username
+        os.environ['LOGIN'] = self.__auth_username
         self.__smtpauth = 1
 
     def auth_verify(self, sasl=None):
