Sieve Vacation and delivery to sender

Kristjan Kotkas kristjan at data.ee
Sun Jul 25 19:53:03 EDT 2004


Hi,

most probably this is a no brainer for you, but after 7 days of 
googeling I cant ask the right question in google, also going through 
the mailing list I find similar problems, but nothing so far seems to work.

I'm running a SuSE 9.1 site with the SuSE packed cyrus-imapd 2.2.3 with 
postfix and mysql back end using web-cyradmn. I have had several setups 
like this before and this is the first time I came across this kind of 
problem.

The problem is that sieve vacation module is not working or should I say 
is working but cyrus is  somehow getting dupes and well.. no vacation 
message.. redirect and reject functions of sieve are working ok, just 
the vacation is problematic.



when I send email to the "vacation enabled" user I log to the messages 
the following:
--snip--

Jul 26 02:02:38 sys lmtpunix[5647]: lmtp connection preauth'd as postman
Jul 26 02:02:38 sys lmtpunix[5647]: duplicate_check: <41043BF8.3080003 
at data.ee>               user.kri
stjan        0
Jul 26 02:02:38 sys lmtpunix[5647]: mystore: starting txn 2147483650
Jul 26 02:02:38 sys lmtpunix[5647]: mystore: committing txn 2147483650
Jul 26 02:02:38 sys lmtpunix[5647]: duplicate_mark: <41043BF8.3080003 at 
data.ee>               user.kris
tjan        1090796558 126
Jul 26 02:02:38 sys lmtpunix[5647]: mystore: starting txn 2147483651
Jul 26 02:02:38 sys lmtpunix[5647]: mystore: committing txn 2147483651
Jul 26 02:02:38 sys lmtpunix[5647]: duplicate_mark: <41043BF8.3080003 at 
data.ee>               .kristjan
+ at .sieve.   1090796558 0

--snip--

email was sent from kristjan at  data to kristjan at sysop

logfile shows as follows:

--snip--
Jul 26 02:02:37 sys postfix/qmgr[3691]: CE247117BF: from=<kristjan at 
data.ee>, size=887, nrcpt=1 (queue active)
Jul 26 02:02:37 sys postfix/smtp[5636]: connect to localhost[::1]: 
Connection refused (port 10024)
Jul 26 02:02:37 sys amavis[5049]: (05049-10) ESMTP::10024 
/var/spool/amavis/amavis-20040726T014334-05049: <kristjan at da
ta.ee> -> <kristjan at sys.sysop.ee> Received: SIZE=887 from 
sys.sysop.ee ([127.0.0.1]) by localhost (sys [127.0.0.1]) (a
mavisd-new, port 10024) with ESMTP id 05049-10 for <kristjan at 
sys.sysop.ee>; Mon, 26 Jul 2004 02:02:37 +0300 (EEST)
Jul 26 02:02:37 sys amavis[5049]: (05049-10) Checking: <kristjan at 
data.ee> -> <kristjan at sys.sysop.ee>
Jul 26 02:02:37 sys postfix/smtpd[5481]: disconnect from 
mail.datanet.ee[195.222.0.3]
Jul 26 02:02:38 sys amavis[5049]: (05049-10) spam_scan: hits=-4.901 
tests=BAYES_00
Jul 26 02:02:38 sys amavis[5049]: (05049-10) FWD via SMTP: 
[127.0.0.1]:10025 <kristjan at data.ee> -> <kristjan at sys.sysop
.ee>
Jul 26 02:02:38 sys postfix/smtpd[5543]: connect from localhost[127.0.0.1]
Jul 26 02:02:38 sys postfix/smtpd[5543]: 41176117C0: 
client=localhost[127.0.0.1]
Jul 26 02:02:38 sys postfix/cleanup[5537]: 41176117C0: 
message-id=<41043BF8.3080003 at data.ee>
Jul 26 02:02:38 sys postfix/qmgr[3691]: 41176117C0: from=<kristjan at 
data.ee>, size=1257, nrcpt=1 (queue active)
Jul 26 02:02:38 sys postfix/smtpd[5543]: disconnect from 
localhost[127.0.0.1]
Jul 26 02:02:38 sys amavis[5049]: (05049-10) Passed, <kristjan at 
data.ee> -> <kristjan at sys.sysop.ee>, Message-ID: <41043
BF8.3080003 at data.ee>, Hits: -4.901
Jul 26 02:02:38 sys amavis[5049]: (05049-10) TIMING [total 427 ms] - 
SMTP EHLO: 1 (0%), SMTP pre-MAIL: 0 (0%), SMTP pr
e-DATA-flush: 2 (0%), SMTP DATA: 39 (9%), body hash: 0 (0%), 
mime_decode: 7 (2%), get-file-type: 10 (2%), decompose_pa
rt: 1 (0%), parts: 0 (0%), SA msg read: 1 (0%), SA parse: 1 (0%), SA 
check: 296 (69%), fwd-connect: 4 (1%), fwd-mail-f
rom: 2 (0%), fwd-rcpt-to: 6 (1%), write-header: 3 (1%), fwd-data: 0 
(0%), fwd-data-end: 48 (11%), fwd-rundown: 1 (0%),
 unlink-1-files: 4 (1%), rundown: 0 (0%)
