Results 1 to 9 of 9
-
07-29-2009, 11:25 AM #1Junior Guru Wannabe
- Join Date
- May 2007
- Posts
- 34
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.
-
07-29-2009, 01:42 PM #2Junior Guru
- Join Date
- May 2009
- Location
- On a Speck!!!!!
- Posts
- 216
What mail server are you using?
-
07-29-2009, 08:59 PM #3Junior 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.
-
07-29-2009, 09:15 PM #4Web Hosting Evangelist
- Join Date
- May 2003
- Location
- Melbourne, Australia
- Posts
- 478
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.█ Deasoft.com Aussie & USA VPS, Reseller & Shared Hosting + WHMreseller & DAreseller
█ AutoBillMe.com - The Non-PHP Automated Billing Solution for Web Hosts
█ WHMreseller - The first Alpha/Master Reseller Plugin for cPanel
█ DAreseller - The first Alpha/Master Reseller Plugin for DirectAdmin
-
07-29-2009, 09:47 PM #5Junior 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.
-
07-29-2009, 09:56 PM #6Junior 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.
-
07-29-2009, 11:54 PM #7Junior Guru Wannabe
- Join Date
- Jul 2009
- Posts
- 63
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.
-
07-30-2009, 12:36 AM #8Junior Guru Wannabe
- Join Date
- May 2007
- Posts
- 34
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?
-
08-03-2009, 10:17 AM #9Junior Guru Wannabe
- Join Date
- Jul 2009
- Posts
- 63
13.2 Special IP listening addresses
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.
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.
try just one ip in the local_interfaces = xxx.xxx.xxx.xxx
Similar Threads
-
Mail Server Problem / Can't Send Or Receive Mail
By SupportRep911 in forum Hosting Security and TechnologyReplies: 3Last Post: 07-20-2008, 06:29 PM -
New VPS server, can't send mail to myself
By Goldfiles in forum Hosting Security and TechnologyReplies: 5Last Post: 07-11-2008, 02:15 AM -
How to secure email/send mail in cpanel so only internal can send mail?
By Dann2 in forum Hosting Security and TechnologyReplies: 11Last Post: 07-07-2003, 01:07 PM