hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : Send mail from a different IP other than server IP
Reply

Forum Jump

Send mail from a different IP other than server IP

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 07-29-2009, 11:25 AM
vivianmark vivianmark is offline
Junior Guru Wannabe
 
Join Date: May 2007
Posts: 34
Question

Send mail from a different IP other than server IP


I own a dedicated server with a few IP addresses.

When one of my domains (My-Domain.com) which has a dedicated IP, sent out mail through phpmailer, the mail header tells that the mail originates from my server main IP address.

How can I make My-Domain.com send mail from the assigned dedicated IP address, not the server main IP address?

I have set this because Yahoo thinks I am a spammer.



Sponsored Links
  #2  
Old 07-29-2009, 01:42 PM
Thomas Manning Thomas Manning is offline
Junior Guru
 
Join Date: May 2009
Location: On a Speck!!!!!
Posts: 215
What mail server are you using?

  #3  
Old 07-29-2009, 08:59 PM
vivianmark vivianmark is offline
Junior Guru Wannabe
 
Join Date: May 2007
Posts: 34
I am on Exim.

OS: CentOS 5 and WHM.


Last edited by vivianmark; 07-29-2009 at 09:07 PM.
Sponsored Links
  #4  
Old 07-29-2009, 09:15 PM
bjdea1 bjdea1 is offline
Web Hosting Guru
 
Join Date: May 2003
Location: Melbourne, Australia
Posts: 329
Arrow Response

1) Put your domain on a dedicated IP (different to the server main IP)

2) In WHM go to "Exim Configuration Editor", under the "Domains and IPs" heading check the box.

Now mail will be sent from your domain from the dedicated IP rather than server main IP.

__________________
Deason Software & Hosting - HQ Melbourne, Australia - Servers Australia and USA
WHMreseller - Let your Resellers Resell WHM - Plus migrate and backup accounts themselves !
Shared, Master Reseller & Premium VPS - Hosting on Quad Core Servers - Apache2.x/PHP5.x
█ WHM/cPanel/Fantastico/RvSkin/RVsiteBuilder/CE

  #5  
Old 07-29-2009, 09:47 PM
vivianmark vivianmark is offline
Junior Guru Wannabe
 
Join Date: May 2007
Posts: 34
I checked on the box, "Automatically send outgoing mail from the account's IP address instead of the main IP address.".

I have made an entry in /etc/mail_reverse_dns.

But the mail header still show the main server IP i.e. Received.

Am I missing something?

Thank you for the time.

  #6  
Old 07-29-2009, 09:56 PM
vivianmark vivianmark is offline
Junior Guru Wannabe
 
Join Date: May 2007
Posts: 34
By the way, I am refering to sendmail and phpmailer in my CMS, Drupal.

Main email is on Google Apps.

  #7  
Old 07-29-2009, 11:54 PM
icyshout icyshout is offline
Junior Guru Wannabe
 
Join Date: Jul 2009
Posts: 62
you have to specify the ip in config file using whm's advanced editor page in whm change the local_interfaces = xxx.xxx.xxx.xxx : xxx.xxx.xxx.xxx to what you need.

  #8  
Old 07-30-2009, 12:36 AM
vivianmark vivianmark is offline
Junior Guru Wannabe
 
Join Date: May 2007
Posts: 34
Quote:
Originally Posted by icyshout View Post
you have to specify the ip in config file using whm's advanced editor page in whm change the local_interfaces = xxx.xxx.xxx.xxx : xxx.xxx.xxx.xxx to what you need.
I went to Exim Advance Editor, exim.conf, put under the first text field.

local_interfaces = xxx.xxx.xxx.xxx : xxx.xxx.xxx.xxx

I tried two way,

local_interfaces = server IP : hosted domain IP

and

local_interfaces = hosted domain IP : server IP

Still, header shows IP of the server's IP.

Am I missing something?

  #9  
Old 08-03-2009, 10:17 AM
icyshout icyshout is offline
Junior Guru Wannabe
 
Join Date: Jul 2009
Posts: 62
Quote:
13.2 Special IP listening addresses

Quote:
The addresses 0.0.0.0 and ::0 are treated specially. They are interpreted as “all IPv4 interfaces” and “all IPv6 interfaces”, respectively. In each case, Exim tells the TCP/IP stack to “listen on all IPvx interfaces” instead of setting up separate listening sockets for each interface. The default value of local_interfaces is

local_interfaces = 0.0.0.0

when Exim is built without IPv6 support; otherwise it is:

local_interfaces = <; ::0 ; 0.0.0.0

Thus, by default, Exim listens on all available interfaces, on the SMTP port.
30.2 Use of the $host and $host_address variables

At the start of a run of the smtp transport, the values of $host and $host_address are the name and IP address of the first host on the host list passed by the router. However, when the transport is about to connect to a specific host, and while it is connected to that host, $host and $host_address are set to the values for that host. These are the values that are in force when the helo_data, hosts_try_auth, interface, serialize_hosts, and the various TLS options are expanded.
Just some quotes from the documentation that may help to understand the cnofig file.

try just one ip in the local_interfaces = xxx.xxx.xxx.xxx

Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail Server Problem / Can't Send Or Receive Mail SupportRep911 Hosting Security and Technology 3 07-20-2008 06:29 PM
New VPS server, can't send mail to myself Goldfiles Hosting Security and Technology 5 07-11-2008 02:15 AM
How to secure email/send mail in cpanel so only internal can send mail? Dann2 Hosting Security and Technology 11 07-07-2003 01:07 PM

Related posts from TheWhir.com
Title Type Date Posted
Server Protected with Default Password Enables Healthcare.gov Hack Web Hosting News 2014-09-05 09:51:28
Open-Xchange Launches Tool to Encrypt Online Communications Web Hosting News 2014-09-03 10:43:43
Yahoo Mail Usernames, Passwords Stolen in Third-Party Database Breach Web Hosting News 2014-01-31 12:27:37
The Options for Blocking Outbound Spam: The Status Quo Blog 2013-06-06 14:08:10
Yahoo Integrates Email Client with Dropbox Cloud Storage Web Hosting News 2013-04-04 14:31:40


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?