I can send email within my domain but can't send to external addresses like @yahoo.com or @gmail.com. my mail server is "abc.def.ghi".
I tried telneting in commandline to email@example.com. and it says unable to relay.
telnet abc.def.ghi smtp Trying xx.xxx.xxx.xx... Connected to abc.def.ghi. Escape character is '^]'. 220 abc.def.ghi Microsoft ESMTP MAIL Service ready at Thu, 23 May 2013 16:05:51 +0800 helo 250 abc.def.ghi Hello [xx.xxx.xxx.xx] mail from:<firstname.lastname@example.org> 250 2.1.0 Sender OK rcpt to:<email@example.com> 550 5.7.1 Unable to relay
These are the contents of my /etc/postfix/main.cf. i think it's the default configuration. I only added the relay host option.
queue_directory = /var/spool/postfix command_directory = /usr/sbin daemon_directory = /usr/libexec/postfix mail_owner = postfix inet_interfaces = all inet_protocols = all unknown_local_recipient_reject_code = 550 alias_maps = hash:/etc/aliases home_mailbox = Maildir/ debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/sbin/sendmail.postfix newaliases_path = /usr/bin/newaliases.postfix mailq_path = /usr/bin/mailq.postfix setgid_group = postdrop html_directory = no manpage_directory = /usr/share/man sample_directory = /usr/share/doc/postfix-2.6.6/samples readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES mynetworks = 127.0.0.0/8 relayhost = abc.def.ghi
Thanks in advance for helping out.