Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: zeusdntrun on March 22, 2005, 04:48:52 PM
-
I need to add pseudonyms to sepcific domains, i have already installed an rpm that allows me to add users to specific domains, but when i create pseudonyms, i can't restrict them to specific domains, :-? and also i need to great multiple pseudonyms with the same name for different domains, but it will not let me create one when the name already exist is there a way around this.. :roll:
-
I wonder if people still bother to read earlier forum posts anymore. I know I read them all when I first came to the forums (it took me ages but there was so much useful information there) !
This question has been answered many times in the last few days and weeks, surely it's not too hard to find.
What about using search, that would have found something too !!
http://mirror.contribs.org/smeserver/contribs/rmitchell/smeserver/howto/virtual%20domain%20email%20aliases%20HOWTO%20for%20sme%20server.htm
and install the dungog-mailblocking rpm
-
using mailblocking contrib we have the ability to switch on or off email for users on a per domain basis via a server manager panel - this doesn't work via the panel for pseudonyms though - by default if a pseudonym exists for one domain it exists for all
way round this is as follows
instead of declaring the domain as a virtual domain via server-manager do it by hand - this works particularly well if you wish all mail for a particular domain to go to one user
create a custom templates
1. /etc/e-smth/templates-custom/var/qmail/control/virtualdomains/20addons
2. /etc/e-smth/templates-custom/var/qmail/control/rcpthosts/20addons
3. /etc/e-smth/tempaltes-custom/var/qmail/control/mailrules.default/15addons
NB in mailrules.default - if you installed the user panel you will find something like 20ValidateLocalRecipients already exists here - do not delete it. It reads the user database.
1. declare the virtual domain as follows
user1@newdomain.com:designateduser1
user2@newdomain.com:designateduser2
newdomain.com:designateduser3
if you wish all mail to go to one mailbox just use the last declaration
2. declare the virtual domain as vaild
newdomain.com
3. declare as follows
k*:*user1@newdomain.com
k*:*user2@newdomain.com
and
d*:*@newdomain.com: Sorry, that is an invalid address.Check your spelling.
or perhaps just
k*:*@newdomain.com
expand the templates and signal-event email-update
this can be used in combination with virtual domains configured via server-manager but obviously this only works for email not www
only drawback to this method is the need to handball the config files everytime you want to change things around but it makes things very flexible and you can easily kill email addresses that get unwanted mail.