Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 1 of 1
  1. #1
    Registered User
    Join Date
    Jun 2006
    Posts
    1

    Default Exim: mail from one domain is sent by another domain

    Still struggling with the following problem:

    I have two accounts on the same server, domain1.com, domain2.com
    When I send mail through PHP from domain1.com all is fine.
    When I send mail from domain2.com, I get this receive line in messages:
    Received: from $user_at_domain2 by domain1.com with local (Exim 4.52)
    That is, domain1.com (the primary domain) sends mail for domain2.com
    Also, even when I send from domain2.com, server sends an EHLO domain1.com during mail sending.

    In a word, domain1.com sends all mail, even if it should be done from domain2.com

    This creates problems as some remote mail servers reject mail from domain2.com because of such mismatch.

    I've tried using local_interfaces and interface commands in exim.conf, but this only binds exim to either domain1.com or domain2.com, depending on what I write in exim.conf.

    Is there a solution for this ? I've searched the forums, to find the same question asked in different ways with no solutions. I've searched the web, where no apparent answers were found. I've tried running two exim daemons, each with their own exim.conf, and using -C command to specify the correct configuration file. This didn't work either as I only have on php.ini where I can specify path to sendmail. I think I also found a way where I can specify different settings for each domain, but that didn't work as I couldn't use the -C option in php.ini due to setuid issues. To bypass setuid issues I had to recompile Exim. I figured geesh, Exim is controlled by Cpanel, let me see if there is another way first.

    Is there another way ?

    EDIT: another problem unsolved.
    Last edited by krissyhissy; 06-13-2006 at 02:58 PM.

Similar Threads & Tags
Similar threads

  1. stop exim mails from domain after 200th mail
    By Globy in forum E-mail Discussions
    Replies: 0
    Last Post: 12-03-2008, 08:48 AM
  2. Replies: 1
    Last Post: 07-08-2008, 01:01 PM
  3. Having problems with Exim: unrouteable mail domain
    By Go3team in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-27-2005, 07:11 AM
  4. exim (unrouteable mail domain)
    By xploit in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-20-2004, 04:45 AM
  5. exim & unroutable mail domain error
    By freakysid in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 06-16-2004, 05:37 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube