Comtois, Andre a écrit : > Hi everyone, > > > > First off, my apologies if this topic has been address before. I’ve > been searching in google for days now and had mixed results in finding > answers to my questions. > > > > To put it simply, I have installed postfix on a system running ubuntu > 9.04. I would like to configure it as a front-end server for my > exchange environment. > > The server would reside in the DMZ of my network. > > The server would accept emails from the internet and relay messages > destined for valid recipients to the exchange server on my intranet. > > At this point I’m comfortable updating the recipient tables manually. > > > > I’m having mixed results getting this to work. My postfix server > accepts emails and relays them to the exchange server just fine, however > it also seems to have no issues relaying emails to gmail.com as well, so > I’m not sure how to restrict it to only accepting messages destined for > my domain. > >
As recommended in the list welcome message, follow the directions in the DEBUG README. In particular: - show output of 'postconf -n' - show relevant logs (logs of mail accepted then relayed to gmail) in the default setup, postfix only relays mail if - client is in mynetworks, or - domain is in mydestination, relay_domains, virtual_alias_domains, virtual_mailbox_domains this is what the default smtpd_recipient_restrictions = permit_mynetworks reject_unauth_destination does.