|
I think you will have to go with setting up two seperate servers for your domains seeing that you want to have both POP and SMTP. As for the DNS server if you want it to perform name resolution then by no means it will have to set one up as follows :
1. Change the MX record for the desired mail domain to route all mail to a particular mail server(s). Without getting into a discussion of DNS or BIND, here's an example of an MX record:
domain.com. IN MX 10 mail.domain.com.
domain.com. IN MX 20 mail2.domain.com.
2. Change the hostname of your mail server based on what you'd like to have appear in the headers of outgoing messages. If you do not specify a hostname or your hostname is not in the form mydomain.tld, you will see localhost.localdomain as the MTA in your mail headers. You will only notice this when you look at detailed headers (or All headers).
3. Modify the file /etc/mail/local-host-names to include domains for which you will accept mail; there should be one domain per line. Also include any subdomains by which this mail server will be referenced in an MX record, e.g. mail.domain.com or mail2.domain.com. As noted in step 1 above, if this server is referenced in an MX record, it's important that this server recognize the hostname by which it is being referenced(via Cw option or local-host-names file). Otherwise problems may arise.
Nolte that the above deal with both the DNS and the Sendmail configurations.
If you have further questions just forward them over.
|