relay from LAN

Started by Pi_Verdri, September 25, 2005, 05:00:48 PM

Previous topic - Next topic

Pi_Verdri

Hi all,

I was hoping you could help me with the folloing :

I want to allow local systems to use my toaster as a relay.

unfortunately when sending to a system not in rcpthosts I still get:

CHKUSER rejected relaying: from <mailto:ruben@NmsHost.1site1.nl" target="_blank">ruben@NmsHost.1site1.nl::> remote <NmsHost.1site1.nl:unknown:my.wan.ip.xxx> rcpt <mailto:ruben@someserver.nl" target="_blank">ruben@someserver.nl> : client not allowed to relay
@4000000043372a72177df82c CHKUSER accepted rcpt: from <::> remote <NmsHost.1site1.nl:unknown:my.wan.ip.xxx> rcpt <mailto:ruben@NmsHost.1site1.nl" target="_blank">ruben@NmsHost.1site1.nl> : found existing recipient
@4000000043372a81251df9dc CHKUSER accepted rcpt: from <::> remote <MailHost.1site1.nl:unknown:my.wan.ip.xxx

after having added 192.168.1.:allow,RELAYCLIENT="",RBLSMTPD=""
to tcp.smtp and reloaded the tcp.smtp.cdb

I'm using Mail::Toaster 4.08 on FBSD 5.4

thanks,

Ruben

Pi_Verdri

The problem was due to dns. I assumed the host file would be read and the lan address would be reported. But as I was using fully qualified host names this was not the case and a dns lookup was performed instead of a hosts file lookup. As the WAN ip was not in the tcpserver database as allowed to relay it worked correctly and rejected the relay attempt.