I administer one mail server that hosts several domains in it. I.E.
- Mail Server: supermailserver.mydomain.com
Hosting mail for domains:
- domain1.com
- domain2.com
- domain3.com
- domain4.com
- domain5.com
I have my user database with OpenLDAP. The server works just fine. There is only one thing I would like to tweak which is the following:
Right now, if I add a user "username" to OpenLDAP and the CyrusMail backend, then "username" gets mail through the following addresses:
The tweak I would like to make is to allow "username" to get emails only from selected domains. What's the best (and easiest) way to do this?
Thanks a lot in advance.
We setup explicit entries in virtusertable for domains that we accept mail for:
This forces you to list out every mail address that you accept (which can be interpreted as either bad or good)
I believe that you could use the M4 macro FEATURE(
virtusertable',
dbtype') where dbtype can be ldap or dbm as an example to use a database instead of a file.