From owner-freebsd-questions Fri Mar 8 7: 2:25 2002 Delivered-To: freebsd-questions@freebsd.org Received: from 217-126-145-95.uc.nombres.ttd.es (217-126-145-95.uc.nombres.ttd.es [217.126.145.95]) by hub.freebsd.org (Postfix) with ESMTP id D6F1E37B404 for ; Fri, 8 Mar 2002 07:02:00 -0800 (PST) Received: by unicorn.ea4els.ampr.org (Postfix, from userid 1001) id 43B1C31B2; Fri, 8 Mar 2002 16:01:53 +0100 (CET) To: freebsd-questions@freebsd.org Subject: Re: postfix not accepting SMTP connections References: <20020308115346.G24040@xs4all.nl> From: Simon J Mudd Date: 08 Mar 2002 16:01:52 +0100 In-Reply-To: <20020308115346.G24040@xs4all.nl> Message-ID: <86u1rrgl27.fsf@unicorn.ea4els.ampr.org> Lines: 101 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG rene@xs4all.nl writes: > In general, i'm looking for a good freebsd postfix howto, something more than > an echo of the postfix.org site.. Take a look at RedHat's Postfix FAQ. I know this is a FreeBSD list, but... postfix works pretty much the same on any unix platform. The redhat FAQ isn't bad. Also look at the postfix-users mailing list which can be found at http://msgs.securepoint.com/postfix which might help you. > in particular, i've installed the thing, did as > http://www.postfix.org/basic.html describes to configure it, but can't get it > to accept incoming smtp connections :( I assume you've done a postfix start; telnet localhost smtp? What do you see? What do the logs say? Postfix by default will start up and listen on port 25 with a standard configuration. What does "postconf -n" say? This shows the non-default configurations you have setup. > $ /usr/local/libexec/postfix/smtpd > smtpd: fatal: do not run this command by hand You don't start smtpd by hand. Postfix start does this. If you then telnet to port 25 smtpd will be started automatically to service the request. > $ grep smtp /usr/local/etc/postfix/master.cf > # for the SMTP server: localhost:smtp receives mail via the loopback > smtp inet n - n - - smtpd > smtp unix - - n - - smtp > bsmtp unix - n n - - pipe > flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop > $recipient Leave it unchanged you rarely need to touch master.cf > $ cat /etc/mail/mailer.conf > # $FreeBSD: src/etc/mail/mailer.conf,v 1.2 1999/12/29 18:24:06 peter Exp $ > sendmail /usr/libexec/postfix/sendmail > send-mail /usr/libexec/postfix/sendmail > mailq /usr/libexec/postfix/sendmail > newaliases /usr/libexec/postfix/sendmail > > $ postfix start > postfix/postfix-script: starting the Postfix mail system > > $ ps -ax > PID TT STAT TIME COMMAND > 0 ?? DLs 0:00.00 (swapper) > 1 ?? ILs 0:00.02 /sbin/init -- > 2 ?? DL 0:00.00 (pagedaemon) > 3 ?? DL 0:00.00 (vmdaemon) > 4 ?? DL 0:00.01 (bufdaemon) > 5 ?? DL 0:00.08 (syncer) > 6 ?? DL 0:00.01 (vnlru) > 23 ?? Is 0:00.00 adjkerntz -i > 54 ?? Ss 0:00.04 /sbin/ipmon -Dsvn > 74 ?? Ss 0:00.14 syslogd -s > 77 ?? Is 0:00.02 named > 83 ?? Is 0:00.02 /usr/sbin/cron > 85 ?? Is 0:00.64 /usr/sbin/sshd -4 > 121 ?? Is 0:00.00 /usr/local/sbin/dhcpd > 135 ?? Ss 0:00.07 /usr/local/sbin/nmbd -D > 144 ?? S 0:00.32 sshd: rene@ttyp1 (sshd) > 296 ?? Is 0:00.04 /usr/local/libexec/postfix/master > 297 ?? I 0:00.02 pickup -l -t fifo -u > 298 ?? I 0:00.02 qmgr -l -t fifo -u > 145 p1 Is 0:00.08 -bash (bash) > 158 p1 S 0:00.20 -su (bash) > 305 p1 R+ 0:00.00 ps -ax > 137 v0 Is+ 0:00.01 /usr/libexec/getty Pc ttyv0 > 138 v1 Is+ 0:00.01 /usr/libexec/getty Pc ttyv1 > 139 v2 Is+ 0:00.01 /usr/libexec/getty Pc ttyv2 > 140 v3 Is+ 0:00.01 /usr/libexec/getty Pc ttyv3 Postfix _is_ running - see the processes pickup, qmgr, master. try checking the sendmail interface works doing something like the followning: /usr/local/sbin/sendmail my@address <