[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: exim4 in sarge - config issues with smarthost hostname vs IP



I have the exim4 heavy package and:

dc_smarthost='hostname'   <===== works if this is an IP
	fails with a hostname of 'smtp'
	hostname smtp resolves to an IP OK
	
	lookup of host "smtp" failed in smarthost router

grep -r DCsmarthost .

./conf.d/transport/30_exim4-config_remote_smtp:
	hosts_require_auth = DCsmarthost		<= SAME
./conf.d/transport/30_exim4-config_remote_smtp:
	hosts_require_tls = DCsmarthost			<= MISSING
./conf.d/main/01_exim4-config_listmacrosdefs:
	DCsmarthost = DEBCONFsmarthostDEBCONF		<= SAME
./conf.d/router/200_exim4-config_primary:
	route_list = * DCsmarthost			<= SAME


Vineet Kumar wrote:
* Hanasaki JiJi (hanasaki@hanaden.com) [031031 15:29]:

1. when did exim4 make it into sarge?


http://packages.qa.debian.org/e/exim4.html

Looks like it was on 2003-10-01


2. cool config stuff

3. smarthost configuration is working fine using the IP of the smarthost. It fails when I put in the hostname of the smarthost. "hostname smarthost" does return the IP. What could be wrong and how can it be fixed?


Where did you put the IP address?  Was this in debconf?  Have you looked
at or edited directly /etc/exim4/update-exim4.conf.conf or any of the
files in /etc/exim4/conf.d ?

I have dc_smarthost='hostname'
in /etc/exim4/update-exim4.conf.conf and it works fine.  I also have
these:

wingnut:/etc/exim4$ grep -r DCsmarthost .
grep: ./passwd.client: Permission denied
./conf.d/transport/30_exim4-config_remote_smtp:  hosts_require_auth = DCsmarthost
./conf.d/transport/30_exim4-config_remote_smtp:  hosts_require_tls = DCsmarthost
./conf.d/main/01_exim4-config_listmacrosdefs:DCsmarthost = DEBCONFsmarthostDEBCONF
./conf.d/router/200_exim4-config_primary:  route_list = * DCsmarthost

Are yours the same?

This is exim4 4.22-5.

good times,
Vineet



Reply to: