[clue-tech] postfix relay : connecting to external IP, rather than internal IP

Jeff Cann jccann at gmail.com
Sat Nov 12 15:04:54 MST 2005


On Friday 11 November 2005 10:02 pm, William wrote:
> Check for transport matches, then try either:
> relayhost = [www.example.com]

Thanks for the suggestions.  I was able to figure out a working configuration.  
I thought I would post to the list for the record.

When I tried with the brackets to disable MX lookups (I didn't read the 
main.cf note before), postfix still tried to use the external IP.  I'll have 
to check the postfix documentation on this as it seems weird.

> relayhost = [192.168.0.5]	# Definately a good choice in your case.

This configuration produced different results:

Nov 12 14:21:28 jumanji postfix/smtp[11020]: 9F866530BB: 
to=<jccann at gmail.com>, relay=192.168.0.5[192.168.0.5], delay=60814, 
status=deferred (host 192.168.0.5[192.168.0.5] said: 450 <root at example.com>: 
Sender address rejected: Domain not found (in reply to RCPT TO command))

I intially did not understand this message because on the www.example.com 
(192.168.0.5) machine (which is the external email server), I have this:

mynetworks = 192.168.0.4 127.0.0.1
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated 
reject_unauth_destination

Nov 12 14:30:24 www postfix/smtpd[7897]: NOQUEUE: reject: RCPT from 
jumanji.example.com[192.168.0.4]: 450 <jcann at jumanji.example.com>: Sender 
address rejected: Domain not found; from=<jcann at jumanji.example.com> 
to=<jccann at gmail.com> proto=ESMTP helo=<jumanji.example.com>

It turns out that it was not the smtpd_recipient_restrictions parameter, but 
the smtpd_sender_restrictions parameter.  I had it set to:

smtpd_sender_restrictions = reject_unknown_sender_domain

I put this in a while back because I didn't then I understood the difference 
between smtpd_sender_restrictions, smtpd_recipient_restrictions, and 
smtp_client_restrictions.  [another story] .  This helped clarify my 
understanding a lot [after reading again the docs].

Thanks!
-- 
Great spirits have always encountered violent opposition from mediocre minds. 
        - Albert Einstein
_______________________________________________
CLUE-tech mailing list
CLUE-tech at cluedenver.org
http://cluedenver.org/mailman/listinfo/clue-tech



More information about the clue-tech mailing list