Jul 26 02:02:38 sys postfix/smtp[5636]: CE247117BF: to=<kristjan at 
sys.sysop.ee>, orig_to=<kristjan at sysop.ee>, relay=loc
alhost[127.0.0.1], delay=1, status=sent (250 2.6.0 Ok, id=05049-10, from 
MTA: 250 Ok: queued as 41176117C0)
Jul 26 02:02:38 sys postfix/qmgr[3691]: CE247117BF: removed
Jul 26 02:02:38 sys amavis[5049]: (05049-10) tempdir being removed: 
/var/spool/amavis/amavis-20040726T014334-05049
Jul 26 02:02:38 sys postfix/lmtp[5547]: 41176117C0: to=<kristjan at 
sys.sysop.ee>, relay=/var/lib/imap/socket/lmtp[/var/l
ib/imap/socket/lmtp], delay=0, status=sent (250 2.1.5 Ok)
Jul 26 02:02:38 sys postfix/qmgr[3691]: 41176117C0: removed
--snip--


I have tried numerous things moving from lmtp to cyrus as a 
mailbox_transport etc.. but it seems to me like this is related to some 
configuration directive in the cyrus configuration list.  pumping up the 
CYRUS_VERBOSE parameter didnt help much also...


Brgrds

Kristjan





Postfix conf looks as follows:

--snip--
alias_maps = hash:/etc/aliases
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = vscan:
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
defer_transports =
disable_dns_lookups = no
inet_interfaces = all
local_recipient_maps =
mail_owner = postfix
mail_spool_directory = /var/mail
mailbox_command =
mailbox_size_limit = 0
mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains =
masquerade_exceptions = root
message_size_limit = 20240000
mydestination = $myhostname, localhost.$mydomain, 
mysql:/etc/postfix/mysql-mydestination.cf
myhostname = sys.sysop.ee
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/packages/postfix/README_FILES
relay_clientcerts = hash:/etc/postfix/relay_ccerts
relayhost =
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /usr/share/doc/packages/postfix/samples
sender_canonical_maps = hash:/etc/postfix/sender_canonical, 
mysql:/etc/postfix/mysql-canonical.cf
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtp_sasl_auth_enable = no
smtp_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtp_tls_cert_file = /etc/postfix/ssl/certs/postfixcert.pem
smtp_tls_key_file = /etc/postfix/ssl/certs/postfixkey.pem
smtp_use_tls = yes
smtpd_client_restrictions = permit_mynetworks
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks
smtpd_recipient_restrictions = permit_tls_clientcerts,  
permit_mynetworks,      reject_unauth_destination,            
reject_non_fqdn_sender,            reject_non_fqdn_recipient,            
reject_unknown_sender_domain,            
reject_unknown_recipient_domain,            
reject_unauth_pipelining,            reject_rbl_client 
zombie.dnsbl.sorbs.net,            reject_rbl_client 
relays.ordb.org,            reject_rbl_client 
opm.blitzed.org,            reject_rbl_client list.dsbl.org,            
reject_rbl_client sbl.spamhaus.org,            permit
smtpd_sasl_auth_enable = no
smtpd_sender_restrictions = hash:/etc/postfix/access, 
reject_unknown_sender_domain
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_ask_ccert = yes
smtpd_tls_cert_file = /etc/postfix/ssl/certs/postfixcert.pem
smtpd_tls_key_file = /etc/postfix/ssl/certs/postfixkey.pem
smtpd_tls_received_header = yes
smtpd_use_tls = yes
strict_rfc821_envelopes = yes
tls_daemon_random_source = dev:/dev/urandom
tls_random_source = dev:/dev/urandom
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/etc/postfix/virtual, 
mysql:/etc/postfix/mysql-virtual.cf

