Relaying mail from 192.168.0.5 on a private network to 192.168.0.178
works fine if I set
dc_local_interfaces=''''
In debug I see
Connecting to 192.168.0.178 [192.168.0.178]:25 ... connected
In mainlog on 192.168.0.178 I see this,
.... [192.168.0.5] P=esmtp S=697 id= ....
Confirming this is the correct IP address.
When I restrict relaying,
dc_local_interfaces=''192.168.0.5''
In debug on 192.168.0.5 I see this
Connecting to 192.168.0.178 [192.168.0.178]:25 ... failed:
Connection refused
In mainlog on 192.168.0.178 I get this:
2007-05-08 01:28:29 socket bind() to port 25 for address 192.168.0.5
failed: Cannot assign requested address
What am I doing wrong?
Dave
Configuration on 192.168.0.178:
# This is a Debian specific file
dc_eximconfig_configtype=''internet''
dc_other_hostnames=''''
dc_local_interfaces=''192.168.0.5''
dc_readhost=''''
dc_relay_domains=''''
dc_minimaldns=''false''
dc_relay_nets=''192.168.0.0/24''
dc_smarthost=''''
CFILEMODE=''644''
dc_use_split_config=''false''
dc_hide_mailname=''''
dc_mailname_in_oh=''true''
dc_localdelivery=''mail_spool''
On 192.168.0.5:
dc_eximconfig_configtype=''smarthost''
dc_other_hostnames=''''
dc_local_interfaces=''127.0.0.1''
dc_readhost=''''
dc_relay_domains=''''
dc_minimaldns=''false''
dc_relay_nets=''''
dc_smarthost=''192.168.0.178''
CFILEMODE=''644''
dc_use_split_config=''false''
dc_hide_mailname=''true''
dc_mailname_in_oh=''true''
dc_localdelivery=''mail_spool''
Version:
exim4 4.67-1
Debian sid amd64
* David Liontooth:> When I restrict relaying, > > dc_local_interfaces=''192.168.0.5''dc_local_interfaces does not restrict relaying. It controls the IP address Exim is *listening* on, not the addresses to which it is *responding*.
Florian Weimer wrote:> * David Liontooth: > > >> When I restrict relaying, >> >> dc_local_interfaces=''192.168.0.5'' >> > > dc_local_interfaces does not restrict relaying. It controls the IP > address Exim is *listening* on, not the addresses to which it is > *responding*. >Thank you! I misunderstood the instructions, and it''s working now. Dave
On Tue, May 08, 2007 at 10:59:52AM -0700, David Liontooth wrote:> Thank you! I misunderstood the instructions, and it''s working now.Do you have any ideas how to improve the instructions? Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don''t trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190