Re: [Dovecot] Sieve autoreply woes on test setup

2010-09-22 Thread Mohit Chawla
Hi,

If anyone else is testing out sieve with a similar setup. this is caused by
the defaultdomain setting in qmail. qmail-inject appends this value to a
domain without any dots.

Thanks to Stephan (S[r]us) for bringing this to notice on irc.

On Wed, Sep 22, 2010 at 5:59 PM, Mohit Chawla  wrote:

> In case these are required as well:
>
> *dovecot confiiguration*
>
> r...@dawnone:~# dovecot -n
> # 1.2.13: /etc/dovecot/dovecot.conf
> # OS: Linux 2.6.32-3-686 i686 Debian squeeze/sid
> log_timestamp: %Y-%m-%d %H:%M:%S
> protocols: imap managesieve
> listen(default): *
> listen(imap): *
> listen(managesieve): *:2000
> ssl: no
> disable_plaintext_auth: no
> login_dir: /var/run/dovecot/login
> login_executable(default): /usr/lib/dovecot/imap-login
> login_executable(imap): /usr/lib/dovecot/imap-login
> login_executable(managesieve): /usr/lib/dovecot/managesieve-login
> mail_privileged_group: mail
> mail_location: maildir:~/Maildir
> mbox_write_locks: fcntl dotlock
> mail_executable(default): /usr/lib/dovecot/imap
> mail_executable(imap): /usr/lib/dovecot/imap
> mail_executable(managesieve): /usr/lib/dovecot/managesieve
> mail_plugins(default): quota
> mail_plugins(imap): quota
> mail_plugins(managesieve):
> mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
> mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
> mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve
> managesieve_logout_format(default): bytes=%i/%o
> managesieve_logout_format(imap): bytes=%i/%o
> managesieve_logout_format(managesieve): bytes=%i%o
> lda:
>   postmaster_address: d...@vmint
>   mail_plugins: quota sieve
>   deliver_log_format: msgid=%m: %$
>   sendmail_path: /usr/lib/sendmail
>   log_path: /var/log/ldaone
>   info_log_path: /var/log/ldatwo
>   debug: yes
> auth default:
>   debug: yes
>   passdb:
> driver: ldap
> args: /etc/dovecot/dovecot-ldap.conf
>   userdb:
> driver: prefetch
>   userdb:
> driver: ldap
> args: /etc/dovecot/dovecot-ldap.conf
>   socket:
> type: listen
> master:
>   path: /var/run/dovecot/auth-master
>   mode: 438
> plugin:
>   quota: maildir
>   sieve: ~/.dovecot.sieve
>   sieve_dir: ~/sieve
>
> *ldap attributes*
> r...@dawnone:~# qmail-ldaplookup -u cot
> Searching ldap for: (&(objectClass=qmailUser)(uid=cot))
> under dn: dc=vmint
> Found 1 entry:
>
> dn: uid=cot,ou=people,dc=vmint
> ---
> objectClass: top
> objectClass: person
> objectClass: posixAccount
> objectClass: shadowAccount
> objectClass: qmailUser
> mail: c...@vmint
> uid: cot
> accountStatus: undefined -> active
> mailHost: undefined
> homeDirectory: /home/cot
> aliasEmpty: /home/cot/Maildir/
> qmailDotMode: ldapwithprog
> qmailUID: 1011
> qmailGID: 1011
> mailQuotaSize: 100
> mailQuotaCount: 0 (unlimited)
> mailSizeMax: 0 (unlimited)
> deliveryMode: nolocal
> deliveryProgramPath: /usr/lib/dovecot/deliver -a $RECIPIENT -f $SENDER -d
> $USER
> mailReplyText: undefined
>
>
>
> On Wed, Sep 22, 2010 at 4:59 PM, Mohit Chawla <
> mohit.chawla.bin...@gmail.com> wrote:
>
>> Hi,
>>
>> I have been testing sieve in my setup with qmail-ldap and deliver on a LAN
>> with an artificial domain name. Everything seems to be working as expected,
>> except in cases when autoreplies (vacation, reject messages) need to be
>> tested.
>>
>> The domain name is vmint, and dawnone is the hostname on which mail server
>> is setup, so a users have address like c...@vmint, c...@vmint and
>> d...@vmint
>>
>> * LDA Log*  *cot is the user with the sieve vacation filter enabled*
>> 2010-09-22 16:47:55 deliver(cot): Info: Loading modules from directory:
>> /usr/lib/dovecot/modules/lda
>> 2010-09-22 16:47:55 deliver(cot): Info: Module loaded:
>> /usr/lib/dovecot/modules/lda/lib10_quota_plugin.so
>> 2010-09-22 16:47:55 deliver(cot): Info: Module loaded:
>> /usr/lib/dovecot/modules/lda/lib90_sieve_plugin.so
>> 2010-09-22 16:47:55 deliver(cot): Info: auth input: uid=1011
>> 2010-09-22 16:47:55 deliver(cot): Info: auth input: gid=1011
>> 2010-09-22 16:47:55 deliver(cot): Info: auth input: home=/home/cot
>> 2010-09-22 16:47:55 deliver(cot): Info: auth input:
>> quota_rule=*:bytes=100
>> 2010-09-22 16:47:55 deliver(cot): Info: Quota root: name= backend=maildir
>> args=
>> 2010-09-22 16:47:55 deliver(cot): Info: Quota rule: root= mailbox=*
>> bytes=100 messages=0
>> 2010-09-22 16:47:55 deliver(cot): Info: maildir: data=/home/cot/Maildir
>> 2010-09-22 16:47:55 deliver(cot): Info: maildir++: root=/home/cot/Maildir,
>> index=, control=, inbox=/home/cot/Maildir
>> 2010-09-22 16:47:55 deliver(cot): Info: sieve: using sieve path for user's
>> script: /home/cot/.dovecot.sieve
>> 2010-09-22 16:47:55 deliver(cot): Info: sieve: opening script
>> /home/cot/.dovecot.sieve
>> 2010-09-22 16:47:55 deliver(cot): Info: sieve: executing compiled script
>> /home/cot/.dovecot.sieve
>> 2010-09-22 16:47:55 deliver(cot): Info: sieve: msgid=<
>> e93c61e349a52559d3060b6530f6dd69.squir...@192.168.1.13

