New mail server can't send emails, only receives

view full story

http://serverfault.com – I'm setting up a new mail server for my company with Ubuntu Server 11.04 and postfix/dovecot. I'm new on this so I have some problems. I'm getting it works only for receving mails from any address outside the lan and I can send only for the same domain. If I try to send a new message with it to an outside address (eg gmail) I have Relay denied. So, my server had 2 network interface, 1 for my lan (192.168.1.xxx) and one had a public static ip address. My domain, for testing pourpose, is enti.centropaghe.it and I create an MX record to mail.enti.centropaghe.it My goal is to get a full fun (HowTos)