From owner-freebsd-questions@FreeBSD.ORG Wed Sep 19 22:58:09 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 2213416A41A for ; Wed, 19 Sep 2007 22:58:09 +0000 (UTC) (envelope-from gerard@seibercom.net) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.242]) by mx1.freebsd.org (Postfix) with ESMTP id D0F2113C45D for ; Wed, 19 Sep 2007 22:58:08 +0000 (UTC) (envelope-from gerard@seibercom.net) Received: by an-out-0708.google.com with SMTP id c14so71793anc for ; Wed, 19 Sep 2007 15:58:08 -0700 (PDT) Received: by 10.100.96.9 with SMTP id t9mr1467978anb.1190242687886; Wed, 19 Sep 2007 15:58:07 -0700 (PDT) Received: from ?192.168.1.102? ( [67.189.206.211]) by mx.google.com with ESMTPS id l48sm1436422wrl.2007.09.19.15.58.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 19 Sep 2007 15:58:06 -0700 (PDT) Date: Wed, 19 Sep 2007 18:58:32 -0400 To: User Questions Organization: Seibercom.net In-Reply-To: <12772223.post@talk.nabble.com> References: <12772223.post@talk.nabble.com> X-Face: "\j?x](l|]4p?-1Bf@!wN<&p=$.}^k-HgL}cJKbQZ3r#Ar]\%U(#6}'?<3s7%(%(gxJxxcR nSNPNr*/^~StawWU9KDJ-CT0k$f#@t2^K&BS_f|?ZV/.7Q Message-Id: <20070919185427.6F29.GERARD-SEIBERT@seibercom.net> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Mailer: Becky! ver. 2.31 [en] From: Gerard Subject: Re: Dovecot LDA help X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: User Questions List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Sep 2007 22:58:09 -0000 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 > Sep 19 02:29:30 pelorus postfix/lmtp[27886]: 956B36CF82: > to=, > relay=mail2.exotixboard.com[/var/run/dspam/dspam.sock], delay=0.21, > delays=0.19/0/0/0.02, dsn=4.3.0, status=deferred (host > mail2.exotixboard.com[/var/run/dspam/dspam.sock] said: 421 4.3.0 > Auto-Whitelisted (in reply to end of DATA > command)) > > Why is it not delivering? Also, my dspam.conf file is below for reference. > > TrustedDeliveryAgent "/usr/local/libexec/dovecot/deliver -d %u" > UntrustedDeliveryAgent "/usr/local/libexec/dovecot/deliver -d %u" > QuarantineAgent "/usr/local/libexec/dovecot/deliver -d %u -m Junk" You might be better served asking this question on the Dovecot forum. In any case, from the Dovecot web site, when requesting help, supply these: 1) Mention the Dovecot version number. Use dovecot --version to get it. 2) Use dovecot -n output when showing your configuration. 3) It lists only the main settings in dovecot.org though, so if you've a SQL/LDAP related problem get their configuration with grep -v '^*\(#.*\)\?$' dovecot-sql.conf You might also want to check this URL out: http://wiki.dovecot.org/ -- Gerard