The following steps are necessary to set up a virtual domain with vmailmgr
(assuming vmailmgr has been compiled and installed). As an example, we'll
set up a virtual user `[email protected]
`, with aliases of `[email protected]
`
and `[email protected]
`.
mail.mydomain.com
, `virtualdomains
` needs an entry like `mail.mydomain.com:myuser
`
For the example, we'll assume that the mail exchanger for mydomain.org is already set up to point to your computer.
myuser
`./var/qmail/control
` `rcpthosts
` and `virtualdomains
`.
rcpthosts
` :
add the line `mydomain.org
`. virtualdomains
` :
add the line `mydomain.org:myuser
`.anything.mydomain.org
` be delivered in the same way, add the following
rcpthosts
` :
add the line `.mydomain.org
`. virtualdomains
` :
add the line `.mydomain.org:myuser
`.checkvpw
` as the password checker. This step
is dependant on how you have installed qmail.
checkpassword
` in the command you use to invoke qmail-popup/qmail-pop3d
(either in `/etc/inet.conf
` or in a `tcpserver
` command) with `checkvpw
`.echo checkvpw > /var/qmail/control/checkpassword
`su - myuser
`) or log in (with either telnet or at the console) as
the new user, and use the included programs to add users and aliases.
For our example, we would
vadduser me
` (which prompts for a password)vaddalias me myself
`vaddalias me myname
`qmail-send
` to
make it read the new `virtualdomains
` table.
If you are using `inetd
` to launch `qmail-popup
`, `kill -HUP
` the `inetd
` process as well.
There are two ways to log in without using multiple IP addresses.
userSEPvirtual.domain.org
`, where `user
` is the mailbox name of the virtual user, SEP is one of `@
` or
`:
` (by default, this is configurable in the `/etc/vmailmgr/
' directory), and `virtual.domain.org
' is the virtual domain's name, as
listed in `/var/qmail/control/virtualdomains
'. baseuser-user
', where `user
' is the same as above, and
`baseuser
' is the username of the managing user. /var/qmail/control/virtualdomains
' contains
testdomain.org:testuserUser `
myuser
' exists, and has set up a virtual mailbox with the name `me
'. The `separators
' variable in `/etc/vmailmgr/
' contains
`@:
'. This virtual user could log in as `[email protected]
', `me:mydomain.cm
', or `myuser-me
'.
In the `vmailmgr/
' configuration directory, there is an entry called `default-username
'. If mail to a virtual domain does not match any
users or aliases in that domain, it is delivered to the name listed in this configuration item if it exists (which defaults to `+
'). To make this deliver
to you, simply type:
vaddalias me +
VMailMgr supports Courier-IMAP, but Courier-IMAP does not auto detect VMailMgr. This means that some minor work is required for making the two work together.
/usr/local/bin/authvmailmgr
` to
`/usr/lib/courier-imap/libexec/authlib/authvmailmgr
`.AUTHMODULES
` statement in
`/usr/lib/courier-imap/etc/imapd.config
` and add `authvmailmgr
` as the first
authentication module.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |