Help - Search - Members - Calendar
Full Version: Relaying mail from specific host
The Planet Forums > System Administration > Mail Hosting
uneedawebsite
I need to be able to relay all mail sent from a specific host. I am running CPanel 11 with Exim.

I tried adding the host IP address to the whitelist in WHM but the mail still isn't being relayed.

What can I do? Is there a specific file(s) that need to be edited?

Thanks

Mark
alden
QUOTE (uneedawebsite @ Apr 8 2008, 02:53 PM) *
I need to be able to relay all mail sent from a specific host. I am running CPanel 11 with Exim.

I tried adding the host IP address to the whitelist in WHM but the mail still isn't being relayed.

What can I do? Is there a specific file(s) that need to be edited?

Thanks

Mark


From the CPanel faq:
Create a file with your host IP or IPs and named it something like

/etc/privaterelay

i.e

192.168.0.2
192.168.3.4

Next, located the following entry at the top of the /etc/exim.conf file:

hostlist relay_hosts = lsearch;/etc/relayhosts : \
localhost

and change it to this:

hostlist relay_hosts = lsearch;/etc/relayhosts : \
localhost : lsearch;/etc/privaterelay

That should do it.!


Hope this helps.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.