The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Help with Secondary IP to send email

Discussion in 'E-mail Discussions' started by sv70, Jan 28, 2010.

  1. sv70

    sv70 Active Member

    Joined:
    Dec 24, 2006
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I want to send emails using the secondary IP of my server but I'm receiving this DNS report:

    Code:
    WARN: "Mail server host name in greeting": 
    host.domain2.com claims to be host host.domain1.com [but that host 
    is at 111.111.111.111 (may be cached), not 222.222.222.222]. 
    I'm following the Cpanel guide: Changing the Sending IP for Outbound Email in Exim without success.

    I have one server and two Ip's.

    111.111.111.111 : host.domain1.com
    222.222.222.222 : host.domain2.com

    both domain names are pointing to DNS of the main domain name in the server:
    ns1.domain1.com
    ns2.domain1.com

    Well, I think it is a very typical configuration for many people.

    This is what I do:

    WHM -> Exim Configuration Editor
    [x] Automatically send outgoing mail from the account's IP address instead of the main IP address


    /etc/mailips
    Code:
    domain1.com: 111.111.111.111                   
    host.domain1.com: 111.111.111.111  
    
    domain2.com: 222.222.222.222               
    host.domain2.com: 222.222.222.222   

    /etc/mailhelo
    Code:
    domain2.com: host.domain2.com    
    *: host.domain1.com

    /etc/mail_reverse.dns
    Code:
    111.111.111.111: host.domain1.com
    222.222.222.222: host.domain2.com
    /var/named/domain1.com.db
    Code:
    $TTL 14400  
    domain1.com.   86400   IN      SOA     ns1.domain1.org.  host.domain1.com. (
                          2010012800 ;Serial Number 
                          [..refresh,retray,, etc..]
               }
                 
    domain1.com.      86400   IN    NS      ns1.domain1.com.
    domain1.com.      86400   IN    NS      ns2.domain1.com.
                            
    ns1.domain1.com.  14400   IN    A       111.111.111.111
    ns2.domain1.com.  14400   IN    A       222.222.222.222 
    
    domain1.com.      14400   IN    A       111.111.111.111
    host              14400   IN    A       111.111.111.111  
    
    mail              14400   IN    A       111.111.111.111  
    
    domain1.com.      14400   IN    MX  10  mail.domain1.com.


    /var/named/domain2.com.db
    Code:
    $TTL 14400  
    domain2.com.   86400   IN      SOA     ns2.domain1.org.  host.domain2.com. (
                          2010012800 ;Serial Number 
                          [..refresh,retray,, etc..]
               }
                          
    domain2.com.   86400   IN      NS      ns1.domain1.com.
    domain2.com.   86400   IN      NS      ns2.domain1.com.
    domain2.com.   14400   IN      A       222.222.222.222 
       
    domain2.com.   14400   IN      MX   0  host.domain2.com.
    mail           14000   IN      A       222.222.222.222  
    /var/named/host.domain1.com.db
    Code:
    $TTL 14400              
    @      86400    IN      SOA     ns1.domain1.com. root.host.domain1.com. (
                        2010012800 ;Serial Number 
                        [..refresh,retray,, etc..]
                       }
                       
    host.domain1.com. 86400 IN   NS   ns1.domain1.com.
    host.domain1.com. 86400 IN   NS   ns2.domain1.com.
    
    host.domain1.com. 14400 IN   A    111.111.111.111 
    ns1               14400 IN   A    111.111.111.111 
    
    

    /var/named/host.domain2.com.db
    Code:
    $TTL 14400              
    @      86400    IN      SOA     ns2.domain1.com. root.host.domain2.com. ( 
                        2010012800 ;Serial Number 
                        [..refresh,retray,, etc..]
                       }
                       
    host.domain2.com. 86400 IN   NS   ns2.domain1.com.
    host.domain2.com. 86400 IN   NS   ns1.domain1.com.
    
    host.domain2.com.       IN   A    222.222.222.222 
    ns2               14400 IN   A    222.222.222.222 
    
    /etc/domain1.rev
    Code:
    @          IN    SOA    ns1.domain1.com. admin.domain1.com. (
                        2010012800 ;Serial Number 
                        [..refresh,retray,, etc..]
                       }
                      
                                  
    @      IN    NS      ns1.domain1.com.
    @      IN    NS      ns2.domain1.com.
    111    IN   PTR      host.domain1.com.
    222    IN   PTR      host.domain2.com.
                            
    111    IN   PTR      www.domain1.com.
    111    IN   PTR      domain1.com.
                            
    222    IN   PTR      www.domain2.com.
    222    IN   PTR      domain2.com.
    
    /etc/hosts
    Code:
    111.111.111.111 host.domain1.com host local
    222.222.222.222 host.domain2.com
    127.0.0.1
    

    I restart Exim and Bind services but the error still appears.

    I'm turning crazy with this problem.

    Why the Host in Greeting error?. :confused:
     
    #1 sv70, Jan 28, 2010
    Last edited: Jan 28, 2010
Loading...

Share This Page