Re: lmtpd reporting faulty parse errors

2004-02-17 Thread Henk . Roose
Simon,

On Tue, Feb 17, 2004 at 08:24:29AM +1300, Simon Brady wrote:
 On Mon, 16 Feb 2004 [EMAIL PROTECTED] wrote:
 
  Feb 15 04:26:00 host.cwi.nl lmtpd[28106]: [ID 358100 local6.info] sieve parse 
  error for user: line 7: fileinto not required
   [...] 
  Did anyone experience this before? Does anybody have any idea why this
  is happening?
 
 If the script includes a fileinto action it needs to begin with the line
 
   require fileinto;
 
 This is because fileinto is an optional capability for Sieve
 implementations (see RFC 3028 sections 2.10.5, 3.2 and 4.2). Admittedly 
 the error message is ambiguous to someone who doesn't already know the 
 special meaning being given to the verb require: perhaps something like
 
   require statement missing for fileinto capability
 
 would be clearer?

This is not what I'm talking about. I stated earlier that the scripts
are syntactically correct. In addition to that -- all requirements are 
in the scripts!

I suspect this is a bug and it's load and/or uptime related.
Question remains: did anyone experience lmtpd reporting *faulty*
sieve perse errors?

Cheers
-- 
Henk Roose - [EMAIL PROTECTED]
CWI - Centrum voor Wiskunde en Informatica
Centre for Mathematics and Computer Science
Amsterdam (NL)
---
Home Page: http://asg.web.cmu.edu/cyrus
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Need help with cyrus.logwatch.tgz

2004-02-17 Thread Sebastian Hagedorn
Hi,

--On Mittwoch, 11. Februar 2004 9:11 Uhr -0500 Eddy Beliveau 
[EMAIL PROTECTED] wrote:

I'm using imapd-cyrus 2.1.15-2 on RedHat 9

I did the following commands:

# cd  /tmp
# wget
# http://acs-wiki.andrew.cmu.edu/twiki/pub/Cyrus/Logwatch/cyrus.logwatch.t
# gz gunzip  cyrus.logwatch.tgz
# cd  /
# tar  -xvf  /tmp/cyrus.logwatch.tar
# logwatch --service  cyrus  --range  all  --detail high --print
but the output is empty

Did I missed something ?
there are several things that may have gone wrong. I've only tested the 
script under RH AS 2.1 using Logwatch 4.3.1. Do you have Cyrus entries in 
/var/log/imapd.log? Which logwatch version have you got?

Cheers, Sebastian Hagedorn
--
Sebastian Hagedorn M.A. - RZKR-R1 (Gebäude 52), Zimmer 18
Zentrum für angewandte Informatik - Universitätsweiter Service RRZK
Universität zu Köln / Cologne University - Tel. +49-221-478-5587

pgp0.pgp
Description: PGP signature


Re: Terrible performance and Upgrade

2004-02-17 Thread Matthew baker
Hi,
	After a long bout of unrelated issues I have had a chance to revisit my 
cyrus issues. I managed to reduce startup times by increasing the 
frequency of checkpoints in cyrus.conf. I have installed pam_mysql 0.5 
and recompiled sasl with a few options random being one and removed 
unwanted mechs and libs. Saslauthd still leaks but not as much as it 
did. Process grows to about 50mb over a day as opposed to 500m in an 
hour! I can live with that.

However, no tweaks to cyrus, auth mechs or mysql have helped login 
speeds. It turned out in the end to be the Redhat firewall config. I set 
it to high on installation and had simply been adding ports to the 
ACCEPT chain. The server is already protected by another firewall so i 
just turned it off. Now connections are blinding! =]

Anyways.. thanks for all your help.

Matt

Rob Siemborski wrote:
On Sat, 7 Feb 2004, Matthew Baker wrote:


Problem 1.
Saslauthd gradually grows in memory size until the login process grinds
to a halt. I have set it to restart once an hour to clear it. I have
tried setting the option -n0 to force a child for each auth request but
that seem to create numerous connections to the database which would
exceed the max connections variable. I now am thinking that to use
auxprop mysql plugin might be a better route. I currently have 183
mysqld processes running, this can't be right.


If you are using PAM with saslauthd, you need to be very sure that
whatever PAM module you are using doesn't have any memory leaks, otherwise
you'll become very sad very quickly.

It takes between 7 and 15 seconds to login into any mailbox even if it's
empty. Regardless of client or OS. Also it takes about 5 minutes after a
 restart before the deliver.db is ready and logins start. My old PII
400 I was using before was faster!


What part is taking the time?  Long login times are often caused by
insufficient entropy in the system.
-Rob

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456
Research Systems Programmer * /usr/contributed Gatekeeper
---
Home Page: http://asg.web.cmu.edu/cyrus
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: SV: Virtual domains, user@domain.com: Mailbox unknown

2004-02-17 Thread Mike O'Rourke
 Henrik Troeng [EMAIL PROTECTED] 02/16/04 07:33pm 

Hi all,

I have a problem, I use multiple domains but for users I create with
the
domain specified, for example [EMAIL PROTECTED] it can't
receive
mail. When I try to send to this user I get back a reply from
Mailer-Daemon
that says 550-Mailbox Unknown. Either there is no mailbox
associated
550-name or you don't have authorization to see it.

If I create the user user.postmaster it works fine, but the user
[EMAIL PROTECTED] wont accept any mail.

Here is my imapd.conf:

configdirectory: /var/imap
partition-default: /var/spool/imap
admins: cyrus root Henrik
sasl_pwcheck_method: saslauthd
sasl_mech_list: PLAIN LOGIN
sendmail: /usr/sbin/sendmail
servername: htc.troeng.com
virtdomains: yes
defaultdomain: troeng.com

I have set up the domain in the local-host-names config file for
sendmail. 

Here is the error message:

The original message was received at Mon, 16 Feb 2004 12:47:04
+0100
from lmdeliver01.st1.spray.net [212.78.202.210]

   - The following addresses had permanent fatal errors -

root

(reason: 550-Mailbox unknown.  Either there is no mailbox
associated with this)

(expanded from: [EMAIL PROTECTED])

   - Transcript of session follows -

... while talking to localhost:

 DATA

 550-Mailbox unknown.  Either there is no mailbox associated

with this

 550-name or you do not have authorization to see it.

 550 5.1.1 User unknown

550 5.1.1 root... User unknown

 503 5.5.1 No recipients


Henrik

Hi Henrik,

You evidently have postmaster aliased to root in /etc/mail/aliases (a
common; nay default alias in sendmail), so sendmail will never try to
deliver to postmaster, but only to root (as evidenced by the
(expanded
from: [EMAIL PROTECTED]) line).

Either change the alias to send it to the correct user (don't forget
to
re-build the aliases database!), or delete it (ditto on the don't
forget) and let it go to the postmaster mailbox you have created.

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


I'm sorry to say, but this has nothing to do with my problem. I have
the
same problem with other usernames also.. So this is not just a
postmaster
problem. 
To be sure, I did test what you wrote, it made no difference...

What can be wrong? 

I did check the imapd.log file and got some output:

about to exec /usr/cyrus/bin/lmtpd
executed
accepted  connection
lmtp connection preauth'd as postman
append_check() of 'user.postmaster' failed (Mailbox does not exist)

//Henrik


Hi Henrik,

Sendmail (procmail?) does not seem to be sending the domain (the
@htc.troeng.com part) along with the username (evidenced by the lmtp
error -- it _should_ be looking for htc.troeng.com!user.postmaster).

Please post your sendmail's .mc file and, if you have made any changes
to it, your path/to/sendmail/src/cf/mailer/cyrusv2.m4 file. Also, have
you made any changes to sendmail.cf? If so, please tell us what these
were.

Mike.



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


SV: SV: Virtual domains, user@domain.com: Mailbox unknown

2004-02-17 Thread Henrik Troeng
 
  Henrik Troeng [EMAIL PROTECTED] 02/16/04 07:33pm 
 
 Hi all,
 
 I have a problem, I use multiple domains but for users I create with
 the
 domain specified, for example [EMAIL PROTECTED] it can't
 receive
 mail. When I try to send to this user I get back a reply from
 Mailer-Daemon
 that says 550-Mailbox Unknown. Either there is no mailbox
 associated
 550-name or you don't have authorization to see it.
 
 If I create the user user.postmaster it works fine, but the user
 [EMAIL PROTECTED] wont accept any mail.
 
 Here is my imapd.conf:
 
 configdirectory: /var/imap
 partition-default: /var/spool/imap
 admins: cyrus root Henrik
 sasl_pwcheck_method: saslauthd
 sasl_mech_list: PLAIN LOGIN
 sendmail: /usr/sbin/sendmail
 servername: htc.troeng.com
 virtdomains: yes
 defaultdomain: troeng.com
 
 I have set up the domain in the local-host-names config file for
 sendmail.
 
 Here is the error message:
 
 The original message was received at Mon, 16 Feb 2004 12:47:04
 +0100
 from lmdeliver01.st1.spray.net [212.78.202.210]
 
- The following addresses had permanent fatal errors -
 
 root
 
 (reason: 550-Mailbox unknown.  Either there is no mailbox
 associated with this)
 
 (expanded from: [EMAIL PROTECTED])
 
- Transcript of session follows -
 
 ... while talking to localhost:
 
  DATA
 
  550-Mailbox unknown.  Either there is no mailbox associated
 
 with this
 
  550-name or you do not have authorization to see it.
 
  550 5.1.1 User unknown
 
 550 5.1.1 root... User unknown
 
  503 5.5.1 No recipients
 
 
 Henrik
 
 Hi Henrik,
 
 You evidently have postmaster aliased to root in /etc/mail/aliases (a
 common; nay default alias in sendmail), so sendmail will never try to
 deliver to postmaster, but only to root (as evidenced by the
 (expanded
 from: [EMAIL PROTECTED]) line).
 
 Either change the alias to send it to the correct user (don't forget
 to
 re-build the aliases database!), or delete it (ditto on the don't
 forget) and let it go to the postmaster mailbox you have created.
 
 Mike.
 ---
 Home Page: http://asg.web.cmu.edu/cyrus
 Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
 List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
 
 
 I'm sorry to say, but this has nothing to do with my problem. I have
 the
 same problem with other usernames also.. So this is not just a
 postmaster
 problem.
 To be sure, I did test what you wrote, it made no difference...
 
 What can be wrong?
 
 I did check the imapd.log file and got some output:
 
 about to exec /usr/cyrus/bin/lmtpd
 executed
 accepted  connection
 lmtp connection preauth'd as postman
 append_check() of 'user.postmaster' failed (Mailbox does not exist)
 
 //Henrik
 
 
 Hi Henrik,
 
 Sendmail (procmail?) does not seem to be sending the domain (the
 @htc.troeng.com part) along with the username (evidenced by the lmtp
 error -- it _should_ be looking for htc.troeng.com!user.postmaster).
 
 Please post your sendmail's .mc file and, if you have made any changes
 to it, your path/to/sendmail/src/cf/mailer/cyrusv2.m4 file. Also, have
 you made any changes to sendmail.cf? If so, please tell us what these
 were.
 
 Mike.
 
 
 
 ---
 Home Page: http://asg.web.cmu.edu/cyrus
 Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
 List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Hi again,

Thanks for your response.

Here is my sendmail.mc file following. 

I haven’t done any changes to sendmail.cf.

I´m a bit confused about the cyrusv4.m4 file, can you maybe explain where it
comes into the picture (I´m a real newbie on this, sorry if I look stupid
;).

Well, here is the sendmail.mc file:

divert(-1)dnl
dnl #
dnl # This is the sendmail macro config file for m4. If you make changes to
dnl # /etc/mail/sendmail.mc, you will need to regenerate the
dnl # /etc/mail/sendmail.cf file by confirming that the sendmail-cf package
is
dnl # installed and then performing a
dnl #
dnl # make -C /etc/mail
dnl #
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`setup for Red Hat Linux')dnl
OSTYPE(`linux')dnl
dnl #
dnl # Uncomment and edit the following line if your outgoing mail needs to
dnl # be sent out through an external mail server:
dnl #
dnl #define(`SMART_HOST',`smtp.your.provider')
dnl #
define(`confDEF_USER_ID',``8:12'')dnl
define(`confTRUSTED_USER', `smmsp')dnl
dnl define(`confAUTO_REBUILD')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST',true)dnl
define(`confDONT_PROBE_INTERFACES',true)dnl
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
dnl define(`STATUS_FILE', `/etc/mail/statistics')dnl
define(`UUCP_MAILER_MAX', `200')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
define(`confAUTH_OPTIONS', `A')dnl
dnl #
dnl # The following allows relaying if the user authenticates, and disallows
dnl # plaintext authentication (PLAIN/LOGIN) on non-TLS links
dnl #
dnl 

Re: Virtual domains, user@domain.com: Mailbox unknown

2004-02-17 Thread Mike O'Rourke
 Christopher Paluch [EMAIL PROTECTED] 02/16/04 07:50pm 
-Original Message-
From: Mike O'Rourke [EMAIL PROTECTED]
Sent: Feb 16, 2004 12:42 PM
To: [EMAIL PROTECTED] 
Subject: Re: Virtual domains, [EMAIL PROTECTED]: Mailbox unknown

 Christopher Paluch [EMAIL PROTECTED] 02/16/04 05:04pm 
I to am having the same problem.I have a user called
[EMAIL PROTECTED]  and when I do a cyradm lm 
command it is listed.
In my imapd.conf file, I have specified the following parameters:
unixhierarchysep:  yes
virtdomains:  yes
defaultdomain:  nottest.com
loginrealms:   nottest.com   test.com

I have also modifed my sendmail.cf so the cyrusv2 listing has the
following parameters:
S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP

When I send an email to that user, it gets through Sendmail okay,
who
sends it on to cyrusv2 - who rejects it 
for the same errors as below.

Does anyone have any suggestions to what I've forgotten to do, that
would be causing this problem?  Also 
does anyone know what the proper way is to specify the cyrusv2
options
in sendmail.mc is?

Thanks for any assistance!

-Chris Paluch


Hi Chris,

Can you provide some further info, such as extracts of
/var/log/mail,
/var/log/imapd.log, your sendmail.mc file, your /etc/imapd.conf
(esecially the lines that deal with lmtp),your /etc/cyrus.conf (the
lmtp
lines) and the results of an lam command in cyradm?

In your sendmail.mc file, you need two things: a line that says:
define(`confLOCAL_MAILER', `cyrusv2')dnl and the contents of
cf/mailer/cyrusv2.m4 put at the end of your sendmail.mc file (in
that
definition, you can change the S=... line so that when you regenerate
a
new sendmail.cf file, you will not have to remember to change that
again.)

Mike.
---
Here is an excerpt from my mail.log:
Feb 13 14:51:17 ecnsrc01 sendmail[16007]: i1DKpHVa016007:
from=[EMAIL PROTECTED], size=
757, class=0, nrcpts=1,
msgid=[EMAIL PROTECTED], 
proto=ESMTP, daemon=MTA, relay=[68.248.99.56]
Feb 13 14:51:17 ecnsrc01 sendmail[16009]: i1DKpHVa016007:
to=[EMAIL PROTECTED], delay=00:00:00, 
xdelay=00:00:00, mailer=cyrusv2, pri=30577, relay=localhost,
dsn=5.1.1, stat=User unknown
Feb 13 14:51:17 ecnsrc01 sendmail[16009]: i1DKpHVa016007:
i1DKpHVa016009: DSN: User unknown
Feb 13 14:51:23 ecnsrc01 sendmail[16009]: i1DKpHVa016009:
to=[EMAIL PROTECTED], delay=
00:00:06, xdelay=00:00:06, mailer=esmtp, pri=31781,
relay=mx1.mail.yahoo.com. [64.156.215.6], dsn=
2.0.0, stat=Sent (ok dirdel)

Here is the corresponding imapd.log:
Feb 13 14:42:24 ecnsrc01 master[16001]: about to exec
/usr/cyrus/bin/ctl_cyrusdbFeb 13 14:42:24 
ecnsrc01 ctl_cyrusdb[16001]: checkpointing cyrus databases
Feb 13 14:42:25 ecnsrc01 ctl_cyrusdb[16001]: archiving log file:
/var/imap/db/log.01
Feb 13 14:42:27 ecnsrc01 ctl_cyrusdb[16001]: archiving database file:
/var/imap/mailboxes.db
Feb 13 14:42:27 ecnsrc01 ctl_cyrusdb[16001]: archiving log file:
/var/imap/db/log.01
Feb 13 14:42:28 ecnsrc01 ctl_cyrusdb[16001]: done checkpointing cyrus
databases
Feb 13 14:42:28 ecnsrc01 master[15527]: process 16001 exited, status
0
Feb 13 14:51:17 ecnsrc01 master[16010]: about to exec
/usr/cyrus/bin/lmtpd
Feb 13 14:51:17 ecnsrc01 lmtpunix[16010]: executed
Feb 13 14:51:17 ecnsrc01 lmtpd[16010]: accepted connection
Feb 13 14:51:17 ecnsrc01 lmtpd[16010]: lmtp connection preauth'd as
postman
Feb 13 14:52:22 ecnsrc01 master[15527]: process 16010 exited, status
0

My imapd.conf doesn't contain any parameters having to do with lmtp. 
Here is a copy of my cyrus.conf 
(which I haven't changed):
# standard standalone server implementation

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

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

# UNIX sockets start with a slash and are put into /var/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/imap/socket/lmtp prefork=0

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

EVENTS {
  # this is required
  checkpointcmd=ctl_cyrusdb -c period=30

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

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


lam user/[EMAIL PROTECTED] 
[EMAIL PROTECTED] lrswipcda
cyrus lrswipcda


Thanks,
Chris Paluch

Hi Chris,

Admitedly, I am using an older version of Cyrus-IMAPD (2.2.0-ALPHA),
don't blast me about that -- I have to upgrade the whole system (SuSE
7.1 AXP) so I can get 

Re: lmtpd reporting faulty parse errors

2004-02-17 Thread Ken Murchison
[EMAIL PROTECTED] wrote:

Simon,

On Tue, Feb 17, 2004 at 08:24:29AM +1300, Simon Brady wrote:

On Mon, 16 Feb 2004 [EMAIL PROTECTED] wrote:


Feb 15 04:26:00 host.cwi.nl lmtpd[28106]: [ID 358100 local6.info] sieve parse 
error for user: line 7: fileinto not required
[...] 
Did anyone experience this before? Does anybody have any idea why this
is happening?
If the script includes a fileinto action it needs to begin with the line

 require fileinto;

This is because fileinto is an optional capability for Sieve
implementations (see RFC 3028 sections 2.10.5, 3.2 and 4.2). Admittedly 
the error message is ambiguous to someone who doesn't already know the 
special meaning being given to the verb require: perhaps something like

 require statement missing for fileinto capability

would be clearer?


This is not what I'm talking about. I stated earlier that the scripts
are syntactically correct. In addition to that -- all requirements are 
in the scripts!

I suspect this is a bug and it's load and/or uptime related.
Question remains: did anyone experience lmtpd reporting *faulty*
sieve perse errors?
This is most likely caused by the Sieve lexer/parser not resetting its 
state after a runtime failure (as mentioned in bug #1951).  You can try 
the patch attached to the bug, but I don't think it completely solves 
the problem.

The real solution to the problem is to upgrade to v2.2.3 which 
precompiles the scripts into bytecode, thereby avoiding parsing scripts 
in lmtpd.

--
Kenneth Murchison Oceana Matrix Ltd.
Software Engineer 21 Princeton Place
716-662-8973 x26  Orchard Park, NY 14127
--PGP Public Key--http://www.oceana.com/~ken/ksm.pgp
---
Home Page: http://asg.web.cmu.edu/cyrus
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: Outlook problems with long UIDL's

2004-02-17 Thread Etienne Goyer
On Mon, Feb 16, 2004 at 12:13:29PM +0100, Gregor Bruhin wrote:
 I don't know, I am just unable to reproduce the problem with some test 
 mailboxes and different recent outlooks...

In the case I am aware of, you need to have UIDL of varying length.
Since POP3 UIDl are made by combining the mailbox's UIDVALIDITY and the
UID of a specific messages, you need to have message with UID that do
not have the same length in the same mailbox, ie UID 1 .. 9, 10, 11 ..
100, etc.

+OK frontend Cyrus POP3 Murder v2.1.16 server ready
[EMAIL PROTECTED]
USER testuser
+OK Name is a valid mailbox
PASS 
+OK Maildrop locked and ready
UIDL
+OK unique-id listing follows
1 1075496837.1
2 1075496837.2
3 1075496837.3
4 1075496837.4
5 1075496837.5
6 1075496837.6
7 1075496837.7
8 1075496837.8
9 1075496837.9
10 1075496837.10


This mailbox would break Outlook 2002, according to the report I
received.

-- 
Etienne GoyerLinux Québec Technologies Inc.
http://www.LinuxQuebec.com   [EMAIL PROTECTED]
---
Home Page: http://asg.web.cmu.edu/cyrus
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: lmtpd reporting faulty parse errors

2004-02-17 Thread Rob Siemborski
On Tue, 17 Feb 2004 [EMAIL PROTECTED] wrote:

 This is not what I'm talking about. I stated earlier that the scripts
 are syntactically correct. In addition to that -- all requirements are
 in the scripts!

 I suspect this is a bug and it's load and/or uptime related.
 Question remains: did anyone experience lmtpd reporting *faulty*
 sieve perse errors?

Pre 2.2 versions of lmtpd can run into a problem where, if a single bad
script is parsed, the parser will never reset its state, leading to
'good' scripts being treated as unparsable by some lmtpd processes.

-Rob

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456
Research Systems Programmer * /usr/contributed Gatekeeper

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


Re: maildrop error...

2004-02-17 Thread Dwight Tovey

Simon Matter said:

 Simon: did you modify the code to use the mail facility instead of
 local6?
  Or was it a build configuration option that I missed?

 Yes, I did change it. The logging facility in the rpm is MAIL.
 And yes, it's a build time option, check doc/README.buildoptions.


Ah.  Thank you.  I must have missed it while I was getting everything else
set up.  Should be an easy fix though.


FWIW: If a Non-Profit Org asks you to set up a net presence for them, be
wary.  If two NPOs ask you to set up their sites, run.  I'm losing what
little hair I had left.

/dwight

-- 
Dwight N. Tovey
email: [EMAIL PROTECTED]
web: http://www.dtovey.net/~dwight
---
Consciousness: That annoying time between naps.

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


Re: IMSP and Digest-MD5

2004-02-17 Thread Cyrus Daboo
Hi William,

--On Tuesday, February 17, 2004 3:30 AM -0500 William K. Hardeman 
[EMAIL PROTECTED] wrote:

| My apologies for the cross-post, but I'm hoping to cover all bases with
| my question. :-)
|
| I've just upgraded my IMSP server to the lastest Cyrus 1.7b, as
| recommended by CMU. I had hoped that, with that upgrade, I would finally
| be able to use Digest-MD5 authentication to the IMSP server. However,
| it's still not working in either the 3.1 releases or the 2.2 releases of
| Mulberry. Cram-MD5 and Plain/Login continue to work fine, though.
|
| Does anyone know if my inability to use Digest-MD5 is a problem with
| Mulberry, or is a problem with Cyrus IMSP? Are there any known fixes?
Do you have DIGEST working with IMAP? What error do you get when you try it?

| Finally, I thought I saw mentioned somewhere awhile back that work was
| ongoing to implement SSL/TLS capabilities into the IMSP server. Can
| anyone comment on how well that might be progressing?
Sorry, I have been tardy wrt getting out TLS patches into the CMU code. I 
will do some work on that over the next couple of days.

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


Re: IMSP and Digest-MD5

2004-02-17 Thread William K. Hardeman
Howdy Cyrus,

Thanks for the reply.

I do have DIGEST-MD5 working with IMAP. Actually, in the 3 years I've been 
using both Cyrus IMAP and Cyrus IMSP, I've always been able to use 
DIGEST-MD5 on the IMAP connections and never on the IMSP connections.

IMAP connection with DIGEST-MD5 from the logs:
Feb 17 10:49:26 mail imap[17487]: login: dilbert.wkh.org [xxx.xxx.xxx.xxx] 
[EMAIL PROTECTED] DIGEST-MD5 User logged in

The error I'm seeing in messages when I try using DIGEST-MD5 is:

Feb 17 10:44:21 mail imsp[17643]: bad digest-uri: doesn't match service
Feb 17 10:44:21 mail imsp[17643]: badlogin: dilbert.wkh.org - digest-md5 
authentication failure

I'm glad to hear that there is TLS code out there. I'm looking forward to 
being able to use it.

Thanks for the help,
Will
--On Tuesday, 17 February, 2004 10:43 -0500 Cyrus Daboo 
[EMAIL PROTECTED] wrote:

Hi William,

--On Tuesday, February 17, 2004 3:30 AM -0500 William K. Hardeman
[EMAIL PROTECTED] wrote:
| My apologies for the cross-post, but I'm hoping to cover all bases with
| my question. :-)
|
| I've just upgraded my IMSP server to the lastest Cyrus 1.7b, as
| recommended by CMU. I had hoped that, with that upgrade, I would finally
| be able to use Digest-MD5 authentication to the IMSP server. However,
| it's still not working in either the 3.1 releases or the 2.2 releases of
| Mulberry. Cram-MD5 and Plain/Login continue to work fine, though.
|
| Does anyone know if my inability to use Digest-MD5 is a problem with
| Mulberry, or is a problem with Cyrus IMSP? Are there any known fixes?
Do you have DIGEST working with IMAP? What error do you get when you try
it?
| Finally, I thought I saw mentioned somewhere awhile back that work was
| ongoing to implement SSL/TLS capabilities into the IMSP server. Can
| anyone comment on how well that might be progressing?
Sorry, I have been tardy wrt getting out TLS patches into the CMU code. I
will do some work on that over the next couple of days.
--
Cyrus Daboo



William K. Hardeman
[EMAIL PROTECTED]
http://www.wkh.org
The most exciting phrase to hear in science, the one that heralds new
discoveries, is not Eureka! (I found it!) but That's funny ...
   -- Isaac Asimov
Always listen to experts. They'll tell you what can't be done and why. Then
do it.
--Robert A. Heinlein
---
Home Page: http://asg.web.cmu.edu/cyrus
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: IMSP and Digest-MD5

2004-02-17 Thread Cyrus Daboo
Hi William,

--On Tuesday, February 17, 2004 10:52 AM -0500 William K. Hardeman 
[EMAIL PROTECTED] wrote:

| I do have DIGEST-MD5 working with IMAP. Actually, in the 3 years I've
| been using both Cyrus IMAP and Cyrus IMSP, I've always been able to use
| DIGEST-MD5 on the IMAP connections and never on the IMSP connections.
|
| IMAP connection with DIGEST-MD5 from the logs:
| Feb 17 10:49:26 mail imap[17487]: login: dilbert.wkh.org
| [xxx.xxx.xxx.xxx] [EMAIL PROTECTED] DIGEST-MD5 User logged in
|
|
| The error I'm seeing in messages when I try using DIGEST-MD5 is:
|
| Feb 17 10:44:21 mail imsp[17643]: bad digest-uri: doesn't match service
| Feb 17 10:44:21 mail imsp[17643]: badlogin: dilbert.wkh.org - digest-md5
| authentication failure
OK - I think I see the problem. The DIGEST mechanism requires a 'service 
name' parameter. For IMAP that is 'imap'. We have been using 'imsp' for 
IMSP, however CMU uses 'imap' as the service name for IMSP. GSSAPI also 
uses a service name and there we do use 'imap' for IMSP. I need to change 
our digest plugin to use 'imap' then it should work. I will work on fixing 
that for our next update.

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


Re: IMSP and Digest-MD5

2004-02-17 Thread William K. Hardeman
Howdy Cyrus,

Funny. I saw that in the IMSP server sources and didn't even twig that it 
was imap instead of imsp, otherwise I would have modified the server 
sources.

Wouldn't it be better if this were filed as a bug with CMU and get the 
service name changed in the server sources? That, to me, would seem to be 
the better way to handle this going forward, since imap and imsp are two 
different services.

Thanks for the help!
Will
--On Tuesday, 17 February, 2004 11:05 -0500 Cyrus Daboo 
[EMAIL PROTECTED] wrote:

Hi William,

--On Tuesday, February 17, 2004 10:52 AM -0500 William K. Hardeman
[EMAIL PROTECTED] wrote:
| I do have DIGEST-MD5 working with IMAP. Actually, in the 3 years I've
| been using both Cyrus IMAP and Cyrus IMSP, I've always been able to use
| DIGEST-MD5 on the IMAP connections and never on the IMSP connections.
|
| IMAP connection with DIGEST-MD5 from the logs:
| Feb 17 10:49:26 mail imap[17487]: login: dilbert.wkh.org
| [xxx.xxx.xxx.xxx] [EMAIL PROTECTED] DIGEST-MD5 User logged in
|
|
| The error I'm seeing in messages when I try using DIGEST-MD5 is:
|
| Feb 17 10:44:21 mail imsp[17643]: bad digest-uri: doesn't match service
| Feb 17 10:44:21 mail imsp[17643]: badlogin: dilbert.wkh.org - digest-md5
| authentication failure
OK - I think I see the problem. The DIGEST mechanism requires a 'service
name' parameter. For IMAP that is 'imap'. We have been using 'imsp' for
IMSP, however CMU uses 'imap' as the service name for IMSP. GSSAPI also
uses a service name and there we do use 'imap' for IMSP. I need to change
our digest plugin to use 'imap' then it should work. I will work on
fixing that for our next update.


--

William K. Hardeman
[EMAIL PROTECTED]
http://www.wkh.org
The most exciting phrase to hear in science, the one that heralds new
discoveries, is not Eureka! (I found it!) but That's funny ...
   -- Isaac Asimov
Always listen to experts. They'll tell you what can't be done and why. Then
do it.
--Robert A. Heinlein
---
Home Page: http://asg.web.cmu.edu/cyrus
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


RFC: OpenSLP support in cyrus-imapd (+patch)

2004-02-17 Thread Carsten Hoeger
Hi,


I need cyrus-imapd to register it's services to an slp daemon, if it is
running.

I prepared a patch against 2.2.3 using calls to functions of libslp of the
OpenSLP project:

http://www.openslp.org/


[...]

What is SLP?

Service Location Protocol is an IETF standards track protocol that
provides a framework to allow networking applications to discover the
existence, location, and configuration of networked services in enterprise
networks. (click here for full introduction )

http://www.openslp.org/#What%20is%20SLP?

[...]

I patched only master/master.c master/Makefile.in and configure.in similar to
what contrib/drac_auth.patch does.

The SLP behaviour is currently not configurable with my patch, but usually,
that should not be neccessary, as a SLPRegister() call will just quickly come
back in case of no running slpd instance.

Also the server name of the service url should maybe be configurable like with
servername in imapd.conf.

The patch is attached.
In case of common interest, I'll submit it also to bugzilla.andrew.cmu.edu.

Btw.: Is there a specific reason, why the drac_auth patch is still not
  integrated?

-- 
With best regards,

Carsten Hoeger
--- configure.in
+++ configure.in2004/02/17 14:15:49
@@ -950,6 +950,19 @@
 SNMP_SUBDIRS=
 AC_SUBST(SNMP_SUBDIRS)
 
+dnl
+dnl Test for OpenSLP
+dnl
+SLPLIBS=
+AC_ARG_WITH(openslp, [  --with-openslp=DIR use OpenSLP library in DIR [no] 
],
+   if test -d $withval; then
+   LDFLAGS=$LDFLAGS -L${withval}
+   AC_CHECK_LIB(slp, SLPOpen,
+   AC_DEFINE(USE_SLP,[],[Compile with OpenSLP?])
+   SLPLIBS=-lslp)
+   fi)
+AC_SUBST(SLPLIBS)
+
 CMU_LIBWRAP
 CMU_UCDSNMP
 
--- master/Makefile.in
+++ master/Makefile.in  2004/02/17 14:09:47
@@ -58,7 +58,7 @@
 
 CFLAGS = @CFLAGS@
 LDFLAGS = @LDFLAGS@ @COM_ERR_LDFLAGS@
-LIBS = ../lib/libcyrus_min.a @LIB_UCDSNMP@ @LIBS@ @COM_ERR_LIBS@
+LIBS = ../lib/libcyrus_min.a @LIB_UCDSNMP@ @LIBS@ @COM_ERR_LIBS@ @SLPLIBS@
 
 SHELL = /bin/sh
 MAKEDEPEND = @MAKEDEPEND@
--- master/master.c
+++ master/master.c 2004/02/17 15:49:46
@@ -97,6 +97,10 @@
 
 #endif
 
+#ifdef USE_SLP
+#include slp.h
+#endif
+
 #include masterconf.h
 
 #include master.h
@@ -106,6 +110,16 @@
 
 #include xmalloc.h
 
+#ifdef USE_SLP
+#define URL_MAX 1024
+SLPHandle  phslp;
+struct slpurl {
+char srvurl[URL_MAX];
+struct slpurl *next;
+};
+struct slpurl *start = NULL;
+#endif
+
 enum {
 become_cyrus_early = 1,
 child_table_size = 1,
@@ -161,10 +175,41 @@
 void limit_fds(rlim_t);
 void schedule_event(struct event *a);
 
+#ifdef USE_SLP
+void SLPRegReportCB(SLPHandle hslp, SLPError errcode, void* cookie)
+{
+/* return the error code in the cookie */
+*(SLPError*)cookie = errcode;
+
+/* You could do something else here like print out  */
+/* the errcode, etc.  Remember, as a general rule,  */
+/* do not try to do too much in a callback because  */
+/* it is being executed by the same thread that is  */
+/* reading slp packets from the wire.   */
+}
+
+void SLPshutdown(void)
+{ 
+struct slpurl *ttmp,*tmp = start;
+SLPError callbackerr;
+while( tmp ) {
+   syslog(LOG_INFO,SLPderegister [%s],tmp-srvurl);
+   SLPDereg(phslp, tmp-srvurl, SLPRegReportCB, callbackerr);
+   ttmp = tmp;
+   tmp = tmp-next;
+   free(ttmp);
+}
+SLPClose(phslp);
+}
+#endif
+
 void fatal(const char *msg, int code)
 {
 syslog(LOG_CRIT, %s, msg);
 syslog(LOG_NOTICE, exiting);
+#ifdef USE_SLP
+SLPshutdown();
+#endif
 exit(code);
 }
 
@@ -475,7 +520,90 @@
s-socket = 0;
continue;
}
-   
+
+#ifdef USE_SLP
+   if ((!strcmp(s-proto, tcp))  s-listen[0] != '/' ) {
+  SLPError err;
+  SLPError callbackerr;
+  char *listen, *service;
+  char *listen_addr;
+  int port;
+  char hname[URL_MAX];
+  char dname[URL_MAX];
+  char turl[URL_MAX];
+  struct slpurl *u;
+  char registered = 0;
+
+
+  /* parse_listen() and resolve_host() are destructive,
+   * so make a work copy of s-listen
+   */
+  listen = xstrdup(s-listen);
+
+   if ((service = parse_listen(listen)) == NULL) {
+   /* listen IS the port */
+  service = listen;
+  listen_addr = NULL;
+   } else {
+   /* s-listen is now just the address */
+  listen_addr = parse_host(listen);
+  if (*listen_addr == '\0')
+   listen_addr = NULL; 
+   }
+  port = ntohs(((struct sockaddr_in *)(res)-ai_addr)-sin_port);
+  gethostname(hname,URL_MAX);
+  getdomainname(dname,URL_MAX);
+
+  snprintf(turl,URL_MAX,service:%s://%s.%s:%d,
+service,
+hname, dname,
+port);
+
+  /* check, whether we already registered the service 

DBERRORS with unified-imap

2004-02-17 Thread Prentice Bisbal
I'm using the unified imap tree (with some assistance from Ken 
Murchison) to have 3 servers use the same filesystem on a SAN with GPFS.

When I start cyrus on either the master or the slaves, I get the errors 
shown below. I think I just need to specify the database format(s) in my 
imapd.conf file.

My questions are

(1) What DB file format is best for my configuration

(2) Why didn't I get these errors until I configured MUPDATE. Does 
mupdate expect Berkeley DB files?

(3) Can I fix this just by using cvt_cyrusdb?

Thanks

Prentice

Feb 17 11:22:27 pdb-mail-2 imap[7097]: DBERROR db4: mmap: Invalid argument
Feb 17 11:22:27 pdb-mail-2 imaps[7098]: DBERROR db4: mmap: Invalid argument
Feb 17 11:22:27 pdb-mail-2 pop3[7099]: DBERROR db4: mmap: Invalid argument
Feb 17 11:22:27 pdb-mail-2 pop3s[7100]: DBERROR db4: mmap: Invalid argument
Feb 17 11:22:27 pdb-mail-2 mupdate[7101]: DBERROR db4: mmap: Invalid 
argument
Feb 17 11:22:27 pdb-mail-2 imap[7097]: DBERROR: dbenv-open 
'/gpfstest/cyrus/lib
/imap/db' failed: Invalid argument
Feb 17 11:22:27 pdb-mail-2 imaps[7098]: DBERROR: dbenv-open 
'/gpfstest/cyrus/li
b/imap/db' failed: Invalid argument
Feb 17 11:22:27 pdb-mail-2 pop3[7099]: DBERROR: dbenv-open 
'/gpfstest/cyrus/lib
/imap/db' failed: Invalid argument
Feb 17 11:22:27 pdb-mail-2 pop3s[7100]: DBERROR: dbenv-open 
'/gpfstest/cyrus/li
b/imap/db' failed: Invalid argument
Feb 17 11:22:27 pdb-mail-2 mupdate[7101]: DBERROR: dbenv-open 
'/gpfstest/cyrus/
lib/imap/db' failed: Invalid argument
Feb 17 11:22:27 pdb-mail-2 imap[7097]: DBERROR: init() on berkeley
Feb 17 11:22:27 pdb-mail-2 imaps[7098]: DBERROR: init() on berkeley
Feb 17 11:22:27 pdb-mail-2 pop3[7099]: DBERROR: init() on berkeley
Feb 17 11:22:27 pdb-mail-2 pop3s[7100]: DBERROR: init() on berkeley
Feb 17 11:22:27 pdb-mail-2 mupdate[7101]: DBERROR: init() on berkeley
Feb 17 11:22:27 pdb-mail-2 imap[7097]: executed
Feb 17 11:22:27 pdb-mail-2 imaps[7098]: executed
Feb 17 11:22:27 pdb-mail-2 pop3[7099]: executed
Feb 17 11:22:27 pdb-mail-2 master[5355]: exiting on SIGTERM/SIGINT
---
Home Page: http://asg.web.cmu.edu/cyrus
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


cyradm cannot authenticate to server

2004-02-17 Thread trichard
Hello,

I am unable to login to my server with cyradm.  What follows is my input
and the odd error message along with the auth.log and imapd.log.  If
someone could please shed some light on what is wrong I would *really*
appreciate the help!  ;)

Thanks,
-t

[EMAIL PROTECTED] cyrus-imapd-2.2.3]# cyradm -u cyrus -s localhost
Password:
cyradm: cannot authenticate to server with  as cyrus

AUTH.LOG
-
Feb 17 08:27:08 post perl: GSSAPI Error: Miscellaneous failure (No
credentials cache found)
Feb 17 08:27:08 post imap[1757]: DIGEST-MD5 server step 1
Feb 17 08:27:08 post perl: DIGEST-MD5 client step 2
Feb 17 08:27:14 post imap[1757]: DIGEST-MD5 server step 2
Feb 17 08:27:14 post imap[1757]: no secret in database
Feb 17 08:27:17 post imap[1757]: bad userid authenticated
Feb 17 08:27:20 post perl: No worthy mechs found

IMAPD.LOG
--
Feb 17 08:28:02 post imap[1757]: accepted connection
Feb 17 08:28:06 post imap[1757]: badlogin: localhost.localdomain
[127.0.0.1] DIGEST-MD5 [SASL(-13): user not found: no secret in database]
Feb 17 08:28:09 post imap[1757]: badlogin: localhost.localdomain
[127.0.0.1] CRAM-MD5 [SASL(-13): authentication failure: bad userid
authenticated]



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


Help moving/updating Cyrus installation

2004-02-17 Thread Ruth Ivimey-Cook
Hi folks,

I hope this case isn't a 'told you so', but I have a bit of a problem...

Summary: I want to get imap running again, but it refuses to read my bdb
(version 3) databases. How to I recover?

I have been using Cyrus IMAPd 2.1.16 on a RH9 Linux server successfully
for some time now. I decided I should upgrade the server OS to Fedora
Core 1.  I took a binary (tar-file) backup of the imap data, which I
store on its own ext3 disk called /imap, along with other tar backups of
other parts of the system. The OS install seems to have gone well,
except that cyrus failed to start up, with errors like this:


23:09:26 master[]: setrlimit: Unable to set file descriptors limit to -1: 
Operation not permitted
23:09:26 master[]: retrying with 1024 (current max)
23:09:26 master[]: process started
23:09:26 master[1132]: about to exec /usr/cyrus/bin/ctl_cyrusdb
23:09:27 ctl_cyrusdb[1132]: recovering cyrus databases
23:09:27 ctl_cyrusdb[1132]: DBERROR db4: write: 0xbfffcf80, 8192: Invalid argument
23:09:27 ctl_cyrusdb[1132]: DBERROR: dbenv-open '/imap/conf/db' failed: Invalid 
argument
23:09:27 ctl_cyrusdb[1132]: DBERROR: init /imap/conf/db: cyrusdb error
23:09:27 ctl_cyrusdb[1132]: DBERROR db4: environment not yet opened
23:09:27 ctl_cyrusdb[1132]: DBERROR: opening /imap/conf/mailboxes.db: Invalid argument
23:09:27 ctl_cyrusdb[1132]: DBERROR: opening /imap/conf/mailboxes.db: cyrusdb error
23:09:27 master[]: process 1132 exited, status 75 
23:09:27 master[]: no service 'sieve' in /etc/services, disabling sieve
23:09:27 master[]: no service 'lmtp' in /etc/services, disabling lmtp
23:09:27 master[]: ready for work
23:09:27 master[1133]: about to exec /usr/cyrus/bin/tls_prune
23:09:27 master[1134]: about to exec /usr/cyrus/bin/ctl_deliver
23:09:27 master[1135]: about to exec /usr/cyrus/bin/ctl_cyrusdb
23:09:27 ctl_cyrusdb[1135]: checkpointing cyrus databases
23:09:45 ctl_cyrusdb[1135]: DBERROR db4: unable to join the environment
23:09:45 ctl_cyrusdb[1135]: DBERROR: dbenv-open '/imap/conf/db' failed: Resource 
temporarily unavailable
23:09:45 ctl_cyrusdb[1135]: DBERROR: init /imap/conf/db: cyrusdb error
23:09:45 ctl_cyrusdb[1135]: done checkpointing cyrus databases

So I thought oh no!

Several hours later and after recompiling both imapd again (no luck) and
switching from the RH kernel 2.4.22 with nptl to a standard kernel.org
2.4.24 kernel, and it still wasn't working.

Note that I hadn't changed the cyrus code at all: it was the same code
running against the same databases, and invoking the same copy of
db4 4.1.25 (self-compiled with no threading).

I eventually gave up and my email is now (i hope temporarily) back on
the old /var/mail delivery :-(

Things I can do: db_dump on the mailboxes.db file produces what
 looks like a valid dump.

Things I can't do: any operation involving reading the database.
 [including cvt_mmboxlist using either the old or
 new executables]

I have now created a build of 2.2.3, partly in the hope that it works
better, and also because I want to get away from bdb: it has caused lots
of hassle in the past. Running apps from that release doesn't help me,
however. In the hope it's useful, I have included the non-data part of
the db_dump -da output here, with my /etc/imap.conf file after it:

In-memory DB structure:
btree: 0x48000 (DB-open called, read-only)
bt_meta: 0 bt_root: 1
bt_maxkey: 0 bt_minkey: 2
bt_compare: 0x400258ac bt_prefix: 0x4002590c
bt_lpgno: 0
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
page 0: btree metadata level: 0 (lsn.file: 7 lsn.offset: 7784517)
magic: 0x53162
version: 8
pagesize: 4096
type: 9
keys: 0 records: 0
free list: 0
last_pgno: 3
flags: 0
uid: 83 fe 0 0 42 3 0 0 48 f2 52 3d 37 3d 0 0 0 0 0 0
maxkey: 0 minkey: 2
root: 1
page 1: btree internal level: 2 records: 0 (lsn.file: 7 lsn.offset: 7788837)
entries:2 offset: 4044
[000] 4084 count:0 pgno:2 type:1len:   0
[001] 4044 count:0 pgno:3 type:1len:  28 data: 
user.ruthc.Lists.F2S...
page 2: btree leaf level: 1 (lsn.file: 7 lsn.offset: 7849118)
prev:0 next:3 entries:   70 offset: 2044
[000] 4080 len:  11 data: Junk E-mail
[001] 4056 len:  21 data: 0 default anyone0x09rwi...
[002] 4044 len:   8 data: user.cbs
[003] 4004 len:  34 data: 0 default cbs0x09lrswip...
[004] 3984 len:  14 data: user.cbs.Admin
[005] 3944 len:  34 data: 0 default cbs0x09lrswip...
..snip...
[060] 2296 len:  22 data: user.ruthc.wotug-ctt...
[061] 2264 len:  26 data: 0 default ruthc0x09lrsw...
db_dump: close: Permission denied


The /etc/imap.conf file [note I'm not using the mysql stuff - it
was an experiment]:

configdirectory: /imap/conf
sievedir: /imap/sieve
sieveusehomedir: false
sendmail: /usr/exim/bin/exim
partition-default: /imap/spool
admins: 

Re: IMSP and Digest-MD5

2004-02-17 Thread Rob Siemborski
On Tue, 17 Feb 2004, Cyrus Daboo wrote:

 Agreed - I would rather fix Mulberry to be consistent with the other
 authenticators we support that do use 'imap' rather than 'imsp'. However,
 if a change to the server were to be made, perhaps it could be set to
 accept either 'imap' or 'imsp'? Or would that be too hard to do within the
 constraints of SASL lib?

Its not practical within the constraints of the SASL library.  It'd be
especially poor on, say, the client side, where mechanisms such as GSSAPI
need to know what ticket to fetch.

-Rob

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456
Research Systems Programmer * /usr/contributed Gatekeeper

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


Question about MUPDATE master mailboxes list

2004-02-17 Thread Etienne Goyer
Hi,

I was under the impression that the mailbox list kept on the MUPDATE
master was volatile, that is it was recreated from scratch at each
start-up with the mailbox list coming from the backends.  I think I
found out the hard way that this is *not* the case.  Is this correct ?   

-- 
Etienne GoyerLinux Québec Technologies Inc.
http://www.LinuxQuebec.com   [EMAIL PROTECTED]
---
Home Page: http://asg.web.cmu.edu/cyrus
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: IMSP and Digest-MD5

2004-02-17 Thread Cyrus Daboo
Hi Rob,

--On Tuesday, February 17, 2004 11:48 AM -0500 Rob Siemborski 
[EMAIL PROTECTED] wrote:

| Wouldn't it be better if this were filed as a bug with CMU and get the
| service name changed in the server sources? That, to me, would seem to be
| the better way to handle this going forward, since imap and imsp are two
| different services.
|
| That's the problem with a lack of standardization of this protocol.
|
| Unfortuinately, *all* of the deployment is using imap as the service
| name.  Changing this now will break *all* deployed software.
|
| I'm not about to do that.  At best, it could be made a config option.
Agreed - I would rather fix Mulberry to be consistent with the other 
authenticators we support that do use 'imap' rather than 'imsp'. However, 
if a change to the server were to be made, perhaps it could be set to 
accept either 'imap' or 'imsp'? Or would that be too hard to do within the 
constraints of SASL lib?

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


Re: IMSP and Digest-MD5

2004-02-17 Thread William K. Hardeman
Ah, well. It was an idea. :-)

Thanks for all the help with this. I really appreciate it!

Will

--On Tuesday, 17 February, 2004 11:48 -0500 Rob Siemborski 
[EMAIL PROTECTED] wrote:

On Tue, 17 Feb 2004, William K. Hardeman wrote:

Funny. I saw that in the IMSP server sources and didn't even twig that it
was imap instead of imsp, otherwise I would have modified the server
sources.
Wouldn't it be better if this were filed as a bug with CMU and get the
service name changed in the server sources? That, to me, would seem to be
the better way to handle this going forward, since imap and imsp are two
different services.
That's the problem with a lack of standardization of this protocol.

Unfortuinately, *all* of the deployment is using imap as the service
name.  Changing this now will break *all* deployed software.
I'm not about to do that.  At best, it could be made a config option.

-Rob

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456
Research Systems Programmer * /usr/contributed Gatekeeper


--

William K. Hardeman
[EMAIL PROTECTED]
http://www.wkh.org
The most exciting phrase to hear in science, the one that heralds new
discoveries, is not Eureka! (I found it!) but That's funny ...
   -- Isaac Asimov
Always listen to experts. They'll tell you what can't be done and why. Then
do it.
--Robert A. Heinlein
---
Home Page: http://asg.web.cmu.edu/cyrus
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: cyradm cannot authenticate to server

2004-02-17 Thread trichard

Oops.  Forgot that I had backed up my /etc/sasldb2 and did not re-create a
cyrus user account in the new sasldb2.  Sorry.  :-/

This does bring up an interesting question though:

I created the cyrus user as follows:

 saslpasswd2 -c -u post.mydomain.com cyrus

A sasldblistusers2 shows:

 [EMAIL PROTECTED]: userPassword
 [EMAIL PROTECTED]: userPassword

NOTE: The user test in this case would be a normal mail user.  Cyrus of
course is for administration purposes.

Does this look right?  I am concerned that including the hostname post
in the realm for the cyrus user and NOT including it in the realm for the
test user will cause problems when creating mailboxes, etc.  Before I
proceed can someone tell me if this is correct or not?

Thank you!
-t



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


Re: Question about MUPDATE master mailboxes list

2004-02-17 Thread Rob Siemborski
On Tue, 17 Feb 2004, Etienne Goyer wrote:

 I was under the impression that the mailbox list kept on the MUPDATE
 master was volatile, that is it was recreated from scratch at each
 start-up with the mailbox list coming from the backends.

It should be able to be reconstructed at startup of the backends.  That
said, I'd advise against *relying* on this behavior.

 I think I found out the hard way that this is *not* the case.  Is this
 correct ?

It shouldn't be, provided you are running ctl_mboxlist -m at startup of
the backends.

The recommended way to bring up a *new* murder is to just turn on the
backends pointing at a virgin mupdate server.

-Rob

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456
Research Systems Programmer * /usr/contributed Gatekeeper

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


Re: RFC: OpenSLP support in cyrus-imapd (+patch)

2004-02-17 Thread Ken Murchison
Carsten Hoeger wrote:

  Btw.: Is there a specific reason, why the drac_auth patch is still not
  integrated?
Because its an outdated hack.  Any recent MTA *should* have SMTP AUTH 
support and sites *should* be using it instead of DRAC.  If you 
disagree, then argue with Rob.  ;)

--
Kenneth Murchison Oceana Matrix Ltd.
Software Engineer 21 Princeton Place
716-662-8973 x26  Orchard Park, NY 14127
--PGP Public Key--http://www.oceana.com/~ken/ksm.pgp
---
Home Page: http://asg.web.cmu.edu/cyrus
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: SV: SV: Virtual domains, user@domain.com: Mailbox unknown

2004-02-17 Thread Mike O'Rourke
 Henrik Troeng [EMAIL PROTECTED] 02/17/04 02:25pm 
  Henrik Troeng [EMAIL PROTECTED] 02/16/04 07:33pm 
 
 Hi all,
 
 I have a problem, I use multiple domains but for users I create
with
 the
 domain specified, for example [EMAIL PROTECTED] it can't
 receive
 mail. When I try to send to this user I get back a reply from
 Mailer-Daemon
 that says 550-Mailbox Unknown. Either there is no mailbox
 associated
 550-name or you don't have authorization to see it.
 
 If I create the user user.postmaster it works fine, but the
user
 [EMAIL PROTECTED] wont accept any mail.
 
 Here is my imapd.conf:
 
 configdirectory: /var/imap
 partition-default: /var/spool/imap
 admins: cyrus root Henrik
 sasl_pwcheck_method: saslauthd
 sasl_mech_list: PLAIN LOGIN
 sendmail: /usr/sbin/sendmail
 servername: htc.troeng.com
 virtdomains: yes
 defaultdomain: troeng.com
 
 I have set up the domain in the local-host-names config file for
 sendmail.
 
 Here is the error message:
 
 The original message was received at Mon, 16 Feb 2004 12:47:04
 +0100
 from lmdeliver01.st1.spray.net [212.78.202.210]
 
- The following addresses had permanent fatal errors -
 
 root
 
 (reason: 550-Mailbox unknown.  Either there is no mailbox
 associated with this)
 
 (expanded from: [EMAIL PROTECTED])
 
- Transcript of session follows -
 
 ... while talking to localhost:
 
  DATA
 
  550-Mailbox unknown.  Either there is no mailbox associated
 
 with this
 
  550-name or you do not have authorization to see it.
 
  550 5.1.1 User unknown
 
 550 5.1.1 root... User unknown
 
  503 5.5.1 No recipients
 
 
 Henrik
 
 Hi Henrik,
 
 You evidently have postmaster aliased to root in /etc/mail/aliases
(a
 common; nay default alias in sendmail), so sendmail will never try
to
 deliver to postmaster, but only to root (as evidenced by the
 (expanded
 from: [EMAIL PROTECTED]) line).
 
 Either change the alias to send it to the correct user (don't
forget
 to
 re-build the aliases database!), or delete it (ditto on the don't
 forget) and let it go to the postmaster mailbox you have created.
 
 Mike.
 ---
 Home Page: http://asg.web.cmu.edu/cyrus 
 Wiki/FAQ: http://cyruswiki.andrew.cmu.edu 
 List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

 
 
 I'm sorry to say, but this has nothing to do with my problem. I
have
 the
 same problem with other usernames also.. So this is not just a
 postmaster
 problem.
 To be sure, I did test what you wrote, it made no difference...
 
 What can be wrong?
 
 I did check the imapd.log file and got some output:
 
 about to exec /usr/cyrus/bin/lmtpd
 executed
 accepted  connection
 lmtp connection preauth'd as postman
 append_check() of 'user.postmaster' failed (Mailbox does not
exist)
 
 //Henrik
 
 
 Hi Henrik,
 
 Sendmail (procmail?) does not seem to be sending the domain (the
 @htc.troeng.com part) along with the username (evidenced by the
lmtp
 error -- it _should_ be looking for
htc.troeng.com!user.postmaster).
 
 Please post your sendmail's .mc file and, if you have made any
changes
 to it, your path/to/sendmail/src/cf/mailer/cyrusv2.m4 file. Also,
have
 you made any changes to sendmail.cf? If so, please tell us what
these
 were.
 
 Mike.
 
 
 
 ---
 Home Page: http://asg.web.cmu.edu/cyrus 
 Wiki/FAQ: http://cyruswiki.andrew.cmu.edu 
 List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html 


Hi again,

Thanks for your response.

Here is my sendmail.mc file following. 

I haven't done any changes to sendmail.cf.

I m a bit confused about the cyrusv4.m4 file, can you maybe explain
where it
comes into the picture (I m a real newbie on this, sorry if I look
stupid
;).

Well, here is the sendmail.mc file:

 -- snip --

define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl

 -- snip --

FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl

 -- snip --

Hi Henrik,

I do not use procmail, but if you need it, and are using it to deliver
mail to cyrus using cyrus' deliver program, you need to make sure that
it is not stripping off the @... part of the recipient address.

MAILER(cyrusv2)dnl

This is where the cyrusv2.m4 file gets included. On your system, it
should be in /usr/share/sendmail-cf/mailer it would seem.

MAILER(smtp)dnl
define(confLOCAL_MAILER, cyrusv2)dnl

This last line (define(confLOC...) should come before any of the
MAILER lines.

I also have a nocanonify option in my .mc, though I am not sure it is
really necessary.

To eliminate problems, you might try commenting out the procmail lines
(with a dnl  in front of them) and re-building your sendmail.cf file
and restart sendmail. Make sure that in your sendmail.cf, in the
Mcyrusv2 section, the S=... line reads:

 S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r\n,

and that the last line of the mailer (two lines below that) reads:

 A=FILE /var/imap/socket/lmtp

See if you can get sendmail -- lmtp -- cyrus-imap working and then
put procmail back in the mix and see what happens.

Mike.
---
Home Page: 

Re: DBERRORS with unified-imap

2004-02-17 Thread Ken Murchison
Prentice Bisbal wrote:

I'm using the unified imap tree (with some assistance from Ken 
Murchison) to have 3 servers use the same filesystem on a SAN with GPFS.

When I start cyrus on either the master or the slaves, I get the errors 
shown below. I think I just need to specify the database format(s) in my 
imapd.conf file.

My questions are

(1) What DB file format is best for my configuration

(2) Why didn't I get these errors until I configured MUPDATE. Does 
mupdate expect Berkeley DB files?

(3) Can I fix this just by using cvt_cyrusdb?
I don't think this is your problem.  See below.

Feb 17 11:22:27 pdb-mail-2 imap[7097]: DBERROR db4: mmap: Invalid argument
Feb 17 11:22:27 pdb-mail-2 imaps[7098]: DBERROR db4: mmap: Invalid argument
Feb 17 11:22:27 pdb-mail-2 pop3[7099]: DBERROR db4: mmap: Invalid argument
Feb 17 11:22:27 pdb-mail-2 pop3s[7100]: DBERROR db4: mmap: Invalid argument
Feb 17 11:22:27 pdb-mail-2 mupdate[7101]: DBERROR db4: mmap: Invalid 
argument
Feb 17 11:22:27 pdb-mail-2 imap[7097]: DBERROR: dbenv-open 
'/gpfstest/cyrus/lib
/imap/db' failed: Invalid argument
Feb 17 11:22:27 pdb-mail-2 imaps[7098]: DBERROR: dbenv-open 
'/gpfstest/cyrus/li
b/imap/db' failed: Invalid argument
Feb 17 11:22:27 pdb-mail-2 pop3[7099]: DBERROR: dbenv-open 
'/gpfstest/cyrus/lib
/imap/db' failed: Invalid argument
Feb 17 11:22:27 pdb-mail-2 pop3s[7100]: DBERROR: dbenv-open 
'/gpfstest/cyrus/li
b/imap/db' failed: Invalid argument
Feb 17 11:22:27 pdb-mail-2 mupdate[7101]: DBERROR: dbenv-open 
'/gpfstest/cyrus/
lib/imap/db' failed: Invalid argument
Feb 17 11:22:27 pdb-mail-2 imap[7097]: DBERROR: init() on berkeley
Feb 17 11:22:27 pdb-mail-2 imaps[7098]: DBERROR: init() on berkeley
Feb 17 11:22:27 pdb-mail-2 pop3[7099]: DBERROR: init() on berkeley
Feb 17 11:22:27 pdb-mail-2 pop3s[7100]: DBERROR: init() on berkeley
Feb 17 11:22:27 pdb-mail-2 mupdate[7101]: DBERROR: init() on berkeley
Feb 17 11:22:27 pdb-mail-2 imap[7097]: executed
Feb 17 11:22:27 pdb-mail-2 imaps[7098]: executed
Feb 17 11:22:27 pdb-mail-2 pop3[7099]: executed
Feb 17 11:22:27 pdb-mail-2 master[5355]: exiting on SIGTERM/SIGINT
It looks to me like you're sharing the BDB environment directory 
(/gpfstest/cyrus/lib/imap/db).  You definitely do not want to do this, 
each machine should have its own local BDB environment directory.

--
Kenneth Murchison Oceana Matrix Ltd.
Software Engineer 21 Princeton Place
716-662-8973 x26  Orchard Park, NY 14127
--PGP Public Key--http://www.oceana.com/~ken/ksm.pgp
---
Home Page: http://asg.web.cmu.edu/cyrus
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: RFC: OpenSLP support in cyrus-imapd (+patch)

2004-02-17 Thread Carsten Hoeger
On Tue, Feb 17, Ken Murchison wrote:

   Btw.: Is there a specific reason, why the drac_auth patch is still not
   integrated?
 
 Because its an outdated hack.  Any recent MTA *should* have SMTP AUTH 
 support and sites *should* be using it instead of DRAC.  If you 
 disagree, then argue with Rob.  ;)

Well, personally I definetely do NOT disagree.
And yes, POP before SMTP is a PITA.

-- 
With best regards,

Carsten Hoeger


pgp0.pgp
Description: PGP signature


Re: newspostuser -- To, but what about Reply-To?

2004-02-17 Thread +archive . info-cyrus
On Tue, 17 Feb 2004, Ken Murchison wrote:

 Any article which gets posted to Cyrus nntpd will have the post address
 added to the Reply-To header, and this address will be present in the
 article when it is transferred to the outside news peer.

I thought I raised this concern, but it may have just been a mumble
to myself, something I do way too often and it gets confusing.

Anyway, yeah, I think it should be stripped before posting to peers.
Even if you block it at the MTA, it'll no doubt cause confusion for
those outside of your kingdom.

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


Re: +S reliance?

2004-02-17 Thread Brenden Conte
On Fri, 2004-02-13 at 13:24, Wil Cooley wrote:
 On Tue, 2004-02-10 at 11:06, Brenden Conte wrote:
  In the install documents, it says to be sure to set the +S attribute in
  the imap directory.
  
  Is there any hard reliance on this?  If i use a filesystem that doesn't
  support +S, are things going to break?
 
 I'm guessing you're talking about installing on Linux, since I know of
 no other OS with this attribute.  My guess is that Ralf's
 recommendations for Postfix+ext3 also apply:
 
 http://www.stahl.bau.tu-bs.de/~hildeb/postfix/postfix_ext3.shtml
 
 Of course, if you're running something other than ext2 or ext3, I don't
 know.  Perhaps a little more specificity would get a better answer.
 
 Wil

Well, that was more or less my question ;-)  I know programs like qmail
had problems with non-sync'ed filesystems, i was wondering if that was
the case as well with cyrus.

Turns out i had just overlooked that part in the documentation that says
don't worry about it if you're not using ext2.

Thanks!
-- 
Brenden Conte
System Programmer, CCT
Rensselaer Polytechnic Institute
(518)276-2540

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


mails to no where

2004-02-17 Thread Cesar Scavuzzo

After several attempts and with the help of some persons of this list I
manage to get my imap server running on a FC1 with no errors so far, I
used the RPMS from invoca (2.2.3-4) those worked great, but the problem
that I'm having is on the distribution of e-mail (I'm real new on cyrus
why not to say on linux too) I've created some mailboxes (with cyradm
--user=cyrus --auth=login localhost) but when I set they on a client
like evolution (I'm working on local network only) the test emails do
not reach the mail boxes, I can see the inbox folder on client side of
the account, I do not have any bounce massages, I'm using postfix on the
imap server and to send from the client, local sendmail. 
I really don't know where to start troubleshooting this.

If some one could point me on the right direction. It is probabli that
I'm missing something but I do not know what. 

If this post is out of topic for this list please refer me where can I
look for some info

Other useful information could be:
On the cyradm:
version\
 

  name  : Cyrus IMAPD
  version   : v2.2.3-Invoca-RPM-2.2.3-4 2004/01/14 02:11:03
  vendor: Project Cyrus
  support-url   : http://asg
  os: Linux
  os-version:2.4.22-1.2115.nptl
  envitoment: Built w/Cyrus SASL 2.1.14
  Running w/Cyrus SASL 2.1.14
  Built w/Sleepycat Software: Berkeley DB
4.1.25:
  Running w/ Sleepycat Software: Berkeley DB
4.1.25:
  Built w/OpenSSl 0.9.7a
  Running w/ OpenSSl 0.9.7a
  CMU Sierve 2.2
  TCP Wrappers
  mmap = shared
  lock = fcntl
  nonblock = fcntl
  auth = unix
  idle = poll

Thank you.



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


Re: newspostuser -- To, but what about Reply-To?

2004-02-17 Thread Ken Murchison
[EMAIL PROTECTED] wrote:

On Tue, 17 Feb 2004, Ken Murchison wrote:


Any article which gets posted to Cyrus nntpd will have the post address
added to the Reply-To header, and this address will be present in the
article when it is transferred to the outside news peer.


I thought I raised this concern, but it may have just been a mumble
to myself, something I do way too often and it gets confusing.
Anyway, yeah, I think it should be stripped before posting to peers.
Even if you block it at the MTA, it'll no doubt cause confusion for
those outside of your kingdom.
I've actually been looking for more info on this type of thing, and here 
is what I found:

http://www.unicom.com/pw/reply-to-harmful.html
http://cr.yp.to/proto/replyto.html
I can strip the address before transferring the article via NNTP, but 
this doesn't help if the article is posted/replied via SMTP.

I'm having a bad day, so this little problem (and any possible 
solutions) are just adding to my frustration.  If anybody has any 
suggestions, I'm all ears.

--
Kenneth Murchison Oceana Matrix Ltd.
Software Engineer 21 Princeton Place
716-662-8973 x26  Orchard Park, NY 14127
--PGP Public Key--http://www.oceana.com/~ken/ksm.pgp
---
Home Page: http://asg.web.cmu.edu/cyrus
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


SOLVED: Virtual domains, user@domain.com: Mailbox unknown

2004-02-17 Thread Henrik Troeng
  Henrik Troeng [EMAIL PROTECTED] 02/17/04 02:25pm 
   Henrik Troeng [EMAIL PROTECTED] 02/16/04 07:33pm 
  
  Hi all,
  
  I have a problem, I use multiple domains but for users I create
 with
  the
  domain specified, for example [EMAIL PROTECTED] it can't
  receive
  mail. When I try to send to this user I get back a reply from
  Mailer-Daemon
  that says 550-Mailbox Unknown. Either there is no mailbox
  associated
  550-name or you don't have authorization to see it.
  
  If I create the user user.postmaster it works fine, but the
 user
  [EMAIL PROTECTED] wont accept any mail.
  
  Here is my imapd.conf:
  
  configdirectory: /var/imap
  partition-default: /var/spool/imap
  admins: cyrus root Henrik
  sasl_pwcheck_method: saslauthd
  sasl_mech_list: PLAIN LOGIN
  sendmail: /usr/sbin/sendmail
  servername: htc.troeng.com
  virtdomains: yes
  defaultdomain: troeng.com
  
  I have set up the domain in the local-host-names config file for
  sendmail.
  
  Here is the error message:
  
  The original message was received at Mon, 16 Feb 2004 12:47:04
  +0100
  from lmdeliver01.st1.spray.net [212.78.202.210]
  
 - The following addresses had permanent fatal errors -
  
  root
  
  (reason: 550-Mailbox unknown.  Either there is no mailbox
  associated with this)
  
  (expanded from: [EMAIL PROTECTED])
  
 - Transcript of session follows -
  
  ... while talking to localhost:
  
   DATA
  
   550-Mailbox unknown.  Either there is no mailbox associated
  
  with this
  
   550-name or you do not have authorization to see it.
  
   550 5.1.1 User unknown
  
  550 5.1.1 root... User unknown
  
   503 5.5.1 No recipients
  
  
  Henrik
  
  Hi Henrik,
  
  You evidently have postmaster aliased to root in /etc/mail/aliases
 (a
  common; nay default alias in sendmail), so sendmail will never try
 to
  deliver to postmaster, but only to root (as evidenced by the
  (expanded
  from: [EMAIL PROTECTED]) line).
  
  Either change the alias to send it to the correct user (don't
 forget
  to
  re-build the aliases database!), or delete it (ditto on the don't
  forget) and let it go to the postmaster mailbox you have created.
  
  Mike.
  ---
  Home Page: http://asg.web.cmu.edu/cyrus
  Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
  List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
 
  
  
  I'm sorry to say, but this has nothing to do with my problem. I
 have
  the
  same problem with other usernames also.. So this is not just a
  postmaster
  problem.
  To be sure, I did test what you wrote, it made no difference...
  
  What can be wrong?
  
  I did check the imapd.log file and got some output:
  
  about to exec /usr/cyrus/bin/lmtpd
  executed
  accepted  connection
  lmtp connection preauth'd as postman
  append_check() of 'user.postmaster' failed (Mailbox does not
 exist)
  
  //Henrik
  
 
  Hi Henrik,
 
  Sendmail (procmail?) does not seem to be sending the domain (the
  @htc.troeng.com part) along with the username (evidenced by the
 lmtp
  error -- it _should_ be looking for
 htc.troeng.com!user.postmaster).
 
  Please post your sendmail's .mc file and, if you have made any
 changes
  to it, your path/to/sendmail/src/cf/mailer/cyrusv2.m4 file. Also,
 have
  you made any changes to sendmail.cf? If so, please tell us what
 these
  were.
 
  Mike.
 
 
 
  ---
  Home Page: http://asg.web.cmu.edu/cyrus
  Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
  List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
 
 
 Hi again,
 
 Thanks for your response.
 
 Here is my sendmail.mc file following.
 
 I haven't done any changes to sendmail.cf.
 
 I m a bit confused about the cyrusv4.m4 file, can you maybe explain
 where it
 comes into the picture (I m a real newbie on this, sorry if I look
 stupid
 ;).
 
 Well, here is the sendmail.mc file:
 
  -- snip --
 
 define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
 
  -- snip --
 
 FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
 
  -- snip --
 
 Hi Henrik,
 
 I do not use procmail, but if you need it, and are using it to deliver
 mail to cyrus using cyrus' deliver program, you need to make sure that
 it is not stripping off the @... part of the recipient address.
 
 MAILER(cyrusv2)dnl
 
 This is where the cyrusv2.m4 file gets included. On your system, it
 should be in /usr/share/sendmail-cf/mailer it would seem.
 
 MAILER(smtp)dnl
 define(confLOCAL_MAILER, cyrusv2)dnl
 
 This last line (define(confLOC...) should come before any of the
 MAILER lines.
 
 I also have a nocanonify option in my .mc, though I am not sure it is
 really necessary.
 
 To eliminate problems, you might try commenting out the procmail lines
 (with a dnl  in front of them) and re-building your sendmail.cf file
 and restart sendmail. Make sure that in your sendmail.cf, in the
 Mcyrusv2 section, the S=... line reads:
 
  S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r\n,
 
 and that the last line of the mailer (two lines below that) reads:
 
  A=FILE 

Re: mails to no where

2004-02-17 Thread lst_hoe01
Zitat von Cesar Scavuzzo [EMAIL PROTECTED]:

 
 After several attempts and with the help of some persons of this list I
 manage to get my imap server running on a FC1 with no errors so far, I
 used the RPMS from invoca (2.2.3-4) those worked great, but the problem
 that I'm having is on the distribution of e-mail (I'm real new on cyrus
 why not to say on linux too) I've created some mailboxes (with cyradm
 --user=cyrus --auth=login localhost) but when I set they on a client
 like evolution (I'm working on local network only) the test emails do
 not reach the mail boxes, I can see the inbox folder on client side of
 the account, I do not have any bounce massages, I'm using postfix on the
 imap server and to send from the client, local sendmail. 
 I really don't know where to start troubleshooting this.

What is in the postfix log??
If unsure where to find have a look at syslog.conf where the mail.* portion of
the logs go.

Regards

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


Re: newspostuser -- To, but what about Reply-To?

2004-02-17 Thread +archive . info-cyrus
On Tue, 17 Feb 2004, Ken Murchison wrote:

 I've actually been looking for more info on this type of thing, and here
 is what I found:

 http://www.unicom.com/pw/reply-to-harmful.html
 http://cr.yp.to/proto/replyto.html

 I can strip the address before transferring the article via NNTP, but
 this doesn't help if the article is posted/replied via SMTP.

Ultimately, isn't that also just an NNTP post, via lmtp2nntp?

If the message is inserted directly into this folder via just lmtp,
then the Reply-To (Newsgroups, etc.) header won't be added anyway

 I'm having a bad day, so this little problem (and any possible

Bummer.

 solutions) are just adding to my frustration.  If anybody has any
 suggestions, I'm all ears.

I know about the Reply-To evil stuff, but isn't this a bit different?
I mean, we're talking about a newsgroup, not a mailing list.  With a
mailing list, the Reply-To munging would impact all those on that
list.  However, with a newsgroup, it's only impacting that newsgroup,
right?

Of course I guess this all gets *really* muddy if you're doing any
sort of mirroring between a list and a newsgroup (anybody try that
yet?), but that's something for the implementor of such a gateway to
worry about, right?

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


Re: Question about MUPDATE master mailboxes list

2004-02-17 Thread Etienne Goyer
On Tue, Feb 17, 2004 at 12:18:05PM -0500, Rob Siemborski wrote:
 On Tue, 17 Feb 2004, Etienne Goyer wrote:
 
  I was under the impression that the mailbox list kept on the MUPDATE
  master was volatile, that is it was recreated from scratch at each
  start-up with the mailbox list coming from the backends.
 
 It should be able to be reconstructed at startup of the backends.  That
 said, I'd advise against *relying* on this behavior.

Why do you recommend *against* relying on this behavior ?

For about 500K mailboxes (mailboxes, not accounts), how long should
ctl_mboxlist -m from two backends run ?  I know it's impossible to 
give exact as it rely on many factors (hardware, network speed, etc), 
but I would be satisfied with a rough estimation.

I am asking because, starting with a clean (just did mkimap) configdir
on the mupdate master, it took 8 hours for us with fairly powerful and
otherwise idle machines.
 
  I think I found out the hard way that this is *not* the case.  Is this
  correct ?
 
 It shouldn't be, provided you are running ctl_mboxlist -m at startup of
 the backends.

Well, we do.

On the mupdate master, is it advisable to :

1. have master run ctl_cyrusdb -r at START ?

2. have master checkpoint the database with ctl_cyrusdb -c as a
regular EVENTS ? (I know I am going to hate myself when you answer this
one ...)

Two more questions.  How long should ctl_cyrusdb -r take to recover a
mailboxes.db that was not checkpointed ?  What tool can I use to
diagnose a bad mailboxes.db ?  I would love to do forensic on the 
mailboxes.db I think is corrupted to figure out was the problem really
was.


Thank you very much for your answer!

-- 
Etienne GoyerLinux Québec Technologies Inc.
http://www.LinuxQuebec.com   [EMAIL PROTECTED]
---
Home Page: http://asg.web.cmu.edu/cyrus
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: mails to no where

2004-02-17 Thread Cesar Scavuzzo
Feb 17 12:20:32 serverlnx imap[2474]: login: serverlnx [127.0.0.1] cyrus
plaintext 
Feb 17 12:25:28 serverlnx master[2534]: about to exec
/usr/lib/cyrus-imapd/ctl_cyrusdb
Feb 17 12:25:28 serverlnx ctl_cyrusdb[2534]: checkpointing cyrus
databases
Feb 17 12:25:28 serverlnx ctl_cyrusdb[2534]: archiving database file:
/var/lib/imap/annotations.db
Feb 17 12:25:28 serverlnx ctl_cyrusdb[2534]: archiving log file:
/var/lib/imap/db/log.01
Feb 17 12:25:28 serverlnx ctl_cyrusdb[2534]: archiving database file:
/var/lib/imap/mailboxes.db
Feb 17 12:25:28 serverlnx ctl_cyrusdb[2534]: archiving log file:
/var/lib/imap/db/log.01
Feb 17 12:25:28 serverlnx ctl_cyrusdb[2534]: done checkpointing cyrus
databases
Feb 17 12:25:28 serverlnx master[]: process 2534 exited, status 0
Feb 17 12:50:38 serverlnx imap[2474]: idle for too long, closing
connection
Feb 17 12:51:38 serverlnx master[]: process 2474 exited, status 0
Feb 17 12:55:28 serverlnx master[2548]: about to exec
/usr/lib/cyrus-imapd/ctl_cyrusdb
Feb 17 12:55:28 serverlnx ctl_cyrusdb[2548]: checkpointing cyrus
databases
Feb 17 12:55:28 serverlnx ctl_cyrusdb[2548]: archiving database file:
/var/lib/imap/annotations.db
Feb 17 12:55:28 serverlnx ctl_cyrusdb[2548]: archiving log file:
/var/lib/imap/db/log.01
Feb 17 12:55:28 serverlnx ctl_cyrusdb[2548]: archiving database file:
/var/lib/imap/mailboxes.db
Feb 17 12:55:28 serverlnx ctl_cyrusdb[2548]: archiving log file:
/var/lib/imap/db/log.01
Feb 17 12:55:28 serverlnx ctl_cyrusdb[2548]: done checkpointing cyrus
databases
Feb 17 12:55:28 serverlnx master[]: process 2548 exited, status 0
Feb 17 13:08:39 serverlnx imap[2475]: accepted connection
Feb 17 13:08:39 serverlnx master[2563]: about to exec
/usr/lib/cyrus-imapd/imapd
Feb 17 13:08:39 serverlnx imap[2563]: executed
Feb 17 13:08:51 serverlnx imap[2475]: badlogin: [192.168.1.97] plaintext
cesar SASL(-13): authentication failure: checkpass failed
Feb 17 13:09:04 serverlnx imap[2475]: login: [192.168.1.97] cesar
plaintext 
Feb 17 13:09:04 serverlnx imap[2475]: seen_db: user cesar opened
/var/lib/imap/user/c/cesar.seen
Feb 17 13:09:04 serverlnx imap[2475]: open: user cesar opened INBOX
Feb 17 13:17:17 serverlnx last message repeated 2 times
Feb 17 13:22:19 serverlnx imap[2475]: open: user cesar opened INBOX
Feb 17 13:22:39 serverlnx imap[2475]: open: user cesar opened INBOX
Feb 17 13:25:28 serverlnx master[2572]: about to exec
/usr/lib/cyrus-imapd/ctl_cyrusdb
Feb 17 13:25:28 serverlnx ctl_cyrusdb[2572]: checkpointing cyrus
databases
Feb 17 13:25:28 serverlnx ctl_cyrusdb[2572]: archiving database file:
/var/lib/imap/annotations.db
Feb 17 13:25:28 serverlnx ctl_cyrusdb[2572]: archiving log file:
/var/lib/imap/db/log.01
Feb 17 13:25:28 serverlnx ctl_cyrusdb[2572]: archiving database file:
/var/lib/imap/mailboxes.db
Feb 17 13:25:28 serverlnx ctl_cyrusdb[2572]: archiving log file:
/var/lib/imap/db/log.01
Feb 17 13:25:28 serverlnx ctl_cyrusdb[2572]: done checkpointing cyrus
databases
Feb 17 13:25:28 serverlnx master[]: process 2572 exited, status 0
Feb 17 13:30:55 serverlnx imap[2475]: open: user cesar opened INBOX
 
It is a pretty long file it is only the fist part, What you think?

On Tue, 2004-02-17 at 14:32, [EMAIL PROTECTED] wrote:
 Zitat von Cesar Scavuzzo [EMAIL PROTECTED]:
 
  
  After several attempts and with the help of some persons of this list I
  manage to get my imap server running on a FC1 with no errors so far, I
  used the RPMS from invoca (2.2.3-4) those worked great, but the problem
  that I'm having is on the distribution of e-mail (I'm real new on cyrus
  why not to say on linux too) I've created some mailboxes (with cyradm
  --user=cyrus --auth=login localhost) but when I set they on a client
  like evolution (I'm working on local network only) the test emails do
  not reach the mail boxes, I can see the inbox folder on client side of
  the account, I do not have any bounce massages, I'm using postfix on the
  imap server and to send from the client, local sendmail. 
  I really don't know where to start troubleshooting this.
 
 What is in the postfix log??
 If unsure where to find have a look at syslog.conf where the mail.* portion of
 the logs go.
 
 Regards
 
 Andreas
 ---
 Home Page: http://asg.web.cmu.edu/cyrus
 Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
 List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

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


Re: newspostuser -- To, but what about Reply-To?

2004-02-17 Thread Ken Murchison
[EMAIL PROTECTED] wrote:

On Tue, 17 Feb 2004, Ken Murchison wrote:


I've actually been looking for more info on this type of thing, and here
is what I found:
http://www.unicom.com/pw/reply-to-harmful.html
http://cr.yp.to/proto/replyto.html
I can strip the address before transferring the article via NNTP, but
this doesn't help if the article is posted/replied via SMTP.


Ultimately, isn't that also just an NNTP post, via lmtp2nntp?

If the message is inserted directly into this folder via just lmtp,
then the Reply-To (Newsgroups, etc.) header won't be added anyway
True, but if the client replies to more than just the Reply-To, then the 
 post address will get exposed.

I know about the Reply-To evil stuff, but isn't this a bit different?
I mean, we're talking about a newsgroup, not a mailing list.  With a
mailing list, the Reply-To munging would impact all those on that
list.  However, with a newsgroup, it's only impacting that newsgroup,
right?
I believe so.  I have to do some more thinking and testing with clients.

Of course I guess this all gets *really* muddy if you're doing any
sort of mirroring between a list and a newsgroup (anybody try that
yet?), but that's something for the implementor of such a gateway to
worry about, right?
I suppose.

--
Kenneth Murchison Oceana Matrix Ltd.
Software Engineer 21 Princeton Place
716-662-8973 x26  Orchard Park, NY 14127
--PGP Public Key--http://www.oceana.com/~ken/ksm.pgp
---
Home Page: http://asg.web.cmu.edu/cyrus
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: mails to no where

2004-02-17 Thread Cesar Scavuzzo
Feb 17 15:20:26 localhost sendmail[7783]: i1HKKP3n007783:
[EMAIL PROTECTED], size=295, class=0, nrcpts=1,
msgid=[EMAIL PROTECTED],
[EMAIL PROTECTED]
Feb 17 15:20:26 localhost sendmail[7785]: i1HKKQJj007785:
from=[EMAIL PROTECTED], size=454, class=0, nrcpts=1,
msgid=[EMAIL PROTECTED], proto=ESMTP,
daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Feb 17 15:20:26 localhost sendmail[7783]: i1HKKP3n007783:
[EMAIL PROTECTED], [EMAIL PROTECTED] (0/0),
delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30295,
relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (i1HKKQJj007785
Message accepted for delivery)
Feb 17 15:20:26 localhost sendmail[7787]: i1HKKQJj007785:
to=[EMAIL PROTECTED], delay=00:00:00, xdelay=00:00:00, mailer=esmtp,
pri=30454, relay=192.168.1.101, dsn=5.1.2, stat=Host unknown (Name
server: 192.168.1.101: host not found)
Feb 17 15:20:26 localhost sendmail[7787]: i1HKKQJj007785:
i1HKKQJj007787: DSN: Host unknown (Name server: 192.168.1.101: host not
found)

this is what appear on the log from the other box whith local sendmail



On Tue, 2004-02-17 at 14:32, [EMAIL PROTECTED] wrote:
 Zitat von Cesar Scavuzzo [EMAIL PROTECTED]:
 
  
  After several attempts and with the help of some persons of this list I
  manage to get my imap server running on a FC1 with no errors so far, I
  used the RPMS from invoca (2.2.3-4) those worked great, but the problem
  that I'm having is on the distribution of e-mail (I'm real new on cyrus
  why not to say on linux too) I've created some mailboxes (with cyradm
  --user=cyrus --auth=login localhost) but when I set they on a client
  like evolution (I'm working on local network only) the test emails do
  not reach the mail boxes, I can see the inbox folder on client side of
  the account, I do not have any bounce massages, I'm using postfix on the
  imap server and to send from the client, local sendmail. 
  I really don't know where to start troubleshooting this.
 
 What is in the postfix log??
 If unsure where to find have a look at syslog.conf where the mail.* portion of
 the logs go.
 
 Regards
 
 Andreas
 ---
 Home Page: http://asg.web.cmu.edu/cyrus
 Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
 List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

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


Re: mails to no where

2004-02-17 Thread lst_hoe01
Zitat von Cesar Scavuzzo [EMAIL PROTECTED]:

 Feb 17 13:08:39 serverlnx imap[2475]: accepted connection
 Feb 17 13:08:39 serverlnx master[2563]: about to exec
 /usr/lib/cyrus-imapd/imapd
 Feb 17 13:08:39 serverlnx imap[2563]: executed
 Feb 17 13:08:51 serverlnx imap[2475]: badlogin: [192.168.1.97] plaintext
 cesar SASL(-13): authentication failure: checkpass failed
 Feb 17 13:09:04 serverlnx imap[2475]: login: [192.168.1.97] cesar
 plaintext 
 Feb 17 13:09:04 serverlnx imap[2475]: seen_db: user cesar opened
 /var/lib/imap/user/c/cesar.seen
 Feb 17 13:09:04 serverlnx imap[2475]: open: user cesar opened INBOX
 Feb 17 13:17:17 serverlnx last message repeated 2 times
 Feb 17 13:22:19 serverlnx imap[2475]: open: user cesar opened INBOX
 Feb 17 13:22:39 serverlnx imap[2475]: open: user cesar opened INBOX

These are only log entries from cyrus. They proof that you are able to login as
cesar. Postfix log entries contain the string postfix in every line. To
find out where this log entries are do a grep postfix /path/to/logfiles/*.

Furthermore you can try to submit a mail locally (at the IMAP server) with cat
some_file | mail -s TEST cesar.

The postfix logs are needed to see where your mail is going to.

Regards

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


Re: newspostuser -- To, but what about Reply-To?

2004-02-17 Thread +archive . info-cyrus
On Tue, 17 Feb 2004, Ken Murchison wrote:

  If the message is inserted directly into this folder via just lmtp,
  then the Reply-To (Newsgroups, etc.) header won't be added anyway

 True, but if the client replies to more than just the Reply-To, then the
   post address will get exposed.

Oh yeah.

I imagine it would be a lot of work, but what if this newspostuser
setting was an annotation, so that it could be set more specifically
than globally?  Maybe this setting just doesn't make sense for
external news groups?

If smtp posting is desired, perhaps a true gateway a la gmane.org is
required?

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


Re: Question about MUPDATE master mailboxes list

2004-02-17 Thread Rob Siemborski
On Tue, 17 Feb 2004, Etienne Goyer wrote:

 Why do you recommend *against* relying on this behavior ?

Because it takes much longer to write all the entires to the database than
just writing anything that the database has incorrect (as, I guess, you
discovered).

 For about 500K mailboxes (mailboxes, not accounts), how long should
 ctl_mboxlist -m from two backends run ?  I know it's impossible to
 give exact as it rely on many factors (hardware, network speed, etc),
 but I would be satisfied with a rough estimation.

It mostly should depend on how much of the database is already populated
in the mupdate master.  If there's nothing there, and the database is
syncing on every write, then I would expect 500,000 entries to take a VERY
long time to run.

 I am asking because, starting with a clean (just did mkimap) configdir
 on the mupdate master, it took 8 hours for us with fairly powerful and
 otherwise idle machines.

That seems to be a not-unsurprising timeframe given the number of updates.
(If you are using skiplist, there are two fsync() calls for every update).

  It shouldn't be, provided you are running ctl_mboxlist -m at startup of
  the backends.

 Well, we do.

 On the mupdate master, is it advisable to :

 1. have master run ctl_cyrusdb -r at START ?

Yes.  This is an outright requirement of *any* cyrus system that uses
atleast one database.

 2. have master checkpoint the database with ctl_cyrusdb -c as a
 regular EVENTS ? (I know I am going to hate myself when you answer this
 one ...)

Yes.  *Especially* if it was berkeley DB.

-Rob


-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456
Research Systems Programmer * /usr/contributed Gatekeeper

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


Re: mails to no where

2004-02-17 Thread lst_hoe01
Zitat von Cesar Scavuzzo [EMAIL PROTECTED]:

 Feb 17 15:20:26 localhost sendmail[7783]: i1HKKP3n007783:
 [EMAIL PROTECTED], size=295, class=0, nrcpts=1,
 msgid=[EMAIL PROTECTED],
 [EMAIL PROTECTED]
 Feb 17 15:20:26 localhost sendmail[7785]: i1HKKQJj007785:
 from=[EMAIL PROTECTED], size=454, class=0, nrcpts=1,
 msgid=[EMAIL PROTECTED], proto=ESMTP,
 daemon=MTA, relay=localhost.localdomain [127.0.0.1]
 Feb 17 15:20:26 localhost sendmail[7783]: i1HKKP3n007783:
 [EMAIL PROTECTED], [EMAIL PROTECTED] (0/0),
 delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30295,
 relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (i1HKKQJj007785
 Message accepted for delivery)
 Feb 17 15:20:26 localhost sendmail[7787]: i1HKKQJj007785:
 to=[EMAIL PROTECTED], delay=00:00:00, xdelay=00:00:00, mailer=esmtp,
 pri=30454, relay=192.168.1.101, dsn=5.1.2, stat=Host unknown (Name
 server: 192.168.1.101: host not found)
 Feb 17 15:20:26 localhost sendmail[7787]: i1HKKQJj007785:
 i1HKKQJj007787: DSN: Host unknown (Name server: 192.168.1.101: host not
 found)
 
 this is what appear on the log from the other box whith local sendmail

Errhmm ...
Okay. The mail never leave the client machine. Set the relayhost in your
sendmail config to the IP/name of your IMAP-box. The IMAP-box (with postfix)
should be configured to accept mail from your local network.
If you are not sure what i talk about i would recommend to buy a book about mail
 DNS to get a start.

Regards

Andreas

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


Re: Question about MUPDATE master mailboxes list

2004-02-17 Thread Etienne Goyer
Thanks, that answered most of my questions.  One last thing :

On Tue, Feb 17, 2004 at 03:43:09PM -0500, Rob Siemborski wrote:
 It mostly should depend on how much of the database is already populated
 in the mupdate master.  If there's nothing there, and the database is
 syncing on every write, then I would expect 500,000 entries to take a VERY
 long time to run.

Is it possible to disable the syncing on every write ?  I don't mean to
use that in production, but when rebuilding database from scratch I
guess it would speed up thing significantly.

Any idea about how to find what have caused database corruption ?  I
kept a copy of the malfunctionning mailboxes.db before I rebuilt it.
I'd really like to understand what went wrong in case I might do
something to prevent this kind of situation in the future.

Again, thanks very much for your insight!

-- 
Etienne GoyerLinux Québec Technologies Inc.
http://www.LinuxQuebec.com   [EMAIL PROTECTED]
---
Home Page: http://asg.web.cmu.edu/cyrus
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Re: mails to no where

2004-02-17 Thread Lindner
Cesar Scavuzzo wrote:

Feb 17 15:20:26 localhost sendmail[7783]: i1HKKP3n007783:
[EMAIL PROTECTED], size=295, class=0, nrcpts=1,
msgid=[EMAIL PROTECTED],
[EMAIL PROTECTED]
Feb 17 15:20:26 localhost sendmail[7785]: i1HKKQJj007785:
from=[EMAIL PROTECTED], size=454, class=0, nrcpts=1,
msgid=[EMAIL PROTECTED], proto=ESMTP,
daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Feb 17 15:20:26 localhost sendmail[7783]: i1HKKP3n007783:
[EMAIL PROTECTED], [EMAIL PROTECTED] (0/0),
delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30295,
relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (i1HKKQJj007785
Message accepted for delivery)
Feb 17 15:20:26 localhost sendmail[7787]: i1HKKQJj007785:
to=[EMAIL PROTECTED], delay=00:00:00, xdelay=00:00:00, mailer=esmtp,
pri=30454, relay=192.168.1.101, dsn=5.1.2, stat=Host unknown (Name
server: 192.168.1.101: host not found)
Feb 17 15:20:26 localhost sendmail[7787]: i1HKKQJj007785:
i1HKKQJj007787: DSN: Host unknown (Name server: 192.168.1.101: host not
found)
this is what appear on the log from the other box whith local sendmail

The message is bounced because the recipient ([EMAIL PROTECTED]) could 
not be found. Your mail server treats 192.168.1.101 as DNS name and 
not as a IP (Name server: 192.168.1.101: host not
found).
Did you set myhostname=192.168.1.101 in postfix main.cf ?

Marek

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


Re: newspostuser -- To, but what about Reply-To?

2004-02-17 Thread Kevin P. Fleming
Ken Murchison wrote:

[EMAIL PROTECTED] wrote:

On Tue, 17 Feb 2004, Ken Murchison wrote:


I've actually been looking for more info on this type of thing, and here
is what I found:
http://www.unicom.com/pw/reply-to-harmful.html
http://cr.yp.to/proto/replyto.html
I can strip the address before transferring the article via NNTP, but
this doesn't help if the article is posted/replied via SMTP.
I can see what you're dealing with here, and it's significant. You've 
got a message in a folder with its Reply-To: set to 
post+folder.subfolder, and the original To:/CC: headers still in place.

If the user does a straight reply, the reply goes via SMTP to the 
post+folder.subfolder address, which is now in the To: header. When it 
arrives at the lmtp2nntp gateway, this must be stripped from the To: 
header, and the Reply-To: header inserted again.

If the user does a reply all, then the above scenario occurs, but also 
other copies of the message are delivered to the original recipients of 
the source message. This could include a variety of problematic things 
including other newsgroup names (the original message was crossposted), 
some or all of which are not present on this Cyrus installation or even 
SMTP recipients (normal mail addresses). The reply may very well be sent 
to these other SMTP recipients as well, without any Cyrus software being 
involved at all, in which case the post+folder.subfolder address would 
be exposed to them. This will have to be handled by the outbound MTA, 
there is no way around that, and it's a complicated documentation issue 
to boot.

How ever the user does a reply, the reply will end up back in the folder 
via lmtp2nntp, and is available to be sent upstream to an NNTP server. 
When this happens, I think all the headers in the message need to be 
searched for _any_ post+XXX addresses and those should be stripped; the 
message may have been sent to more than one local newsgroup folder. It 
would be ideal if the NNTP upload could see that and send only one copy 
to the relevant NNTP server (so the message would preserve its 
crossposting), but that's not easy to do I'm sure.
---
Home Page: http://asg.web.cmu.edu/cyrus
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html


Invalid mailbox name?

2004-02-17 Thread trichard
I feel like I am getting pretty close to having this work.  I've been
stuck for awhile on this one issue and I cannot find documentation to
troubleshoot mailboxes and mail client access properly.

I can authenticate to the server using a mail client now.  However, when
trying to read the inbox it fails with the following message:

The current command did not succeed.  The mail server responded: Invalid
mailbox name.

I feel I am missing something minor because the mailbox was created:

[EMAIL PROTECTED] test]# pwd
/var/spool/imap/user/test
[EMAIL PROTECTED] test]# ls -latr
total 20
-rw---1 cyrusmail   76 Feb 17 09:16 cyrus.index
-rw---1 cyrusmail4 Feb 17 09:16 cyrus.cache
drwx--3 cyrusmail 4096 Feb 17 09:16 ..
-rw---1 cyrusmail  159 Feb 17 09:16 cyrus.header
drwx--2 cyrusmail 4096 Feb 17 10:15 .

[EMAIL PROTECTED] test]# cyradm -u cyrus -s post
Password:
post.mydomain.com lm
user.test (\HasNoChildren)

post.mydomain.com sasldblistusers2
[EMAIL PROTECTED]: userPassword
[EMAIL PROTECTED]: userPassword

What am I doing wrong?  Maybe some setting in the client perhaps?

Thanks,
-t



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


Re: mails to no where

2004-02-17 Thread Cesar Scavuzzo
I think you mean this, 


Feb 17 13:50:56 serverlnx postfix/smtpd[2799]: connect from
unknown[192.168.1.97]
Feb 17 13:50:56 serverlnx postfix/smtpd[2799]: DFC447413A:
client=unknown[192.168.1.97]
Feb 17 13:50:57 serverlnx postfix/cleanup[2801]: DFC447413A:
message-id=[EMAIL PROTECTED]
Feb 17 13:50:57 serverlnx postfix/smtpd[2799]: disconnect from
unknown[192.168.1.97]
Feb 17 13:50:57 serverlnx postfix/qmgr[2295]: DFC447413A:
from=[EMAIL PROTECTED], size=479, nrcpt=1 (queue active)
Feb 17 13:50:57 serverlnx postfix/smtpd[2799]: connect from
unknown[192.168.1.101]
Feb 17 13:50:57 serverlnx postfix/smtp[2803]: warning: host
192.168.1.101[192.168.1.101] greeted me with my own hostname serverlnx
Feb 17 13:50:57 serverlnx postfix/smtp[2803]: warning: host
192.168.1.101[192.168.1.101] replied to HELO/EHLO with my own hostname
serverlnx
Feb 17 13:50:57 serverlnx postfix/smtp[2803]: DFC447413A:
to=[EMAIL PROTECTED], relay=192.168.1.101[192.168.1.101], delay=1,
status=bounced (mail for 192.168.1.101 loops back to myself)
Feb 17 13:50:57 serverlnx postfix/smtpd[2799]: lost connection after
EHLO from unknown[192.168.1.101]
Feb 17 13:50:57 serverlnx postfix/smtpd[2799]: disconnect from
unknown[192.168.1.101]
Feb 17 13:50:57 serverlnx postfix/cleanup[2801]: 38FCB7413C:
message-id=[EMAIL PROTECTED]
Feb 17 13:50:57 serverlnx postfix/qmgr[2295]: 38FCB7413C: from=,
size=2018, nrcpt=1 (queue active)
Feb 17 13:50:57 serverlnx postfix/smtpd[2799]: connect from
unknown[192.168.1.101]
Feb 17 13:50:57 serverlnx postfix/smtp[2803]: warning: host
192.168.1.101[192.168.1.101] greeted me with my own hostname serverlnx
Feb 17 13:50:57 serverlnx postfix/smtp[2803]: warning: host
192.168.1.101[192.168.1.101] replied to HELO/EHLO with my own hostname
serverlnx
Feb 17 13:50:57 serverlnx postfix/smtp[2803]: 38FCB7413C:
to=[EMAIL PROTECTED], relay=192.168.1.101[192.168.1.101], delay=0,
status=bounced (mail for 192.168.1.101 loops back to myself)
Feb 17 13:50:57 serverlnx postfix/smtpd[2799]: lost connection after
EHLO from unknown[192.168.1.101]
Feb 17 13:50:57 serverlnx postfix/smtpd[2799]: disconnect from
unknown[192.168.1.101]
Feb 17 13:52:37 serverlnx imap[2475]: open: user cesar opened INBOX
Feb 17 13:55:28 serverlnx master[2815]: about to exec
/usr/lib/cyrus-imapd/ctl_cyrusdb
Feb 17 13:55:28 serverlnx ctl_cyrusdb[2815]: checkpointing cyrus
databases
Feb 17 13:55:28 serverlnx ctl_cyrusdb[2815]: archiving database file:
/var/lib/imap/annotations.db
Feb 17 13:55:28 serverlnx ctl_cyrusdb[2815]: archiving log file:
/var/lib/imap/db/log.01
Feb 17 13:55:28 serverlnx ctl_cyrusdb[2815]: archiving database file:
/var/lib/imap/mailboxes.db
Feb 17 13:55:28 serverlnx ctl_cyrusdb[2815]: archiving log file:
/var/lib/imap/db/log.01
Feb 17 13:55:28 serverlnx ctl_cyrusdb[2815]: done checkpointing cyrus
databases
Feb 17 13:55:28 serverlnx master[]: process 2815 exited, status 0
Feb 17 13:57:55 serverlnx imap[2475]: open: user cesar opened INBOX
Feb 17 13:58:51 serverlnx last message repeated 2 times
Feb 17 14:02:40 serverlnx imap[2475]: open: user cesar opened INBOX
Feb 17 14:06:59 serverlnx imap[2475]: open: user cesar opened INBOX
Feb 17 14:10:28 serverlnx imap[2475]: open: user cesar opened INBOX
Feb 17 14:10:52 serverlnx postfix/smtpd[2832]: connect from
unknown[192.168.1.97]
Feb 17 14:10:52 serverlnx postfix/smtpd[2832]: 9EA7A7413A:
client=unknown[192.168.1.97]
Feb 17 14:10:52 serverlnx postfix/cleanup[2834]: 9EA7A7413A:
message-id=[EMAIL PROTECTED]
Feb 17 14:10:52 serverlnx postfix/qmgr[2295]: 9EA7A7413A:
from=[EMAIL PROTECTED], size=478, nrcpt=1 (queue active)
Feb 17 14:10:52 serverlnx postfix/smtpd[2832]: disconnect from
unknown[192.168.1.97]
Feb 17 14:10:53 serverlnx postfix/smtp[2836]: 9EA7A7413A:
to=[EMAIL PROTECTED], orig_to=cesar, relay=none,
delay=0, status=bounced (Name service error for
name=serverlnx.lnxpc.dnip.net type=A: Host not found)
Feb 17 14:10:53 serverlnx postfix/cleanup[2834]: 093C97413D:
message-id=[EMAIL PROTECTED]
Feb 17 14:10:53 serverlnx postfix/qmgr[2295]: 093C97413D: from=,
size=2113, nrcpt=1 (queue active)
Feb 17 14:10:53 serverlnx postfix/smtpd[2832]: connect from
unknown[192.168.1.101]
Feb 17 14:10:53 serverlnx postfix/smtp[2836]: warning: host
192.168.1.101[192.168.1.101] greeted me with my own hostname serverlnx
Feb 17 14:10:53 serverlnx postfix/smtp[2836]: warning: host
192.168.1.101[192.168.1.101] replied to HELO/EHLO with my own hostname
serverlnx
Feb 17 14:10:53 serverlnx postfix/smtp[2836]: 093C97413D:
to=[EMAIL PROTECTED], relay=192.168.1.101[192.168.1.101], delay=0,
status=bounced (mail for 192.168.1.101 loops back to myself)
Feb 17 14:10:53 serverlnx postfix/smtpd[2832]: lost connection after
EHLO from unknown[192.168.1.101]
Feb 17 14:10:53 serverlnx postfix/smtpd[2832]: disconnect from
unknown[192.168.1.101]
Feb 17 14:11:00 serverlnx imap[2475]: open: user cesar opened INBOX
Feb 17 14:11:57 serverlnx imap[2475]: open: user cesar opened INBOX
Feb 17 14:14:58 serverlnx master[]: 

Re: mails to no where

2004-02-17 Thread Cesar Scavuzzo
I think you mean this, 


Feb 17 13:50:56 serverlnx postfix/smtpd[2799]: connect from
unknown[192.168.1.97]
Feb 17 13:50:56 serverlnx postfix/smtpd[2799]: DFC447413A:
client=unknown[192.168.1.97]
Feb 17 13:50:57 serverlnx postfix/cleanup[2801]: DFC447413A:
message-id=[EMAIL PROTECTED]
Feb 17 13:50:57 serverlnx postfix/smtpd[2799]: disconnect from
unknown[192.168.1.97]
Feb 17 13:50:57 serverlnx postfix/qmgr[2295]: DFC447413A:
from=[EMAIL PROTECTED], size=479, nrcpt=1 (queue active)
Feb 17 13:50:57 serverlnx postfix/smtpd[2799]: connect from
unknown[192.168.1.101]
Feb 17 13:50:57 serverlnx postfix/smtp[2803]: warning: host
192.168.1.101[192.168.1.101] greeted me with my own hostname serverlnx
Feb 17 13:50:57 serverlnx postfix/smtp[2803]: warning: host
192.168.1.101[192.168.1.101] replied to HELO/EHLO with my own hostname
serverlnx
Feb 17 13:50:57 serverlnx postfix/smtp[2803]: DFC447413A:
to=[EMAIL PROTECTED], relay=192.168.1.101[192.168.1.101], delay=1,
status=bounced (mail for 192.168.1.101 loops back to myself)
Feb 17 13:50:57 serverlnx postfix/smtpd[2799]: lost connection after
EHLO from unknown[192.168.1.101]
Feb 17 13:50:57 serverlnx postfix/smtpd[2799]: disconnect from
unknown[192.168.1.101]
Feb 17 13:50:57 serverlnx postfix/cleanup[2801]: 38FCB7413C:
message-id=[EMAIL PROTECTED]
Feb 17 13:50:57 serverlnx postfix/qmgr[2295]: 38FCB7413C: from=,
size=2018, nrcpt=1 (queue active)
Feb 17 13:50:57 serverlnx postfix/smtpd[2799]: connect from
unknown[192.168.1.101]
Feb 17 13:50:57 serverlnx postfix/smtp[2803]: warning: host
192.168.1.101[192.168.1.101] greeted me with my own hostname serverlnx
Feb 17 13:50:57 serverlnx postfix/smtp[2803]: warning: host
192.168.1.101[192.168.1.101] replied to HELO/EHLO with my own hostname
serverlnx
Feb 17 13:50:57 serverlnx postfix/smtp[2803]: 38FCB7413C:
to=[EMAIL PROTECTED], relay=192.168.1.101[192.168.1.101], delay=0,
status=bounced (mail for 192.168.1.101 loops back to myself)
Feb 17 13:50:57 serverlnx postfix/smtpd[2799]: lost connection after
EHLO from unknown[192.168.1.101]
Feb 17 13:50:57 serverlnx postfix/smtpd[2799]: disconnect from
unknown[192.168.1.101]
Feb 17 13:52:37 serverlnx imap[2475]: open: user cesar opened INBOX
Feb 17 13:55:28 serverlnx master[2815]: about to exec
/usr/lib/cyrus-imapd/ctl_cyrusdb
Feb 17 13:55:28 serverlnx ctl_cyrusdb[2815]: checkpointing cyrus
databases
Feb 17 13:55:28 serverlnx ctl_cyrusdb[2815]: archiving database file:
/var/lib/imap/annotations.db
Feb 17 13:55:28 serverlnx ctl_cyrusdb[2815]: archiving log file:
/var/lib/imap/db/log.01
Feb 17 13:55:28 serverlnx ctl_cyrusdb[2815]: archiving database file:
/var/lib/imap/mailboxes.db
Feb 17 13:55:28 serverlnx ctl_cyrusdb[2815]: archiving log file:
/var/lib/imap/db/log.01
Feb 17 13:55:28 serverlnx ctl_cyrusdb[2815]: done checkpointing cyrus
databases
Feb 17 13:55:28 serverlnx master[]: process 2815 exited, status 0
Feb 17 13:57:55 serverlnx imap[2475]: open: user cesar opened INBOX
Feb 17 13:58:51 serverlnx last message repeated 2 times
Feb 17 14:02:40 serverlnx imap[2475]: open: user cesar opened INBOX
Feb 17 14:06:59 serverlnx imap[2475]: open: user cesar opened INBOX
Feb 17 14:10:28 serverlnx imap[2475]: open: user cesar opened INBOX
Feb 17 14:10:52 serverlnx postfix/smtpd[2832]: connect from
unknown[192.168.1.97]
Feb 17 14:10:52 serverlnx postfix/smtpd[2832]: 9EA7A7413A:
client=unknown[192.168.1.97]
Feb 17 14:10:52 serverlnx postfix/cleanup[2834]: 9EA7A7413A:
message-id=[EMAIL PROTECTED]
Feb 17 14:10:52 serverlnx postfix/qmgr[2295]: 9EA7A7413A:
from=[EMAIL PROTECTED], size=478, nrcpt=1 (queue active)
Feb 17 14:10:52 serverlnx postfix/smtpd[2832]: disconnect from
unknown[192.168.1.97]
Feb 17 14:10:53 serverlnx postfix/smtp[2836]: 9EA7A7413A:
to=[EMAIL PROTECTED], orig_to=cesar, relay=none,
delay=0, status=bounced (Name service error for
name=serverlnx.lnxpc.dnip.net type=A: Host not found)
Feb 17 14:10:53 serverlnx postfix/cleanup[2834]: 093C97413D:
message-id=[EMAIL PROTECTED]
Feb 17 14:10:53 serverlnx postfix/qmgr[2295]: 093C97413D: from=,
size=2113, nrcpt=1 (queue active)
Feb 17 14:10:53 serverlnx postfix/smtpd[2832]: connect from
unknown[192.168.1.101]
Feb 17 14:10:53 serverlnx postfix/smtp[2836]: warning: host
192.168.1.101[192.168.1.101] greeted me with my own hostname serverlnx
Feb 17 14:10:53 serverlnx postfix/smtp[2836]: warning: host
192.168.1.101[192.168.1.101] replied to HELO/EHLO with my own hostname
serverlnx
Feb 17 14:10:53 serverlnx postfix/smtp[2836]: 093C97413D:
to=[EMAIL PROTECTED], relay=192.168.1.101[192.168.1.101], delay=0,
status=bounced (mail for 192.168.1.101 loops back to myself)
Feb 17 14:10:53 serverlnx postfix/smtpd[2832]: lost connection after
EHLO from unknown[192.168.1.101]
Feb 17 14:10:53 serverlnx postfix/smtpd[2832]: disconnect from
unknown[192.168.1.101]
Feb 17 14:11:00 serverlnx imap[2475]: open: user cesar opened INBOX
Feb 17 14:11:57 serverlnx imap[2475]: open: user cesar opened INBOX
Feb 17 14:14:58 serverlnx master[]: 

Re: Question about MUPDATE master mailboxes list

2004-02-17 Thread Rob Siemborski
On Tue, 17 Feb 2004, Etienne Goyer wrote:

 Thanks, that answered most of my questions.  One last thing :

 On Tue, Feb 17, 2004 at 03:43:09PM -0500, Rob Siemborski wrote:
  It mostly should depend on how much of the database is already populated
  in the mupdate master.  If there's nothing there, and the database is
  syncing on every write, then I would expect 500,000 entries to take a VERY
  long time to run.

 Is it possible to disable the syncing on every write ?  I don't mean to
 use that in production, but when rebuilding database from scratch I
 guess it would speed up thing significantly.

In 2.2 there is the skiplist_unsafe config option (and an enviornment
variable, in 2.1).  If you're using Berkeley, you can set your database
backend to db3_nosync or bdb_nosync.

 Any idea about how to find what have caused database corruption ?  I
 kept a copy of the malfunctionning mailboxes.db before I rebuilt it.
 I'd really like to understand what went wrong in case I might do
 something to prevent this kind of situation in the future.

I'm sure its possible.  I'm not sure when I'd ever have the time unless
its a really obvious problem (and given that we're not seeing it
regularly, I'd guess it isn't).

-Rob

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Rob Siemborski * Andrew Systems Group * Cyert Hall 207 * 412-268-7456
Research Systems Programmer * /usr/contributed Gatekeeper

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


Re: mails to no where

2004-02-17 Thread Mike O'Rourke
 Lindner [EMAIL PROTECTED] 02/17/04 09:49pm 
Cesar Scavuzzo wrote:

Feb 17 15:20:26 localhost sendmail[7783]: i1HKKP3n007783:
[EMAIL PROTECTED], size=295, class=0, nrcpts=1,
msgid=[EMAIL PROTECTED],
[EMAIL PROTECTED]
Feb 17 15:20:26 localhost sendmail[7785]: i1HKKQJj007785:
from=[EMAIL PROTECTED], size=454, class=0, nrcpts=1,
msgid=[EMAIL PROTECTED], proto=ESMTP,
daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Feb 17 15:20:26 localhost sendmail[7783]: i1HKKP3n007783:
[EMAIL PROTECTED], [EMAIL PROTECTED] (0/0),
delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30295,
relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (i1HKKQJj007785
Message accepted for delivery)
Feb 17 15:20:26 localhost sendmail[7787]: i1HKKQJj007785:
to=[EMAIL PROTECTED], delay=00:00:00, xdelay=00:00:00,
mailer=esmtp,
pri=30454, relay=192.168.1.101, dsn=5.1.2, stat=Host unknown (Name
server: 192.168.1.101: host not found)
Feb 17 15:20:26 localhost sendmail[7787]: i1HKKQJj007785:
i1HKKQJj007787: DSN: Host unknown (Name server: 192.168.1.101: host
not
found)

this is what appear on the log from the other box whith local
sendmail


The message is bounced because the recipient ([EMAIL PROTECTED])
could 
not be found. Your mail server treats 192.168.1.101 as DNS name and

not as a IP (Name server: 192.168.1.101: host not
found).
Did you set myhostname=192.168.1.101 in postfix main.cf ?

Marek

No, the message bounced because sendmail could not find the host's MX
record.

Try sending to [EMAIL PROTECTED]. The [] tell sendmail to send
it directly to the host without any DNS lookups. If this works, you just
need to give the host a hostname, or use the mailertable feature in
sendmail and make the following entry in your mailertable:
192.168.1.101esmtp:[192.168.1.101]

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


Re: Virtual domains, user@domain.com: Mailbox unknown

2004-02-17 Thread Christopher Paluch
Let me throw some more wrenches into this.  I didn't mention this earlier because I 
didn't think they were part of this problem, since according to the log the email was 
making it to cyrus, but maybe I'm wrong.

I am trying to run sendmail, procmail and cyrus, because I still want some local 
non-cyrus email to occur.  So I found this method somewhere on the web (I wish I could 
remember where) that told me to the following:

In local-host-names:
test.com

In virtusertable:
[EMAIL PROTECTED]  [EMAIL PROTECTED]

In mailertable:
IMAPcyrusv2:localhost
.IMAP  cyrusv2:%1

I tried removing the entry from local-host-names, and I see the email doesn't get to 
cyrus anymore.

Here is my sendmail.cf:
Mcyrusv2,   P=[IPC], F=lsDFMnqXzA@/:|m,
S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP, E=\r\n,
T=DNS/RFC822/SMTP,
A=FILE /var/imap/socket/lmtp

Thanks,
 Chris Paluch



-Original Message-
From: Mike O'Rourke [EMAIL PROTECTED]
Sent: Feb 17, 2004 7:21 AM
To: [EMAIL PROTECTED]
Subject: Re: Virtual domains, [EMAIL PROTECTED]: Mailbox unknown

 Christopher Paluch [EMAIL PROTECTED] 02/16/04 07:50pm 
-Original Message-
From: Mike O'Rourke [EMAIL PROTECTED]
Sent: Feb 16, 2004 12:42 PM
To: [EMAIL PROTECTED] 
Subject: Re: Virtual domains, [EMAIL PROTECTED]: Mailbox unknown

 Christopher Paluch [EMAIL PROTECTED] 02/16/04 05:04pm 
I to am having the same problem.I have a user called
[EMAIL PROTECTED]  and when I do a cyradm lm 
command it is listed.
In my imapd.conf file, I have specified the following parameters:
unixhierarchysep:  yes
virtdomains:  yes
defaultdomain:  nottest.com
loginrealms:   nottest.com   test.com

I have also modifed my sendmail.cf so the cyrusv2 listing has the
following parameters:
S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP

When I send an email to that user, it gets through Sendmail okay,
who
sends it on to cyrusv2 - who rejects it 
for the same errors as below.

Does anyone have any suggestions to what I've forgotten to do, that
would be causing this problem?  Also 
does anyone know what the proper way is to specify the cyrusv2
options
in sendmail.mc is?

Thanks for any assistance!

-Chris Paluch


Hi Chris,

Can you provide some further info, such as extracts of
/var/log/mail,
/var/log/imapd.log, your sendmail.mc file, your /etc/imapd.conf
(esecially the lines that deal with lmtp),your /etc/cyrus.conf (the
lmtp
lines) and the results of an lam command in cyradm?

In your sendmail.mc file, you need two things: a line that says:
define(`confLOCAL_MAILER', `cyrusv2')dnl and the contents of
cf/mailer/cyrusv2.m4 put at the end of your sendmail.mc file (in
that
definition, you can change the S=... line so that when you regenerate
a
new sendmail.cf file, you will not have to remember to change that
again.)

Mike.
---
Here is an excerpt from my mail.log:
Feb 13 14:51:17 ecnsrc01 sendmail[16007]: i1DKpHVa016007:
from=[EMAIL PROTECTED], size=
757, class=0, nrcpts=1,
msgid=[EMAIL PROTECTED], 
proto=ESMTP, daemon=MTA, relay=[68.248.99.56]
Feb 13 14:51:17 ecnsrc01 sendmail[16009]: i1DKpHVa016007:
to=[EMAIL PROTECTED], delay=00:00:00, 
xdelay=00:00:00, mailer=cyrusv2, pri=30577, relay=localhost,
dsn=5.1.1, stat=User unknown
Feb 13 14:51:17 ecnsrc01 sendmail[16009]: i1DKpHVa016007:
i1DKpHVa016009: DSN: User unknown
Feb 13 14:51:23 ecnsrc01 sendmail[16009]: i1DKpHVa016009:
to=[EMAIL PROTECTED], delay=
00:00:06, xdelay=00:00:06, mailer=esmtp, pri=31781,
relay=mx1.mail.yahoo.com. [64.156.215.6], dsn=
2.0.0, stat=Sent (ok dirdel)

Here is the corresponding imapd.log:
Feb 13 14:42:24 ecnsrc01 master[16001]: about to exec
/usr/cyrus/bin/ctl_cyrusdbFeb 13 14:42:24 
ecnsrc01 ctl_cyrusdb[16001]: checkpointing cyrus databases
Feb 13 14:42:25 ecnsrc01 ctl_cyrusdb[16001]: archiving log file:
/var/imap/db/log.01
Feb 13 14:42:27 ecnsrc01 ctl_cyrusdb[16001]: archiving database file:
/var/imap/mailboxes.db
Feb 13 14:42:27 ecnsrc01 ctl_cyrusdb[16001]: archiving log file:
/var/imap/db/log.01
Feb 13 14:42:28 ecnsrc01 ctl_cyrusdb[16001]: done checkpointing cyrus
databases
Feb 13 14:42:28 ecnsrc01 master[15527]: process 16001 exited, status
0
Feb 13 14:51:17 ecnsrc01 master[16010]: about to exec
/usr/cyrus/bin/lmtpd
Feb 13 14:51:17 ecnsrc01 lmtpunix[16010]: executed
Feb 13 14:51:17 ecnsrc01 lmtpd[16010]: accepted connection
Feb 13 14:51:17 ecnsrc01 lmtpd[16010]: lmtp connection preauth'd as
postman
Feb 13 14:52:22 ecnsrc01 master[15527]: process 16010 exited, status
0

My imapd.conf doesn't contain any parameters having to do with lmtp. 
Here is a copy of my cyrus.conf 
(which I haven't changed):
# standard standalone server implementation

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

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

# UNIX sockets start with a slash and are put into /var/imap/socket
SERVICES {
  # add or remove 

Re: mails to no where

2004-02-17 Thread Cesar Scavuzzo
yes I think you're right there is a lot to learn maybe I just not set
the DNS properly on the IMAP box?
If so could you lead me to where I can find a good howto or something
like that that can help me figure out?  

thanks
cesar

On Tue, 2004-02-17 at 15:55, [EMAIL PROTECTED] wrote:
 Zitat von Cesar Scavuzzo [EMAIL PROTECTED]:
 
  Feb 17 15:20:26 localhost sendmail[7783]: i1HKKP3n007783:
  [EMAIL PROTECTED], size=295, class=0, nrcpts=1,
  msgid=[EMAIL PROTECTED],
  [EMAIL PROTECTED]
  Feb 17 15:20:26 localhost sendmail[7785]: i1HKKQJj007785:
  from=[EMAIL PROTECTED], size=454, class=0, nrcpts=1,
  msgid=[EMAIL PROTECTED], proto=ESMTP,
  daemon=MTA, relay=localhost.localdomain [127.0.0.1]
  Feb 17 15:20:26 localhost sendmail[7783]: i1HKKP3n007783:
  [EMAIL PROTECTED], [EMAIL PROTECTED] (0/0),
  delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30295,
  relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (i1HKKQJj007785
  Message accepted for delivery)
  Feb 17 15:20:26 localhost sendmail[7787]: i1HKKQJj007785:
  to=[EMAIL PROTECTED], delay=00:00:00, xdelay=00:00:00, mailer=esmtp,
  pri=30454, relay=192.168.1.101, dsn=5.1.2, stat=Host unknown (Name
  server: 192.168.1.101: host not found)
  Feb 17 15:20:26 localhost sendmail[7787]: i1HKKQJj007785:
  i1HKKQJj007787: DSN: Host unknown (Name server: 192.168.1.101: host not
  found)
  
  this is what appear on the log from the other box whith local sendmail
 
 Errhmm ...
 Okay. The mail never leave the client machine. Set the relayhost in your
 sendmail config to the IP/name of your IMAP-box. The IMAP-box (with postfix)
 should be configured to accept mail from your local network.
 If you are not sure what i talk about i would recommend to buy a book about mail
  DNS to get a start.
 
 Regards
 
 Andreas
 
 ---
 Home Page: http://asg.web.cmu.edu/cyrus
 Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
 List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

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


mupdate auth configuration

2004-02-17 Thread Prentice Bisbal
Im setting up Cyrus on a SAN where /var/spool/imap is shared via the 
san. I'm using the unified-imap branch as suggested by Ken Murchison. 
Everything seems to be working except mupdate. When I try to create a 
mailbox, I get the following error

localhost.localdomain cm user.prentice
createmailbox: no authentication to server
I suspect it may be a SASL issue. I've tried the mupdate login names 
with and without the domain/realm appended to the username.

The log and config files are below.

Thanks.

Prentice

/var/log/auth.log:
Feb 17 16:53:26 pdb-mail-1 mupdate[13182]: Password verification failed
/var/log/messages:
Feb 17 16:53:26 pdb-mail-1 mupdate[13182]: Password verification failed
Feb 17 16:53:29 pdb-mail-1 mupdate[13182]: badlogin: 128.6.239.23 
[128.6.239.23] PLAIN SASL(-13): user not found: Password verification failed
Feb 17 16:53:29 pdb-mail-1 imap[13192]: authentication to remote mupdate 
server failed:  undefined error!^M
Feb 17 16:53:29 pdb-mail-1 imap[13192]: can not connect to mupdate 
server for reservation on 'user.prentice'

/var/log/imapd.log:
Feb 17 16:53:29 pdb-mail-1 mupdate[13182]: badlogin: 128.6.239.23 
[128.6.239.23] PLAIN SASL(-13): user not found: Password verification failed
Feb 17 16:53:29 pdb-mail-1 mupdate[13182]: Worker thread finished, for a 
total of 10 (10 spare)
Feb 17 16:53:29 pdb-mail-1 imap[13192]: authentication to remote mupdate 
server failed:  undefined error!^M
Feb 17 16:53:29 pdb-mail-1 imap[13192]: can not connect to mupdate 
server for reservation on 'user.prentice'
Feb 17 16:54:26 pdb-mail-1 mupdate[13182]: Thread timed out waiting for 
listener_lock
Feb 17 16:54:26 pdb-mail-1 mupdate[13182]: Worker thread finished, for a 
total of 9 (6 spare)
Feb 17 16:54:26 pdb-mail-1 mupdate[13182]: Thread timed out waiting for 
listener_lock

/etc/imapd.conf:
configdirectory: /var/lib/imap
partition-default: /gpfstest/cyrus/spool/imap
admins: [EMAIL PROTECTED]
sievedir: /gpfstest/cyrus/lib/imap/sieve
sendmail: /usr/sbin/sendmail
hashimapspool: true
sasl_pwcheck_method: auxprop
#sasl_pwcheck_method: saslauthd
sasl_mech_list: PLAIN
tls_cert_file: /usr/share/ssl/certs/cyrus-imapd.pem
tls_key_file: /usr/share/ssl/certs/cyrus-imapd.pem
tls_ca_file: /usr/share/ssl/certs/ca-bundle.crt
mupdate_config: replicated
mupdate_server: 128.6.239.23
mupdate_username: mupdater
mupdate_authname: mupdater
mupdate_password: MUPDATER
mupdate_realm: rcsb.rutgers.edu
proxyservers: murder
proxy_authname: murder
proxy_password: redrum
defaultdomain: rcsb.rutgers.edu
/etc/cyrus.conf

# standard standalone server implementation

START {
  # do not delete this entry!
  recover   cmd=ctl_cyrusdb -r
  # this is only necessary if using idled for IMAP IDLE
#  idledcmd=idled
}
# UNIX sockets start with a slash and are put into /var/lib/imap/sockets
SERVICES {
  # add or remove based on preferences
  mupdate   cmd=/usr/local/cyrus/bin/mupdate -m listen=3905 prefork=1
  imap  cmd=imapd listen=imap prefork=5
  imaps cmd=imapd -s listen=imaps prefork=1
#  pop3 cmd=pop3d listen=pop3 prefork=3
#  pop3scmd=pop3d -s listen=pop3s prefork=1
  sieve cmd=timsieved listen=sieve prefork=0
  # these are only necessary if receiving/exporting usenet via NNTP
#  nntp cmd=nntpd listen=nntp prefork=3
#  nntpscmd=nntpd -s listen=nntps prefork=1
  # 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=1
  # this is only necessary if using notifications
#  notify   cmd=notifyd listen=/var/lib/imap/socket/notify 
proto=udp prefork=1
}

EVENTS {
  # this is required
  checkpointcmd=ctl_cyrusdb -c period=30
  # this is only necessary if using duplicate delivery suppression,
  # Sieve or NNTP
  delprune  cmd=cyr_expire -E 3 at=0400
  # this is only necessary if caching TLS sessions
  tlsprune  cmd=tls_prune at=0400
}




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


Re: Invalid mailbox name?

2004-02-17 Thread Mike O'Rourke
 trichard [EMAIL PROTECTED] 02/17/04 10:18pm 
I feel like I am getting pretty close to having this work.  I've been
stuck for awhile on this one issue and I cannot find documentation to
troubleshoot mailboxes and mail client access properly.

I can authenticate to the server using a mail client now.  However,
when
trying to read the inbox it fails with the following message:

The current command did not succeed.  The mail server responded:
Invalid
mailbox name.

I feel I am missing something minor because the mailbox was created:

[EMAIL PROTECTED] test]# pwd
/var/spool/imap/user/test
[EMAIL PROTECTED] test]# ls -latr
total 20
-rw---1 cyrusmail   76 Feb 17 09:16 cyrus.index
-rw---1 cyrusmail4 Feb 17 09:16 cyrus.cache
drwx--3 cyrusmail 4096 Feb 17 09:16 ..
-rw---1 cyrusmail  159 Feb 17 09:16 cyrus.header
drwx--2 cyrusmail 4096 Feb 17 10:15 .

[EMAIL PROTECTED] test]# cyradm -u cyrus -s post
Password:
post.mydomain.com lm
user.test (\HasNoChildren)

post.mydomain.com sasldblistusers2
[EMAIL PROTECTED]: userPassword
[EMAIL PROTECTED]: userPassword

What am I doing wrong?  Maybe some setting in the client perhaps?

Thanks,
-t

Hi t,

What is unixhierarchysep set to in /etc/imapd.conf? I assume that you
are not using virutal domains. What version of cyrus-imapd are you
using?

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


Re: Help moving/updating Cyrus installation

2004-02-17 Thread Edward Rudd
You have encountered the famed DB4 and NPTL bug.  Goto
http://www.invoca.ch/pub/packages/cyrus-imapd/ and download the updated
db4.spec for fedora core 1 and recompile.

On Sun, 2004-02-15 at 10:36, Ruth Ivimey-Cook wrote:
 Hi folks,
 
 I hope this case isn't a 'told you so', but I have a bit of a problem...
 
 Summary: I want to get imap running again, but it refuses to read my bdb
 (version 3) databases. How to I recover?
 
 I have been using Cyrus IMAPd 2.1.16 on a RH9 Linux server successfully
 for some time now. I decided I should upgrade the server OS to Fedora
 Core 1.  I took a binary (tar-file) backup of the imap data, which I
 store on its own ext3 disk called /imap, along with other tar backups of
 other parts of the system. The OS install seems to have gone well,
 except that cyrus failed to start up, with errors like this:
 
 
 23:09:26 master[]: setrlimit: Unable to set file descriptors limit to -1: 
 Operation not permitted
 23:09:26 master[]: retrying with 1024 (current max)
 23:09:26 master[]: process started
 23:09:26 master[1132]: about to exec /usr/cyrus/bin/ctl_cyrusdb
 23:09:27 ctl_cyrusdb[1132]: recovering cyrus databases
 23:09:27 ctl_cyrusdb[1132]: DBERROR db4: write: 0xbfffcf80, 8192: Invalid argument
 23:09:27 ctl_cyrusdb[1132]: DBERROR: dbenv-open '/imap/conf/db' failed: Invalid 
 argument
 23:09:27 ctl_cyrusdb[1132]: DBERROR: init /imap/conf/db: cyrusdb error
 23:09:27 ctl_cyrusdb[1132]: DBERROR db4: environment not yet opened
 23:09:27 ctl_cyrusdb[1132]: DBERROR: opening /imap/conf/mailboxes.db: Invalid 
 argument
 23:09:27 ctl_cyrusdb[1132]: DBERROR: opening /imap/conf/mailboxes.db: cyrusdb error
 23:09:27 master[]: process 1132 exited, status 75 
 23:09:27 master[]: no service 'sieve' in /etc/services, disabling sieve
 23:09:27 master[]: no service 'lmtp' in /etc/services, disabling lmtp
 23:09:27 master[]: ready for work
 23:09:27 master[1133]: about to exec /usr/cyrus/bin/tls_prune
 23:09:27 master[1134]: about to exec /usr/cyrus/bin/ctl_deliver
 23:09:27 master[1135]: about to exec /usr/cyrus/bin/ctl_cyrusdb
 23:09:27 ctl_cyrusdb[1135]: checkpointing cyrus databases
 23:09:45 ctl_cyrusdb[1135]: DBERROR db4: unable to join the environment
 23:09:45 ctl_cyrusdb[1135]: DBERROR: dbenv-open '/imap/conf/db' failed: Resource 
 temporarily unavailable
 23:09:45 ctl_cyrusdb[1135]: DBERROR: init /imap/conf/db: cyrusdb error
 23:09:45 ctl_cyrusdb[1135]: done checkpointing cyrus databases
 
 So I thought oh no!
 
 Several hours later and after recompiling both imapd again (no luck) and
 switching from the RH kernel 2.4.22 with nptl to a standard kernel.org
 2.4.24 kernel, and it still wasn't working.
 
 Note that I hadn't changed the cyrus code at all: it was the same code
 running against the same databases, and invoking the same copy of
 db4 4.1.25 (self-compiled with no threading).
 
 I eventually gave up and my email is now (i hope temporarily) back on
 the old /var/mail delivery :-(
 
 Things I can do: db_dump on the mailboxes.db file produces what
looks like a valid dump.
 
 Things I can't do: any operation involving reading the database.
  [including cvt_mmboxlist using either the old or
new executables]
 
 I have now created a build of 2.2.3, partly in the hope that it works
 better, and also because I want to get away from bdb: it has caused lots
 of hassle in the past. Running apps from that release doesn't help me,
 however. In the hope it's useful, I have included the non-data part of
 the db_dump -da output here, with my /etc/imap.conf file after it:
 
 In-memory DB structure:
 btree: 0x48000 (DB-open called, read-only)
 bt_meta: 0 bt_root: 1
 bt_maxkey: 0 bt_minkey: 2
 bt_compare: 0x400258ac bt_prefix: 0x4002590c
 bt_lpgno: 0
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 page 0: btree metadata level: 0 (lsn.file: 7 lsn.offset: 7784517)
   magic: 0x53162
   version: 8
   pagesize: 4096
   type: 9
   keys: 0 records: 0
   free list: 0
   last_pgno: 3
   flags: 0
   uid: 83 fe 0 0 42 3 0 0 48 f2 52 3d 37 3d 0 0 0 0 0 0
   maxkey: 0 minkey: 2
   root: 1
 page 1: btree internal level: 2 records: 0 (lsn.file: 7 lsn.offset: 7788837)
   entries:2 offset: 4044
   [000] 4084 count:0 pgno:2 type:1len:   0
   [001] 4044 count:0 pgno:3 type:1len:  28 data: 
 user.ruthc.Lists.F2S...
 page 2: btree leaf level: 1 (lsn.file: 7 lsn.offset: 7849118)
   prev:0 next:3 entries:   70 offset: 2044
   [000] 4080 len:  11 data: Junk E-mail
   [001] 4056 len:  21 data: 0 default anyone0x09rwi...
   [002] 4044 len:   8 data: user.cbs
   [003] 4004 len:  34 data: 0 default cbs0x09lrswip...
   [004] 3984 len:  14 data: user.cbs.Admin
   [005] 3944 len:  34 data: 0 default cbs0x09lrswip...
 ..snip...
   [060] 2296 len:  22 data: user.ruthc.wotug-ctt...
   [061] 2264 len:  26 data: 0 default 

Re: mails to no where

2004-02-17 Thread Cesar Scavuzzo
I did what you suggested now the log file from the send mail look like
this:

Feb 17 17:09:34 localhost sendmail[7744]: i1HM9YoH007744:
[EMAIL PROTECTED], size=314, class=0, nrcpts=1,
msgid=[EMAIL PROTECTED],
[EMAIL PROTECTED]
Feb 17 17:09:34 localhost sendmail[7746]: i1HM9YHI007746:
from=[EMAIL PROTECTED], size=475, class=0, nrcpts=1,
msgid=[EMAIL PROTECTED], proto=ESMTP,
daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Feb 17 17:09:34 localhost sendmail[7744]: i1HM9YoH007744:
[EMAIL PROTECTED], [EMAIL PROTECTED] (0/0),
delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30314,
relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (i1HM9YHI007746
Message accepted for delivery)
Feb 17 17:09:34 localhost sendmail[7748]: i1HM9YHI007746:
to=[EMAIL PROTECTED], delay=00:00:00, xdelay=00:00:00,
mailer=esmtp, pri=30475, relay=[192.168.1.101] [192.168.1.101],
dsn=2.0.0, stat=Sent (Ok: queued as E02537413A)

it means that the mail was send?

but nothing on the inbox in the imap account


On Tue, 2004-02-17 at 16:31, Mike O'Rourke wrote:
  Lindner [EMAIL PROTECTED] 02/17/04 09:49pm 
 Cesar Scavuzzo wrote:
 
 Feb 17 15:20:26 localhost sendmail[7783]: i1HKKP3n007783:
 [EMAIL PROTECTED], size=295, class=0, nrcpts=1,
 msgid=[EMAIL PROTECTED],
 [EMAIL PROTECTED]
 Feb 17 15:20:26 localhost sendmail[7785]: i1HKKQJj007785:
 from=[EMAIL PROTECTED], size=454, class=0, nrcpts=1,
 msgid=[EMAIL PROTECTED], proto=ESMTP,
 daemon=MTA, relay=localhost.localdomain [127.0.0.1]
 Feb 17 15:20:26 localhost sendmail[7783]: i1HKKP3n007783:
 [EMAIL PROTECTED], [EMAIL PROTECTED] (0/0),
 delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30295,
 relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (i1HKKQJj007785
 Message accepted for delivery)
 Feb 17 15:20:26 localhost sendmail[7787]: i1HKKQJj007785:
 to=[EMAIL PROTECTED], delay=00:00:00, xdelay=00:00:00,
 mailer=esmtp,
 pri=30454, relay=192.168.1.101, dsn=5.1.2, stat=Host unknown (Name
 server: 192.168.1.101: host not found)
 Feb 17 15:20:26 localhost sendmail[7787]: i1HKKQJj007785:
 i1HKKQJj007787: DSN: Host unknown (Name server: 192.168.1.101: host
 not
 found)
 
 this is what appear on the log from the other box whith local
 sendmail
 
 
 The message is bounced because the recipient ([EMAIL PROTECTED])
 could 
 not be found. Your mail server treats 192.168.1.101 as DNS name and
 
 not as a IP (Name server: 192.168.1.101: host not
 found).
 Did you set myhostname=192.168.1.101 in postfix main.cf ?
 
 Marek
 
 No, the message bounced because sendmail could not find the host's MX
 record.
 
 Try sending to [EMAIL PROTECTED]. The [] tell sendmail to send
 it directly to the host without any DNS lookups. If this works, you just
 need to give the host a hostname, or use the mailertable feature in
 sendmail and make the following entry in your mailertable:
 192.168.1.101esmtp:[192.168.1.101]
 
 Mike.
 ---
 Home Page: http://asg.web.cmu.edu/cyrus
 Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
 List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

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


Re: mails to no where

2004-02-17 Thread lst_hoe01
Zitat von Cesar Scavuzzo [EMAIL PROTECTED]:

 I think you mean this, 
 
 
 Feb 17 13:50:56 serverlnx postfix/smtpd[2799]: connect from
 unknown[192.168.1.97]
 Feb 17 13:50:56 serverlnx postfix/smtpd[2799]: DFC447413A:
 client=unknown[192.168.1.97]
 Feb 17 13:50:57 serverlnx postfix/cleanup[2801]: DFC447413A:
 message-id=[EMAIL PROTECTED]
 Feb 17 13:50:57 serverlnx postfix/smtpd[2799]: disconnect from
 unknown[192.168.1.97]
 Feb 17 13:50:57 serverlnx postfix/qmgr[2295]: DFC447413A:
 from=[EMAIL PROTECTED], size=479, nrcpt=1 (queue active)
 Feb 17 13:50:57 serverlnx postfix/smtpd[2799]: connect from
 unknown[192.168.1.101]
 Feb 17 13:50:57 serverlnx postfix/smtp[2803]: warning: host
 192.168.1.101[192.168.1.101] greeted me with my own hostname serverlnx
 Feb 17 13:50:57 serverlnx postfix/smtp[2803]: warning: host
 192.168.1.101[192.168.1.101] replied to HELO/EHLO with my own hostname
 serverlnx
 Feb 17 13:50:57 serverlnx postfix/smtp[2803]: DFC447413A:
 to=[EMAIL PROTECTED], relay=192.168.1.101[192.168.1.101], delay=1,
 status=bounced (mail for 192.168.1.101 loops back to myself)

Okay. First fix the IMAP/Postfix box. To do this you need the following steps :

- a working DNS to at least resolv your local hostname and localhost

- correct settings of mydestination in main.cf (localhost, $myhostname,
$mydomain)

- mailbox_transport = cyrus in main.cf

This should clear up part of the mess. I recommend you search for the DNS-howto
on google, buy a book about postfix and MTA basics. You can also have a look at
http://www.delouw.ch/linux/Postfix-Cyrus-Web-cyradm-HOWTO/Postfix-Cyrus-Web-cyradm-HOWTO.pdf
and omit the part with mysql and virtual domains for the start.

Regards

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


Re: Invalid mailbox name?

2004-02-17 Thread Mike O'Rourke
 trichard [EMAIL PROTECTED] 02/17/04 10:18pm 
I feel like I am getting pretty close to having this work.  I've
been
stuck for awhile on this one issue and I cannot find documentation
to
troubleshoot mailboxes and mail client access properly.

I can authenticate to the server using a mail client now.  However,
when
trying to read the inbox it fails with the following message:

The current command did not succeed.  The mail server responded:
Invalid
mailbox name.

I feel I am missing something minor because the mailbox was created:

[EMAIL PROTECTED] test]# pwd
/var/spool/imap/user/test
[EMAIL PROTECTED] test]# ls -latr
total 20
-rw---1 cyrusmail   76 Feb 17 09:16 cyrus.index
-rw---1 cyrusmail4 Feb 17 09:16 cyrus.cache
drwx--3 cyrusmail 4096 Feb 17 09:16 ..
-rw---1 cyrusmail  159 Feb 17 09:16 cyrus.header
drwx--2 cyrusmail 4096 Feb 17 10:15 .

[EMAIL PROTECTED] test]# cyradm -u cyrus -s post
Password:
post.mydomain.com lm
user.test (\HasNoChildren)

post.mydomain.com sasldblistusers2
[EMAIL PROTECTED]: userPassword
[EMAIL PROTECTED]: userPassword

What am I doing wrong?  Maybe some setting in the client perhaps?

Thanks,
-t

Hi Mike,

Well, I don't have unixhierarchsep in there at all.  I assume that is

what is causing me grief?

Here is my imapd.conf file:

configdirectory: /var/imap
partition-default: /var/spool/imap
admins: cyrus root
allowanonymouslogin: no
sasl_pwcheck_method: auxprop
tls_cert_file: /var/imap/server.pem
tls_key_file: /var/imap/server.pem
tls_session_timeout: 0

It's my first time setting up cyrus-imapd so I apologize if I missed 
something obvious.

-trichard

Hi trichard,

try this:
imtest -u test -a test -t '' localhost
(after the -t those are 2 single-quotes.)

At the end of a lot of diagnostics, it should ask for your password.
type it in and hit ENTER. If it says Authenticated, you are
connected and in; if, on the other hand, it says No Authentication
failed, you are not. If you did not authenticate, hit CTRL-D and add
-m plain to the command above bofore localhost and try again.

If you do authenticate, (there is no prompt, the imapd just waits)
type:
A01 select inbox

This should return characteristics about the inbox.

If you are not able to authenticate, put the following line in your
/etc/imapd.conf after sasl_pwcheck_method:
sasl_auxprop_plugin: sasldb

and try again.

Let me know what it says.

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


Re: mails to no where

2004-02-17 Thread Lindner
Cesar Scavuzzo wrote:

I did what you suggested now the log file from the send mail look like
this:
Feb 17 17:09:34 localhost sendmail[7744]: i1HM9YoH007744:
[EMAIL PROTECTED], size=314, class=0, nrcpts=1,
msgid=[EMAIL PROTECTED],
[EMAIL PROTECTED]
Feb 17 17:09:34 localhost sendmail[7746]: i1HM9YHI007746:
from=[EMAIL PROTECTED], size=475, class=0, nrcpts=1,
msgid=[EMAIL PROTECTED], proto=ESMTP,
daemon=MTA, relay=localhost.localdomain [127.0.0.1]
Feb 17 17:09:34 localhost sendmail[7744]: i1HM9YoH007744:
[EMAIL PROTECTED], [EMAIL PROTECTED] (0/0),
delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30314,
relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (i1HM9YHI007746
Message accepted for delivery)
Feb 17 17:09:34 localhost sendmail[7748]: i1HM9YHI007746:
to=[EMAIL PROTECTED], delay=00:00:00, xdelay=00:00:00,
mailer=esmtp, pri=30475, relay=[192.168.1.101] [192.168.1.101],
dsn=2.0.0, stat=Sent (Ok: queued as E02537413A)
it means that the mail was send?
 

Yes.
Now, you should have look in the mail logs of 192.168.1.101 to find out 
what happened to the mail.

Marek

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


Re: Invalid mailbox name?

2004-02-17 Thread trichard
Thanks Mike...Results inline below:

Mike O'Rourke wrote:
try this:
imtest -u test -a test -t '' localhost
(after the -t those are 2 single-quotes.)
At the end of a lot of diagnostics, it should ask for your password.
type it in and hit ENTER. If it says Authenticated, you are
connected and in;
[EMAIL PROTECTED] root]# imtest -u test -a test -t '' localhost
S: * OK post.domain.com Cyrus IMAP4 v2.2.3 server ready
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS 
NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND 
BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE 
STARTTLS AUTH=GSSAPI AUTH=DIGEST-MD5 AUTH=CRAM-MD5 SASL-IR
S: C01 OK Completed
C: S01 STARTTLS
S: S01 OK Begin TLS negotiation now
verify error:num=18:self signed certificate
TLS connection established: TLSv1 with cipher DES-CBC3-SHA (168/168 bits)
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS 
NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND 
BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE 
AUTH=GSSAPI AUTH=PLAIN AUTH=LOGIN AUTH=DIGEST-MD5 AUTH=CRAM-MD5 SASL-IR
S: C01 OK Completed
Authentication failed. generic failure
Security strength factor: 168


on the other hand, it says No Authentication
failed, you are not. If you did not authenticate, hit CTRL-D and add
-m plain to the command above bofore localhost and try again.
[EMAIL PROTECTED] root]# imtest -u test -a test -t '' -m plain localhost
S: * OK post.domain.com Cyrus IMAP4 v2.2.3 server ready
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS 
NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND 
BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE 
STARTTLS AUTH=GSSAPI AUTH=DIGEST-MD5 AUTH=CRAM-MD5 SASL-IR
S: C01 OK Completed
C: S01 STARTTLS
S: S01 OK Begin TLS negotiation now
verify error:num=18:self signed certificate
TLS connection established: TLSv1 with cipher DES-CBC3-SHA (168/168 bits)
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS 
NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND 
BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE 
AUTH=GSSAPI AUTH=PLAIN AUTH=LOGIN AUTH=DIGEST-MD5 AUTH=CRAM-MD5 SASL-IR
S: C01 OK Completed
Please enter your password:
C: A01 AUTHENTICATE PLAIN dGVzdAB0ZXN0AHRlc3QxMjM=
S: A01 NO user not found
Authentication failed. generic failure
Security strength factor: 168

If you are not able to authenticate, put the following line in your
/etc/imapd.conf after sasl_pwcheck_method:
sasl_auxprop_plugin: sasldb
and try again.
Let me know what it says.
/ETC/IMAPD.CONF
-
configdirectory: /var/imap
partition-default: /var/spool/imap
admins: cyrus root
allowanonymouslogin: no
sasl_pwcheck_method: auxprop
sasl_auxprop_plugin: sasldb
tls_cert_file: /var/imap/server.pem
tls_key_file: /var/imap/server.pem
tls_session_timeout: 0


[EMAIL PROTECTED] root]# imtest -u test -a test -t '' localhost
S: * OK post.domain.com Cyrus IMAP4 v2.2.3 server ready
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS 
NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND 
BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE 
STARTTLS AUTH=GSSAPI AUTH=DIGEST-MD5 AUTH=CRAM-MD5 SASL-IR
S: C01 OK Completed
C: S01 STARTTLS
S: S01 OK Begin TLS negotiation now
verify error:num=18:self signed certificate
TLS connection established: TLSv1 with cipher DES-CBC3-SHA (168/168 bits)
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS 
NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND 
BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE 
AUTH=GSSAPI AUTH=PLAIN AUTH=LOGIN AUTH=DIGEST-MD5 AUTH=CRAM-MD5 SASL-IR
S: C01 OK Completed
Authentication failed. generic failure
Security strength factor: 168



[EMAIL PROTECTED] root]# imtest -u test -a test -t '' -m plain localhost
S: * OK post.domain.com Cyrus IMAP4 v2.2.3 server ready
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS 
NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND 
BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE 
STARTTLS AUTH=GSSAPI AUTH=DIGEST-MD5 AUTH=CRAM-MD5 SASL-IR
S: C01 OK Completed
C: S01 STARTTLS
S: S01 OK Begin TLS negotiation now
verify error:num=18:self signed certificate
TLS connection established: TLSv1 with cipher DES-CBC3-SHA (168/168 bits)
C: C01 CAPABILITY
S: * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ MAILBOX-REFERRALS 
NAMESPACE UIDPLUS ID NO_ATOMIC_RENAME UNSELECT CHILDREN MULTIAPPEND 
BINARY SORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ANNOTATEMORE IDLE 
AUTH=GSSAPI AUTH=PLAIN AUTH=LOGIN AUTH=DIGEST-MD5 AUTH=CRAM-MD5 SASL-IR
S: C01 OK 

lmtp error, not found.

2004-02-17 Thread Anders Norrbring
I'm trying deperately to put Postfix, Cyrus-IMAP, Web-Cyradm and MySQL to work, but
continously get lmtp errors in the logs.  Can somebody please point me to where I 
should
look?

/etc/cyrus.conf:
  lmtpunix  cmd=lmtpd listen=/var/imap/socket/lmtp prefork=0

/etc/postfix/master.cf:
  lmtp  unix-   -   n   -   -   lmtp
  cyrus unix-   n   n   -   -   pipe
  flags= user=cyrus argv=/usr/lib/cyrus/bin/deliver -r ${sender} -m ${extension} 
${user}

/etc/postfix/main.cf:
  mailbox_transport = cyrus

imap.log:
  Feb 18 02:48:45 hulda ctl_cyrusdb[547]: archiving log file:
/var/lib/imap/db/log.01
  Feb 18 02:48:45 hulda ctl_deliver[548]: DBERROR db4: 4 lockers
  Feb 18 02:48:45 hulda ctl_deliver[548]: duplicate_prune: pruning back 3 days
  Feb 18 02:48:45 hulda ctl_cyrusdb[547]: archiving database file: 
/var/lib/imap/mailboxes.db
  Feb 18 02:48:45 hulda ctl_deliver[548]: duplicate_prune: purged 0 out of 0 entries
  Feb 18 02:48:45 hulda ctl_cyrusdb[547]: done checkpointing cyrus databases
  Feb 18 02:48:45 hulda master[480]: process 547 exited, status 0
  Feb 18 02:48:45 hulda tls_prune[549]: tls_prune: purged 0 out of 0 entries
  Feb 18 02:48:46 hulda master[480]: process 549 exited, status 0
  Feb 18 02:48:46 hulda master[480]: process 548 exited, status 0
  Feb 18 02:49:01 hulda deliver[901]: connect(/var/lib/imap/socket/lmtp) failed: No 
such
file or directory

warn.log:
  Feb 18 02:48:45 hulda master[480]: unable to bind lmtpunix socket: No such file or
directory
  Feb 18 02:48:45 hulda ctl_deliver[548]: DBERROR db4: 4 lockers
  Feb 18 02:49:01 hulda deliver[901]: connect(/var/lib/imap/socket/lmtp) failed: No 
such
file or directory

mail.log:
  Feb 18 02:49:00 hulda postfix/postfix-script: starting the Postfix mail system
  Feb 18 02:49:00 hulda postfix/master[874]: daemon started -- version 2.0.18
  Feb 18 02:49:01 hulda postfix/qmgr[882]: 68F266F3: from=[EMAIL PROTECTED], 
size=1579, nrcpt=1 (queue active)
  Feb 18 02:49:02 hulda postfix/pipe[900]: 68F266F3: to=[EMAIL PROTECTED], 
orig_to=root, relay=cyrus, delay=4292, status=deferred (temporary failure. 
Command 
output: couldn't connect to lmtpd: No such file or directory_ 421 4.3.0 deliver: 
couldn't connect to lmtpd_ )


When I do a 'locate lmtp' I get this:
  hulda:~ # locate lmtp
  /usr/bin/lmtptest
  /usr/lib/cyrus/bin/lmtpd
  /usr/lib/cyrus/bin/lmtpproxyd
  /usr/lib/postfix/lmtp


Thank you for your time!

Anders Norrbring


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


Re: Help moving/updating Cyrus installation

2004-02-17 Thread Craig Ringer
On Mon, 2004-02-16 at 00:36, Ruth Ivimey-Cook wrote:

 Summary: I want to get imap running again, but it refuses to read my bdb
 (version 3) databases. How to I recover?

If you still have access to the original host, you can dump them using
Cyrus tools (most importantly `ctl_mboxlist -d` for mailboxes) then
re-load them into the new system.

If not... well, try installing bdb3 in /usr/local/bdb3, building Cyrus
against that, and using the tools from that Cyrus build to dump your
databases. You can then rebuild cyrus against the system bdb4 (or just
use skiplist with Cyrus 2.2.x) and import your databases from plain
text.

As Edward Rudd noticed, you may also be encountering a fun threading
issue with bdb4 and cyrus.

Craig Ringer

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


Re: Invalid mailbox name?

2004-02-17 Thread Craig Ringer
On Wed, 2004-02-18 at 05:18, trichard wrote:
 I can authenticate to the server using a mail client now.  However, when
 trying to read the inbox it fails with the following message:
 
 The current command did not succeed.  The mail server responded: Invalid
 mailbox name.

(just a few guesses, really):

Perhaps your IMAP prefix in the client isn't set correctly? Most figure
it out correctly by themselves, but if you've manually set it it could
be incorrect.

Also - are you using virtual domains? I don't use them myself, but from
list traffic it looks like mailboxes in virtual domains must be named
differently.

Try using imtest to thrash things out, and only once that works try a
normal mail client.

Craig Ringer

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


Re: mails to no where

2004-02-17 Thread Simon Matter
 Zitat von Cesar Scavuzzo [EMAIL PROTECTED]:

 I think you mean this,


 Feb 17 13:50:56 serverlnx postfix/smtpd[2799]: connect from
 unknown[192.168.1.97]
 Feb 17 13:50:56 serverlnx postfix/smtpd[2799]: DFC447413A:
 client=unknown[192.168.1.97]
 Feb 17 13:50:57 serverlnx postfix/cleanup[2801]: DFC447413A:
 message-id=[EMAIL PROTECTED]
 Feb 17 13:50:57 serverlnx postfix/smtpd[2799]: disconnect from
 unknown[192.168.1.97]
 Feb 17 13:50:57 serverlnx postfix/qmgr[2295]: DFC447413A:
 from=[EMAIL PROTECTED], size=479, nrcpt=1 (queue active)
 Feb 17 13:50:57 serverlnx postfix/smtpd[2799]: connect from
 unknown[192.168.1.101]
 Feb 17 13:50:57 serverlnx postfix/smtp[2803]: warning: host
 192.168.1.101[192.168.1.101] greeted me with my own hostname serverlnx
 Feb 17 13:50:57 serverlnx postfix/smtp[2803]: warning: host
 192.168.1.101[192.168.1.101] replied to HELO/EHLO with my own hostname
 serverlnx
 Feb 17 13:50:57 serverlnx postfix/smtp[2803]: DFC447413A:
 to=[EMAIL PROTECTED], relay=192.168.1.101[192.168.1.101], delay=1,
 status=bounced (mail for 192.168.1.101 loops back to myself)

 Okay. First fix the IMAP/Postfix box. To do this you need the following
 steps :

 - a working DNS to at least resolv your local hostname and localhost

For the beginning, just make sure that you have a fully qualified hostname
in /etc/sysconfig/network, like

HOSTNAME=myhost.domain.tld

and add apporpriate entries to /etc/hosts, like
127.0.0.1localhost.localdomain localhost
xx.xx.xx.xx  myhost.domain.tld


 - correct settings of mydestination in main.cf (localhost, $myhostname,
 $mydomain)

This should be okay with the default config, if you have set the hostname
correctly.


 - mailbox_transport = cyrus in main.cf

Please NO!
Transport 'cyrus' is deprecated with cyrus-imapd 2.x. Use LMTP for local
delivery, like

mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp

HTH
Simon


 This should clear up part of the mess. I recommend you search for the
 DNS-howto
 on google, buy a book about postfix and MTA basics. You can also have a
 look at
 http://www.delouw.ch/linux/Postfix-Cyrus-Web-cyradm-HOWTO/Postfix-Cyrus-Web-cyradm-HOWTO.pdf
 and omit the part with mysql and virtual domains for the start.

 Regards

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



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


Re: Help moving/updating Cyrus installation

2004-02-17 Thread Ruth Ivimey-Cook
On Tue, 17 Feb 2004, Edward Rudd wrote:

You have encountered the famed DB4 and NPTL bug.  Goto
http://www.invoca.ch/pub/packages/cyrus-imapd/ and download the updated
db4.spec for fedora core 1 and recompile.

Given I'd like to stay running a non-FC kernel (2.4.24), does this change
anything?

Ruth

-- 
Ruth Ivimey-Cook
Software engineer and technical writer.
---
Home Page: http://asg.web.cmu.edu/cyrus
Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html