On Tue, Nov 16, 2010 at 04:42:21PM -0600, Larry Stone wrote: > On Tue, 16 Nov 2010, mouss wrote: > > >so, your client says > > relay=zbmc.eu[84.45.228.40] > >and your server says > > reject: RCPT from unknown[84.45.228.40] > > > >So your client and server have the same IP. This means that they > >run on the same box. is it so? if so, why didn't you say it > >before? > > No, I'm pretty sure from what he's posted before they're two boxes > behind the same NAT router. His problem seems to be that the client > is routing via the external address rather than the internal > address. Seems to me it's more a DNS issue he needs to fix (client > is resolving the relay host to the external address instead of the > internal address) rather than a Postfix issue. > Yes, you have it absolutely right (or at least that's how I understand it too). I need to find where that 84.45.228.40 is coming from because I don't want Postfix to use it at all, Postfix only needs to know about the private LAN addresses *except* on my mail server machine (192.168.1.4) which sends non-LAN E-Mail out to my ISP.
Do you have any idea where I should be looking to find how/why Postfix is resolving mws.zbmc.eu to 84.45.228.40? In 192.168.1.2's Postfix main.cf I have:- relayhost = mws.zbmc.eu .... and, aaahhhh!!!!, I think I can possible see what the problem is:- ch...@dps:/etc/postfix$ host mws.zbmc.eu mws.zbmc.eu has address 192.168.1.4 mws.zbmc.eu is an alias for zbmc.eu. mws.zbmc.eu is an alias for zbmc.eu. zbmc.eu mail is handled by 10 zbmc.eu. So the MX record (is that right?) for mws.zbmc.eu is zbmc.eu and so Postfix is sending mail there. *Why* didn't I spot this before!? (It's amazing what a night's sleep can do isn't it) So, how can I overcome the problem? ... after a little thought I think the answer is to tell my local DNS server to resolve zbmc.eu to 192.168.1.4. I've done this and now I get:- ch...@dps:~$ host zbmc.eu zbmc.eu has address 192.168.1.4 zbmc.eu mail is handled by 10 zbmc.eu. ch...@dps:~$ ... and that has resolved the DNS/IP problem at least though I'm still getting "relaying denied". So now the relayhost (192.168.1.4) is rejecting the E-Mail from the client (192.168.1.2) even though I have:- mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.1.0/32 Here is the line from the server's (192.168.1.4) mail.log :- Nov 17 11:36:25 mws postfix/smtpd[2719]: NOQUEUE: reject: RCPT from dps.zbmc.eu[192.168.1.2]: 554 5. 7.1 <ch...@halon.org.uk>: Relay access denied; from=<ch...@dps.zbmc.eu> to=<ch...@halon.org.uk> proto=ESMTP helo=<dps.zbmc.eu> So what's still wrong? -- Chris Green