View Single Post
  #4  
Old 5th October 2005, 02:16
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,727 Times in 2,565 Posts
Default

Quote:
Originally Posted by matehortua
i think an Open Relay is when th mail server (postfix) sends mail from any domain to any destination.

i think it should restrict the sending of mails to:

mydestination = /etc/postfix/local-host-names

but is not...

i have this line also on the main.cf
relay_domains = $mydestination


can you tell what is the appropiate way to enable on my server the sending of messagges ONLY to my local-host-names??

a lot of tanx
There are 3 cases where your server accepts emails without authentication, but is still not an open relay:
1) You're sending directly from your server, i.e. you're logged in on the server, e.g. on the shell or with a webmail interface.
2) You're sending an email to a recipient who is on the server.
3) You're sending from within a network that is specified in the mynetworks variable in /etc/postfix/main.cf.

If one of these 3 points applies, and you're wondering why you don't need to authenticate: this is normal and does not mean your server is an open relay.

Can you run
Code:
telnet localhost 25
and then issue
Code:
ehlo localhost
and post the output here?
If you see a line starting with 250-AUTH then it should be fine.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote