From owner-freebsd-questions@FreeBSD.ORG Sat Sep 22 21:30:29 2007 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 75B1316A420 for ; Sat, 22 Sep 2007 21:30:29 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from sarevok.dnr.servegame.org (b83183.upc-b.chello.nl [212.83.83.183]) by mx1.freebsd.org (Postfix) with ESMTP id ED74513C468 for ; Sat, 22 Sep 2007 21:30:28 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from snoogles.rachie.is-a-geek.net (unknown [66.230.99.27]) by sarevok.dnr.servegame.org (Postfix) with ESMTP id B9F11BD02 for ; Sat, 22 Sep 2007 23:10:50 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by snoogles.rachie.is-a-geek.net (Postfix) with ESMTP id 4EFBC1CDEE for ; Sat, 22 Sep 2007 03:40:44 -0800 (AKDT) From: Mel To: freebsd-questions@freebsd.org Date: Sat, 22 Sep 2007 13:40:42 +0200 User-Agent: KMail/1.9.7 References: <12772223.post@talk.nabble.com> <20070919185427.6F29.GERARD-SEIBERT@seibercom.net> In-Reply-To: <20070919185427.6F29.GERARD-SEIBERT@seibercom.net> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200709221340.43038.fbsd.questions@rachie.is-a-geek.net> Subject: Re: Dovecot LDA help 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, 22 Sep 2007 21:30:29 -0000 On Thursday 20 September 2007 00:58:32 Gerard wrote: > On September 19, 2007 at 03:35AM Peter Pluta wrote: > > I'm redoing my mail setup and am having some issues. I'm having dspam > > send mail directly to dovecot for delivery. I've read the dovecot wiki > > extrensivly and manged to get a config file from a friend that has it > > setup this way, but I am still unable to get it working. > > > > Here is my config for dovecot.conf: > > socket listen { > > master { > > path = /var/run/dovecot/auth-master > > mode = 0660 > > user = vmail > > #group = vmail > > } > > mail_location = maildir:/usr/local/virtual/%d/%n <-- all mail in > > /usr/local/virtual is owned by vmail:vmail > > > > The rest is all mostly stock and the usual config. > > > > Here is my dovecot-sql.conf file: > > password_query = SELECT password, 1011 AS uid, 1011 AS gid FROM users > > WHERE userid = '%u' > > user_query = SELECT 1011 AS uid, 1011 AS gid FROM users WHERE userid = > > '%u' > > > > 1011:1011 is the uid/gid of the user vmail. > > > > > > Now the question is, what is the problem here. I turned dovecots debug > > feature on, and I see this: > > > > Sep 19 02:29:30 pelorus postfix/smtpd[27881]: connect from > > py-out-1112.google.com[64.233.166.178] > > Sep 19 02:29:30 pelorus postfix/smtpd[27881]: NOQUEUE: filter: RCPT from > > py-out-1112.google.com[64.233.166.178]: : > > Recipient address triggers FILTER dspam:unix:/var/run/dspam/dspam.sock; > > from= to= proto=ESMTP > > helo= > > Sep 19 02:29:30 pelorus postfix/smtpd[27881]: 956B36CF82: > > client=py-out-1112.google.com[64.233.166.178] > > Sep 19 02:29:30 pelorus postfix/cleanup[27923]: 956B36CF82: > > message-id=<436c6f2f0709190029x187aa762kc2ae268abd827d0@mail.gmail.com> > > Sep 19 02:29:30 pelorus postfix/qmgr[27452]: 956B36CF82: > > from=, size=2198, nrcpt=1 (queue active) > > Sep 19 02:29:30 pelorus dspam[27471]: Delivery agent returned exit code > > 67: /usr/local/libexec/dovecot/deliver -d support@bla.com The nice thing is that you're able to figure out the error: # grep 67 /usr/include/sysexits.h #define EX_NOUSER 67 /* addressee unknown */ -- Mel