Re: [Dovecot] Sieve autoreply woes on test setup

2010-09-22 Thread Mohit Chawla
In case these are required as well:

*dovecot confiiguration*

r...@dawnone:~# dovecot -n
# 1.2.13: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-3-686 i686 Debian squeeze/sid
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imap managesieve
listen(default): *
listen(imap): *
listen(managesieve): *:2000
ssl: no
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(managesieve): /usr/lib/dovecot/managesieve-login
mail_privileged_group: mail
mail_location: maildir:~/Maildir
mbox_write_locks: fcntl dotlock
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(managesieve): /usr/lib/dovecot/managesieve
mail_plugins(default): quota
mail_plugins(imap): quota
mail_plugins(managesieve):
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve
managesieve_logout_format(default): bytes=%i/%o
managesieve_logout_format(imap): bytes=%i/%o
managesieve_logout_format(managesieve): bytes=%i%o
lda:
  postmaster_address: d...@vmint
  mail_plugins: quota sieve
  deliver_log_format: msgid=%m: %$
  sendmail_path: /usr/lib/sendmail
  log_path: /var/log/ldaone
  info_log_path: /var/log/ldatwo
  debug: yes
auth default:
  debug: yes
  passdb:
driver: ldap
args: /etc/dovecot/dovecot-ldap.conf
  userdb:
driver: prefetch
  userdb:
driver: ldap
args: /etc/dovecot/dovecot-ldap.conf
  socket:
type: listen
master:
  path: /var/run/dovecot/auth-master
  mode: 438
plugin:
  quota: maildir
  sieve: ~/.dovecot.sieve
  sieve_dir: ~/sieve

*ldap attributes*
r...@dawnone:~# qmail-ldaplookup -u cot
Searching ldap for: (&(objectClass=qmailUser)(uid=cot))
under dn: dc=vmint
Found 1 entry:

dn: uid=cot,ou=people,dc=vmint
---
objectClass: top
objectClass: person
objectClass: posixAccount
objectClass: shadowAccount
objectClass: qmailUser
mail: c...@vmint
uid: cot
accountStatus: undefined -> active
mailHost: undefined
homeDirectory: /home/cot
aliasEmpty: /home/cot/Maildir/
qmailDotMode: ldapwithprog
qmailUID: 1011
qmailGID: 1011
mailQuotaSize: 100
mailQuotaCount: 0 (unlimited)
mailSizeMax: 0 (unlimited)
deliveryMode: nolocal
deliveryProgramPath: /usr/lib/dovecot/deliver -a $RECIPIENT -f $SENDER -d
$USER
mailReplyText: undefined



On Wed, Sep 22, 2010 at 4:59 PM, Mohit Chawla  wrote:

> Hi,
>
> I have been testing sieve in my setup with qmail-ldap and deliver on a LAN
> with an artificial domain name. Everything seems to be working as expected,
> except in cases when autoreplies (vacation, reject messages) need to be
> tested.
>
> The domain name is vmint, and dawnone is the hostname on which mail server
> is setup, so a users have address like c...@vmint, c...@vmint and
> d...@vmint
>
> * LDA Log*  *cot is the user with the sieve vacation filter enabled*
> 2010-09-22 16:47:55 deliver(cot): Info: Loading modules from directory:
> /usr/lib/dovecot/modules/lda
> 2010-09-22 16:47:55 deliver(cot): Info: Module loaded:
> /usr/lib/dovecot/modules/lda/lib10_quota_plugin.so
> 2010-09-22 16:47:55 deliver(cot): Info: Module loaded:
> /usr/lib/dovecot/modules/lda/lib90_sieve_plugin.so
> 2010-09-22 16:47:55 deliver(cot): Info: auth input: uid=1011
> 2010-09-22 16:47:55 deliver(cot): Info: auth input: gid=1011
> 2010-09-22 16:47:55 deliver(cot): Info: auth input: home=/home/cot
> 2010-09-22 16:47:55 deliver(cot): Info: auth input:
> quota_rule=*:bytes=100
> 2010-09-22 16:47:55 deliver(cot): Info: Quota root: name= backend=maildir
> args=
> 2010-09-22 16:47:55 deliver(cot): Info: Quota rule: root= mailbox=*
> bytes=100 messages=0
> 2010-09-22 16:47:55 deliver(cot): Info: maildir: data=/home/cot/Maildir
> 2010-09-22 16:47:55 deliver(cot): Info: maildir++: root=/home/cot/Maildir,
> index=, control=, inbox=/home/cot/Maildir
> 2010-09-22 16:47:55 deliver(cot): Info: sieve: using sieve path for user's
> script: /home/cot/.dovecot.sieve
> 2010-09-22 16:47:55 deliver(cot): Info: sieve: opening script
> /home/cot/.dovecot.sieve
> 2010-09-22 16:47:55 deliver(cot): Info: sieve: executing compiled script
> /home/cot/.dovecot.sieve
> 2010-09-22 16:47:55 deliver(cot): Info: sieve: msgid=<
> e93c61e349a52559d3060b6530f6dd69.squir...@192.168.1.137>: sent vacation
> response to 
> 2010-09-22 16:47:55 deliver(cot): Info: Namespace : Using permissions from
> /home/cot/Maildir: mode=0700 gid=-1
> 2010-09-22 16:47:55 deliver(cot): Info: sieve: msgid=<
> e93c61e349a52559d3060b6530f6dd69.squir...@192.168.1.137>: stored mail into
> mailbox 'INBOX'
>
> *failure notice message/bounce sent to the postmaster*
>
> Return-Path: <>
> Received: (qmail 5346 invoked for bounce); 22 Sep 2010 11:17:55 -
> Date: 22 Sep 2010 11:17:55 -
> From: mailer-dae...@vmint
> To: "<>"@dawnone.vmint
> Subject: fai

[Dovecot] Sieve autoreply woes on test setup

2010-09-22 Thread Mohit Chawla
Hi,

I have been testing sieve in my setup with qmail-ldap and deliver on a LAN
with an artificial domain name. Everything seems to be working as expected,
except in cases when autoreplies (vacation, reject messages) need to be
tested.

The domain name is vmint, and dawnone is the hostname on which mail server
is setup, so a users have address like c...@vmint, c...@vmint and d...@vmint

* LDA Log*  *cot is the user with the sieve vacation filter enabled*
2010-09-22 16:47:55 deliver(cot): Info: Loading modules from directory:
/usr/lib/dovecot/modules/lda
2010-09-22 16:47:55 deliver(cot): Info: Module loaded:
/usr/lib/dovecot/modules/lda/lib10_quota_plugin.so
2010-09-22 16:47:55 deliver(cot): Info: Module loaded:
/usr/lib/dovecot/modules/lda/lib90_sieve_plugin.so
2010-09-22 16:47:55 deliver(cot): Info: auth input: uid=1011
2010-09-22 16:47:55 deliver(cot): Info: auth input: gid=1011
2010-09-22 16:47:55 deliver(cot): Info: auth input: home=/home/cot
2010-09-22 16:47:55 deliver(cot): Info: auth input:
quota_rule=*:bytes=100
2010-09-22 16:47:55 deliver(cot): Info: Quota root: name= backend=maildir
args=
2010-09-22 16:47:55 deliver(cot): Info: Quota rule: root= mailbox=*
bytes=100 messages=0
2010-09-22 16:47:55 deliver(cot): Info: maildir: data=/home/cot/Maildir
2010-09-22 16:47:55 deliver(cot): Info: maildir++: root=/home/cot/Maildir,
index=, control=, inbox=/home/cot/Maildir
2010-09-22 16:47:55 deliver(cot): Info: sieve: using sieve path for user's
script: /home/cot/.dovecot.sieve
2010-09-22 16:47:55 deliver(cot): Info: sieve: opening script
/home/cot/.dovecot.sieve
2010-09-22 16:47:55 deliver(cot): Info: sieve: executing compiled script
/home/cot/.dovecot.sieve
2010-09-22 16:47:55 deliver(cot): Info: sieve: msgid=<
e93c61e349a52559d3060b6530f6dd69.squir...@192.168.1.137>: sent vacation
response to 
2010-09-22 16:47:55 deliver(cot): Info: Namespace : Using permissions from
/home/cot/Maildir: mode=0700 gid=-1
2010-09-22 16:47:55 deliver(cot): Info: sieve: msgid=<
e93c61e349a52559d3060b6530f6dd69.squir...@192.168.1.137>: stored mail into
mailbox 'INBOX'

*failure notice message/bounce sent to the postmaster*

Return-Path: <>
Received: (qmail 5346 invoked for bounce); 22 Sep 2010 11:17:55 -
Date: 22 Sep 2010 11:17:55 -
From: mailer-dae...@vmint
To: "<>"@dawnone.vmint
Subject: failure notice

Hi. This is the qmail-send program at vmint.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

http://192.168.1.137/squirrelmail/src/compose.php?send_to=cute%40vmint.vmint>>:
Sorry, I couldn't find any host named vmint.vmint. (#5.1.2)

--- Below this line is a copy of the message.

Return-Path: <"<>"@dawnone.vmint>
Received: (qmail 5344 invoked by uid 1011); 22 Sep 2010 11:17:55 -
X-Sieve: Dovecot Sieve 0.1.17
Message-ID: 
Date: Wed, 22 Sep 2010 16:47:55 +0530
From: http://192.168.1.137/squirrelmail/src/compose.php?send_to=cot%40vmint.vmint>>
To: http://192.168.1.137/squirrelmail/src/compose.php?send_to=cute%40vmint.vmint>>
Subject: Not here
In-Reply-To: http://192.168.1.137/squirrelmail/src/compose.php?send_to=e93c61e349a52559d3060b6530f6dd69.squirrel%40192.168.1.137>>
References: http://192.168.1.137/squirrelmail/src/compose.php?send_to=e93c61e349a52559d3060b6530f6dd69.squirrel%40192.168.1.137>>
Auto-Submitted: auto-replied (vacation)
Precedence: bulk
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit


This is an automated reply; I am away and will not be able to reply to you
immediately.I will get back to you as soon as I return.


*deliver is being called like this*:

deliver -f $SENDER -d $USER

where SENDER and USER are provided by qmail-ldap.

So, am not sure what component in the chain is appending a .vmint to
the existing domain name.

Any input appreciated, thanks.