Koozali.org: home of the SME Server

how to make info@dom1.com and info@dom2.com be seperate usrs

Offline mcp_dk

  • **
  • 34
  • +0/-0
    • http://lillenet.dk
how to make info@dom1.com and info@dom2.com be seperate usrs
« on: October 12, 2004, 03:31:53 PM »
I have a SME running 6.01-01 and it is very nice.

I have a few domains in it each chrooted to their own ibay and it works great.

But the mail is causing me some problems.

I would like to have info@domain1.com go to user1 and info@domain2.com go to user2.

In the default setup on SME both emailadress would go to user1.

how do i fix it so they go to the specified account?

I have looked at the commercial contrib Vdomain from www.dungog.net but he has not replied to my email yet.

I have also tried this how-to from Darrel May but it didn't work for me. http://tinyurl.com/7y85d

IF anyone has a suggestion on how this can be made to work i would be very pleased.

Thanks alot
Michael
mcp_dk
Who is General Failure and why is he reading my harddrive?

Offline smeghead

  • *
  • 563
  • +0/-0
how to make info@dom1.com and info@dom2.com be seperate usrs
« Reply #1 on: October 12, 2004, 05:12:48 PM »
the Dungog vdomain app should do the trick.  You could also use their GPL email filtering app to enable procmail for each user and then filter, for example:

Mail to info@<all domains> can be filtered using procmail rules to check for each info@<domain> in the To: header and them forward to the appropriate user@<domain>.  I have this setup working for sales@<domain> for a client.  The Vdomain app would make this simpler and easier.

Check it out.

HTH
..................

Offline raem

  • *
  • 3,972
  • +4/-0
Re: how to make info@dom1.com and info@dom2.com be seperate
« Reply #2 on: October 13, 2004, 09:04:54 AM »
mcp_dk

> I would like to have info@domain1.com go to user1 and info@domain2.com go to user2.

> I have also tried this how-to from Darrel May but it didn't work for me. http://tinyurl.com/7y85d

The method outlined in the HOWTO works quite OK and was revised from teh original HOWTPO to be compatible with sme 6.x.
Why do you say that "it didn't work for me".
What did you do and what was it that didn't work ?
...

Offline Normando

  • *
  • 841
  • +2/-1
    • Unixlan
how to make info@dom1.com and info@dom2.com be seperate usrs
« Reply #3 on: October 14, 2004, 02:56:02 AM »
Hi mcp_dk. The howto run ok. I tested in my server. I suspect you have an error: The "howto" not especifie one important issue....the need to create the MAIN user!!!! In your case, yo need to create the user INFO, (and ofcourse unlock the password), then create the user account used to read this emails, for example FRED and PAUL or whatever you want. Ofcourse you need to create the virtualdomain (domain1.com; domain2.com) that you want. Following the howto you put in your 90aliases file this:
info@domain1.com:fred
info@domain2.com:paul

All send to info@domain1.com go to fred account, all send to info@domain2.com go to paul account.
In this manner you fix this situation, without create two INFO account because it's imposible.
Some issues:
I not tested yet, but I suppose can configure with pseudonyms, for example:
info@domain1.com:any_pseudomym_for_a_real_user

PicsOne
PD: Sorry for my bad english

Offline mcp_dk

  • **
  • 34
  • +0/-0
    • http://lillenet.dk
how to make info@dom1.com and info@dom2.com be seperate usrs
« Reply #4 on: October 18, 2004, 01:37:40 PM »
i tried following the quide to the best of my knowledge. It didn't match my filestructure 100% but i made due with what i thought was correct. Since it didn't work (mails still got stuck at domain1.com) i assume that i made some wrong turns somewhere. I will test this on my testbox but for my livebox i have decided to go with Dungog's VirtualServer and emailmanager. its a lew 100$ and it will make it easier to manage.

Thanks anyway.
Who is General Failure and why is he reading my harddrive?