--snip--

Imap conf is:

--snip--
postmaster: postmaster
configdirectory: /var/lib/imap
partition-default: /var/spool/imap
# admins: cyrus # no admins!
allowanonymouslogin: no
allowplaintext: yes
sasl_mech_list: PLAIN
servername: sys.sysop.ee
autocreatequota: 10000
reject8bit: no
quotawarn: 90
timeout: 30
poptimeout: 10
dracinterval: 0
drachost: localhost
sasl_pwcheck_method: saslauthd
sievedir: /var/lib/sieve
sendmail: /usr/sbin/sendmail
sieve_maxscriptsize: 32
sieve_maxscripts: 5
#unixhierarchysep: yes
rfc3028_strict: no
--snip--

anc cyrus conf is :

--snip--
START {
  # do not delete this entry!
  recover       cmd="ctl_cyrusdb -r"

  # this is only necessary if using idled for IMAP IDLE
#  idled                cmd="idled"
}

# UNIX sockets start with a slash and are put into /var/lib/imap/socket
SERVICES {
  # add or remove based on preferences
  imap          cmd="imapd" listen="imap" prefork=0
#  imaps                cmd="imapd -s" listen="imaps" prefork=0
  pop3          cmd="pop3d" listen="pop3" prefork=0
#  pop3s                cmd="pop3d -s" listen="pop3s" prefork=0
  sieve         cmd="timsieved" listen="sieve" prefork=0

  # at least one LMTP is required for delivery
#  lmtp         cmd="lmtpd" listen="lmtp" prefork=0
  lmtpunix      cmd="lmtpd" listen="/var/lib/imap/socket/lmtp" prefork=0

  # this is only necessary if using notifications
#  notify       cmd="notifyd" listen="/var/lib/imap/socket/notify" 
proto="udp" prefork=1
}

EVENTS {
  # this is required
  checkpoint    cmd="ctl_cyrusdb -c" period=30

  # this is only necessary if using duplicate delivery suppression
  delprune      cmd="cyr_expire -E 3" at=0400

  # this is only necessary if caching TLS sessions
  tlsprune      cmd="tls_prune" at=0400

  # Uncomment the next entry, if you want to automatically remove
  # old messages of EVERY user.
  # This example calls ipurge every 60 minutes and ipurge will delete
  # ALL messages older then 30 days.
  # enter 'man 8 ipurge' for more details

  # cleanup      cmd="ipurge -d 30 -f" period=60
}

--snip--

postfix-master conf looks like this:

--snip--
smtp      inet  n       -       n       -       2       smtpd -o 
content_filter=smtp:[localhost]:10024
smtps     inet  n       -       n       -       2       smtpd -o 
smtpd_tls_wrappermode=yes -o content_filter=smtp:[localhost]:
10024
#  -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission     inet    n       -       n       -       -       smtpd
#  -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#628      inet  n       -       n       -       -       qmqpd
pickup    fifo  n       -       n       60      1       pickup
cleanup   unix  n       -       n       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       n       300     1       oqmgr
rewrite   unix  -       -       n       -       -       trivial-rewrite
bounce    unix  -       -       n       -       0       bounce
defer     unix  -       -       n       -       0       bounce
trace     unix  -       -       n       -       0       bounce
verify    unix  -       -       n       -       1       verify
flush     unix  n       -       n       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       n       -       -       smtp
relay     unix  -       -       n       -       -       smtp
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
localhost:10025 inet    n       -       n       -       -       smtpd -o 
content_filter=
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
cyrus     unix  -       n       n       -       -       pipe
  flags= user=cyrus argv=/usr/lib/cyrus/bin/deliver -r ${sender} -m 
${extension} ${user}
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail 
($recipient)
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop 
$recipient
vscan     unix  -       n       n       -       10       pipe
  user=vscan argv=/usr/sbin/amavis ${sender} ${recipient}
procmail  unix  -       n       n       -       -       pipe
  flags=R user=nobody argv=/usr/bin/procmail -t -m /etc/procmailrc 
${sender} ${recipient}

--snip--






---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list