how to config my DA Server to be relay server?

choonoi

New member
Joined
Mar 17, 2013
Messages
4
Hello,

I would like to config my centOS to be the host to send email for another host.
example.

I have IP 1 and make smart host to send mail via my "DA Server" and i would like to config only IP1 can send from "DA server"
I know it use exim but dont know how to config and allow only IP address I want to

IP1 -> DA Mail Server
IP2 -> DA Mail Server
IP3 -> DA Mail Server

please advice.

sorry my english quite poor.
 
Hello,

try to modify your /etc/exim.conf as the following:

1. find line:

Code:
hostlist relay_hosts =

it may looks like:

Code:
hostlist relay_hosts = net-lsearch;/etc/virtual/pophosts : 127.0.0.1

or

Code:
hostlist relay_hosts = net-lsearch;/etc/virtual/pophosts

and add your IP there:

Code:
: aaa.bbb.ccc.ddd

and restart exim.
 
It is work!!

It's working now thank you so much Alex!

OMG!!! so difficult "Random Question"
 
Back
Top