From owner-freebsd-questions@FreeBSD.ORG Tue Sep 11 18:35:05 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8EDE616A419 for ; Tue, 11 Sep 2007 18:35:05 +0000 (UTC) (envelope-from teklimbu@wlink.com.np) Received: from smtp5.wlink.com.np (smtp5.wlink.com.np [202.79.32.52]) by mx1.freebsd.org (Postfix) with SMTP id B844813C47E for ; Tue, 11 Sep 2007 18:35:03 +0000 (UTC) (envelope-from teklimbu@wlink.com.np) Received: (qmail 25320 invoked from network); 11 Sep 2007 18:34:55 -0000 Received: from unknown (HELO smtp1.wlink.com.np) (202.79.32.76) by 0 with SMTP; 11 Sep 2007 18:34:55 -0000 Received: (qmail 61504 invoked by uid 98); 11 Sep 2007 18:34:55 -0000 Received: from 202.79.38.81 by smtp1.wlink.com.np (envelope-from , uid 1009) with qmail-scanner-1.25 (clamdscan: 0.88.4/2205. Clear:RC:1(202.79.38.81):. Processed in 0.040731 secs); 11 Sep 2007 18:34:55 -0000 X-Qmail-Scanner-Mail-From: teklimbu@wlink.com.np via smtp1.wlink.com.np X-Qmail-Scanner: 1.25 (Clear:RC:1(202.79.38.81):. Processed in 0.040731 secs) Received: from [202.79.38.81] (HELO [202.79.38.81]) by smtp1.wlink.com.np (qmail-smtpd) with SMTP; 11 Sep 2007 18:34:49 -0000 (Wed, 12 Sep 2007 00:19:49 +0545) Message-ID: <46E6DFBA.20803@wlink.com.np> Date: Wed, 12 Sep 2007 00:19:34 +0545 From: Tek Bahadur Limbu User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: johan Hartono References: <599099.20589.qm@web50605.mail.re2.yahoo.com> In-Reply-To: <599099.20589.qm@web50605.mail.re2.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Check-By: smtp1.wlink.com.np Spam: No ; 0.2 / 7.0 X-Spam-Status-WL: No, hits=0.2 required=7.0 Cc: freebsd-questions@freebsd.org Subject: Re: 550 5.7.1 ... Relaying denied X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Sep 2007 18:35:05 -0000 Hi Johan, johan Hartono wrote: > st1\:*{behavior:url(#default#ieooui) } > Dear all, > > > > I have been running on this problem for some days now. I tryto build an email server using FreeBSD 6.2, Postfix, and dovecot. > > > > Right now I have a problem relaying my email. Every time Isend email from a client through my email server to outer world, I got thismessage > > > > ----------------- > > 550 5.7.1 ... Relaying denied > > ----------------- > > > > while it works just fine for local email. > > here I include my mail log result > > > > ----------------- > > Sep 11 09:49:57 mail sendmail[942]: l8B2nuLx000942: ruleset=check_rcpt,arg1=,relay=goldenflower [61.8.75.114], reject=550 5.7.1 ...Relaying denied > > Sep 11 09:50:00 mail sendmail[942]: l8B2nuLx000942:from=, size=0, class=0, nrcpts=0, proto=ESMTP,daemon=IPv4, relay=goldenflower [61.8.75.114] > > ------------------ > > > > this is my postconf -n result. > > > > ------------------ > > command_directory = /usr/local/sbin > > config_directory = /usr/local/etc/postfix > > daemon_directory = /usr/local/libexec/postfix > > debug_peer_level = 2 > > html_directory = no > > inet_interfaces = all > > mail_owner = postfix > > mailq_path = /usr/local/bin/mailq > > manpage_directory = /usr/local/man > > mydestination = $myhostname, localhost.$mydomain, localhost,$mydomain > > mydomain = sinb.cjb.net > > myhostname = mail.sinb.cjb.net > > mynetworks = 61.8.75.0/0, 127.0.0.0/8, goldenflower,61.8.75.114 > > myorigin = $mydomain > > newaliases_path = /usr/local/bin/newaliases > > queue_directory = /var/spool/postfix > > readme_directory = no > > sample_directory = /usr/local/etc/postfix > > sendmail_path = /usr/local/sbin/sendmail > > setgid_group = maildrop > > smtpd_recipient_restrictions =permit_mynetworks check_sender_access unix:passwd.byname $alias_maps > > unknown_local_recipient_reject_code = 550 The mail servers of Yahoo, etc are probably rejecting your emails because they did not find the related MX records for your domain sinb.cjb.net. Your email server needs to have a valid MX record setup on your DNS servers or on your ISP's DNS servers. A reverse DNS record is also needed. $dig sinb.cjb.net mx @ns3.cjb.net. ; <<>> DiG 9.3.3 <<>> sinb.cjb.net mx @ns3.cjb.net. ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 37178 ;; flags: qr aa rd; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;sinb.cjb.net. IN MX ;; AUTHORITY SECTION: cjb.net. 3600 IN SOA ns1.cjb.net. cjb.cjbmanagement.com. 1189534800 300 300 86400 3600 ;; Query time: 1448 msec ;; SERVER: 216.194.70.3#53(216.194.70.3) ;; WHEN: Wed Sep 12 00:09:56 2007 ;; MSG SIZE rcvd: 91 If you just want to relay your emails from your network to the internet, then the following relayhost entry should work: relayhost = [mailserver.isp.tld] Hope that helps. Thanking you... > > ------------------------ > > > > Any idea all?? > > > > for any help will be greatly appreciated. > > > > Thx and best Regards > > > > Johan H > > > > Best Regards > > > > Johan Hartono > > =========== > > 'TooMuch Power Tends to Corrupt' -- Lord Acton 1887 -- > > > > > > --------------------------------- > Boardwalk for $500? In 2007? Ha! > Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games. > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > > -- With best regards and good wishes, Yours sincerely, Tek Bahadur Limbu System Administrator (TAG/TDG Group) Jwl Systems Department Worldlink Communications Pvt. Ltd. Jawalakhel, Nepal http://www.wlink.com.np