Remove Virtual User with ISPConfig

Discussion in 'Server Operation' started by flyboy320, Feb 8, 2009.

  1. flyboy320

    flyboy320 New Member

    Hello all,

    I am running into a problem where I had a user ID/email (e.g. [email protected]) that was receiving email and forwarding on to another email address in another domain (e.g. [email protected]). All was working well and I started getting tons of spam for the first email address ([email protected]) and wanted to remove the email address from the user.

    I first tried to change the email address in ISPConfig for that user to something else (e.g. [email protected]) but the account was still receiving email for that address and forwarding it to [email protected].

    Next, I deleted the user account in ISPConfig and emptied the Trash. I confirmed the user was no longer in the virtusertabl in /etc/postfix and the user directory was removed in /var/www/<web>/user/ directory. With all that gone, email is still getting received by Postfix and forwarded.

    I tried to run postmap to rebuild the virtusertable and then restarted Postfix and ISPConfig and neither helped.

    What else am I missing?

    Running Ubuntu 6.06LTS.

    Thanks in advance for the help.

  2. falko

    falko Super Moderator ISPConfig Developer

    Do you have a system user named xyz? Did you disable the username prefixes in ISPConfig?
  3. flyboy320

    flyboy320 New Member

    Thank you for the quick reply. The actual user ID was web2-xyz. I checked the passwd file and the account was removed as was the home directory.

    I also tried to create a new user and assign that email address and the user was able to receive email. However, when I deleted the user again, the mail went back to being forwarded as outlined above.

    There is no catch all mailbox for that website and any new accounts that are created and then deleted will receive and then reject mail when deleted. This one account seems to be defined in two places. When IPSConfig has a definition for the account it will forward email and when removed from IPSconfig, the email reverts back to being forwarded.

    Is there someplace else that I could look to see where that email address could be assigned to a user and what user is actually receiving the email and forwarding it.

    I looked in the virtusertable and the account is not defined there. I have stop and started IPSConfig and Postfix. I have not attempted a complete reboot yet, and am not sure that that would accomplish but willing to try.

    Thanks again for the help.
  4. falko

    falko Super Moderator ISPConfig Developer

    Is the username maybe defined in /etc/passwd or /etc/aliases?
  5. flyboy320

    flyboy320 New Member

    The user is not defined in either place. The question comes up as to how Postfix knows that that particular email address still exists and how to forward it to a specific account. I tried to set the smtp log to verbose and that didn't shed any light on how it Postfix still knows about that account. I will try a server reboot tonight to see if that solves the problem.
  6. falko

    falko Super Moderator ISPConfig Developer

    What's in your
  7. flyboy320

    flyboy320 New Member


    I found the problem but not sure how to fix it. The issue is that Postfix is sends all email to system user email account for [email protected]. Thats the account that still exists. I have tried to send mail to multiple domains with [email protected] and all mail goes to that system account even though abc is not setup in the virtual users file.

    Do you know the setting for Postfix to reject mail not specifically spelled out in the virtusertable file? It looks like a virtual_alias_domains setting but ISPConfig did not set that and am kind of leary about adding it an possibly causing a negative impact on ISPConfig.

    Thanks and really enjoyed the Perfect Setup HowTo.
    Last edited: Feb 15, 2009

Share This Page