Odd: same client, different domains sharing accounts?

Discussion in 'General' started by h0t1ce, Sep 30, 2010.

  1. h0t1ce

    h0t1ce New Member


    I have a client that has 2 domains. example: comp1.com and comp2.com

    only one account [email protected] was created. But for some reason sending an email to [email protected] (doesn't exist) will send the email to [email protected].

    Is there a setting to prevent this from happening?

    thanks for your time

  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Is the second domain a separate website or is it a co-domain?
  3. h0t1ce

    h0t1ce New Member

    Both domains are individual entries in the "sites" folder.

    Looking at the 'co-domain' tab for each doesn't show an entry of the other domain either.
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok, then the domain names are not connected. Have you disblaed username prefixes? If employee is a linux username, then it will catch emails from all domains where the email address starts with [email protected] To prevent that, edit the file /home/admispconfig/ispconfig/lib/config.inc.php and cahnge the line:

    $go_info["server"]["postfix_config"] = 1;


    $go_info["server"]["postfix_config"] = 2;

    then edit the mailbox settings of a user in ispconfig, e.g. change quota and click on save so that the configuration file gets rewritten.
  5. h0t1ce

    h0t1ce New Member

    Thanks for the fast reply. Didn't notice your second reply since I didnt get an email alert.

    I tried changing the setting then changing the quota of one user in the web frontend to have it regenerate the file.

    Now users are getting this email sent to them in large quantities.

    See attachment for an example email being received.

    thank you

    Attached Files:

  6. falko

    falko Super Moderator ISPConfig Developer

    Is localhost.localdomain listed in /etc/hosts?
  7. h0t1ce

    h0t1ce New Member

    localhost.localdomain is actually mentioned twice in /etc/hosts. But it's because there's two lines for Which I find a little odd, hopefully that doesn't cause conflict. www.company123.com www localhost.localdomain localhost www.company123.com www localhost.localdomain localhost

    I did notice that localhost.localdomain wasn't in /etc/local-host-names
    Could that be the problem?

    I'm a little worried to bombard my mailboxes with hundreds of the error email again. Is there a way to avoid that message temporarily from being delivered?

    thank you so much for your time.
  8. falko

    falko Super Moderator ISPConfig Developer

    Should be no problem, but nevertheless I'd remove the last line.

    Do you mean /etc/postfix/local-host-names? If so, add localhost.localdomain to it (at the end where you are allowed to make modifications) and restart Postfix.

Share This Page