1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

How to route all email from VPS to foreign server?

Discussion in 'Plesk for Linux - 8.x and Older' started by Mateo1041, Sep 28, 2006.

  1. Mateo1041

    Mateo1041 Guest

    0
     
    Hello,

    We just set up the MX record in Plesk so that all incoming email is routed to another server. This works great for external emails coming in from the outside. But when sending email via PHP on the VPS itself, the emails never arrive.

    How can I have the VPS send all email traffic, whether from outside or originating from the server itself to another server for processing?

    Do I need to change a sendmail setting somewhere?

    Thanks!
    - Matt.
     
  2. Mateo1041

    Mateo1041 Guest

    0
     
    I think I found the solution to this. I had to remove the domain name from the /var/qmail/rcpthosts and /var/qmail/virtualdomains files.

    Now the Plesk VPS no longer thinks it needs to process the emails instead of listening to the MX record which points to a different server.
     
  3. next-step

    next-step Guest

    0
     
    you could just turn off mail service for each these domains :)
     
  4. Mateo1041

    Mateo1041 Guest

    0
     
    Thanks for the reply!

    Ok, so use the "Disable" icon under "Mail" in Plesk? That won't affect our PHP scripts sending email from the server will it?
     
  5. next-step

    next-step Guest

    0
     
    yes that wont effect php

    Mail service for domain off deleting records in the qmail config and qmail will handle that email address as you need
     
Loading...