January 27th, 2004, 08:17 PM
Configuring sendmail for different domains
i am runing Sendmail v9 on FreeBSD 4.5 and for now hosting 5 different domains on sigle server and planing to add some more soon, with wich i will have problems soon too.
Lets say i will have two users with same real name for example both John Doe, but for the first one i am hosting domain.com and for second one domain.net. Now both users would like to have same alias john.doe. I know i could solve this by adding records to virtusertable, but if i would have to set this for lots of users it would be very time consuming and unpractical.
So my question is if it is posible to solve this any other way to set aliases separately for each domain.
Thanx for answers in advance and if i have to post more detailed info please let me know.
January 28th, 2004, 04:18 PM
The virtusertable is the way to go for this particular requirement. If you don't want to add names for every single domain, you can just forward all mail for that domain to one user, as follows:
This will forward everything addressed to domain.net to joebloggs.
January 28th, 2004, 05:18 PM
thanx for your answer alexgreg
i guess i didn't put the question clear enough, so you missunderstood what i want to achive. so i will try to explain some more. if i wold do it in a way you suggested, tahn all mail from that domain would be forwarded to one user, but i would like to know if there are more users, lets say lots of them with same name (alias) in different domains, how would i do it than? is there a way to separate domains on a single server? i am just guessing, but is it possible to have more than one aliases file, one for each domain?
maybe i should add this in my first post, the way in wich i am solving this now. so lets say i have two users with same name (alias) but in different domains.
name: john doe
name: john doe
so than i put records to virtusertable in taht way:
and that solves the problem for now, but in future as i said, there will more user with same name and there will be more and more chance to make a mistake and the mails will be delivered to wrong user, so i would like to solve this before it heppends.
Last edited by kotolenko; January 28th, 2004 at 05:23 PM.
February 4th, 2004, 03:39 PM