Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Feb 2007
    Posts
    29

    Default How to exclude a domain from beeing mail serviced?

    Hi

    we have a few users that use a combination of our services.

    mainly it's a combination of an advanced mailservice, and a cpanel webservice that gives us the problem.


    We need to have cpanel to detect when it's NOT mailserver for a given hosted domain, or even to deselect mailservice for a hosted/addon/parked domain.

    so... the magic could be, if the MX records is set to another server, have an optin option for mailservice for the given domainname.

    right now, we have a problem that mails sent to "other server" is delivered locally, eg

    domain.com IN A <webserverip>
    domain.com IN MX <mailserver>.

    if an email is sent by, eg smtp or php, it's delivered to <webserverip>, and not <mailserver>.. I want the server to respect the mx records, so all userdelivered email/mail from webserver/cpanel interface will be delivered useing MX records..


    is this understandable/possible... ?


    I used to fix this on my older plesk system by setting up an postfix to handle email sent from webserver.. Is there a better solution. eg an "main outgoing mailserver" setup sort of solution..

  2. #2
    Member
    Join Date
    Jan 2007
    Posts
    17

    Default

    Hi,


    I think you need to do it manually as follows.

    Remove domain name from /etc/localdomains and add it in /etc/remotedomains

    create the /etc/remotedomains if it not exist on server.



    Anand
    Last edited by andyaav; 11-22-2007 at 03:04 PM.

Similar Threads & Tags
Similar threads

  1. Option to exclude mail accounts during full backup
    By DjiXas in forum Feature Requests for cPanel/WHM
    Replies: 0
    Last Post: 06-13-2011, 09:52 AM
  2. How to exclude a domain of mod_security ?
    By capoinfra in forum Security
    Replies: 6
    Last Post: 03-04-2010, 04:37 PM
  3. ip not beeing blocked
    By ploppy in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 12-12-2007, 01:27 PM
  4. Exclude Domain from Backup
    By netarus in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 06-15-2004, 08:50 AM
  5. Is it possible to exclude a domain from Mailscanner ?
    By furquan in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 05-15-2004, 08:34 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube