Re: Dovecot LDA help

2007-09-22 Thread Mel
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]: <[EMAIL PROTECTED]>:
> > Recipient address triggers FILTER dspam:unix:/var/run/dspam/dspam.sock;
> > from=<[EMAIL PROTECTED]> to=<[EMAIL PROTECTED]> 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=<[EMAIL PROTECTED]>
> > Sep 19 02:29:30 pelorus postfix/qmgr[27452]: 956B36CF82:
> > from=<[EMAIL PROTECTED]>, 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 [EMAIL PROTECTED]

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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Dovecot LDA help

2007-09-19 Thread Gerard
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]: <[EMAIL PROTECTED]>: Recipient
> address triggers FILTER dspam:unix:/var/run/dspam/dspam.sock;
> from=<[EMAIL PROTECTED]> to=<[EMAIL PROTECTED]> 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=<[EMAIL PROTECTED]>
> Sep 19 02:29:30 pelorus postfix/qmgr[27452]: 956B36CF82: from=<[EMAIL 
> PROTECTED]>,
> 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 [EMAIL PROTECTED]
> Sep 19 02:29:30 pelorus postfix/lmtp[27886]: 956B36CF82:
> to=<[EMAIL PROTECTED]>,
> 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
> <[EMAIL PROTECTED]> 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
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Dovecot LDA help

2007-09-19 Thread Peter Pluta

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]: <[EMAIL PROTECTED]>: Recipient
address triggers FILTER dspam:unix:/var/run/dspam/dspam.sock;
from=<[EMAIL PROTECTED]> to=<[EMAIL PROTECTED]> 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=<[EMAIL PROTECTED]>
Sep 19 02:29:30 pelorus postfix/qmgr[27452]: 956B36CF82: from=<[EMAIL 
PROTECTED]>,
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 [EMAIL PROTECTED]
Sep 19 02:29:30 pelorus postfix/lmtp[27886]: 956B36CF82:
to=<[EMAIL PROTECTED]>,
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
<[EMAIL PROTECTED]> 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"




-- 
View this message in context: 
http://www.nabble.com/Dovecot-LDA-help-tf4479276.html#a12772223
Sent from the freebsd-questions mailing list archive at Nabble.com.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"