Sieve script ... not working?

2001-06-06 Thread The Hermit Hacker


Is there anything obviously with the following sieve script?  Its not
filtering, its all still being dumped to the mailbox :(

-
require "discard";

if header :contains "Subject" "Delivery failure" {
discard;
} elsif header :contains "Subject" "Postmaster notify: see transcript for details" {
discard;
} elsif header :contains "Subject" "Automatic Reply:" {
discard;
} elsif header :contains "Subject" "Returned mail:" {
discard;
} elsif header :contains "Subject" "Mail System Error" {
discard;
}
--

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org




Re: pam_mysql

2001-05-10 Thread The Hermit Hacker

On Thu, 10 May 2001, Nuno Silva wrote:

>
> I'm sorry if i wasn't 100% clean on the subject.
> The point is that - in un*x - usernames starting with anything else than
> a letter [a-z] will not work properly.

not true here either ... the University that I work at, since before I
ever got there, has assigned students userids of 6 numerics followed by
one character ... first time they had a problem with that was when I moved
them to Cyrus IMAPd ... all servers ran on Solaris then, and we've been
moving to FreeBSD recently ... haven't hit any problems yet ...

I ended up modifying Cyrus IMAPd at that time so that it check for at
least one character character in the userid, instead of if the first
character is a character ...




Re: pam_mysql

2001-05-10 Thread The Hermit Hacker


This one I love ... someone arguing a point that, if adhered to by one
piece of software, would make it totally incompatible with those other
pieces of software that you are tryign to interact with ...

pam_ should not be setting the rules as to what is or is not
acceptable, the authentication server itself should be the one preventing
such from being created int he first place 

On Thu, 10 May 2001, Nuno Silva wrote:

>
> I'm not sure if that's the problem but POSIX doesn't let you have users
> starting with a number. That's the diference between a user *name* and a
> uid - user id -, the uid always starts with a number!
>
> If pam_smb wants to be POSIX complaint this usernames won't be permitted :)
>
> Try to login as 0 (zero) and give as password the root password (user
> root must exist in the PDC/windows box).
>
> Just my $0.02,
> Nuno Silva
>
> Nick Ustinov wrote:
>
> > is there anyone using pam_mysql for auth? it seems to not accept usernames
> > consisting only of numerals. Let's say there is a user 00100 and then when I
> > try to do auth it just dies and that's it. Can it possibly be because of
> > sprinf it is using has %s ? I am not into C much. Could anyone test that
> > please?
> >
> > Nick Ustinov
> >
> > [EMAIL PROTECTED]
> > http://www.videinfra.com
> >
> >
>
>
>

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org




Re: PAM authentication does not work with latest .tar.gz files ...

2001-05-07 Thread The Hermit Hacker

On Tue, 8 May 2001, Hajimu UMEMOTO wrote:

> >>>>> On Mon, 7 May 2001 16:33:46 -0300 (ADT)
> >>>>> The Hermit Hacker <[EMAIL PROTECTED]> said:
>
> scrappy> On Tue, 8 May 2001, Hajimu UMEMOTO wrote:
>
> > >>>>> On Mon, 7 May 2001 13:37:42 -0300 (ADT)
> > >>>>> "Marc G. Fournier" <[EMAIL PROTECTED]> said:
> >
> > marc.fournier> If I do an 'saslpasswd -d marc' to remove myself from the sasldb 
>file,
> > marc.fournier> then try and re-connect with pine, I get the following error:
> >
> > marc.fournier> May  7 13:21:00 new-relay imapd[66067]: badlogin: 
>atelier.acadiau.ca[131.162.138.223] CRAM-MD5 authentication failure [no secret in 
>database]
> >
> >   I believe CRAM-MD5 authentication requires sasldb.  You need to
> > change pine setting to use plain password.
>
> scrappy> Any idea how?
>
> Though I have no experience with pine, doesn't pine have the
> configuration for the authentication method?  LOGIN should work.

you are correct ... they have a 'disable method' feature, which will do it
... thanks ...





Re: PAM authentication does not work with latest .tar.gz files ...

2001-05-07 Thread The Hermit Hacker

On Tue, 8 May 2001, Hajimu UMEMOTO wrote:

> > On Mon, 7 May 2001 13:37:42 -0300 (ADT)
> > "Marc G. Fournier" <[EMAIL PROTECTED]> said:
>
> marc.fournier> If I do an 'saslpasswd -d marc' to remove myself from the sasldb file,
> marc.fournier> then try and re-connect with pine, I get the following error:
>
> marc.fournier> May  7 13:21:00 new-relay imapd[66067]: badlogin: 
>atelier.acadiau.ca[131.162.138.223] CRAM-MD5 authentication failure [no secret in 
>database]
>
>   I believe CRAM-MD5 authentication requires sasldb.  You need to
> change pine setting to use plain password.

Any idea how?




Re: PAM authentication does not work with latest .tar.gz files ...

2001-05-07 Thread The Hermit Hacker

On Mon, 7 May 2001 [EMAIL PROTECTED] wrote:

> Larry Greenfield writes:
> >
> >However, since there's no secret for the user "marc" in /etc/sasldb,
> >Pine can't use CRAM-MD5.
>
> This is a generic problem with c-client.  If the server advertizes
> CRAM-MD5, the client will try only CRAM-MD5, and will not fall back
> to less secure authentication methods.  The author states that this
> is correct behavior.

My experience with 'the author' is that anything he does is right,
everyone else is wrong :(  That's why I use  Cyrus IMAPd vs UofW ... but,
pine is, so far as I've experienced, one of the better command line
readers, and c-client is used in a fair number of other mailers :(





Re: PAM authentication does not work with latest .tar.gz files ...

2001-05-07 Thread The Hermit Hacker

On Mon, 7 May 2001, Lawrence Greenfield wrote:

>Date: Mon, 7 May 2001 13:37:42 -0300 (ADT)
>From: "Marc G. Fournier" <[EMAIL PROTECTED]>
>
> [...]
>If I do an 'saslpasswd -d marc' to remove myself from the sasldb file,
>then try and re-connect with pine, I get the following error:
>
>May  7 13:21:00 new-relay imapd[66067]: badlogin: 
>atelier.acadiau.ca[131.162.138.223] CRAM-MD5 authentication failure [no secret in 
>database]
>
> Cyrus is advertising CRAM-MD5, which always uses /etc/sasldb, because
> the file exists.
>
> However, since there's no secret for the user "marc" in /etc/sasldb,
> Pine can't use CRAM-MD5.
>
> Either remove the CRAM-MD5 plugin, remove /etc/sasldb, or configure
> Pine to not use CRAM-MD5.

Woo hoo ... got one of the other guys to try it using kmail, and it
appears to go to PAM (auth still fails, but at least now I know its going
there) ...

Has anyone here had any experience with pam_smb for authenticating?

I'm using the same pam_smb module that I tested with ftpd, and it
authenticated, but with POP3, I'm getting the error below:

May  7 15:44:57 new-relay pop3d[66043]: pamsmbd : msg_snd problem
May  7 15:45:05 new-relay pop3d[66046]: pamsmbd : msg_snd problem

Its soo close, I can taste it :(





Re: PAM authentication does not work with latest .tar.gz files ...

2001-05-07 Thread The Hermit Hacker

On Mon, 7 May 2001, Lawrence Greenfield wrote:

>Date: Mon, 7 May 2001 13:37:42 -0300 (ADT)
>From: "Marc G. Fournier" <[EMAIL PROTECTED]>
>
> [...]
>If I do an 'saslpasswd -d marc' to remove myself from the sasldb file,
>then try and re-connect with pine, I get the following error:
>
>May  7 13:21:00 new-relay imapd[66067]: badlogin: 
>atelier.acadiau.ca[131.162.138.223] CRAM-MD5 authentication failure [no secret in 
>database]
>
> Cyrus is advertising CRAM-MD5, which always uses /etc/sasldb, because
> the file exists.
>
> However, since there's no secret for the user "marc" in /etc/sasldb,
> Pine can't use CRAM-MD5.
>
> Either remove the CRAM-MD5 plugin, remove /etc/sasldb, or configure
> Pine to not use CRAM-MD5.

Okay, is there any way of setting it up so that, if someone logs in, they
issue their passwd, the system checks:

/etc/sasldb
- that fails, check through PAM
- that succeeds, add/update entry to sasldb

so that their first login might be insecure, but subsequent ones will use
a more secure encryption?

I thought the 'sasl_auto_transition' was *supposed* to do that, but have
never succeeded in getting that to work ...

Thanks ...




SASL w/ PAM vs sasldb ... SMTP_AUTH issues ...

2001-04-25 Thread The Hermit Hacker


Okay, think I hit enough points in the subject :)

I'm looking at using pam-pgsql to do authentication, instead of sasldb ...
I'm hitting problems with sasldb that I can't explain, where users
passwords all of a sudden don't work, and figure if I move into a db
environment, at least I can better debug it ...

I've installed the PAM module, and tested it, and it works sweet ... but
how will something like SMTP_AUTH work?  Or does moving away from using
sasldb eliminate that feature?

Thanks ...

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org




Re: MicroSoft Outlook against v2.0.12 ... known problems?

2001-04-03 Thread The Hermit Hacker


Searched google last night, came across a problem with 'case sensitivity'
(two folders, same name, different case) and where Outlook can't handle it
so crashes ... point it out to the user, she removed the duplicate and all
works great ...



On Tue, 3 Apr 2001, Simon Loader wrote:

> The Hermit Hacker wrote:
> >
> > Have a user that is consistently unable to use Outlook when connecting to
> > a v2.x server (currently at cyrus-imapd out of cvs) ... she's running:
> >
> > Microsoft Outlook 2000 (9.0.0.2711)
> >
> > And the error that is being generated, if it helps anyone, is:
> >
> > OUTLOOK caused an invalid page fault in
> > module PSTPRX32.DLL at 0177:3ff77379.
> > Registers:
> > EAX= CS=0177 EIP=3ff77379 EFLGS=00010202
> > EBX= SS=017f ESP=0235caa8 EBP=0235caf8
> > ECX=3ff85158 DS=017f ESI=0069dc90 FS=343f
> > EDX=81c583e2 ES=017f EDI=0069c160 GS=
> > Bytes at CS:EIP:
> > ff 70 04 ff 30 e8 0d c2 fd ff 85 c0 7c 42 8b 45
> > Stack dump:
> > 0003 0235cacc  0069dc90 0001  012020dc bff7b77b
> >  bffc9490 3ff71f5c  01200d70 0069dc90  
> >
> > Netscape works fine, pine works great, fetchmail works great ... just
> > Outlook appears to be having a problem ...
>
>
> Have you got a tcpdump of what actully happens ?
> Does the same thing happen in different windows machines ?
>
> --
> Simon
>

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org




Re: Current CVS doesn't compile, can't find sasl.h in perl section...

2001-04-02 Thread The Hermit Hacker


my configure command is:

#!/bin/sh
./configure \
--prefix=/usr/local \
--with-cyrus-user=cyrus \
--with-cyrus-group=cyrus \
--with-dbdir=/usr/local \
--with-openssl \
--with-sasl=/usr/local \
--without-krb \
--with-auth=unix \
--enable-debug \
--with-perl=/usr/bin/perl


On Mon, 2 Apr 2001, Scott Smith wrote:

> Did you --with-sasl=/usr/local ??
>
> 2.0.12 does the same for me without that option.
>
> Scott
>
> On Mon, 2 Apr 2001, The Hermit Hacker wrote:
>
> >
> > /usr/bin/perl -I/usr/libdata/perl/5.00503/mach -I/usr/libdata/perl/5.00503 
>/usr/libdata/perl/5.00503/ExtUtils/xsubpp  -typemap 
>/usr/libdata/perl/5.00503/ExtUtils/typemap -typemap typemap IMAP.xs >xstmp.c && mv 
>xstmp.c IMAP.c
> > cc -c -I../../lib   -DVERSION=\"1.00\" -DXS_VERSION=\"1.00\" -DPIC -fpic 
>-I/usr/libdata/perl/5.00503/mach/CORE -DPERL_POLLUTE IMAP.c
> > In file included from IMAP.xs:51:
> > ../../lib/imclient.h:56: sasl.h: No such file or directory
> > gmake[2]: *** [IMAP.o] Error 1
> > gmake[2]: Leaving directory `/usr/local/src/cyrus/perl/imap'
> > gmake[1]: *** [all] Error 1
> > gmake[1]: Leaving directory `/usr/local/src/cyrus/perl'
> > gmake: *** [all] Error 1
> >
> > mail1# locate sasl.h
> > /usr/local/include/sasl.h
> >
> >
> > Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
> > Systems Administrator @ hub.org
> > primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org
> >
> >
>
>

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org




MicroSoft Outlook against v2.0.12 ... known problems?

2001-04-02 Thread The Hermit Hacker


Have a user that is consistently unable to use Outlook when connecting to
a v2.x server (currently at cyrus-imapd out of cvs) ... she's running:

Microsoft Outlook 2000 (9.0.0.2711)

And the error that is being generated, if it helps anyone, is:

OUTLOOK caused an invalid page fault in
module PSTPRX32.DLL at 0177:3ff77379.
Registers:
EAX= CS=0177 EIP=3ff77379 EFLGS=00010202
EBX= SS=017f ESP=0235caa8 EBP=0235caf8
ECX=3ff85158 DS=017f ESI=0069dc90 FS=343f
EDX=81c583e2 ES=017f EDI=0069c160 GS=
Bytes at CS:EIP:
ff 70 04 ff 30 e8 0d c2 fd ff 85 c0 7c 42 8b 45
Stack dump:
0003 0235cacc  0069dc90 0001  012020dc bff7b77b
 bffc9490 3ff71f5c  01200d70 0069dc90  


Netscape works fine, pine works great, fetchmail works great ... just
Outlook appears to be having a problem ...

Help?

Thanks ...


Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org




Yowch ... memory usage went up in recent cvs?

2001-04-02 Thread The Hermit Hacker


first is before upgrading, second is after upgrading ...

mail1# ps aux | grep cyrus
USER PID %CPU %MEM   VSZ  RSS  TT  STAT STARTED  TIME COMMAND
cyrus  67275  0.0  0.1  2444 1180  p3  IJ8:28AM   0:00.66 /usr/cyrus/bin/master
cyrus  69430  0.0  0.2  6156 1844  p3  IJ8:45AM   0:00.04 imapd: imapd: 
alcyone.acadiau.ca[131.162.138.227] kerri user.kerri (imapd)
cyrus  74131  0.0  0.2  6016 1624  p3  IJ9:09AM   0:00.01 imapd
cyrus  76482  0.0  0.1  5420 1488  p3  IJ9:10AM   0:00.01 pop3d
cyrus  78644  0.0  0.2  6564 1976  p3  IJ9:11AM   0:00.01 lmtpd

mail1# ps aux | grep cyrus
USER PID %CPU %MEM   VSZ  RSS  TT  STAT STARTED  TIME COMMAND
root   83082  0.0  0.0   308  140  pb  R+J   9:19AM   0:00.00 grep cyrus
cyrus  83067  0.0  0.1  2356 1216  pi  SJ9:19AM   0:00.02 /usr/cyrus/bin/master
cyrus  83072  0.0  0.2 15564 2308  pi  SJ9:19AM   0:00.02 imapd
cyrus  83073  0.0  0.2 14932 1668  pi  SJ9:19AM   0:00.02 pop3d
cyrus  83074  0.0  0.2 16104 2288  pi  SJ9:19AM   0:00.02 lmtpd

thoughts? *raised eyebrow*


Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org




Current CVS doesn't compile, can't find sasl.h in perl section ...

2001-04-02 Thread The Hermit Hacker


/usr/bin/perl -I/usr/libdata/perl/5.00503/mach -I/usr/libdata/perl/5.00503 
/usr/libdata/perl/5.00503/ExtUtils/xsubpp  -typemap 
/usr/libdata/perl/5.00503/ExtUtils/typemap -typemap typemap IMAP.xs >xstmp.c && mv 
xstmp.c IMAP.c
cc -c -I../../lib   -DVERSION=\"1.00\" -DXS_VERSION=\"1.00\" -DPIC -fpic 
-I/usr/libdata/perl/5.00503/mach/CORE -DPERL_POLLUTE IMAP.c
In file included from IMAP.xs:51:
../../lib/imclient.h:56: sasl.h: No such file or directory
gmake[2]: *** [IMAP.o] Error 1
gmake[2]: Leaving directory `/usr/local/src/cyrus/perl/imap'
gmake[1]: *** [all] Error 1
gmake[1]: Leaving directory `/usr/local/src/cyrus/perl'
gmake: *** [all] Error 1

mail1# locate sasl.h
/usr/local/include/sasl.h


Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org




Replicated mail server ...

2001-03-14 Thread The Hermit Hacker


Does anyone know of any tools available that will allow someone to do
"distributed" or "replicated" mail servers?

I have a client that is desiring to have, say, 3 boxes setup in different
locations, where the mail on each stays "in sync" ... if one goes down,
when it comes back up again, it will resync itself with the other servers,
etc ...

I've never heard of anything, but figured it wouldn't hurt to ask ...


Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org




Security of Cyrus IMAPd vs UofW IMAPd ...

2001-03-14 Thread The Hermit Hacker


Trying to convince a group that Cyrus is more secure, but my arguments are
about as lame as can be :(

Does anyone have a URL that I can use in my args, that compares them
better?

Thanks ...

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org




sieve filtering into a program, or a file?

2001-03-06 Thread The Hermit Hacker


Right now, we're using procmail in order to help a user filter mail ...
basically, if it comes in with a To address of X, file it to a file, else
file it into his imap mailbox ...

Is there some way of doing similar with sieve *or* at least having that
mail message pipe'd through a program?

thanks ...

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org




Re: Cyrus IMAP 2.0.12/SASL/DB3 problems ...

2001-03-02 Thread The Hermit Hacker

On Fri, 2 Mar 2001, Phil Ellett wrote:

> Hi All,
>
> I've been struggling for several weeks now to make any progress at all in getting 
>Cyrus IMAP running on my system. I had used Cyrus 2.07, 2.09 2.0.11and 2.0.12 and 
>still have not succeed in getting a normal banner response from port 110 or 143 
>during this time.
>
> I am almost certain that the problem relates to DB3.
>
> On telneting to either port 110 or 143 the session connects and the effectively 
>hangs displaying nothing indefinately ...
>
> What on earth is wrong  Please help 
>
> Regards,
>
> Phil Ellett,
>
> Technimode Ltd
> Sheffield
> UK
>
> /var/log/messages displays ..
>
> Mar  2 18:02:47 mx1 master[20922]: process started
> Mar  2 18:02:47 mx1 ctl_mboxlist[20923]: running mboxlist recovery
> Mar  2 18:02:47 mx1 ctl_mboxlist[20923]: done running mboxlist recovery
> Mar  2 18:02:47 mx1 master[20922]: ready for work
> Mar  2 18:02:47 mx1 ctl_mboxlist[20925]: checkpointing mboxlist
> Mar  2 18:03:36 mx1 pop3d[20938]: unable to open Berkeley db /etc/sasldb: Invalid 
>argument

have you tried doing a 'saslpasswd -c' to create the /etc/sasldb file?


>
>
> Installation procedure is detailed below (Running on Redhat 6.2)
>
> Install OpenSSL 0.9.6
> *
> ./configure
> make
> make test
> make install
>
> Install MySQL RPMs
> **
> rpm --install MySQL-3.23.33-1.i386.rpm
> rpm --install MySQL-client-3.23.32-1.i386.rpm
> rpm --install MySQL-devel-3.23.32-1.i386.rpm
>
> Install Librc4-1.1 (RC 4 Library)
> *
> ./configure
> make
> make install
>
> Install Berkeley DB3 3.2.9
> *
> cd build_unix
> ../dist/configure
> make
> make install
>
> Install Cyrus SASL 1.5.24 (with MySQL patch)
> ***
> patch -p1 < sasl_ldap_mysql.patch
> env CPPFLAGS="-I/usr/local/BerkeleyDB.3.2/include" \
> LDFLAGS="-L/usr/local/BerkeleyDB.3.2/lib" ./configure --with-mysql
> make
> make install
> ln -s /usr/local/lib/sasl /usr/lib/sasl
>
>
> Install OpenLDAP 2.0.7
> **
> env CPPFLAGS="-I/usr/local/ssl/include" \
> LDFLAGS="-L/usr/local/ssl/lib" ./configure
> make depend
> make
>
> edit ld.so.conf (add /usr/local/lib so sasl lib can be found)
>
> make test
> make install
>
> Install Postfix
> ***
> make makefiles CCARGS="-I/usr/include/mysql -DHAS_MYSQL" \
>  AUXLIBS="/usr/lib/mysql/libmysqlclient.a -lm -lz"
> make
>
> Add "postfix:*:102:102:postfix:/no/where:/no/shell" to /etc/passwd
> Add "postfix:x:102:" to /etc/group
> Add "postfix:root" to /etc/aliases
>
> make install
>
> Configure /etc/postfix/main.cf & mysql_client.cf
>
> Install Cyrus IMAP 2.0.12
> *
>
> cp /usr/kerberos/include/com_err.h /usr/include
>
> cd makedepend
> ./configure
> make
> ./install_sh makedepend /usr/bin
>
> env CPPFLAGS="-I/usr/local/BerkeleyDB.3.2/include -I/usr/local/ssl/include" \
> LDFLAGS="-L/usr/local/BerkeleyDB.3.2/lib -L/usr/local/ssl/lib" ./configure \
> --with-dblib=berkeley \
> --with-dbdir=/usr/local/BerkeleyDB.3.2
>
> /usr/sbin/useradd -g mail cyrus
> passwd cyrus
>
> make depend
> make all CFLAGS=-O
> make install
>
> Add to /etc/syslog.conf
>
> **
> # Cyrus IMAP Additions
> local6.debug/var/log/imapd.log
> auth.debug  /var/log/auth.log
> **
>
> Create /etc/imapd.conf
>
> **
> configdirectory: /var/imap
> partition-default: /var/spool/imap
> admins: cyrus root
> srvtab: /var/imap/srvtab
> allowanonymouslogin: no
> sasl_passwd_check: sasldb
> **
>
> IMAPD Setup
> ***
>
>cd /var
>mkdir imap
>chown cyrus imap
>chgrp mail imap
>chmod 750 imap
>
>cd /var/spool
>mkdir imap
>chown cyrus imap
>chgrp mail imap
>chmod 750 imap
>
>cd /var/imap
>/(imapdir)/tools/mkimap
>chown -R cyrus *
>chgrp -R mail *
>chattr +S user quota user/* quota/*
>
>cd /var/spool/imap
>chown -R cyrus *
>chgrp -R mail *
>chattr +S /var/spool/imap /var/spool/imap/*
>
>add /etc/services entries
>
>
>

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org




Cache flush was unable to complete ...

2001-03-02 Thread The Hermit Hacker


using 2.0.11 on my server, with db3.2.9, everything *appears* to be
working okay, except for these messages in my syslog ...

Mar  2 11:12:22 mobile lmtpd[58864]: duplicate_mark: closing 
/var/spool/imap/deliverdb/deliver-s.db: DB_INCOMPLETE: Cache flush was unable to 
complete

I've tried removing all the deliverdb files, after stopping master, and
restarting ... db files get rebuilt, but the error comes back ...

This is using latest from CVS, as of Feb 28th ... known bug?  problem with
db3.2.9?

thanks ...

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org




(Mahogany IMAP Reader) (Was: RE: [M-Dev] Need help debugging this... ?)

2001-02-14 Thread The Hermit Hacker


Okay, I'm CC'ng in the cyrus imapd developers, as I really haven't got a
clue *grin*  hopefully they will be better able to answer this ...

On Wed, 14 Feb 2001, Vadim Zeitlin wrote:

> On 14-Feb-01 The Hermit Hacker wrote:
> > We're still getting what looks like the exact same crash when running the
> > latest code from CVS:
>
>  Hmm, no, I don't think it's the same crash.
>
> >#9  0x81f05d7 in imap_uid (stream=0x8455e00, msgno=57) at imap4r1.c:1423
> >#10 0x81d4925 in mail_uid (stream=0x8455e00, msgno=57) at mail.c:1695
> >#11 0x8198319 in MailFolderCC::UpdateMessageStatus (this=0x8487100, msgno=57)
> > at mail/MailFolderCC.cpp:3374
> >#12 0x8197f90 in MailFolderCC::mm_flags (stream=0x8455e00, msgno=57)
> > at mail/MailFolderCC.cpp:3272
> >#13 0x8199575 in mm_flags (stream=0x8455e00, msgno=57)
> > at mail/MailFolderCC.cpp:3814
>
>  Ok, I do see the problem now. Let me explain it to you and, maybe, in
> return you could explain me how to fix it :-)
>
> 1. you can't call cclient functions (mail_xxx) which do anything non trivial
>from cclient callbacks (mm_yyy)
>
> 2. we call mail_uid() from mm_flags() handler
>
> 3. it seems to work most of the time because cclient maintains a cache and
>so it doesn't need to call imap_uid() - which does "something non trivial"
>- usually but just returns uid from the cache
>
>  So in your case the cache is invalidated or hadn't been filled yet. The
> solution is to either understand how can this happen (and why doesn't it
> happen to me) or never call mail_uid() from any callback. The latter
> would surely be better, but I don't know yet how to do it...
>
> > The IMAP server on the backend is a Cyrus IMAPd 2.0.9 server, if that
> > makes any difference here?
>
>  It probably does as I've done very few tests with this server - but
> tested it much more with UW IMAPd.

Not sure if there is some way of recreating this, but I have left your
account active on my server if you want to use that to test with ...





Re: 2.0.11: imap fails to start second time?

2001-02-13 Thread The Hermit Hacker


grab'd latest CVS and all is well again ... thanks :)


On Tue, 13 Feb 2001, Lawrence Greenfield wrote:

> This is a result of the file descriptor problem we were having; I
> posted a patch several days ago.  Let me know if you can't find it.
>
> Larry
>
>Date: Tue, 13 Feb 2001 00:23:31 -0500 (EST)
>From: "Marc G. Fournier" <[EMAIL PROTECTED]>
>
>Just tried going back to db 3.1.17, to see if that makes a difference, and
>it doesn't appear to ... still dies after that first connection ...
>
>
>On Mon, 12 Feb 2001, Marc G. Fournier wrote:
>
>>
>> are there any known problems with 2.0.11?  I've upgraded one of my
>> servers, and the following happens if I try and connect a second time, and
>> similar seems to happen with lmtpd ... I can run sendmail once, but the
>> second time just hangs, cause lmtpd died ...
>>
>> System is FreeBSD 4.2-RELEASE, running db 3.2.9 ...
>>
>> mobile# !/usr
>> /usr/cyrus/bin/master &
>> [1] 12432
>> mobile# telnet localhost imap
>> Trying ::1...
>> telnet: connect to address ::1: Connection refused
>> Trying 127.0.0.1...
>> Connected to localhost.
>> Escape character is '^]'.
>> * OK mobile.hub.org Cyrus IMAP4 v2.0.11 server ready
>> ^]
>> telnet> quit
>> Connection closed.
>> mobile# telnet localhost imap
>> Trying ::1...
>> telnet: connect to address ::1: Connection refused
>> Trying 127.0.0.1...
>> Connected to localhost.
>> Escape character is '^]'.
>>
>> A truss shows:
>>
>> ==
>>
>> mobile# !ps
>> ps ax | grep master
>> 12471  pa  S  0:00.03 /usr/cyrus/bin/master
>> 12478  pa  R+ 0:00.00 grep master
>> mobile# truss -p 12471
>> (null)() = 1 (0x1)
>> fork()   = 12481 (0x30c1)
>> gettimeofday(0xbfbffb14,0x0) = 0 (0x0)
>>
>> 
>>
>>
>> SIGNAL 20
>> SIGNAL 20
>> SIGNAL 20
>> select(0x10,0xbfbffb7c,0x0,0x0,0xbfbffb74)   ERR#4 'Interrupted system call'
>> sigreturn(0xbfbff98c)ERR#4 'Interrupted system call'
>> gettimeofday(0xbfbffb14,0x0) = 0 (0x0)
>> wait4(0x,0xbfbffb28,0x1,0x0) = 12481 (0x30c1)
>> gettimeofday(0xbfbfee44,0x0) = 0 (0x0)
>> getpid() = 12471 (0x30b7)
>> sendto(0x3,0xbfbff2cc,0x42,0x0,0x0,0x0)  = 66 (0x42)
>> wait4(0x,0xbfbffb28,0x1,0x0) = 0 (0x0)
>>
>>
>> 
>>
>> ==
>>
>> I have to kill off master and restart it again to get a second connection
>> in ..
>>
>>
>>
>> Marc G. Fournier   [EMAIL PROTECTED]
>> Systems Administrator @ hub.org
>> scrappy@{postgresql|isc}.org   ICQ#7615664
>>
>>
>
>Marc G. Fournier   [EMAIL PROTECTED]
>Systems Administrator @ hub.org
>scrappy@{postgresql|isc}.org   ICQ#7615664
>
>
>

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org




Anti-Spam Sieve filter ... ?

2000-12-30 Thread The Hermit Hacker


Anyone have a good rule or two that at least does a decent filtering of
what it thinks is spam to a seperate folder?  I'm nervous of just
wholeheartedly rejecting, cause my lucky one of them will be a real email,
but something generic redirecting to a seperate mailbox would be cool ...

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org 




Making use of ACAP ... ?

2000-12-21 Thread The Hermit Hacker


Morning all ...

I just installed smlacapd, to see what its all about, but I
haven't got a clue where to go from here ...

I'm using Eudora to test things with, but can only find a
'Retrieve From' section, but how does one upload settings?

Any tutorial on this I can look at?

Thanks ...

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org 




sieve rule question ...

2000-12-18 Thread The Hermit Hacker


Why doesn't:

elsif allof (address :contains ["From","from"] "[EMAIL PROTECTED]") {
 fileinto "INBOX.majordomo_bounce";
}

file these messages with headers of:

Date: Mon, 18 Dec 2000 08:33:12 -0500 (EST)
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Bounce detected (list pgsql-general) from [EMAIL PROTECTED],
[EMAIL PROTECTED]

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org 






Re: LMTP vs SMTP

2000-12-13 Thread The Hermit Hacker

On Wed, 13 Dec 2000, Nadeem Hasan wrote:

> "Scot W. Hetzel" wrote:
> > 
> > 
> > LMTP will send the message only once to cyrus and allow cyrus to deliver the
> > message internally to the list of recipients provided during the LMTP
> > exchange with sendmail. One nice feature that this provides to cyrus is
> > single-message store, where the message is stored in the first recipients
> > mailbox, and the remaining recipients are hardlinked to this message, thus
> > saving space on the server.
> 
> What happens if the first recipient tries to delete and
> expunge this message?

its a hardlink, not a softlink ... think of it has having one big central
file that everyone links to, and once all the recipients have deleted and
expunged that message, at that point in time it is removed from teh file
system ...





Re: aliasing/forwarding loop broken ...

2000-12-13 Thread The Hermit Hacker

On Wed, 13 Dec 2000, Michael Yount wrote:

> Marc,
> 
> I just tried eliminating the following rule from a test sendmail.cf
> on mail.postgresql.org, and it appears to have solved the problem.
> I'm not sure why this rule would create a rewriting loop.
> 
> Michael
> 
>  :}
>  :}LOCAL_RULESETS
>  :}# if there's a plus part, we want to directly deliver it
>  :}SLocal_localaddr
>  :}R$+ + $*$#cyrus $@ $: $1 + $2

okay, this is part of the cyrusv2.mc file that is distributed with v2.0.7,
so I'm going to CC this to the cyrus mailing list in case someone there
has an idea ...

thanks Michael ...





Re: aliasing/forwarding loop broken ...

2000-12-13 Thread The Hermit Hacker


oh good, I thought it was just me going mad ...

does anything in my .mc file jump out at anyone knowing sendmail more then
I as to what is misconfigured though?  Checking things on another server
where I have Cyrus 2.0.7 installed and sendmail 8.11.0, using expn, I can
generate the same error, so its something I've done on all my more recent
installs ...

... but, that is fine on an older server:

220 hub.org ESMTP Sendmail 8.10.1/8.11.1; Wed, 13 Dec 2000 09:11:03 -0500 (EST)
expn pgsql-admin-owner+M22
550 5.1.1 pgsql-admin-owner+M22... User unknown




divert(0)dnl
VERSIONID(`cyrus v2 sample configuartion')

OSTYPE(bsd4.4)
define(`confBIND_OPTS',`-DNSRCH -DEFNAMES')
define(`confTO_IDENT',`0')

define(`confLOCAL_MAILER', `cyrus')

FEATURE(`relay_based_on_MX')
FEATURE(`use_cw_file')
FEATURE(`dnsbl')dnl
FEATURE(`nocanonify')
FEATURE(`always_add_domain')
MAILER(`local')
MAILER(`smtp')

MAILER_DEFINITIONS
Mcyrus, P=[IPC], F=lsDFMnqA5@/:|SmXz, E=\r\n,
S=EnvFromL, R=EnvToL/HdrToL, T=DNS/RFC822/X-Unix,
A=FILE /var/spool/imap/socket/lmtp

LOCAL_RULE_0
Rbb + $+ < @ $=w . >$#cyrus $: + $1

LOCAL_RULESETS
# if there's a plus part, we want to directly deliver it
SLocal_localaddr
R$+ + $*$#cyrus $@ $: $1 + $2
===


On Tue, 12 Dec 2000, Michael Yount wrote:

> From mail.postgresql.org:
> 
> expn pgsql-admin-owner+M22  
> 554 5.4.6 pgsql-admin-owner+M22... aliasing/forwarding loop broken (11 aliases deep; 
>10 max)
> 
> expn pgsql-admin-owner
> 250 2.1.5 <"|/usr/local/majordomo/bin/mj_enqueue -o -d postgresql.org -l 
>pgsql-admin">
> 
> It appears to be a problem with the way in which sendmail is
> configured to handle suffixes.
> 
> Michael
> 
> 

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org 




Re: how do you debug deliver?

2000-12-13 Thread The Hermit Hacker


Okay, added headers from a different message, changed the Message-ID to
bypass the duplicate delivery suppression ... delivered great ...

what is the chance that the problem is in lmtpd itself?  is there a way of
debugging that from the command line?  Maybe move it to inetd, if
possible, instead of run through master?  According to:

http://www.i.cx/exim/cyrus-imapd/overview.html

it can be run either through TCP or UNIX domain sockets ... possible that
there is a bug with the UNIX domain socket stuff?

Thanks ...

On Tue, 12 Dec 2000, Tom Samplonius wrote:

> 
> On Wed, 13 Dec 2000, Marc G. Fournier wrote:
> 
> ...
> > now, the "problem email" is in the mqueue, which, of course, isn't in a
> > format that I can 'cat' into deliver ... any suggestions?
> 
>   Easy enough.  deliver just wants an message in RFC-822 format.  You can
> easily chop up a sendmail queue file in an editor.
> 
> Tom
> 
> 

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org 




bug in lmtpd in v2.0.7?

2000-12-12 Thread The Hermit Hacker


reading through whatever I can find, I'm starting to wonder if there is a
bug in lmtp that I'm taxing :(  using 'sendmail -qRscrappy -v' to force
delivery, the first message appears to try to go through and then lmtpd
dies:

mail1# sendmail -qRscrappy -v^M

Running /var/spool/mqueue/q00/eBBLcm177295 (sequence 1 of 184)
eBBLcm177295: locked

Running /var/spool/mqueue/q00/eBBLc2176692 (sequence 2 of 184)
<[EMAIL PROTECTED]>... Connecting to /var/imap/socket/lmtp via cyrus...
220 mail1.hub.org LMTP Cyrus v2.0.7 ready
>>> LHLO mail1.hub.org
250-mail1.hub.org
250-8BITMIME
250-ENHANCEDSTATUSCODES
250-AUTH PLAIN DIGEST-MD5 CRAM-MD5 EXTERNAL
250 PIPELINING
>>> MAIL From:<[EMAIL PROTECTED]> BODY=8BITMIME
250 2.1.0 ok
>>> RCPT To:
250 2.1.5 ok
>>> DATA
354 go ahead
>>> .
>>> QUIT
<[EMAIL PROTECTED]>... Deferred: Connection reset by localhost

Running /var/spool/mqueue/q00/eBBLcn177299 (sequence 3 of 184)
<[EMAIL PROTECTED]>... Deferred: Connection reset by localhost

Running /var/spool/mqueue/q00/eBBLcn177303 (sequence 4 of 184)

or, at least, that is what I'm guessing its doing ... and then all
subsequence attemps get the same message ...

does this provide anything that helps point me in the right direction?

thanks ..



Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org 




how do you debug deliver?

2000-12-12 Thread The Hermit Hacker


%cat 70559 | /usr/cyrus/bin/deliver -m scrappy -lD
cat: 70559: No such file or directory
connect failed: No such file or directory
421 4.3.0 deliver: connect failed
%cat 70559. | /usr/cyrus/bin/deliver -m scrappy -lD
connect failed: No such file or directory
421 4.3.0 deliver: connect failed
%cat 70559. | /usr/cyrus/bin/deliver -m scrappy -D
couldn't connect to lmtpd: Socket is not connected
421 4.3.0 deliver: couldn't connect to lmtpd

I'm having a problemw ith one of my servers where the account exists,
quota isn't exceeded and mail is normally delivered to it, but I'm getting
a backlog of stuff like:

---
This is a MIME-encapsulated message

--eBCMTMS57966.976660230/mail1.hub.org

**
**  THIS IS A WARNING MESSAGE ONLY  **
**  YOU DO NOT NEED TO RESEND YOUR MESSAGE  **
**

The original message was received at Mon, 11 Dec 2000 16:57:29 -0500 (EST)
from webmail.postgresql.org [216.126.85.28]

   - The following addresses had transient non-fatal errors -
<[EMAIL PROTECTED]>

   - Transcript of session follows -
<[EMAIL PROTECTED]>... Deferred: Connection reset by localhost
Warning: message still undelivered after 1 day
Will keep trying until message is 3 days old

--eBCMTMS57966.976660230/mail1.hub.org
Content-Type: message/delivery-status
-

yet, any replies I get to this will go through that server no problems ...

further down teh error, it states:

Final-Recipient: RFC822; [EMAIL PROTECTED]
Action: delayed
Status: 4.4.2
Diagnostic-Code: X-Unix; 451 4.4.1 <[EMAIL PROTECTED]>... reply: read error from 
localhost
Last-Attempt-Date: Tue, 12 Dec 2000 17:30:30 -0500 (EST)
Will-Retry-Until: Thu, 14 Dec 2000 16:57:29 -0500 (EST)

the mess is ~100k in size and there are no quotas on the account I'm
trying to deliver to ... 

can someone direct me to what I should be doing to debug this?

thanks ...

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org 





Postmaster notify: see transcript for details (fwd)

2000-12-12 Thread The Hermit Hacker


aliasing/forwarding loop ...

can someone tell me if I've screwed up somethign with me .mc file that is
causing the problems that I've been reporting?  Its as follows:

=
# divert(-1)
#
#   (C) Copyright 2000 by Carnegie Mellon University
#
#   This sample mc file is for a site that uses the Cyrus IMAP server
#   exclusively for local mail. This requires Sendmail 8.10 or later.
#
# $Id: cyrusv2.mc,v 1.2 2000/06/01 20:35:38 wcw Exp $

divert(0)dnl
VERSIONID(`cyrus v2 sample configuartion')

OSTYPE(bsd4.4)
define(`confBIND_OPTS',`-DNSRCH -DEFNAMES')
define(`confTO_IDENT',`0')

define(`confLOCAL_MAILER', `cyrus')

FEATURE(`relay_based_on_MX')
FEATURE(`use_cw_file')
FEATURE(`dnsbl')dnl
FEATURE(`nocanonify')
FEATURE(`always_add_domain')
MAILER(`local')
MAILER(`smtp')

MAILER_DEFINITIONS
Mcyrus, P=[IPC], F=lsDFMnqA5@/:|SmXz, E=\r\n,
S=EnvFromL, R=EnvToL/HdrToL, T=DNS/RFC822/X-Unix, 
A=FILE /var/imap/socket/lmtp

LOCAL_RULE_0
Rbb + $+ < @ $=w . >$#cyrus $: + $1

LOCAL_RULESETS
# if there's a plus part, we want to directly deliver it
SLocal_localaddr
R$+ + $*$#cyrus $@ $: $1 + $2
===

its based on the cyrusv2.mc file that comes with 2.0.7, and is used with
Sendmail 8.11.1:

mailserv# telnet mail1.hub.org smtp
Trying 216.126.85.1...
Connected to mail1.hub.org.
Escape character is '^]'.
220 mail1.hub.org ESMTP Sendmail 8.11.1/8.11.1; Tue, 12 Dec 2000 17:43:56 -0500 (EST)

Am I missing something crucial here?

thanks ...

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org 

-- Forwarded message --
Date: Fri, 8 Dec 2000 11:00:32 -0500 (EST)
From: Mail Delivery Subsystem <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Postmaster notify: see transcript for details

The original message was received at Sun, 3 Dec 2000 10:59:54 -0500 (EST)
from webmail.postgresql.org [216.126.85.28]
with id eB3FxsF14423

   - The following addresses had permanent fatal errors -
<[EMAIL PROTECTED]>

   - Transcript of session follows -
<[EMAIL PROTECTED]>... Deferred: Connection reset by csis.gvsu.edu.
554 5.4.6 <[EMAIL PROTECTED]>... aliasing/forwarding loop 
broken (11 aliases deep; 10 max)
554 5.4.6 <[EMAIL PROTECTED]>... aliasing/forwarding loop broken
Message could not be delivered for 5 days
Message will be deleted from queue




Re: virtual hosting, revisited...

2000-12-10 Thread The Hermit Hacker


In order to get around it, I'm using FreeBSDs jail(8) facility to create
virtual machines ... I imagine you could do something similar with FreeVSD
for Linux as well ... ?

On 10 Dec 2000, Amos Gouaux wrote:

> A while ago there was some ideas kicking around regarding supporting
> different virtual domains.  Have these thoughts progressed any?
> Just curious where that had been left off.
> 
> Perhaps master could take a -c option to override the imapd.conf
> location?  You could then select a LMTP socket specific for that
> domain.  I guess the other issue would be to have imapd listen on a
> specific IP address.  (A capability that would also be nice for the
> lmtpd server.)
> 
> While having one imapd.conf support the various domains would be
> convenient, seems like that would be a rather considerable task to
> encapsulate all those settings at a per-domain level.  At that
> point, wouldn't it just be practical to have a different imapd.conf
> anyway?  On the other hand, I suppose it could be like the ISC DHCP
> server config file.
> 
> -- 
> Amos
> 
> 

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org 




max size of mail message? *raised eyebrow*

2000-12-10 Thread The Hermit Hacker


looking further at my problem, I'm wonderin gif maybe its a size thing:

total 125020
-rw---  1 cyrus  cyrus177508 Dec 10 20:32 9550.
-rw---  1 cyrus  cyrus 28696 Dec 10 20:32 cyrus.index
-rw---  1 cyrus  cyrus  47595796 Dec 10 20:32 cyrus.cache
-rw---  1 cyrus  cyrus 92003 Dec 10 20:31 9549.
-rw---  1 cyrus  cyrus177453 Dec 10 20:31 9548.
-rw---  1 cyrus  cyrus 95272 Dec 10 20:31 9547.
-rw---  1 cyrus  cyrus181719 Dec 10 20:31 9546.
-rw---  1 cyrus  cyrus 95363 Dec 10 20:31 9545.
-rw---  1 cyrus  cyrus 95577 Dec 10 20:31 9544.
-rw---  1 cyrus  cyrus178042 Dec 10 20:31 9543.
-rw---  1 cyrus  cyrus 95330 Dec 10 20:31 9542.
-rw---  1 cyrus  cyrus 95057 Dec 10 20:31 9541.
-rw---  1 cyrus  cyrus 95411 Dec 10 20:31 9540.
-rw---  1 cyrus  cyrus 95168 Dec 10 20:31 9539.
-rw---  1 cyrus  cyrus 95333 Dec 10 20:30 9538.
-rw---  1 cyrus  cyrus 95193 Dec 10 20:30 9537.
-rw---  1 cyrus  cyrus 95124 Dec 10 20:30 9536.
-rw---  1 cyrus  cyrus 95192 Dec 10 20:30 9535.
-rw---  1 cyrus  cyrus 95172 Dec 10 20:30 9534.
-rw---  1 cyrus  cyrus 95253 Dec 10 20:30 9533.
-rw---  1 cyrus  cyrus 91617 Dec 10 20:30 9532.
-rw---  1 cyrus  cyrus 95229 Dec 10 20:30 9531.
-rw---  1 cyrus  cyrus 95105 Dec 10 20:30 9530.
-rw---  1 cyrus  cyrus 91879 Dec 10 20:30 9529.
-rw---  1 cyrus  cyrus 95178 Dec 10 20:30 9528.
-rw---  1 cyrus  cyrus 88410 Dec 10 20:30 9527.
-rw---  1 cyrus  cyrus 88501 Dec 10 20:30 9526.
-rw---  1 cyrus  cyrus 88110 Dec 10 20:30 9525.
-rw---  1 cyrus  cyrus 95430 Dec 10 20:22 9524.
-rw---  1 cyrus  cyrus 95574 Dec 10 20:22 9523.

these are the ones that are being rejected, and being forwarded to a
different system running a much older version of cyrus (1.5.6) ... I've
checked for max-message size in sendmail.cf, and there is none set, so I'm
wondering if maybe its in cyrus? *raised eyebrow*

thanks ...

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org 




"Connection reset by localhost" ...

2000-12-10 Thread The Hermit Hacker


mailbox is empty ... I can't find any way of doing debugging on this
... loadavg on the machine is pretty much zero ... disk space is >3gig
free ... sendmail is 8.11 ... cyrus imapd is 2.0.7 ... there are no quotas
set for the account(s) ...

logs show nothing ... suggestions on what I need to do?

thanks ...


mail# sendmail -qRscrappy -v

Running /var/spool/mqueue/q00/eB6IlYt50324 (sequence 1 of 493)
<[EMAIL PROTECTED]>... Connecting to /var/imap/socket/lmtp via cyrus...
220 mail.postgresql.org LMTP Cyrus v2.0.7 ready
>>> LHLO mail.postgresql.org
250-mail.postgresql.org
250-8BITMIME
250-ENHANCEDSTATUSCODES
250-AUTH PLAIN DIGEST-MD5 CRAM-MD5 EXTERNAL
250 PIPELINING
>>> MAIL From:<[EMAIL PROTECTED]> BODY=8BITMIME
250 2.1.0 ok
>>> RCPT To:
250 2.1.5 ok
>>> DATA
354 go ahead
>>> .
>>> QUIT
<[EMAIL PROTECTED]>... Deferred: Connection reset by localhost

Running /var/spool/mqueue/q00/eB6NnMq07105 (sequence 2 of 493)
<[EMAIL PROTECTED]>... Deferred: Connection reset by localhost



Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org 




Re: Connecting to cyrus...\n Deferred

2000-12-07 Thread The Hermit Hacker


quick appendum ... using truss, it doesn't even look like deliver is
running for these messages:

%truss cat dfeB73BZP23141 | /usr/cyrus/bin/deliver -m marc
open("dfeB73BZP23141",0,00)  = 3 (0x3)
fstat(1,0xbfbffb24)  = 0 (0x0)
readlink("/etc/malloc.conf",0xbfbffa84,63)   ERR#2 'No such file or directory'
mmap(0x0,4096,0x3,0x1002,-1,0x0) = 671444992 (0x28057000)
break(0x805c000) = 0 (0x0)
break(0x806) = 0 (0x0)
read(0x3,0x805c000,0x4000)   = 16384 (0x4000)
write(1,0x805c000,16384) = 16384 (0x4000)
read(0x3,0x805c000,0x4000)   = 16384 (0x4000)
SIGNAL 13
SIGNAL 13
process exit, rval = 13

yet I know mail is being delivered to that mailbox, its just these
"largish" ones that are not being put through ...

On Thu, 7 Dec 2000, The Hermit Hacker wrote:

> 
> okay, this has got me puzzled ... first time, easy ... exceeded quota ...
> 
> this one has me stumped, and reading the deliver man page provides little
> insight as to possible debugging options (ie. there are none?) ...
> 
> here is what I'm seeing as far as sendmail is concerned:
> 
> sendmail -qRscrappy -v
> 
> Running /var/spool/mqueue/q00/eB73BZP23141 (sequence 1 of 1728)
> <[EMAIL PROTECTED]>... Connecting to /var/imap/socket/lmtp via cyrus...
> 220 mail.postgresql.org LMTP Cyrus v2.0.7 ready
> >>> LHLO mail.postgresql.org
> 250-mail.postgresql.org
> 250-8BITMIME
> 250-ENHANCEDSTATUSCODES
> 250-AUTH PLAIN DIGEST-MD5 CRAM-MD5 EXTERNAL
> 250 PIPELINING
> >>> MAIL From:<[EMAIL PROTECTED]> BODY=8BITMIME
> 250 2.1.0 ok
> >>> RCPT To:
> 250 2.1.5 ok
> >>> DATA
> 354 go ahead
> >>> .
> >>> QUIT
> <[EMAIL PROTECTED]>... Deferred: Connection reset by localhost
> Dec  7 21:53:01 mail sendmail[27891]: eB73BZP23141: queueup: cannot create 
>q00/tfeB73BZP23141, uid=0: File exists
> Dec  7 21:53:01 mail sendmail[27891]: eB73BZP23141: queueup: cannot create 
>q00/tfeB73BZP23141, uid=0: File exists
> ^CClosing connection to localhost
> 
> "file" in question is a mere 100k:
> 
> mail# ls -lt /var/spool/mqueue/q00/dfeB73BZP23141
> -rw---  1 root  daemon  102458 Dec  6 22:11 /var/spool/mqueue/q00/dfeB73BZP23141
> 
> trying a manual deliver generates no errors, yet it doesn't deliver either:
> 
> %cat dfeB73BZP23141 | /usr/cyrus/bin/deliver -m scrappy
> %ls -lt /var/spool/imap/s/user/scrappy/
> total 18
> -rw---  1 cyrus  mail  16384 Dec  7 21:52 cyrus.cache
> -rw---  1 cyrus  mail 56 Dec  7 21:40 cyrus.index
> -rw---  1 cyrus  mail153 Oct 29 17:03 cyrus.header
> 
> so, where do I try to debug this next? :(
> 
> 
> 
> On Wed, 6 Dec 2000, Tom Samplonius wrote:
> 
> > 
> > On Wed, 6 Dec 2000, The Hermit Hacker wrote:
> > 
> > > Why would this happen?
> > > 
> > > hub# sendmail -qRhub.org -v
> > > 
> > > Running /var/spool/mqueue/q18/eB6N0FY76931 (sequence 1 of 1)
> > > <[EMAIL PROTECTED]>... Connecting to cyrus...
> > > <[EMAIL PROTECTED]>... Deferred
> > 
> >   Mailbox full, mailbox corrupted.  Deliver can report EX_TEMPFAIL in a
> > number of circumstances.  Try invoking it from the command line and you
> > should be able to see the full text of the error (blame sendmail for not
> > logging it).
> > 
> > Tom
> > 
> > 
> 
> Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
> Systems Administrator @ hub.org 
> primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org 
> 
> 

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org 




Re: Connecting to cyrus...\n Deferred

2000-12-07 Thread The Hermit Hacker


okay, this has got me puzzled ... first time, easy ... exceeded quota ...

this one has me stumped, and reading the deliver man page provides little
insight as to possible debugging options (ie. there are none?) ...

here is what I'm seeing as far as sendmail is concerned:

sendmail -qRscrappy -v

Running /var/spool/mqueue/q00/eB73BZP23141 (sequence 1 of 1728)
<[EMAIL PROTECTED]>... Connecting to /var/imap/socket/lmtp via cyrus...
220 mail.postgresql.org LMTP Cyrus v2.0.7 ready
>>> LHLO mail.postgresql.org
250-mail.postgresql.org
250-8BITMIME
250-ENHANCEDSTATUSCODES
250-AUTH PLAIN DIGEST-MD5 CRAM-MD5 EXTERNAL
250 PIPELINING
>>> MAIL From:<[EMAIL PROTECTED]> BODY=8BITMIME
250 2.1.0 ok
>>> RCPT To:
250 2.1.5 ok
>>> DATA
354 go ahead
>>> .
>>> QUIT
<[EMAIL PROTECTED]>... Deferred: Connection reset by localhost
Dec  7 21:53:01 mail sendmail[27891]: eB73BZP23141: queueup: cannot create 
q00/tfeB73BZP23141, uid=0: File exists
Dec  7 21:53:01 mail sendmail[27891]: eB73BZP23141: queueup: cannot create 
q00/tfeB73BZP23141, uid=0: File exists
^CClosing connection to localhost

"file" in question is a mere 100k:

mail# ls -lt /var/spool/mqueue/q00/dfeB73BZP23141
-rw---  1 root  daemon  102458 Dec  6 22:11 /var/spool/mqueue/q00/dfeB73BZP23141

trying a manual deliver generates no errors, yet it doesn't deliver either:

%cat dfeB73BZP23141 | /usr/cyrus/bin/deliver -m scrappy
%ls -lt /var/spool/imap/s/user/scrappy/
total 18
-rw---  1 cyrus  mail  16384 Dec  7 21:52 cyrus.cache
-rw---  1 cyrus  mail 56 Dec  7 21:40 cyrus.index
-rw---  1 cyrus  mail153 Oct 29 17:03 cyrus.header

so, where do I try to debug this next? :(



On Wed, 6 Dec 2000, Tom Samplonius wrote:

> 
> On Wed, 6 Dec 2000, The Hermit Hacker wrote:
> 
> > Why would this happen?
> > 
> > hub# sendmail -qRhub.org -v
> > 
> > Running /var/spool/mqueue/q18/eB6N0FY76931 (sequence 1 of 1)
> > <[EMAIL PROTECTED]>... Connecting to cyrus...
> > <[EMAIL PROTECTED]>... Deferred
> 
>   Mailbox full, mailbox corrupted.  Deliver can report EX_TEMPFAIL in a
> number of circumstances.  Try invoking it from the command line and you
> should be able to see the full text of the error (blame sendmail for not
> logging it).
> 
> Tom
> 
> 

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org 




Re: Connecting to cyrus...\n Deferred

2000-12-07 Thread The Hermit Hacker


perfect, thanks ... this time, it was quota, but any suggestions as to
what options would be useful for testing using deliver?

thanks ...

On Wed, 6 Dec 2000, Tom Samplonius wrote:

> 
> On Wed, 6 Dec 2000, The Hermit Hacker wrote:
> 
> > Why would this happen?
> > 
> > hub# sendmail -qRhub.org -v
> > 
> > Running /var/spool/mqueue/q18/eB6N0FY76931 (sequence 1 of 1)
> > <[EMAIL PROTECTED]>... Connecting to cyrus...
> > <[EMAIL PROTECTED]>... Deferred
> 
>   Mailbox full, mailbox corrupted.  Deliver can report EX_TEMPFAIL in a
> number of circumstances.  Try invoking it from the command line and you
> should be able to see the full text of the error (blame sendmail for not
> logging it).
> 
> Tom
> 
> 

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org 




Connecting to cyrus...\n Deferred

2000-12-06 Thread The Hermit Hacker


Why would this happen?

hub# sendmail -qRhub.org -v

Running /var/spool/mqueue/q18/eB6N0FY76931 (sequence 1 of 1)
<[EMAIL PROTECTED]>... Connecting to cyrus...
<[EMAIL PROTECTED]>... Deferred



Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org 




Re: Using SASL with Sendmail & IMAPd ...

2000-11-23 Thread The Hermit Hacker


unfortunately, in this case, its FreeBSD, and we don't have acl's yet :(



On Thu, 23 Nov 2000 [EMAIL PROTECTED] wrote:

> >   error: safesasl(/usr/local/etc/sasldb) failed: Group readable file
> 
> If this is on Solaris, the best solution is to make sendmail happy
> by making root the owner with 600 permissions, and then adding an
> ACL to give cyrus access.  I used:
> 
> # setfacl -s u::rw-,g::---,o:---,u:cyrus:rw-,m:rw- sasldb
> 
> 
> -- 
> -Gary Mills--Unix Support--U of M Academic Computing and Networking-
> 
> 

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org 




Using SASL with Sendmail & IMAPd ...

2000-11-23 Thread The Hermit Hacker


Okay, found docs on setting up Sendmail to use SASL, and got it setup
... when I connect, maillog reports:

   error: safesasl(/usr/local/etc/sasldb) failed: Group readable file

on a file with permissions of:

   -rw-r-  1 root  wheel  24576 Nov 22 23:55/usr/local/etc/sasldb

so, remove the read bit, and, of course, imap gets a permission denied ...

change it to owner cyrus, and the error becomes:

   error: safesasl(/usr/local/etc/sasldb) failed: Permission denied

so, I'm missing a step here somewhere ... someone want to let me know
which one it is? :(

thanks ...

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org 




deliver: didn't exec?!? ... sieve problem?

2000-11-10 Thread The Hermit Hacker


Morning all ...

doing further investigation on this, and if I remove the sieve
script (a simple redirect "remote user";), the error messages goes away
and the message is delivered to the mailbox ...

does that make any sense to anyone?  I can't seem to find any
other error messages anywhere ... but may not be looking where I should
be?

Thanks ...

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org 




deliver error (fwd)

2000-11-10 Thread The Hermit Hacker


can someone explain to me what would cause a 'deliver: didn't exec?!?'
error as below?  I'm getting it reasonably consistently on one of my
servers ... load is <1, only 315 processes running ... maxproc on the
machine is 2068 ... 

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org 

-- Forwarded message --
Date: Fri, 10 Nov 2000 10:12:39 -0500 (EST)
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: deliver error

Nov 10 09:54:56 mail sendmail[24794]: eAAEsua24792: to=<[EMAIL PROTECTED]>, 
delay=00:00:00, xdelay=00:00:00, mailer=cyrus, pri=198621, relay=localhost, dsn=5.0.0, 
stat=Deferred: 451 deliver: didn't exec?!?





Re: Cyrus iimap/ldap account creation cgi script available

2000-11-06 Thread The Hermit Hacker


I don't believe so ... I'm using FreeBSD's jail environment to create a
distinctive mail server per domain ... its own sendmail, its own cyrus
master process, its own web server for IMP ... as well, it looks like
ispman uses LDAP also, which I'm trying to avoid ...


On 6 Nov 2000, Amos Gouaux wrote:

> >>>>> On Mon, 6 Nov 2000 10:33:59 -0400 (AST),
> >>>>> The Hermit Hacker <[EMAIL PROTECTED]> (thh) writes:
> 
> thh> For me, I'm running several 'virtual machines' on one machine, so that
> thh> each Cyrus instance is distinct from the next ... works real sweet
> 
> Sound kinda like www.ispman.org.
> 
> -- 
> Amos
> 
> 

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org 




Re: Cyrus iimap/ldap account creation cgi script available

2000-11-06 Thread The Hermit Hacker


For me, I'm running several 'virtual machines' on one machine, so that
each Cyrus instance is distinct from the next ... works real sweet
... but, I'd like to avoid having an LDAP server running for each one if I
can help it, and its "one more thing to go wrong" ...

The server itself is quite secure, as we don't create accounts, so setuid
scripts aren't a concern ... 

On Mon, 6 Nov 2000, Alain Turbide wrote:

> Now you're talking about su'ed scripts..It's easy to do but you're
> compromising quite a bit of security by doing that..  (not that the admin
> script is that secure).  Another approach that I've avoided is the  use of
> cron scripts to syncronise the ldap database periodically with the
> saslpasswd database.
> I did'nt want the delay in activating the accounts or password changes.
> One of the reasons I use LDAP is that I don't currently use any of the other
> authentication mechanism ( I could also use sasl_auto_transition=true to
> automatically put PLAIN authenticated users into sasldb), I already have the
> LDAP server setup for directory searches, so why not use it for passwords as
> well.  Everything done in one place.
> I haven't had a chance to look into it yet, but will see what I can come up
> with.
> 
> Alain
>  - Original Message -
> From: "The Hermit Hacker" <[EMAIL PROTECTED]>
> To: "Alain Turbide" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> Sent: Monday, November 06, 2000 8:39 AM
> Subject: Re: Cyrus iimap/ldap account creation cgi script available
> 
> 
> >
> > Just a quick thought here ... the way I've been setting things up has been
> > to create the mailbox and to add the user to the sasldb file .. no passwd
> > entry at all.
> >
> > how hard would it be to add the capability to add/update/delete from
> > sasldb, using, say, a root enabled saslpasswd command?  There doesn't
> > appear to be any perl modules that I can find for doing this, so would
> > have to do it with a system() call ...
> >
> > On Sun, 5 Nov 2000, Alain Turbide wrote:
> >
> > > There are various tools to migrate  existing passwd or other accounts to
> > > ldap.  See the following link.. http://www.padl.com/tools.html
> > >
> > >
> > > Alain
> > >
> > > - Original Message -
> > > From: "The Hermit Hacker" <[EMAIL PROTECTED]>
> > > To: "Alain Turbide" <[EMAIL PROTECTED]>
> > > Cc: <[EMAIL PROTECTED]>
> > > Sent: Sunday, November 05, 2000 3:03 PM
> > > Subject: Re: Cyrus iimap/ldap account creation cgi script available
> > >
> > >
> > > >
> > > > anyone have a good doc on how to setup LDAP?  So far, what I've been
> able
> > > > to find, has had my run scared of using LDAP :(
> > > >
> > > > On Sun, 5 Nov 2000, Alain Turbide wrote:
> > > >
> > > > > This is perl cgi script (very alpha) that is used to create and
> maintain
> > > > > user accounts on
> > > > > an LDAP server as well as creating/deleting/modifying user accounts
> on
> > > an
> > > > > Imap server.  Currently it is tested with Cyrus Imap but should work
> > > with
> > > > > any Imap ser
> > > > > ver.  It supports all ACL settings, user mail account creation,
> public
> > > > > folder cr
> > > > > eation, deletions.  It does not allow sub-folder creation but only
> > > initial
> > > > > mailbox creations.
> > > > >
> > > > > Find it available at http://host1.dyndns.org/cyrusadmin
> > > > >
> > > > > Please note:   It works well for me but I can't guarantee that it
> will
> > > work
> > > > > for all setups.  I'm making it available because some users have
> > > enquired
> > > > > about such tools, and I hope they can find some use with it.  It is
> > > > > available with no warranty whatsover. Have fun with it..
> > > > >
> > > > > Alain Turbide
> > > > >
> > > > >
> > > >
> > > > Marc G. Fournier   ICQ#7615664   IRC Nick:
> > > Scrappy
> > > > Systems Administrator @ hub.org
> > > > primary: [EMAIL PROTECTED]   secondary:
> > > scrappy@{freebsd|postgresql}.org
> > > >
> > > >
> > >
> > >
> >
> > Marc G. Fournier   ICQ#7615664   IRC Nick:
> Scrappy
> > Systems Administrator @ hub.org
> > primary: [EMAIL PROTECTED]   secondary:
> scrappy@{freebsd|postgresql}.org
> >
> >
> >
> 
> 

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org 





Re: Cyrus iimap/ldap account creation cgi script available

2000-11-06 Thread The Hermit Hacker


Just a quick thought here ... the way I've been setting things up has been
to create the mailbox and to add the user to the sasldb file .. no passwd
entry at all.

how hard would it be to add the capability to add/update/delete from
sasldb, using, say, a root enabled saslpasswd command?  There doesn't
appear to be any perl modules that I can find for doing this, so would
have to do it with a system() call ...

On Sun, 5 Nov 2000, Alain Turbide wrote:

> There are various tools to migrate  existing passwd or other accounts to
> ldap.  See the following link.. http://www.padl.com/tools.html
> 
> 
> Alain
> 
> - Original Message -
> From: "The Hermit Hacker" <[EMAIL PROTECTED]>
> To: "Alain Turbide" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Sunday, November 05, 2000 3:03 PM
> Subject: Re: Cyrus iimap/ldap account creation cgi script available
> 
> 
> >
> > anyone have a good doc on how to setup LDAP?  So far, what I've been able
> > to find, has had my run scared of using LDAP :(
> >
> > On Sun, 5 Nov 2000, Alain Turbide wrote:
> >
> > > This is perl cgi script (very alpha) that is used to create and maintain
> > > user accounts on
> > > an LDAP server as well as creating/deleting/modifying user accounts on
> an
> > > Imap server.  Currently it is tested with Cyrus Imap but should work
> with
> > > any Imap ser
> > > ver.  It supports all ACL settings, user mail account creation, public
> > > folder cr
> > > eation, deletions.  It does not allow sub-folder creation but only
> initial
> > > mailbox creations.
> > >
> > > Find it available at http://host1.dyndns.org/cyrusadmin
> > >
> > > Please note:   It works well for me but I can't guarantee that it will
> work
> > > for all setups.  I'm making it available because some users have
> enquired
> > > about such tools, and I hope they can find some use with it.  It is
> > > available with no warranty whatsover. Have fun with it..
> > >
> > > Alain Turbide
> > >
> > >
> >
> > Marc G. Fournier   ICQ#7615664   IRC Nick:
> Scrappy
> > Systems Administrator @ hub.org
> > primary: [EMAIL PROTECTED]   secondary:
> scrappy@{freebsd|postgresql}.org
> >
> >
> 
> 

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org 





Re: Cyrus iimap/ldap account creation cgi script available

2000-11-05 Thread The Hermit Hacker


anyone have a good doc on how to setup LDAP?  So far, what I've been able
to find, has had my run scared of using LDAP :(

On Sun, 5 Nov 2000, Alain Turbide wrote:

> This is perl cgi script (very alpha) that is used to create and maintain
> user accounts on
> an LDAP server as well as creating/deleting/modifying user accounts on an
> Imap server.  Currently it is tested with Cyrus Imap but should work with
> any Imap ser
> ver.  It supports all ACL settings, user mail account creation, public
> folder cr
> eation, deletions.  It does not allow sub-folder creation but only initial
> mailbox creations.
> 
> Find it available at http://host1.dyndns.org/cyrusadmin
> 
> Please note:   It works well for me but I can't guarantee that it will work
> for all setups.  I'm making it available because some users have enquired
> about such tools, and I hope they can find some use with it.  It is
> available with no warranty whatsover. Have fun with it..
> 
> Alain Turbide
> 
> 

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org 




Re: forwarding all email through sieve/webseive ...

2000-11-02 Thread The Hermit Hacker

On Thu, 2 Nov 2000 [EMAIL PROTECTED] wrote:

> Peter M. Jansson writes, regarding e-mail forwarding:
> >
> >Sendmail is really good at this -- enable the USERDB feature, and create
> >an entry that maps the destination to "[EMAIL PROTECTED]".  It's a lot
> >lighter weight on the server to allow sendmail to do it, too.
> 
> Yes, but I want the users to be able to set their own forwarding,
> vacation, or filtering.  websieve looks good for most of this.

have to agree here ... last thing I want is to give 4000+ users write
permissions on the map so that they can do forwarding :):





More sieve questions ...

2000-11-02 Thread The Hermit Hacker


How would one do a redirect *and* a keep?

Basically, we want to do the equivalent of:

\user,user@domain

first thought was, by Vince, was:

if true {
keep;
redirect "user@domain";
}

gave errors ...

how about something like:

if true { 
keep && redirect "user@domain";
}

?


Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org 




forwarding all email through sieve/webseive ...

2000-11-01 Thread The Hermit Hacker


Trying to setup a forward that forwards all email from a user to another
user ... rule we are trying is:

IF Field(s): 'From' matches '*'
THEN Redirect To '[EMAIL PROTECTED]'

seems logical to me, but doesn't appear to work ..

should it, or should I be doing this a different way?

thanks


Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org 




Re: cyrus imap 2.0.7 in FreeBSD jail environments ...

2000-10-30 Thread The Hermit Hacker


woo hoo ... found it.  somehow, /var/run got chmod'd to 700, so cyrus
couldn't read the ld.so.hints file to figure out where libdb3 was located,
and wasn't starting as a result.  fix the permissions, and cyrus imapd
works in a jail environment ...

am so impressed.

On Sun, 29 Oct 2000, The Hermit Hacker wrote:

> 
> FreeBSD has a nifty "feature" that allows you to relatively easily create
> a jail environment ... pretty much a virtual machine in a machine ...
> 
> I'm working with this to create a virtual mail server, where each domain
> has its own virtual machine to work inside of ... theory looks really
> great, in practice, I'm hitting some problems ...
> 
> I have /usr/cyrus/bin/master on Env1, i can read mail the whole works
> ... works like a charm.
> 
> Setup Env2 ... can SSH in, telnet, ftp, etc ... run a sendmail server
> ... but as soon as I try and start up /usr/cyrus/bin/master in that env,
> it generates errors:
> 
> mail# cat imapd.log 
> Oct 29 22:46:32 mail master[55085]: process started
> Oct 29 22:46:32 mail master[55086]: about to exec /usr/cyrus/bin/ctl_mboxlist
> Oct 29 22:46:33 mail master[55085]: process 55086 exited, status 1 
> Oct 29 22:46:33 mail master[55087]: about to exec /usr/cyrus/bin/ctl_deliver
> Oct 29 22:46:33 mail master[55085]: process 55087 exited, status 1 
> Oct 29 22:46:33 mail master[55085]: ready for work
> Oct 29 22:46:33 mail master[55088]: about to exec /usr/cyrus/bin/ctl_mboxlist
> Oct 29 22:46:33 mail master[55089]: about to exec /usr/cyrus/bin/ctl_deliver
> Oct 29 22:46:33 mail master[55090]: about to exec /usr/cyrus/bin/imapd
> Oct 29 22:46:33 mail master[55085]: process 55088 exited, status 1 
> Oct 29 22:46:33 mail master[55091]: about to exec /usr/cyrus/bin/pop3d
> Oct 29 22:46:33 mail master[55092]: about to exec /usr/cyrus/bin/lmtpd
> Oct 29 22:46:33 mail master[55093]: about to exec /usr/cyrus/bin/imapd
> Oct 29 22:46:33 mail master[55094]: about to exec /usr/cyrus/bin/pop3d
> Oct 29 22:46:33 mail master[55085]: process 55089 exited, status 1 
> Oct 29 22:46:33 mail master[55095]: about to exec /usr/cyrus/bin/imapd
> Oct 29 22:46:33 mail master[55096]: about to exec /usr/cyrus/bin/pop3d
> Oct 29 22:46:33 mail master[55085]: process 55091 exited, status 1 
> Oct 29 22:46:33 mail master[55097]: about to exec /usr/cyrus/bin/imapd
> Oct 29 22:46:33 mail master[55098]: about to exec /usr/cyrus/bin/imapd
> Oct 29 22:46:33 mail master[55085]: process 55097 exited, status 1 
> Oct 29 22:46:33 mail master[55085]: process 55098 exited, status 1 
> Oct 29 22:46:33 mail master[55085]: process 55096 exited, status 1 
> Oct 29 22:46:33 mail master[55085]: process 55095 exited, status 1 
> Oct 29 22:46:33 mail master[55085]: process 55094 exited, status 1 
> Oct 29 22:46:33 mail master[55085]: process 55093 exited, status 1 
> Oct 29 22:46:33 mail master[55085]: process 55092 exited, status 1 
> Oct 29 22:46:33 mail master[55085]: process 55090 exited, status 1 
> 
> now, according to an 'ifconfig -a' of both environments, each only sees
> their own IP ... from what little I know of sendmail, when it starts, it
> 'bind' to the smtp port on those IPs that it can probe ... what does the
> above do in a circumstance like this, and how can/would I debug it?
> 
> thanks ...
> 
> 
> Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
> Systems Administrator @ hub.org 
> primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org 
> 
> 
> 

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org 




cyrus imap 2.0.7 in FreeBSD jail environments ...

2000-10-29 Thread The Hermit Hacker


FreeBSD has a nifty "feature" that allows you to relatively easily create
a jail environment ... pretty much a virtual machine in a machine ...

I'm working with this to create a virtual mail server, where each domain
has its own virtual machine to work inside of ... theory looks really
great, in practice, I'm hitting some problems ...

I have /usr/cyrus/bin/master on Env1, i can read mail the whole works
... works like a charm.

Setup Env2 ... can SSH in, telnet, ftp, etc ... run a sendmail server
... but as soon as I try and start up /usr/cyrus/bin/master in that env,
it generates errors:

mail# cat imapd.log 
Oct 29 22:46:32 mail master[55085]: process started
Oct 29 22:46:32 mail master[55086]: about to exec /usr/cyrus/bin/ctl_mboxlist
Oct 29 22:46:33 mail master[55085]: process 55086 exited, status 1 
Oct 29 22:46:33 mail master[55087]: about to exec /usr/cyrus/bin/ctl_deliver
Oct 29 22:46:33 mail master[55085]: process 55087 exited, status 1 
Oct 29 22:46:33 mail master[55085]: ready for work
Oct 29 22:46:33 mail master[55088]: about to exec /usr/cyrus/bin/ctl_mboxlist
Oct 29 22:46:33 mail master[55089]: about to exec /usr/cyrus/bin/ctl_deliver
Oct 29 22:46:33 mail master[55090]: about to exec /usr/cyrus/bin/imapd
Oct 29 22:46:33 mail master[55085]: process 55088 exited, status 1 
Oct 29 22:46:33 mail master[55091]: about to exec /usr/cyrus/bin/pop3d
Oct 29 22:46:33 mail master[55092]: about to exec /usr/cyrus/bin/lmtpd
Oct 29 22:46:33 mail master[55093]: about to exec /usr/cyrus/bin/imapd
Oct 29 22:46:33 mail master[55094]: about to exec /usr/cyrus/bin/pop3d
Oct 29 22:46:33 mail master[55085]: process 55089 exited, status 1 
Oct 29 22:46:33 mail master[55095]: about to exec /usr/cyrus/bin/imapd
Oct 29 22:46:33 mail master[55096]: about to exec /usr/cyrus/bin/pop3d
Oct 29 22:46:33 mail master[55085]: process 55091 exited, status 1 
Oct 29 22:46:33 mail master[55097]: about to exec /usr/cyrus/bin/imapd
Oct 29 22:46:33 mail master[55098]: about to exec /usr/cyrus/bin/imapd
Oct 29 22:46:33 mail master[55085]: process 55097 exited, status 1 
Oct 29 22:46:33 mail master[55085]: process 55098 exited, status 1 
Oct 29 22:46:33 mail master[55085]: process 55096 exited, status 1 
Oct 29 22:46:33 mail master[55085]: process 55095 exited, status 1 
Oct 29 22:46:33 mail master[55085]: process 55094 exited, status 1 
Oct 29 22:46:33 mail master[55085]: process 55093 exited, status 1 
Oct 29 22:46:33 mail master[55085]: process 55092 exited, status 1 
Oct 29 22:46:33 mail master[55085]: process 55090 exited, status 1 

now, according to an 'ifconfig -a' of both environments, each only sees
their own IP ... from what little I know of sendmail, when it starts, it
'bind' to the smtp port on those IPs that it can probe ... what does the
above do in a circumstance like this, and how can/would I debug it?

thanks ...


Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org 





Postmaster notify: see transcript for details (fwd)

2000-10-29 Thread The Hermit Hacker


anyone good with sendmail here?  I left my book at home :(

I'm using the following .mc file:

--
VERSIONID(`cyrus v2 sample configuartion')

OSTYPE(bsd4.4)
define(`confBIND_OPTS',`-DNSRCH -DEFNAMES')
define(`confTO_IDENT',`0')

define(`confLOCAL_MAILER', `cyrus')

FEATURE(`relay_based_on_MX')
FEATURE(`use_cw_file')
FEATURE(`nocanonify')
FEATURE(`always_add_domain')
MAILER(`local')
MAILER(`smtp')

MAILER_DEFINITIONS
Mcyrus, P=[IPC], F=lsDFMnqA5@/:|SmXz, E=\r\n,
S=EnvFromL, R=EnvToL/HdrToL, T=DNS/RFC822/X-Unix, 
A=FILE /var/imap/socket/lmtp

LOCAL_RULE_0
Rbb + $+ < @ $=w . >$#cyrus $: + $1

LOCAL_RULESETS
# if there's a plus part, we want to directly deliver it
SLocal_localaddr
R$+ + $*$#cyrus $@ $: $1 + $2
---

and pgsql-general-owner is an alias in the aliases file:


%grep pgsql-general-owner /etc/mail/aliases
pgsql-general-owner:  "|/usr/local/majordomo/bin/mj_enqueue -o -d postgresql.org 
-l pgsql-general"
owner-pgsql-general:   pgsql-general-owner


what am I missing here? :(

thanks ...


Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org 

-- Forwarded message --
Date: Sun, 29 Oct 2000 19:33:28 -0500 (EST)
From: Mail Delivery Subsystem <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Postmaster notify: see transcript for details

The original message was received at Sun, 29 Oct 2000 19:30:54 -0500 (EST)
from lsanca1-ar3-015-067.biz.dsl.gtei.net [4.3.15.67]
with id e9U0Uri32919

   - The following addresses had permanent fatal errors -
<[EMAIL PROTECTED]>
(reason: 554 5.4.6 <[EMAIL PROTECTED]>... aliasing/forwarding 
loop broken (11 aliases deep; 10 max))
(expanded from: <[EMAIL PROTECTED]>)

   - Transcript of session follows -
... while talking to mail.postgresql.org.:
>>> RCPT To:<[EMAIL PROTECTED]>
<<< 554 5.4.6 <[EMAIL PROTECTED]>... aliasing/forwarding loop 
broken (11 aliases deep; 10 max)
554 5.0.0 <[EMAIL PROTECTED]>... Service unavailable


Reporting-MTA: dns; hub.org
Arrival-Date: Sun, 29 Oct 2000 19:30:54 -0500 (EST)

Final-Recipient: RFC822; <[EMAIL PROTECTED]>
X-Actual-Recipient: RFC822; [EMAIL PROTECTED]
Action: failed
Status: 5.4.6
Remote-MTA: DNS; mail.postgresql.org
Diagnostic-Code: SMTP; 554 5.4.6 <[EMAIL PROTECTED]>... aliasing/forwarding loop broken (11 aliases deep; 10 max)
Last-Attempt-Date: Sun, 29 Oct 2000 19:33:28 -0500 (EST)



The original message was received at Sun, 29 Oct 2000 16:29:59 -0800
from firewall.jtek.com [10.0.0.1]

   - The following addresses had permanent fatal errors -
use_jstanforth_instead
(expanded from: <[EMAIL PROTECTED]>)

   - Transcript of session follows -
use_jstanforth_instead: Mailbox does not exist 
550 use_jstanforth_instead... User unknown


Reporting-MTA: dns; mail.jtek.com
Received-From-MTA: DNS; firewall.jtek.com
Arrival-Date: Sun, 29 Oct 2000 16:29:59 -0800

Final-Recipient: RFC822; <[EMAIL PROTECTED]>
X-Actual-Recipient: RFC822; [EMAIL PROTECTED]
Action: failed
Status: 5.1.1
Last-Attempt-Date: Sun, 29 Oct 2000 16:29:59 -0800


Return-Path: <[EMAIL PROTECTED]>
Received: from jtek.com (firewall.jtek.com [10.0.0.1])
	by mail.jtek.com (8.9.3/8.9.3) with ESMTP id QAA26104
	for <[EMAIL PROTECTED]>; Sun, 29 Oct 2000 16:29:59 -0800
Received: from mail.postgresql.org ([216.126.85.28])
	by jtek.com (8.9.3/8.9.3) with ESMTP id PAA16937
	for <[EMAIL PROTECTED]>; Sun, 29 Oct 2000 15:28:20 -0800
Received: from mail.postgresql.org ([216.126.85.28])
	by mail.postgresql.org (8.11.1/8.11.1) with SMTP id e9TNXLI88341;
	Sun, 29 Oct 2000 18:33:21 -0500 (EST)
	(envelope-from [EMAIL PROTECTED])
Received: from thelab.hub.org (CDR20-53.accesscable.net [24.138.20.53])
	by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id e9TNXII88336
	for <[EMAIL PROTECTED]>; Sun, 29 Oct 2000 18:33:18 -0500 (EST)
	(envelope-from [EMAIL PROTECTED])
Received: from localhost (scrappy@localhost)
	by thelab.hub.org (8.11.1/8.11.1) with ESMTP id e9TNVdS14740
	for <[EMAIL PROTECTED]>; Sun, 29 Oct 2000 19:31:39 -0400 (AST)
	(envelope-from [EMAIL PROTECTED])
X-Authentication-Warning: thelab.hub.org: scrappy owned process doing -bs
Date: Sun, 29 Oct 2000 19:31:39 -0400 (AST)
From: The Hermit Hacker <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: [GENERAL] pgsql-general should be live again ...
Message-ID: <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Precedence: bulk
Sender: [EMAIL PROTECTED]




Re: Web based admin script ...

2000-10-26 Thread The Hermit Hacker


Just thought about it ... I could setup an openldap server for
authentication too, couldn't I?  and there is a way of setting up cyrus
such that any new mail coming in with auto-create the mailbox, assuming
its a valid user via ldap?

On Thu, 26 Oct 2000, The Hermit Hacker wrote:

> 
> I need some help/recommendations ... I'm setting up a server for a client
> that I want the 'owner' to be able to easily add a new mailbox (or
> remove) without much knowledge of the system.  
> 
> Now, I know that the account doesn't have to be added to the system passwd
> file, so, I'm guessing that I'll need to add teh userid/passwd to the
> sasldb, as well as create teh mailbox itself, right?
> 
> Are there any web based tools that can be used for this?
> 
> I looked at the Webmin interface (http://www.nwe.de/develop/) but it
> doesn't look like he's doing anything with it since Feb/2000 ...
> 
> Thoughts, comments, pointers ... ? 
> 
> Thanks ...
> 
> Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
> Systems Administrator @ hub.org 
> primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org 
> 
> 
> 

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org 




Web based admin script ...

2000-10-26 Thread The Hermit Hacker


I need some help/recommendations ... I'm setting up a server for a client
that I want the 'owner' to be able to easily add a new mailbox (or
remove) without much knowledge of the system.  

Now, I know that the account doesn't have to be added to the system passwd
file, so, I'm guessing that I'll need to add teh userid/passwd to the
sasldb, as well as create teh mailbox itself, right?

Are there any web based tools that can be used for this?

I looked at the Webmin interface (http://www.nwe.de/develop/) but it
doesn't look like he's doing anything with it since Feb/2000 ...

Thoughts, comments, pointers ... ? 

Thanks ...

Marc G. Fournier   ICQ#7615664   IRC Nick: Scrappy
Systems Administrator @ hub.org 
primary: [EMAIL PROTECTED]   secondary: scrappy@{freebsd|postgresql}.org