From owner-freebsd-questions@FreeBSD.ORG Sat Nov 28 21:06:27 2009 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 CDDDE106566C for ; Sat, 28 Nov 2009 21:06:27 +0000 (UTC) (envelope-from dyioulos@firstbhph.com) Received: from mail1.firstbhph.com (65.105.102.163.ptr.us.xo.net [65.105.102.163]) by mx1.freebsd.org (Postfix) with ESMTP id 8857A8FC19 for ; Sat, 28 Nov 2009 21:06:27 +0000 (UTC) Received: from mail1.firstbhph.com (localhost [127.0.0.1]) by mail1.firstbhph.com (8.14.3/8.14.3) with ESMTP id nASL5qJo024910 for ; Sat, 28 Nov 2009 16:05:57 -0500 From: "Dimitri Yioulos" To: FreeBSD Questions Date: Sat, 28 Nov 2009 16:05:52 -0500 Message-Id: <20091128205723.M82133@firstbhph.com> In-Reply-To: <20091128173749.M1839@firstbhph.com> References: <20091128173749.M1839@firstbhph.com> X-Mailer: OpenWebMail 2.53 X-OriginatingIP: 24.61.49.88 (dyioulos) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Synonym: Copied by Synonym (http://www.modulo.ro/synonym) to: archive@firstbhph.com X-First1-MailScanner-Information: Please contact First 1 Financial Corporation for more information X-First1-MailScanner-ID: nASL5qJo024910 X-First1-MailScanner: Found to be clean X-First1-MailScanner-MCPCheck: MCP-Clean, MCP-Checker (score=0, required 1) X-MailScanner-From: dyioulos@firstbhph.com X-MailScanner-To: archive@firstbhph.com, freebsd-questions@freebsd.org X-First1-MailScanner-Watermark: 1260047158.85568@L2llBXSs+7jw9vZw5pcJwA Subject: Re: Mail not working [SOLVED] 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: Sat, 28 Nov 2009 21:06:27 -0000 On Sat, 28 Nov 2009 12:56:57 -0500, Dimitri Yioulos wrote > Greetz to all. > > I've never been able to get a mail server working on my FreeBSD installation. > While I recently upgraded to 8.0-RELEASE, it hasn't worked since my initisl > 7.0-RELEASE installation. This is not a major server, so I haven't fussed > with it up to now. But, I would like to finally fix it. > > I've tried various combinations of postfix and sendmail, but all have failed. > It doesn't matter to me whether I run postfix or sendmail, though I have far more > experience with sendmail. I believe that both postfix and sendmail are currently > installed, with postfix being the mail server. I want to forward mail to my sendmail > MTA for distribution, which I'm doing successfully with many other *nix boxes. > > Here's what I currently see in /var/log/messages whenever I try to send a > message from the FBSD box: > > Nov 28 04:15:30 marshfield kernel: pid 11721 (mailwrapper), uid 0: exited on > signal 11 > (core dumped) > > and in /var/log/maillog: > > Nov 26 21:35:29 marshfield postfix/master[946]: daemon started -- version 2.7- > 20091008, configuration /usr/local/etc/postfix > > Here's at least a snippet from main.cf: > > mydomain = ourdomain.com > readme_directory = no > myorigin = $mydomain > mydestination = $mydomain > #relayhost = [mail1.$mydomain] > relayhost = 192.168.1.2 > data_directory = /var/db/postfix > transport_maps = /usr/local/etc/postfix/transportsmtpd_recipient_restrictions > = permit_my networks > > and mailer.conf: > > sendmail /usr/sbin/sendmail > send-mail /usr/sbin/sendmail > mailq /var/spool/mqueue > newaliases /usr/bin/newaliases > > I've googled, etc., but haven't come up with a solution. Your help would be greatly > appreciated. > > Thanks. > I can't believe it. After all this time hacking away, I solved my issue rather easily. I made sure sendmail was turned off, then deinstalled/reinstalled postfix-current from ports. I had to tweak some directives in mailer.conf and main.cf based on a couple of posts I googled. I made sure sendmail wouldn't start, then started postfix with "/etc/rc.d/sendmail onestart" (Q: why is postfix invoked by starting sendmail?). Was able to send mail locally and externally through MTA. Sorry for the noise. Dimitri -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.