Date: 08 Mar 2002 16:01:52 +0100 From: Simon J Mudd <sjmudd@pobox.com> To: freebsd-questions@freebsd.org Subject: Re: postfix not accepting SMTP connections Message-ID: <86u1rrgl27.fsf@unicorn.ea4els.ampr.org> In-Reply-To: <20020308115346.G24040@xs4all.nl> References: <20020308115346.G24040@xs4all.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <file unchanged> > # 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 <<END_MESSAGE To: me From: you Subject: test message this is the message body END_MESSAGE and see what /var/log/maillog says. Note: ensure the path refers the postfix sendmail binary and not the sendmail one. Simon -- Simon J Mudd, Tel: +34-91-408 4878, Mobile: +34-605-085 219 Madrid, Spain. email: sjmudd@pobox.com, Postfix RPM Packager To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86u1rrgl27.fsf>