Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Nov 2001 22:40:39 +1100
From:      "Brandon Peyton" <varian@1bigred.com>
To:        <freebsd-questions@freebsd.org>
Subject:   pop-before-smtp on fbsd4.4
Message-ID:  <BIEPINCJNNBMIIBOHFIIIECLCGAA.varian@1bigred.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BIEPINCJNNBMIIBOHFIIIECLCGAA.varian>