From owner-freebsd-questions@FreeBSD.ORG Mon Mar 20 21:00:36 2006 Return-Path: X-Original-To: freebsd-questions@FreeBSD.org Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B153516A401 for ; Mon, 20 Mar 2006 21:00:36 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0715F43D48 for ; Mon, 20 Mar 2006 21:00:32 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from flame.pc (igloo.linux.gr [62.1.205.36]) by igloo.linux.gr (8.13.5/8.13.5/Debian-3) with ESMTP id k2KL0I0q010620; Mon, 20 Mar 2006 23:00:19 +0200 Received: by flame.pc (Postfix, from userid 1001) id 081FF3B; Mon, 20 Mar 2006 13:00:01 -0800 (PST) Date: Mon, 20 Mar 2006 13:00:00 -0800 From: Giorgos Keramidas To: Ming Tang Message-ID: <20060320210000.GB1312@flame.pc> References: <20060320113355.GA7679@flame.pc> <000b01c64c22$a8253e90$6400a8c0@Ming> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000b01c64c22$a8253e90$6400a8c0@Ming> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-3.334, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.89, BAYES_00 -2.60, NORMAL_HTTP_TO_IP 0.17) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr Cc: freebsd-questions@FreeBSD.org Subject: Re: sendmail configuration 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: Mon, 20 Mar 2006 21:00:36 -0000 Please *DON'T top post. On 2006-03-20 07:31, Ming Tang wrote: >Giorgos Keramidas [mailto:keramida@ceid.upatras.gr] wrote: >>Ming Tang [mailto:mtang@insightbb.com] wrote: >>> >>> I got an email problem. My server can only receive email but >>> cannot send any email out after I changed my server configuration >>> recently from NAT to a D-Link router (DI-624) which supports and >>> passes through all virtual servers to an internal server. I always >>> get the attached error message as soon as I send a mail out from a >>> pop-client, MS Outlook. I think the message was generate by my own >>> email server. I can send out email no problem if I chose from >>> other email servers. >>> >>> My domain name server was configured as follows: >>> >>> ns1.n2mt.com is an internal server for name server, email server, >>> and web server. >>> >>> n2mt.com. in A 12.208.70.3 >>> in MX 5 ns1.n2mt.com. >> >> You are not using 'domainname.com' as an internal, local-only domain >> name, right? Because it's already taken and registered by a *real* >> name-server out there... > > Sorry for the confusion. I did not use real domain name in my last message. > I just modified the original message and replaced domainname.com by real > domain name with email problem. Much better. Now we can at least use normal tools like `host', `dig' and others to help you find out more information. >>> I configured email files 'access' and 'local-host-names' files for >>> sendmail (2000 version) as follows. >>> >>> n2mt.com RELAY for access >>> n2mt.com for local-host-name >>> >>> And mapped in 'virtusertable' as: @n2mt.com %1@ns1.n2mt.com This last part doesn't look very right. You don't have to rewrite local addresses using `virtusertable' if you simply want all of them to be local. Just add both `n2mt.com' and `ns1.n2mt.com' to `local-host-names'. >>> These files were compiled and mail & domain name server restarted, >>> but the problem still remains there. >>> >>> Any one there got any idea or experienced the same >>> problems. Please help. Thanks in advance. >>[error message from some mail server] >>> -----Original Message----- >>> From: System Administrator >>> Sent: Monday, March 20, 2006 7:01 AM >>> To: 'RAYMOND KOEIMAN' >>> Subject: Undeliverable: Email test >>> >>> Your message did not reach some or all of the intended recipients. >>> >>> Subject: Email test >>> Sent: 3/20/2006 7:00 AM >>> >>> The following recipient(s) could not be reached: >>> >>> 'RAYMOND KOEIMAN' on 3/20/2006 7:01 AM >>> 550 5.7.1 ... Relaying denied. IP name >>> possibly forged [12.208.70.3] >> >> Is that the *exact* message you got back? If not, please post the exact >> error message you are getting. > > Thanks for the reply. No problem. I still don't know if the above email error message is the _exact_ reply you are getting though :( Hazarding a guess, the message you see above could be related to DNS issues. Your name server thinks its name is `ns1.n2mt.com', but the IP address resolves to a much different name: # [keramida@flame /home/keramida]$ host ns1.n2mt.com. # ns1.n2mt.com has address 12.208.70.3 # [keramida@flame /home/keramida]$ host 12.208.70.3 # 3.70.208.12.in-addr.arpa domain name pointer 12-208-70-3.client.insightbb.com. # [keramida@flame /home/keramida]$ Can you ask your ISP to assign `ns1.n2mt.com.' to your IP address too? - Giorgos