Re: Cyrus 2.1.13 and single store?

From: Bernd Nies (no email)
Date: Tue Jun 03 2003 - 02:52:10 EDT


Hi Ken,

> Its only possible for recipients that are on the same Cyrus partition.
> If you have a message sent to n recipients on p partitions then you
> should only have p copies of the message and n-p hardlinks (to one of
> the p copies).

I know that hard links cannot cross partitions. ;-) At least on my
installation the hard linking of identical messages does not work.
Example of one message to a list:

root at mailhost:/data/mail1/user> grep "Message-ID:
<>" */*
alex/304.:Message-ID: <3EDC19BD dot 10A3CF2 at domain dot tld>
alfred/468.:Message-ID: <3EDC19BD dot 10A3CF2 at domain dot tld>
alicia/102.:Message-ID: <3EDC19BD dot 10A3CF2 at domain dot tld>
alvi/49.:Message-ID: <3EDC19BD dot 10A3CF2 at domain dot tld>
andi/418.:Message-ID: <3EDC19BD dot 10A3CF2 at domain dot tld>
...

root at mailhost:/data/mail1/user> ls -ali alex/304. alfred/468.
alicia/102. alvi/49. andi/418.
      33932 -rw------- 1 cyrus cyrus 230395 Jun 3 05:45 alex/304.
      33967 -rw------- 1 cyrus cyrus 230395 Jun 3 05:45
alfred/468.
      33981 -rw------- 1 cyrus cyrus 230395 Jun 3 05:45
alicia/102.
      34008 -rw------- 1 cyrus cyrus 230395 Jun 3 05:45 alvi/49.
      33996 -rw------- 1 cyrus cyrus 230395 Jun 3 05:45 andi/418.
...

The inode number of the message files are different.

Here is the Postfix logfile:

Jun 3 05:45:01 mailhost postfix/smtpd[9629]: [ID 197553 mail.info]
E7C93357BE: client=mailhost.domain.tld[123.123.123.123]
Jun 3 05:45:01 mailhost postfix/cleanup[9631]: [ID 197553 mail.info]
E7C93357BE: message-id=<>
Jun 3 05:45:02 mailhost postfix/qmgr[21170]: [ID 197553 mail.info]
E7C93357BE: from=<>, size=230208, nrcpt=1 (queue active)
Jun 3 05:45:03 mailhost postfix/lmtp[9636]: [ID 197553 mail.info]
E7C93357BE: to=<>, orig_to=<>,
relay=/var/cyrus/socket/lmtp[/var/cyrus/socket/lmtp], delay=2,
status=sent (250 2.1.5 Ok)
Jun 3 05:45:03 mailhost postfix/lmtp[9636]: [ID 197553 mail.info]
E7C93357BE: to=<>, orig_to=<>,
relay=/var/cyrus/socket/lmtp[/var/cyrus/socket/lmtp], delay=2,
status=sent (250 2.1.5 Ok)
Jun 3 05:45:04 mailhost postfix/lmtp[9636]: [ID 197553 mail.info]
E7C93357BE: to=<>, orig_to=<>,
relay=/var/cyrus/socket/lmtp[/var/cyrus/socket/lmtp], delay=3,
status=sent (250 2.1.5 Ok)
Jun 3 05:45:05 mailhost postfix/lmtp[9636]: [ID 197553 mail.info]
E7C93357BE: to=<>, orig_to=<>,
relay=/var/cyrus/socket/lmtp[/var/cyrus/socket/lmtp], delay=4,
status=sent (250 2.1.5 Ok)
Jun 3 05:45:05 mailhost postfix/lmtp[9636]: [ID 197553 mail.info]
E7C93357BE: to=<>, orig_to=<>,
relay=/var/cyrus/socket/lmtp[/var/cyrus/socket/lmtp], delay=4,
status=sent (250 2.1.5 Ok)
Jun 3 05:45:06 mailhost postfix/lmtp[9636]: [ID 197553 mail.info]
E7C93357BE: to=<>, orig_to=<>,
relay=/var/cyrus/socket/lmtp[/var/cyrus/socket/lmtp], delay=5,
status=sent (250 2.1.5 Ok)
...

And from Cyrus:

Jun 3 05:45:02 mailhost master[9637]: [ID 392559 local6.debug] about to
exec /opt/cyrus-2.1.13/bin/lmtpd
Jun 3 05:45:02 mailhost lmtpunix[9637]: [ID 518349 local6.debug] executed
Jun 3 05:45:02 mailhost lmtpd[9637]: [ID 921384 local6.debug] accepted
connection
Jun 3 05:45:02 mailhost lmtpd[9637]: [ID 685068 local6.debug] lmtp
connection preauth'd as postman
Jun 3 05:45:02 mailhost lmtpd[9637]: [ID 100061 local6.debug]
duplicate_check: <> user.ove
        0
