Local emails go into black hole after user is renamed

windserve

New member
Joined
Jul 13, 2008
Messages
3
After renaming a local user from username to username1 using /usr/local/directadmin/scripts/change_username.sh, I'm unable to send emails from addresses on that account to any other accounts on the server. Every other combination (emails from that account to external ones, emails to that account, emails between other accounts on that server, etc) are working.

Are there any ideas on what could be causing the problem? I've disabled SpamAssassin just in case, and looked through all the files in /etc/virtual/ and /etc/virtual/username1/. Nothing is sticking out at me as being the likely cause of the problem.

After I changed the username, I did have to restart sshd to get SSH logins working for this account. Do I need to do something similar with exim? I tried restarting it, but that didn't do the trick either.

Here's what /var/log/exim/mainlog shows:

Code:
2008-07-27 16:15:27 1KNDaR-0005vD-F3 <= [email protected] H=localhost (web01.windserve.com) [127.0.0.1] P=esmtpa A=login:[email protected] S=810 [email protected] T="5:14 webmail test" from <[email protected]> for [email protected]
2008-07-27 16:15:27 1KNDaR-0005vD-F3 => me <[email protected]> F=<[email protected]> R=virtual_user T=virtual_localdelivery S=927
2008-07-27 16:15:27 1KNDaR-0005vD-F3 Completed

/var/log/exim/rejectlog doesn't show anything for the disappearing emails. This happens with both Squirrelmail and Thunderbird sending the emails.

Thanks,

Matt
 
This is interesting. If I use telnet to try to manually send an email from the problem domain, it gets delivered:

Code:
[root@web01 conf]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 web01.windserve.com ESMTP Exim 4.69 Sun, 27 Jul 2008 16:49:40 -0500
HELO web01.windserve.com
250 web01.windserve.com Hello localhost [127.0.0.1]
MAIL FROM: [email protected]
250 OK
RCPT TO: [email protected]
250 Accepted
DATA
354 Enter message, ending with "." on a line by itself
This is a test.
.
250 OK id=1KNE8h-0006DW-Aa
quit
221 web01.windserve.com closing connection
Connection closed by foreign host.
 
This turned out to be a Thunderbird issue. I noticed that emails being sent from the renamed domain are being delivered to the proper Maildir. If I login to Squirrelmail or UebiMiau, the emails show up. I tried a fresh install of Thunderbird on another system, and they started showing up, so I deleted/recreated my Thunderbird profile on the original system and...now everything works. :)
 
Back
Top