From owner-freebsd-questions Tue Nov 27 3:44:48 2001 Delivered-To: freebsd-questions@freebsd.org Received: from Server3.1bigred.com (server3.1bigred.com [206.239.81.4]) by hub.freebsd.org (Postfix) with ESMTP id 08C5837B405 for ; Tue, 27 Nov 2001 03:44:44 -0800 (PST) Received: from xanthium (unverified [203.166.27.178]) by Server3.1bigred.com (Vircom SMTPRS 5.0.193) with SMTP id for ; Tue, 27 Nov 2001 06:37:21 -0500 From: "Brandon Peyton" To: Subject: pop-before-smtp on fbsd4.4 Date: Tue, 27 Nov 2001 22:40:39 +1100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 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 Hi, This is primarly for those who are running postfix on freebsd... I'm trying to get pop-before-smtp configured properly to allow authorized pop users to send. I'm running postfix on fbsd 4.4 Now to start: yittrium# postconf -n command_directory = /usr/local/sbin daemon_directory = /usr/local/libexec/postfix debug_peer_level = 2 default_privs = nobody mail_owner = postfix mail_spool_directory = /var/mail mydomain = var-tech.net myhostname = yittrium.var-tech.net mynetworks = 127.0.0.0/8 queue_directory = /var/spool/postfix smtpd_recipient_restrictions = permit_mynetworks, check_client_access hash:/usr/local/etc/postfix/pop-before-smtp, check_relay_domains pop-before-smtp started : root 40303 ... /usr/bin/perl -wT /usr/sbin/pop-before-smtp ==Is qpopper logging: yes Nov 27 21:19:15 yittrium qpopper[40090]: Stats: admin 0 0 0 0 xanthium.var-tech.net 203.166.27.178 ==yittrium# postmap -q 203.166.27.178 hash:/usr/local/etc/postfix/pop-before-smtp postmap: fatal: open database /usr/local/etc/postfix/pop-before-smtp.db: Invalid argument ==In /var/log/messages Nov 27 21:49:12 yittrium postfix/smtpd[40345]: fatal: open database /usr/local/etc/postfix/pop-before-smtp.db: Invalid argument ==In /var/log/maillog Nov 27 21:48:08 yittrium postfix/smtpd[40342]: fatal: open database /usr/local/etc/postfix/pop-before-smtp.db: Invalid argument Nov 27 21:48:09 yittrium postfix/master[33314]: warning: process /usr/local/libexec/postfix/smtpd pid 40342 exit status 1 Nov 27 21:48:09 yittrium postfix/master[33314]: warning: /usr/local/libexec/postfix/smtpd: bad command startup -- throttling yittrium# pwd /usr/local/etc/postfix yittrium# ll -rw-r--r-- 1 root wheel 20610 Nov 27 21:32 main.cf -rw-r--r-- 1 root wheel 20378 Nov 20 16:49 main.cf.bak -r--r--r-- 1 root wheel 4605 Nov 16 13:56 master.cf -rw-r--r-- 1 root wheel 189 Nov 24 11:33 mysql_auth.cf -rw-r--r-- 1 root wheel 0 Nov 24 11:16 pop-before-smtp.db -r-xr-xr-x 1 root wheel 6343 Nov 16 13:56 postfix-script A few things to clarify, all files eg pop-before-smtp.init has been changed to look at /usr/local/etc/postfix/pop-before-smtp. The reason I know this, is if I delete the file and restart pop-before-smtp it adds a blank file into the correct dir. Any suggestions? Thanks Brandon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message