Jun 3 05:45:03 mailhost lmtpd[9637]: [ID 516618 local6.debug] mystore:
starting txn 2147509085
Jun 3 05:45:03 mailhost lmtpd[9637]: [ID 265043 local6.debug] mystore:
committing txn 2147509085
Jun 3 05:45:03 mailhost lmtpd[9637]: [ID 516477 local6.debug]
duplicate_mark: <> user.ove
       1054611902
Jun 3 05:45:03 mailhost lmtpd[9637]: [ID 100061 local6.debug]
duplicate_check: <> user.thomul
        0
Jun 3 05:45:03 mailhost lmtpd[9637]: [ID 516618 local6.debug] mystore:
starting txn 2147509086
Jun 3 05:45:03 mailhost lmtpd[9637]: [ID 265043 local6.debug] mystore:
committing txn 2147509086
Jun 3 05:45:03 mailhost lmtpd[9637]: [ID 516477 local6.debug]
duplicate_mark: <> user.thomul
       1054611903
Jun 3 05:45:03 mailhost lmtpd[9637]: [ID 100061 local6.debug]
duplicate_check: <> user.alex
        0
Jun 3 05:45:04 mailhost lmtpd[9637]: [ID 516618 local6.debug] mystore:
starting txn 2147509087
Jun 3 05:45:04 mailhost lmtpd[9637]: [ID 265043 local6.debug] mystore:
committing txn 2147509087
Jun 3 05:45:04 mailhost lmtpd[9637]: [ID 516477 local6.debug]
duplicate_mark: <> user.alex
       1054611903
Jun 3 05:45:04 mailhost lmtpd[9637]: [ID 100061 local6.debug]
duplicate_check: <> user.stefan
        0
Jun 3 05:45:05 mailhost lmtpd[9637]: [ID 516618 local6.debug] mystore:
starting txn 2147509088
Jun 3 05:45:05 mailhost lmtpd[9637]: [ID 265043 local6.debug] mystore:
committing txn 2147509088
Jun 3 05:45:05 mailhost lmtpd[9637]: [ID 516477 local6.debug]
duplicate_mark: <> user.stefan
       1054611904
Jun 3 05:45:05 mailhost lmtpd[9637]: [ID 100061 local6.debug]
duplicate_check: <> user.this
        0
Jun 3 05:45:05 mailhost lmtpd[9637]: [ID 516618 local6.debug] mystore:
starting txn 2147509089
Jun 3 05:45:05 mailhost lmtpd[9637]: [ID 265043 local6.debug] mystore:
committing txn 2147509089
Jun 3 05:45:05 mailhost lmtpd[9637]: [ID 516477 local6.debug]
duplicate_mark: <> user.this
       1054611905
Jun 3 05:45:05 mailhost lmtpd[9637]: [ID 100061 local6.debug]
duplicate_check: <> user.verena
        0
Jun 3 05:45:06 mailhost lmtpd[9637]: [ID 516618 local6.debug] mystore:
starting txn 2147509090
Jun 3 05:45:06 mailhost lmtpd[9637]: [ID 265043 local6.debug] mystore:
committing txn 2147509090
Jun 3 05:45:06 mailhost lmtpd[9637]: [ID 516477 local6.debug]
duplicate_mark: <> user.verena
       1054611905
...

The OS and how I compiled it:

root at mailhost:~> uname -a
SunOS mailhost 5.8 Generic_108528-19 sun4u sparc SUNW,Ultra-4

cd cyrus-sasl-2.1.13
./configure --prefix=/opt/cyrus-2.1.13 \
             --with-dbpath=/opt/cyrus-2.1.13/sasldb2 \
             --with-dblib=berkeley \
             --with-bdb-libdir=/opt/db/lib \
             --with-bdb-incdir=/opt/db/include \
             --with-openssl=/opt/openssl \
             --with-plugindir=/opt/cyrus-2.1.13/lib/sasl2 \
             --with-saslauthd=/opt/cyrus-2.1.13/state \
             --enable-shared \
             --enable-static \
             --disable-gssapi \
             --disable-kerb5

cd cyrus-imapd-2.1.13
./configure --prefix=/opt/cyrus \
             --with-auth=unix \
             --with-cyrus-prefix=/opt/cyrus \
             --with-dbdir=/opt/db \
             --with-openssl=/opt/openssl \
             --with-sasl=/opt/cyrus \
             --with-perl=/usr/bin/perl \
             --disable-krb4 \
             --disable-cram \
             --disable-gssapi \
             --without-krb \
             --with-statedir=/opt/cyrus/state

Thanks in advance for help

Regards,
Bernd

-- 
+---------------------------------------------------------------------+
  Bernd Nies                               mailto:
  System Engineering                                 Dipl. El.-Ing. HTL
  AdNovum Informatik AG http://www.adnovum.ch  phone: +41 (1)  272 6111
  Roentgenstrasse 22, CH-8005 Zuerich          fax:   +41 (1)  272 6312
+---------------------------------------------------------------------+
  AdNovum Software Inc. San Mateo, CA 94404    phone: +1 (650) 525 9322
  1400 Fashion Island Boulevard, Suite 309     fax:   +1 (650) 525 9324
+---------------------------------------------------------------------+







Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD