On Wed, 13 Dec 2000, Charles Cazabon wrote:

CC>The mail transaction above is not an example of (unauthorized) relaying.
CC>By putting the domain in rcpthosts, you have told qmail-smtpd "I am willing
CC>to accept mail from anyone which has an envelope recipient of 
CC>[EMAIL PROTECTED]"
CC>
CC>If foo.com is in your locals file, the message will be delivered locally.
CC>If foo.com is in your virtualdomains file, it will be treated as a virtual
CC>domain and delivered to a local user.
CC>If foo.com is in neither locals nor controls, qmail will attempt to deliver
CC>it to the highest priority MX for foo.com, and therefore serving as a
CC>secodary MX for foo.com.
CC>
CC>> I think i missed something in configuration or otherwise i didnt understand
CC>> well how qmail works.
CC>
CC>Yes, it's a problem with your understanding of qmail.  To receive mail
CC>from the world at large, you have to allow everyone to connect to your 
CC>SMTP port.  You should then accept/reject mail based on the envelope
CC>recipient -- accepting mail which is for addresses in your local domain(s)
CC>and virtual domains (if any), and possibly a few others for which you
CC>provide backup MX service, and rejecting everything else.
CC>
CC>Then, in addition, you can set the RELAYCLIENT variable as you did above
CC>for certain IP addresses (typically those on your company LAN or private
CC>network), to allow only those IP addresses to relay mail to anywhere else
CC>in the world through your server.  In this case you are serving as a 
CC>"smarthost" for dumb clients (like MUAs on Windows machines, etc).
CC>
CC>Charles
CC>

THANKS CHARLES !
This solved all my questions!
Thanks a lot.

Dario


Reply via email to