Re: [exim] Newby: Local web server, local relay server, remo…

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Joseph Okech
日付:  
To: Marco Mescoli
CC: exim-users
題目: Re: [exim] Newby: Local web server, local relay server, remote mailbox
Marco,

Have the following settings on your exim.conf and make sure your system's
command 'uname -ra' does not return mydomain.com anywhere but
www.mydomain.com

###### MAIN ########

primary_hostname = www.mydomain.com
domainlist local_domains = @ : localhost

###### ROUTERS ########

routed_domains_over_smtp:
        driver =  manualroute
        no_check_local_user
        domains = ! +local_domains
        route_data =${lookup{$domain}lsearch{/etc/exim/routed_domains}}
        transport = remote_smtp
        ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8


##########################

Make sure mydomain.com is in the relay domains, and have an entry for routed
domains

#/etc/exim/routed_domains
mydomain.com:        xxx.xxx.xxx.xxx      #IP address of remote mail server



regards,
Okech

On Thursday 16 March 2006 20:38, Marco Mescoli wrote:
> Local web server, local relay server, but remote mailbox server.
> I would use exim only for relaing but exim take the domain name from
> system and send to local user the mail that must be send to remote mail
> server.
>
> Example:
> 1) System name: www.mydomain.com
> 2) mailto somename@??? go to local system and not to remote
> mail server.
>
> Thanks to all