Re: [courier-users] Courier 20031219

2003-12-20 Thread Peter C. Norton
On Sat, Dec 20, 2003 at 08:54:56AM -0500, Sam Varshavchik wrote:
 ??? A content search of some Chinese text may result in the server 
 reporting
 an internal error, and existing.
 
wiseassI'm guessing exiting?/wiseass

-Peter

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.



---
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278alloc_id=3371op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] courier solution

2003-09-22 Thread Peter C. Norton
On Mon, Sep 22, 2003 at 07:42:10PM -0500, Rodney Richison wrote:
 As a postfix user, setting up a box for another bussiness that plans to 
 handle 15 or so domains, I've begun implementation of the ole trusty 
 postfix+courier-imap+mysql+maildrop+sqWebmail solution. It dawned on me, 
 I have never even installed courier webmail. So, here I am. Blatantly 
 asking up front, what will the surprizes be? In particular, I noticed 
 this in the documentation.
 **
 Courier does not deliver mail to domains with broken MX records. Courier 
 also refuses to accept any mail with a return address in a domain with 
 broken MX records.
 
 **
 
 It is unacceptable to have a mail server which controls policy. Have I 
 misread? This seems to indicate if no mx record exists for a mailer, 
 Courier will not accept it. Is this true?

I think you've at least partly mis-interpreted.  What it means is that
if an MX record is broken then courier won't try to guess at what its
supposed to mean.  Two common examples are (in BIND/RFC format):

1) example.com. IN MX 10 10.0.0.1
   This is bogus because an MX record has to point to a valid A record.

2) example.com. IN MX 10 some.cname.example.com
   some.cname.example.com. IN CNAME some.other.example.com.
   This is bogus for the same reason as in (1).  A CNAME is not a host record.

So for these courier won't try to guess what the DNS admin was playing
at.  While it seems obvious what both (1) and (2) are trying to do,
they're not RFC compliant and they make writing and maintaining an MTA
difficult (i.e. why do a special case for tracking down 5 layers of
CNAME's when its specifically not allowed?).

Most of couriers other policies are configurable at run-time or at
compile time (in fewer cases).

-Peter

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] Maildir file modification utility

2003-07-31 Thread Peter C. Norton
( echo #!/bin/bash
  [ x = x$1 ]  exit
  echo touch -d \\$( egrep '^Date: ' $1 | head -1 | sed 's/^Date: //')\ $1' )  
/tmp/timechange.sh

chmod +x /tmp/timechange.sh

find  /path/to/maildirs -type f | xargs -n 1 /tmp/timechange.sh

This is untested, and it won't be fast, but if you only need to do it
once then it should work.

Note, the above is untested, requires gnu touch, etc. etc.  YMMV, all
colors not available at all dealers.  It shouldn't break anything
aside from the datestamp on your maildir files, so test it first.

-Peter

On Thu, Jul 31, 2003 at 10:56:51AM -0500, DY wrote:
 Hi all,
 
 Just curious.  I know that mail clients and servers can utilize a couple
 of forms of dating for mail messages, one being the actual date header
 and one being the timestamp of the mail file itself (I believe this
 corresponds, for example, to Pine's sorting by date vs. arrival).  I may
 not be exactly right here, and there may be more ways, but what I'm
 wondering is whether anybody knows of an already-written utility to scan
 through a maildir and reset the file timestamps based on the date header
 in the mail message.  In transferring a bunch of my mail to my new server,
 I can copy lots of mail back and forth using IMAP, but (especially for
 Pine) it would be nice to actually reset the timestamps on the messages so
 that they really do exist in the order they arrived.  Now, resetting based
 on the date header doesn't help for those messages I've received from
 users whose computers' clocks were set to the year 2024, but those are
 mostly exceptions.
 
 Anyway, this is not a big deal at all, but I thought somebody might know
 of a utility already written to do this.  I've Googled but haven't found
 anything, and I can't spare the time to write it myself.  It may be that
 everybody else has already determined that this is not worth it (so why
 write a script/utility to do it?), in which case I can just forget about
 it.
 
 Thanks in advance, if you know of something out there.
 
 Regards,
 --
 DY
 
 
 ---
 This SF.Net email sponsored by: Free pre-built ASP.NET sites including
 Data Reports, E-commerce, Portals, and Forums are available now.
 Download today and enter to win an XBOX or Visual Studio .NET.
 http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
 ___
 courier-users mailing list
 [EMAIL PROTECTED]
 Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.



---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0013ave/direct;at.aspnet_072303_01/01
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] Accepting alternative ATs in email addresses during login - patch

2003-06-16 Thread Peter C. Norton
I think this'd be a nice feature, since it will prevent duplicate
entries in the database.  I can consider using unique constraints for
users id's again with this.

-Peter

On Mon, Jun 16, 2003 at 11:48:08AM -0300, Rodrigo Severo wrote:
 I am sending a patch to make Courier accept alternative ATs in email
 addresses during login (besides @). It is heavily based in a previous
 patch by Josh Heizman.
 
 Basically I enclosed the extra code in #ifdef #endif directives so
 people that don't need this option will have exactly the same code as
 before.
 
 I believe this patch should be merged in the main Courier code. What do
 you think about it Mr. Sam?
 
 Anyway, this patch isn't complete as it doesn't include a
 --with-alternative-at or similar in the configure script. Could you do
 it Mr. Sam?
 
 In case somebody want to try it, include a
 
 #define ALTERNATIVE_AT characters_to_be_accepted
 
 in 'auth.h'.
 
 I've only tested authuserdb and authmysql but as the code is basically
 the same, I decided to patch authldap.c and authpgsql.c also.
 
 
 Rodrigo Severo
 
 --
 
 Rodrigo Severo
 F?brica de Id?ias
 Fone: +55(61)321 1357
 Fax: +55(61)223 1712
 SBS - Quadra 2 - Ed. Empire Center - Sala 1301
 Bras?lia/DF - Brasil
 CEP: 70.070-904
 

 *** courier.original/courier-0.42.2/authlib/authmysql.c   2003-05-01 
 18:54:24.0 -0300
 --- courier-0.42.2/authlib/authmysql.c2003-06-16 11:14:21.0 -0300
 ***
 *** 26,31 
 --- 26,34 
   void (*callback_func)(struct authinfo *, void *), void *callback_arg)
   {
   char *user, *pass;
 + #ifdef ALTERNATIVE_AT
 + const char *locchar;
 + #endif
   struct authmysqluserinfo *authinfo;
   
   if ((user=strtok(authdata, \n)) == 0 ||
 ***
 *** 35,40 
 --- 38,47 
   return (0);
   }
   
 + #ifdef ALTERNATIVE_AT
 + if (locchar=strpbrk(user, ALTERNATIVE_AT)) *locchar='@';
 + #endif
 + 
   authinfo=auth_mysql_getuserinfo(user, service);
   
   if (!callback_func)
 *** courier.original/courier-0.42.2/authlib/authpgsql.c   2003-05-01 
 18:54:24.0 -0300
 --- courier-0.42.2/authlib/authpgsql.c2003-06-16 11:14:41.0 -0300
 ***
 *** 26,31 
 --- 26,34 
   void (*callback_func)(struct authinfo *, void *), void *callback_arg)
   {
   char *user, *pass;
 + #ifdef ALTERNATIVE_AT
 + const char *locchar;
 + #endif
   struct authpgsqluserinfo *authinfo;
   
   if ((user=strtok(authdata, \n)) == 0 ||
 ***
 *** 35,40 
 --- 38,47 
   return (0);
   }
   
 + #ifdef ALTERNATIVE_AT
 + if (locchar=strpbrk(user, ALTERNATIVE_AT)) *locchar='@';
 + #endif
 + 
   authinfo=auth_pgsql_getuserinfo(user, service);
   
   if (!callback_func)
 *** courier.original/courier-0.42.2/authlib/authldap.c2003-05-01 
 18:54:24.0 -0300
 --- courier-0.42.2/authlib/authldap.c 2003-06-16 11:15:00.0 -0300
 ***
 *** 96,101 
 --- 96,104 
   void (*callback_func)(struct authinfo *, void *), void *callback_arg)
   {
   const char *user, *pass;
 + #ifdef ALTERNATIVE_AT
 + const char *locchar;
 + #endif
   struct  callback_info ci;
   int rc;
   
 ***
 *** 106,111 
 --- 109,118 
   return (0);
   }
   
 + #ifdef ALTERNATIVE_AT
 + if (locchar=strpbrk(user, ALTERNATIVE_AT)) *locchar='@';
 + #endif
 + 
   ci.issession=issession;
   ci.callback_func=callback_func;
   ci.callback_arg=callback_arg;
 *** courier.original/courier-0.42.2/authlib/authuserdb.c  2002-08-19 
 12:30:23.0 -0300
 --- courier-0.42.2/authlib/authuserdb.c   2003-06-16 11:11:34.0 -0300
 ***
 *** 104,109 
 --- 104,112 
   void (*callback_func)(struct authinfo *, void *), void *callback_arg)
   {
   const char *user, *pass;
 + #ifdef ALTERNATIVE_AT
 + const char *locchar;
 + #endif
   int rc;
   struct  callback_info   ci;
   
 ***
 *** 115,120 
 --- 118,127 
   return (0);
   }
   
 + #ifdef ALTERNATIVE_AT
 + if (locchar=strpbrk(user, ALTERNATIVE_AT)) *locchar='@';
 + #endif
 + 
   ci.pass=pass;
   ci.callback_func=callback_func;
   ci.callback_arg=callback_arg;


-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.



---
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] Re: Accepting alternative ATs in email addresses during login - patch

2003-06-16 Thread Peter C. Norton
On Mon, Jun 16, 2003 at 11:41:44AM -0400, Sam Varshavchik wrote:
 If you need compatibility with old Netscape 4.x mail clients in your 
 environment (I'm not aware of any other mail client that's unable to 
 handle @ characters in login addresses), then you should simply keep this 
 as a local patch.

I've also seen versions of norton anti-virus that have munched @'s.

-Peter

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.



---
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] Re: Courier TOO good

2003-05-29 Thread Peter C. Norton
On Wed, May 28, 2003 at 10:24:48PM +0200, Lars Holmstr??m wrote:
 The company I work for have customers that once a week, or a couple of times
 per week, would like to send out a LARGE number of emails with basically
 identical content. Large for them, is around 500.000 emails.
 
 Yes, they are aware of the bandwidth they need for this. They currently have
 a 34 Mbps line purely for this purpose.
 
 My questions are
 
 a) Would this be something that COurier would be suiteble for ?

Yes and no, and you'll need a system to handle bounces.  Courier
limits the number of recipients on any message.  The only way I've
found around this for sending large mails is to send messages with 100
recipients per message.  Up to a certian size this is OK.  For the
500,000 you're talking about I think that courier may not be the best
solution.

 b) Is there a way to optimize the interaction with the SMTP server, or would
 it be OK to have a client software that have access to the content that
 writes directly to a SMTP socket on a courier box (from couriers point of
 view, it will look like a SMTP server) ?

Something like qmqp works well for this, unfortunately you're going to
get sub-optimal behaviour out of qmail.

 c) Does any one have experience that touches my problem ? Please let me
 know.

Courier is fast, but you can't set VERPs as flexibly as you can with
qmail. That and the limit on the # of recipients per message means
that you probably want to use something else.

-Peter

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.



---
This SF.net email is sponsored by: eBay
Get office equipment for less on eBay!
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] imap accessing maildir and failing

2003-04-12 Thread Peter C. Norton
On Sat, Apr 12, 2003 at 09:43:01PM -0400, Thad Marsh wrote:
 It is creating .deleted items above Maildir
[...] 
 Where else should I look???

It looks like your 'maildir' column is set to the same directory as
your 'home' column.  Change 'maildir' to be $HOME/Maildir (or whatver
name you're using locally).

-Peter

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.



---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] Can not login via pop3, please help

2003-04-05 Thread Peter C. Norton
On Sat, Apr 05, 2003 at 10:54:52AM -0500, Gary MacKay wrote:
 Thanks Mike! Yup, tried all that. I even changed the DEBUG setting in the 
 imapd and pop3d config files to 5 but nothing new is added to the log 
 files. I restarted it also. No difference. Very hard to debug something 
 with no help from the logs.

For the record, my approach to debugging authentication issues is as
follows:

change /etc/courier/authdaemonrc so daemons=1

restart courier so that the authdaemon is restarted, and there is only
one child.

Then run strace, ptrace, or ktrace (whichever your platform supports)
on the child process.  Use the option that will show longer strings.
For strace the option I use is -s 1024.  Its likely that you should
be using -o /tmp/authdaemon.trace.

On the other end, run ethereal, or tcpdump, or something that gives
you a packet trace that you can extract with a protocol analysis tool
like ethereal.

Now, after you've made your failure happen, you can figure out:

1) What data was entered by the user
2) What data was passed by the client to the server
3) What data the server got.
4) What data the authdaemon got.

-Peter

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.



---
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] User unknown problem

2003-04-02 Thread Peter C. Norton
On Wed, Apr 02, 2003 at 03:35:32PM +0400, ? ?? wrote:
 Hi list!
 I have courier-0.42 with authmysql.
 I have properly configured authmysqlrc file
 and have entries in Mysql DB.
 When i send test mail to my host i have an error:
 Apr 2 03:03:30 netfuncards sm-mta[81030]: h32UIWm081030: [EMAIL PROTECTED]... User 
 unknown.
 But user vasya have entry in DB.
 Why is this?

Maybe you have vasya, but not [EMAIL PROTECTED]

-Peter

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.



---
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] Turning off logging

2003-04-02 Thread Peter C. Norton
On Wed, Apr 02, 2003 at 07:35:12PM +0200, Alain NAKACHE wrote:
 At 15:48 02/04/03 +, William Hue wrote:
 True.  Courier is not the friendliest of programs when it comes to control 
 of logging; however, not many programs are ultra-flexible about 
 logging.  Perhaps Sam could set a new standard...
 
 Someone on the list wrote a log-file analyzer and posted a link to it a 
 while back.
 
 Personally I made a patch to suppress all the INFO logs.
 There are not so many lines to comment.

This sort of thing would be great to set in the startup file. Get the
env log_trivial, and only log most crap if thats set.

Still, I've still got to get to the rpm changes...

-Peter

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.



---
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] Re: RFC compliance: goodbye to courier MTA

2003-03-12 Thread Peter C. Norton
On Wed, Mar 12, 2003 at 11:47:36AM -0500, Bowie Bailey wrote:
 Sounds good in principle, but keep in mind that not everyone who uses open
 source software is capable of making changes to a complex piece of C code.
 I am a system administrator, not a programmer.  

The difference between the two is mainly one of job description, and
shouldn't be one of understanding how programs work or how to modify
them.  If you can't program in some language, you should learn how
probably starting with shell, and moving towards perl or python and
then to C. It will vastly improve your sys admin skills to be able to
read and code.

-Peter

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

Plan 2: If you're going to apologize, don't do it.  If you're going to 
do it, don't apologize



---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] problem with courier imap/pop performance

2003-03-12 Thread Peter C. Norton
Have you tuned slowlaris to allow as many processes as you need per
user?  Have you tuned your network settings with ndd so you don't have
sockets sitting and waiting for days for a fin+ack that windows' ip
stack won't send?  Have you enabled noatime on your mail spool dir?

-Peter

On Wed, Mar 12, 2003 at 06:06:52PM +0100, Angel L. Mateo wrote:
 Hello,
 
   Last saturday we migrate our email server from a Sun E250 (with 2 cpu)
 to a Sun E450 (with 2 cpu too). In the migration process, we also
 changed from qpopper to courier IMAP (migrating from mailbox format to
 maildir format in the mailboxes).
 
   The problem we have now is that we have a lot of performance problems
 with the new configuration. We have about 4500 email accounts in the
 server.
 
   In the more traffic hours, our users have a lot of timeouts messages,
 not connecting to the server. They tried, but they can't connect to the
 server.
 
   We thought that the problem could be that we have a MAXDAEMON too short
 (200) and we have increase it up to 1000 concurrent daemons, but the
 problem still appears.
 
   Any idea?
 
 -- 
 Angel L. Mateo Mart?nez
 Secci?n de Redes y Comunicaciones
 Area de Tecnolog?as de la Informaci?n   _o)
 y las Comunicaciones Aplicadas (ATICA)  / \\
 http://www.um.es/atica_(___V
 Tfo: 968367590
 Fax: 968363389
 
 
 
 ---
 This SF.net email is sponsored by:Crypto Challenge is now open! 
 Get cracking and register here for some mind boggling fun and 
 the chance of winning an Apple iPod:
 http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
 ___
 courier-users mailing list
 [EMAIL PROTECTED]
 Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

Plan 2: If you're going to apologize, don't do it.  If you're going to 
do it, don't apologize



---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] IMAP directory error

2003-02-11 Thread Peter C. Norton
Its documented.  It uses the home column + /Maildir/ or it obeys the
content of the home column + a .courier file or, if there's something
in the maildir column in the database it uses that instead.

-Peter

On Tue, Feb 11, 2003 at 05:00:24PM -0800, Joseph Turley wrote:
 When I try to log into the IMAP server it says the
 following after it's authenticated.
 
 
 ERROR:  
 Unknown error: Fatal error: Maildir: No such file or
 directory
 
 Read data:
  
  
 Anyone know what directory it tries to look at, or how
 it puts together MYSQL data to make up the directory
 it's looking for?
 
 --Joe
 
 
 __
 Do you Yahoo!?
 Yahoo! Shopping - Send Flowers for Valentine's Day
 http://shopping.yahoo.com
 
 
 ---
 This SF.NET email is sponsored by:
 SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
 http://www.vasoftware.com
 ___
 courier-users mailing list
 [EMAIL PROTECTED]
 Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

Plan 2: If you're going to apologize, don't do it.  If you're going to 
do it, don't apologize



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Server Load

2003-02-10 Thread Peter C. Norton
What processes are running.  When you run top what is showing up?

-Peter

On Mon, Feb 10, 2003 at 12:30:47PM -0500, Ogden Nefix wrote:
 Hi,
 
 I have a few questions regarding the server load on our mail server.
 
 A few weeks ago, the server load would always rise with Sendmail and 
 Courier IMAP (the package from Inter7). Over the weekend, I moved 
 everything over to Qmail.
 
 As far as the MTA is concerned, everything works fine. However, the 
 server load is still high, rising over 5.00 sometimes, and users 
 complain of their email client responding very slowly from time to time.
 
 Red Hat Linux 7.3 is running with kernel 2.4.18-3 and the server itself 
 is powerful with over 1Gb of RAM. The number of users who utilize IMAP 
 mail is roughly 200.
 
 The Maxdaemons and maxperIP is set to a 1000. Is this maybe a problem?
 Authmodules is authdaemon.
 
 Courier IMAP 1.7.0 is installed with the following configure options:
 
 -enable-workarounds-for-imap-client-bugs --without-authldap' 
 --without-authpam --without-authplain  --with-authshadow'
 -prefix=/usr/lib/courier-imap 
 --with-authchangepwdir=/usr/lib/courier-imap/libexec/authlib
 --with-db=gdbm --with-userdb=/etc/userdb --with-make
 datprog=/usr/lib/courier-imap/libexec/makedatprog --with-mailuser=root 
 --without-socks --with-authchangepwdir=/var/tmp/dev/null
 --with-package=courier-imap --with-version=1.7.0
 
 Thank you very much for any insight.
 
 Ogden Nefix
 
 
 
 
 
 ---
 This SF.NET email is sponsored by:
 SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
 http://www.vasoftware.com
 ___
 courier-users mailing list
 [EMAIL PROTECTED]
 Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

Plan 2: If you're going to apologize, don't do it.  If you're going to 
do it, don't apologize



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Server Load

2003-02-10 Thread Peter C. Norton
On Mon, Feb 10, 2003 at 03:55:36PM -0500, Ogden Nefix wrote:
 Thank you for the replies...
 
 You really dont give enough information for anybody to help.
 Post at least one screen full, and information about cpu,
 disks, pop-users.
 
 The CPU is a 1Ghz Pentium III and the hard drives are SCSI. There is 
 over 1Gb of RAM in the machine.
 
 If the server reacts sluggish with the load of 2.67 as quoted
 you have another problem, ide-disks and such things...
 And also the load of 5 will be normal with 200 concurrent users,
 simple math.
 
 Isn't a load of 5 pretty bad though? Or is it mediocre? I don't know too 
 much about loads...

It depends on the OS.  Linux will report that a process that's sitting
in IOWAIT (waiting for a disk) contributes to the load average.  Most
other *nix's don't.  So if all that's happening is 5 processes are
constantly locking on a single directory then its not a big deal.

 http://www.waste.org/~onefix/top2.jpg

To allay your fears about the CPU being chewed up, you should note
that the processes being displayed here combine to a whopping total of
2.5 + 2.1 + 1.9 + 1.9 + 1.7 % of cpu time, for a grand total of 10.1 %
of the cpu being eaten by the processes being listed.  Despite this,
the load is showing as being at 1.87, meaning that there are processes
waiting on something, but its probably not a CPU.  

In fact, I'm pretty confident that they're not waiting on CPU time,
that its a disk issue of some sort.

See if you can run iostat for a few minutes and see which of your
disks are going slow. 

$ iostat -x 5 

will show you your activity partition-by-parition.  You should be
looking at the await column to see which spindle is holding you up.

If a disk is killing you from this small a userbase, you may want to
check your system messages to see if that disk is dying.  Or if your
users have millions of messages eacy.

-Peter


-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

Plan 2: If you're going to apologize, don't do it.  If you're going to 
do it, don't apologize



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Re: Please help make stalls on courier-0.40.2.20030119

2003-01-31 Thread Peter C. Norton
On Thu, Jan 30, 2003 at 06:17:40PM -0800, Greg Earle wrote:
 The reason this happens is because the libauth1.sh and libauth2.sh
 scripts in authlib call the tr program.
 
 There are two different tr binaries - /usr/bin/tr and /usr/ucb/tr:
 
 -r-xr-xr-x   1 binbin 15684 Oct  6  1998 /usr/bin/tr*
 -rwxr-xr-x   1 binbin  5884 Sep  1  1998 /usr/ucb/tr*
 
 (That's from a Solaris 7 system)
 
 If you have /usr/ucb in your $PATH ahead of /usr/bin, you'll get
 the UCB tr, which is the one that hangs on Solaris - causing the problem.

If someone has /usr/ucb ahead of /usr/bin/ or /usr/ccs/bin in their
PATH, then they're asking for mis-linked binaries.  If this was the
case when the package was compiled then start over again and change
the system-wide path.

-Peter

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

Plan 2: If you're going to apologize, don't do it.  If you're going to 
do it, don't apologize



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Re: OpenBSD 3.2 breaks Courier, Qmail.

2003-01-16 Thread Peter C. Norton
On Thu, Jan 16, 2003 at 07:11:29AM +0100, Johan Lindh wrote:
 Well, if the goal is to eliminate race conditions, this still won't do the trick.
 Remember one of my early mails about this, Sam? Before we took it to the
 list.

Can you explain how the inode becomes not-a-unique identifier on the
mail server?  I'm not seeing it.

 Have courierd (for example) simply hand out unique file names on a TCP
 port. Simple to do, and completely, absolutely, eliminates all race conditions
 and conflicts. You no longer need PID's, inodes or whatever.

Except that now maildrop relies on courierd running to hand out unique
pids?  Doesn't sound so good.

-Peter

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.


---
This SF.NET email is sponsored by: A Thawte Code Signing Certificate 
is essential in establishing user confidence by providing assurance of 
authenticity and code integrity. Download our Free Code Signing guide:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Re: inode not unique enough?

2003-01-16 Thread Peter C. Norton
On Fri, Jan 17, 2003 at 12:10:56AM +0100, Matthias Andree wrote:
 Seriously, I'd still appreciate documentation in the man pages
 somewhere. I demand that qmail's maildir(5) be fixed, so consequently,
 I'll have to ask that the Postfix man pages be fixed as well. I'm
 willing to write up the relevant paragraphs unless someone already has
 them and once I know if the tentative patch Wietse suggested is the
 final edition.

It seems like since the inode is going to become the unique identifier
(maybe along with pid and time, but no guarantees) a maildir-fix
program similar to the qmail-queuefix program may be needed to change
the inode field in restored maildirs.

If so, then the inode field should become a standard component of the
maildir spec so that there's no guessing which part needs to be
changed to prevent screwy things from happening after a restore.

-Peter

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.


---
This SF.NET email is sponsored by: Thawte.com
Understand how to protect your customers personal information by implementing
SSL on your Apache Web Server. Click here to get our FREE Thawte Apache 
Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] MBX to Maildir

2002-12-13 Thread Peter C. Norton
On Fri, Dec 13, 2002 at 09:08:22AM -0700, Nick Couchman wrote:
 I'm switching my IMAP server to Courier and am having some conversion
 problems.  I was previously using the University of Washington's IMAP
 server with MBX (NOT MBOX, they are different) formatted mail boxes.
 Now I need to convert people's mail from MBX to Maildir format.  I've
 found plenty of MBOX-Maildir converters, but I need MBX-Maildir.
 Anyone know of anything?

Nope.  Got a pointer to the mbx format?  I see from a search that
currently tmail is the only program to write to it, but I have no idea
what the format is.

-Peter

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.


---
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility 
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Saving sent mail on the IMAP server (offtopic?)

2002-12-11 Thread Peter C. Norton
On Wed, Dec 11, 2002 at 05:51:59PM +0100, [EMAIL PROTECTED] wrote:
 Is there a way to store the mail he sends into the
 folders named 2002-12-Sent/, 2003-01-Sent/ and so on
 too? I'm using the Sendmail (because it's delivered 
 with OpenBSD by default) as MTA if it matters

That's a mail client task, IMO.

If you're going to do this you may want to find a perl or python imap
module, and write it to move your messages on midnight of the first of
each month.

-Peter

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.


---
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility 
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



[courier-users] MAILUSER overwriting From header

2002-11-06 Thread Peter C. Norton
I'm using courier-0.37.3 from debian woody.  I'm seeing behaviour that
if I send a prepared message to a set of users, and I want to VERP the
message, I can't use the MAILUSER or related environment variables to
set the envelope from, because if I do that the email address in the
From header (not the envelope from) is overwritten.

I'd like to have my bounces in a format like
[EMAIL PROTECTED] so I can remove invalid
addresses based on the timframe in which they've bounced.  However, I
can't do that without affecting the from heders that the MUA shows,
and I don't want users to receive messages with a scary looking from.

Is there a way to generate VERPS with a custom-set envelope-from
without courier overwriting the header from: address?

-Peter

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.


---
This sf.net email is sponsored by: See the NEW Palm 
Tungsten T handheld. Power  Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Re: Courier vs. japanese

2002-11-05 Thread Peter C. Norton
On Tue, Nov 05, 2002 at 07:13:27AM -0500, Sam Varshavchik wrote:
 Peter C. Norton writes:
 If the mail's contents consists only of seven-bit characters, transfer 
 encoding can be 7bit.

Since it seems to be munged somewhere, I suspect that its not 7-bit.
But I could be wrong.  I'll try to get a japanese computer in here so
I can have a user send email to themselves and see what it looks like.

-Peter

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.


---
This sf.net email is sponsored by: See the NEW Palm 
Tungsten T handheld. Power  Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



[courier-users] Courier vs. japanese

2002-11-04 Thread Peter C. Norton
What's normally involved in receiving email from users of japanese
mail clients?  I am getting what seems to be garbled email through a
courier server from an exchange server.

One thing that bothers me is that in the transfers the
content-transfer-encoding is 7bit, but the content-type is text/plain;
charset=iso-2022-jp.  I'd suspect that iso-2022-jp requires at least
some 8bit chars.

Anyway, I'm puzzled.  Can anyone point me to any FAQ's or things I
should have read already to understand the issues I'm seeing?

-Peter

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.


---
This sf.net email is sponsored by: See the NEW Palm 
Tungsten T handheld. Power  Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Run courier-imap as non-root user

2002-11-02 Thread Peter C. Norton
On Sat, Nov 02, 2002 at 06:02:33PM +0100, Peter Hanusiak wrote:
 On Sat, Nov 02, 2002 at 08:57:04AM +, Brian Candler wrote:
  Under FreeBSD, there is a '-m' option to su which makes the login happen as
  _your_ shell rather than the account's shell. I don't know about other OSes.
  
  Otherwise, write a C program which just calls
 setgid(n);
 setuid(m);
 execl(/path/to/authdaemond, authdaemond, start, 0);
 Yes! It works. Thank you. You help me a lot!

You can also look at the sudo command, or djb's setuidgid program as
ways of not having to write your own setuid wrapper.

-Peter

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.


---
This sf.net email is sponsored by: See the NEW Palm 
Tungsten T handheld. Power  Color in a compact size!
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0001en
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Re: 432 w/ sendmail and webmail, EOF from submit

2002-10-27 Thread Peter C. Norton
You should attach to the process as root, or replace the binary with a
script along the lines of:

# mv binary binary.real
# echo '#!/bin/sh'  binary
# echo 'exec strace -ff -s 256 -o /tmp/binary.trace binary.real $*'  binary

That should give you a file in /tmp called binary.trace, and a
seperate file for each child it spawns.

-Peter

On Mon, Oct 28, 2002 at 12:40:00AM +, Michael Carmack wrote:
 On Sun, Oct 27, 2002 at 09:33:34AM -0500, Sam Varshavchik wrote:
  Michael Carmack writes:
  
  It happened sooner than I expected. The strace (minus the library
  bits) is fairly short, so I pasted it below:
  
  The error occurs in the forked child process.  The parent's trace is 
  meaningless.
  
  Use strace -f next time.
 
 
 Can't seem to get at the forked process as a regular user:
 
 
 personality(0 /* PER_??? */)= 0
 getpid()= 15891
 setgid(10001)   = -1 EPERM (Operation not permitted)
 getuid()= 1
 setuid(1)   = 0
 rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
 getuid()= 1
 brk(0)  = 0x80506d0
 brk(0x80506f8)  = 0x80506f8
 brk(0x8051000)  = 0x8051000
 pipe([3, 4])= 0
 pipe([5, 6])= 0
 fork(PTRACE_ATTACH: Operation not permitted
 Too late?
 )  = 15892
 sendmail: ERR: Permission denied
 close(3)= 0
 close(6)= 0
 fcntl(4, F_SETFD, FD_CLOEXEC)   = 0
 
 
 
 
 ---
 This SF.net email is sponsored by: ApacheCon, November 18-21 in
 Las Vegas (supported by COMDEX), the only Apache event to be
 fully supported by the ASF. http://www.apachecon.com
 ___
 courier-users mailing list
 [EMAIL PROTECTED]
 Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.


---
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Re: Restrict some users to local delivery only??

2002-10-08 Thread Peter C. Norton

On Tue, Oct 08, 2002 at 05:47:07PM -0400, Sam Varshavchik wrote:
 [EMAIL PROTECTED] writes: 
 
 Is it possible to restrict only some user to be able to email only other
 users on the same local domain??
 
 No. 

Or rather, how good a programmer are you, and how much do you like to
program?  Because you could probably hack this somehow.  But I don't
see that Sam would want to do that.

-Peter

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Re: Maildrop dropping mail?

2002-10-07 Thread Peter C. Norton

On Mon, Oct 07, 2002 at 02:03:44PM -0400, Steve Shockley wrote:
 In /etc/courier/courierd:
 DEFAULTDELIVERY=| /usr/local/bin/spamassassin | /usr/local/bin/maildrop

Maybe something along the lines of the following would give you a better
CYA:

if [ -x /usr/local/bin/spamassassin ]  [ -x /usr/local/bin/maildrop ] ; then
  DELIVER_THRU=|/usr/local/bin/spamassassin | /usr/local/bin/maildrop
else if [ -x /usr/local/bin/maildrop] ; then
  DELIVER_THRU=| /usr/local/bin/maildrop
else 
  DELIVER_THRU=./Maildir/
fi

DEFAULTDELIVERY=$DELIVER_THRU


-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Courier behind a Firewall

2002-10-03 Thread Peter C. Norton

On Thu, Oct 03, 2002 at 05:11:55PM +0200, Dan Johansson wrote:
 now I would like it to recieve mail from te rest of the world.
 So my qustion is what to do on the FW. Schould I only put some general-
 gateway on my FW that only passes TCP-connections on port 25 from
 the WAN sid to the Courier Mail-Server on the LAN side. Or do you have
 any othe suggestion (No I don?t want to run my mailserver on the FW).

Yes, you have to nat your firewall on port 25.  Something like the
following:

# Receiving email
iptables -t nat -A PREROUTING -i $INET_IFACE -p tcp -d $MAILSRVR_RFC1918 \
  --dport 25 -j DNAT --to-destination $MAIL_SRVR
# Let it send email
iptables -t nat -A POSTROUTING -o $INET_IFACE -p tcp -s $MAILSRVR_RFC1918 \ 
  --dport 25 -j SNAT --to-source $MAILSRVR_INET_ADDR

You also have to set rules to allow input, output, and forwarding on
port 25 for connections to and from $MAIL_SRVR_INET_ADDR and the
$MAILSRVR_RFC1918 addr.  You should also set a rule to send a tcp
RSET when ident requests go either way.

-Peter

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Courier esmtp authentication

2002-09-27 Thread Peter C. Norton

On Fri, Sep 27, 2002 at 04:35:58PM +0200, Roland Schneider wrote:
  How do I find out what happends
   with authentication or what DON'T happend?
 
 Run a sniffer, but first switch off ssl ;)

If you want to test in interactively, there's a really good python2.2
module to do esmtp auth:

$ python2
 import smtplib
  print smtplib.__doc__
SMTP/ESMTP client class.

This should follow RFC 821 (SMTP) and RFC 1869 (ESMTP).

Notes:

Please remember, when doing ESMTP, that the names of the SMTP service
extensions are NOT the same thing as the option keywords for the RCPT
and MAIL commands!

Example:

   import smtplib
   s=smtplib.SMTP(localhost)
   print s.help()
  This is Sendmail version 8.8.4
  Topics:
  HELOEHLOMAILRCPTDATA
  NOOPQUITHELPVRFY
  EXPNVERBETRNDSN
  For more info use HELP topic.
  To report bugs in the implementation send email to
  [EMAIL PROTECTED]
   For local information send email to Postmaster at your site.
   End of HELP info
s.putcmd(vrfy,someone@here)
s.getreply()
   (250, Somebody OverHere [EMAIL PROTECTED])
s.quit()

So I've used it to test my smtp auth interactively, since it does
CRAM-MD5 and LOGIN auth.

 s = smtplib.SMTP(mailhost)
 print s.login.__doc__
Log in on an SMTP server that requires authentication.

The arguments are:
- user: The user name to authenticate with.
- password: The password for the authentication.


If there has been no previous EHLO or HELO command this session, this
method tries ESMTP EHLO first.

This method will return normally if the authentication was successful.

This method may raise the following exceptions:

 SMTPHeloErrorThe server didn't reply properly to
  the helo greeting.
 SMTPAuthenticationError  The server didn't accept the username/
  password combination.
 SMTPExceptionNo suitable authentication method was
  found.


Once you've got that module loaded, you can do things like
s.login(my username, my password) and see what's returned. Its
easier then trying to decode the transaction back and forth.

-Peter
  


  

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Installing in a different directory

2002-09-23 Thread Peter C. Norton

On Mon, Sep 23, 2002 at 10:49:40AM -0300, Jean-Rene Cormier wrote:
 I'm trying to compile Courier-IMAP and install it in a temp directory
 somewhere else on the system so I can just pack it up and copy it on
 another system. But if I use prefix=/temp/dir in the ./configure when I
 install it on another system it looks for files installed in /temp/dir.
 Is there a way I can install it in a different dir than the one it'll be
 installed on the system?

Often stuff packaged with gnu tools can be told to do this by doing:

./configure --prefix=/standard/location

make
make strip

prefix=/special/place make install

-Peter

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] authentication problem - courier-imap 1.5.3 + redhat linux 7.2 i686

2002-09-23 Thread Peter C. Norton

On Mon, Sep 23, 2002 at 11:17:50AM -0700, Friedrisch Muller wrote:
 When trying to let Squirrelmail 1.2.8 authenticate
 (ofcourse it's configured for courier-imap with the
 default settings) I get the classical user/password
 failure. With UW-IMAP it worked perfect (but now I
 like to use Maildirs and I therefore want to go for
 courier-imap instead).

What does the authtest program tell you?  It won't be installed by
default - it'll be mixed in the courier source directory, under authlib.

WRT the below, why are you running authdaemon.mysql if your goal is to
try to authenticate against /etc/shadow?

 I'm starting courier-imap like this:
 
 /pkg-local/courier-imap/default/libexec/authlib/authdaemond 
 start
 /pkg-local/courier-imap/default/libexec/imapd.rc start
 
 And the processes are running:
 root 31916  0.0  0.1  2128  696 ?S   
 19:59   0:00 
 /pkg-local/courier-imap/default/libexec/authlib/authdaemond.mysql
 start
 root 31917  0.0  0.1  2128  700 ?S   
 19:59   0:00
 /pkg-local/courier-imap/default/libexec/authlib/authdaemond.mysql
 start
 root 31918  0.0  0.1  2128  696 ?S   
 19:59   0:00
 /pkg-local/courier-imap/default/libexec/authlib/authdaemond.mysql
 start
 root 31919  0.0  0.1  2128  696 ?S   
 19:59   0:00
 /pkg-local/courier-imap/default/libexec/authlib/authdaemond.mysql
 start
 root 31920  0.0  0.1  2128  696 ?S   
 19:59   0:00
 /pkg-local/courier-imap/default/libexec/authlib/authdaemond.mysql
 start
 root 31921  0.0  0.1  2128  696 ?S   
 19:59   0:00
 /pkg-local/courier-imap/default/libexec/authlib/authdaemond.mysql
 start
 root 31932  0.0  0.1  1632  644 ?S   
 19:59   0:00
 /pkg-local/courier-imap/1.5.3/libexec/couriertcpd
 -address=0
 -stderrlogger=/pkg-local/courier-imap/1.5.3/libexec/courierlogger
 -stderrloggername=imapd -maxprocs=40 -maxperip=4
 -pid=/var/run/imapd.pid -nodnslookup -noidentlookup
 143 /pkg-local/courier-imap/1.5.3/sbin/imaplogin
 /pkg-local/courier-imap/1.5.3/libexec/authlib/authdaemon
 /pkg-local/courier-imap/1.5.3/bin/imapd Maildir
 
 Since I'm using /etc/shadow I have this:
 # grep ^authmodulelist
 /pkg-local/courier-imap/1.5.3/etc/authdaemonrc
 authmodulelist=authshadow
 authmodulelistorig=authcustom authcram authuserdb
 authmysql authpam
 
 /var/log/messages tells me:
 authdaemond.mysql: authdaemon: modules=authshadow,
 daemons=5
 
 When trying to login I see this in /var/log/maillog:
 Sep 23 19:57:54 t imapd: Connection, ip=[127.0.0.1]
 Sep 23 19:57:59 t imapd: LOGIN FAILED, ip=[127.0.0.1]
 Sep 23 19:57:59 t imapd: DISCONNECTED, ip=[127.0.0.1],
 headers=0, body=0
 
 Any idea what may be wrong? Can I use some more
 verbose debugging?
 
 Thanks alot for your answers, I'm feeling a bit
 desperate...

Use authtest

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] authcustom - impossible to get it work?

2002-09-22 Thread Peter C. Norton

On Sun, Sep 22, 2002 at 06:15:08PM +0100, challenger wrote:
 Now my next problem. This line is out of /var/log/maildir:
 
 Sep 22 18:47:24 server1 pop3d: LOGIN,user=moretti^M,ip=[:::X.X.X.X]
 
 I've already recognized this ^M before I got all the above problems
 solved. Where does it come from? Somehow I expect const char *user to
 be the username as entered by the user without any specials chars...
 The same thing applies to const char *pass. Well, I can crop this char
 in my auth code, but then again I think, there is something not
 working properly.

^M is a newline (or carriage return - I forget which it is).  You're
reading it in.  Just look for it and overwrite it with a null.

-Peter

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] authcustom - impossible to get it work?

2002-09-21 Thread Peter C. Norton

Have you considered using authuserdb instead of hacking authcustom?

-Peter

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Re: domain being removed from esmtp/postgresql auth query?

2002-07-19 Thread Peter C. Norton

On Thu, Jul 18, 2002 at 05:17:06PM -0400, Sam Varshavchik wrote:
 250 DSN
 mail from: [EMAIL PROTECTED]
 250 Ok.
 rcpt to: [EMAIL PROTECTED]
 550 User unknown.
 quit 
 
 Should I try pushing back to 0.38?
 
 Read the error message again. 

I've read it again, and still I think I know what it means. If I'm
right it means that the esmptd has passed in a string, which is
different from what I typed, to the authdaemon.

I.e. I typed [EMAIL PROTECTED] but as my earlier messages
showed, the authdaemon sent a query to the database with the string
mark as the id to be queried.  It should have sent
[EMAIL PROTECTED].  Since its done that, the authdaemon reports
that it can't query that users info from the database.  However if the
complete string had been passed in, as they authtest program and the
pop3d do, it should have succeeded.

Am I missing something?  I'm wondering if esmtpd strips out the
contents of /etc/courier/me, even if I'm trying to do a complete
virtual hosting setup (by which I meanno local users, no local
domains).  Since I haven't had this problem in the past with 4 other
installations (0.36-0.38), I'm confused.

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Re: domain being removed from esmtp/postgresql auth query?

2002-07-19 Thread Peter C. Norton

On Thu, Jul 18, 2002 at 11:29:07PM -0700, Peter C. Norton wrote:
 Am I missing something?  I'm wondering if esmtpd strips out the
 contents of /etc/courier/me, even if I'm trying to do a complete
 virtual hosting setup (by which I meanno local users, no local
 domains).

Pardon the possible confusion from that last statement (its late
here).  I don't mean no local domains above. I mean no users resolved
through /etc/passwd, and all domains explicitly defined - no default
delivery rules for bare usernames without @domain.

TIA,
-Peter

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Re: domain being removed from esmtp/postgresql auth query?

2002-07-18 Thread Peter C. Norton

As a fix, I've inserted a DEFAULT_DOMAIN of insidecinema.net to the
authpgsqlrc.  I don't believe I've needed this in the past.  I'm
going to experiment with setting up virtual domains and seeing if the
esmptd/authdaemon/authpg modules will strip out other domains or just
the domain in me/logindomainlist/hosteddomains.

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



[courier-users] domain being removed from esmtp/postgresql auth query?

2002-07-17 Thread Peter C. Norton

I'm setting up the domain insidecinema.net.  I've gone the path of
least resistance, and set most of the system up through the webadmin.

I've got a working schema for virtual users in postgres, and now I'm
seeing the following:

When I authenticate using smtp, the query that gets sent to the
authdaemon is getting the domain (everything after the @) stripped
from the query to the database.  I.e. when I run authtest, strace'ing
the authdaemon shows that my query looks like the following:

# ./authtest [EMAIL PROTECTED]

write(4, 
UID=100\nGID=101\nHOME=/home/vmail/insidecinema/mark\[EMAIL PROTECTED]\nNAME=Mark
Gallay\nMAILDIR=/home/vmail/insidecinema/mark/Maildir\nPASSWD=.IZR1DVmCpyd2\nPASSWD2=test123\n.\n,
183) = 183

But when I authenticate using esmtp, I see:

send(6, QSELECT mail_id, mail_crypt, mail_clear, uid, gid, home,
maildir, \'\', name FROM mail_passwd WHERE mail_id = \'mark\'\0, 115,
0) = 115

Notice that [EMAIL PROTECTED] has become just mark.

This isn't happening in the pop3d, and so I'm wondering where in the
config courier is getting the idea that I want it to alter the data it
sends to the database.

TIA,

-Peter

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Re: domain being removed from esmtp/postgresql auth query?

2002-07-17 Thread Peter C. Norton

On Wed, Jul 17, 2002 at 07:09:32PM -0400, Sam Varshavchik wrote:
 Run a quick little test: 
 
 echo 'user@domain' | tr -d '\012' | makemime -c auto -e base64 - 
 
 echo 'password' | tr -d '\012' | makemime -c auto -e base64 - 
 
 This is the most convenient way to get base64-encoded strings. 
 
 telnet localhost smtp
 EHLO default
 AUTH LOGIN
 [[base64-encoded login id]]
 [[base64-encoded password]] 

That... worked!

After entering the base64 encoded username and password, I got a:

235 Ok

So what am I doing wrong with the plain ascii-encoded username, such
that the esmtpd won't deliver to the user?

After that test above, the following still happens:
rset
250 Ok
ehlo default
250-insidecinema.net Ok.
250-AUTH LOGIN CRAM-MD5
250-AUTH=LOGIN CRAM-MD5 X-NETSCAPE-HAS-BUGS
250-XVERP=Courier
250-XEXDATA
250-XSECURITY=NONE,STARTTLS
250-PIPELINING
250-8BITMIME
250-SIZE
250 DSN
mail from: [EMAIL PROTECTED]
250 Ok.
rcpt to: [EMAIL PROTECTED]
550 User unknown.
quit
221 Bye.


-Peter

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Thanks Sam

2002-07-15 Thread Peter C. Norton

Thanks from me, too.

I'm also damn happy with courier.   I may have to hack parts of it
soon, so if that goes as easily as it used to with qmail, I'll be
thanking Sam again then.

So, in order:
  Thanks for developing courier rapidly and openly
  Thanks for putting it under the gpl
  Thanks for dealing with messy issues in reasonable ways (sometimes 
 bending and sometimes not).
  Thanks for making installation easy.
  Thanks for designing a reasonable authentication scheme.

Yeah.

-Peter

On Mon, Jul 15, 2002 at 02:14:06PM -0400, Roberto de Iriarte wrote:
 I agree wholeheartly.
 
 I've been running courier since 0.29-1 and have nothing but praise
 for this excelent piece(s) of Software and his author. If all programmers
 would be as talented as Sam, and as respectfull of published standards,
 computing would become so much better.
 
 Regards.
 Good Luck
 Roberto
 
 
 
 ---
 This sf.net email is sponsored by:ThinkGeek
 Welcome to geek heaven.
 http://thinkgeek.com/sf
 ___
 courier-users mailing list
 [EMAIL PROTECTED]
 Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.


---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Connection to port 113

2002-07-10 Thread Peter C. Norton

On Wed, Jul 10, 2002 at 10:36:51AM -0500, Matt Barton wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 On Tue, 9 Jul 2002, Peter C. Norton wrote:
 
   That makes sense.  Any idea how to do a reject with a Cisco access
   list? As far as I know it's just accept or deny.
 
  If its only accept or drop, you can always let it through and let your
  mail host reject it.
 
 That would work, but you would be opening up a hole through your firewall.
 A malicious user that gained access to the server could setup a service on
 that port and you wouldn't be the wiser.

True.  If that is the overriding concern, then the poster should have
a firewall that can do better.

However, since its a mail server, an intruder that could get ahold of
a low port better communications channel then ident :)

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.


---
This sf.net email is sponsored by:ThinkGeek
Two, two, TWO treats in one.
http://thinkgeek.com/sf
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] catch all email

2002-07-09 Thread Peter C. Norton

On Tue, Jul 09, 2002 at 02:18:06PM -0400, David Mir wrote:
 So this will actually still send the mail to valid users only? It just seems 
 that all email at that domain will come to me regardless if it is valid or 
 invalid with that alias.  If it is that easy I will add it to the alias file. 

One way to do this, if you have a database, is to make the forwarding
rule just slightly more complex.  I.e. write a program that checks for
the existance of the user against the authdaemon or database.  If it
fails, write the message locally, and if it successeds deliver.

I'm not sure how complex this is.

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.


---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Connection to port 113

2002-07-09 Thread Peter C. Norton

On Tue, Jul 09, 2002 at 03:55:27PM -0400, Bowie Bailey wrote:
 That makes sense.  Any idea how to do a reject with a Cisco access list?
 As far as I know it's just accept or deny.

If its only accept or drop, you can always let it through and let your
mail host reject it.

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.


---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Connection to port 113

2002-07-09 Thread Peter C. Norton

On Tue, Jul 09, 2002 at 02:46:18PM -0500, Richard Geoffrion wrote:
 I thought reverse-dns lookups were done on port 53, but I could be wrong.

All dns queries go to port 53/udp, and rarely to 53/tcp.  Not all
requests originate from port 53, tho.

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.


---
This sf.net email is sponsored by:ThinkGeek
Stuff, things, and much much more.
http://thinkgeek.com/sf
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] SMTP Connection refused

2002-07-08 Thread Peter C. Norton

On Mon, Jul 08, 2002 at 12:44:56PM -0400, Mohamed Metwaly wrote:
 Hi,
 I installed courier (imap, sendmail, esmtp) on redhat
 7.1. When I send from localhost to localhost it is
 fine, but when I try so send from somewhere else on
 the internet to the actual ip address of the machine,
 I get the error that smtp connection could not be
 establish (4.4.1). Also, when I tried to telnet to
 smtp port, the connection was refused.

Check the firewall config on your courier system.

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.


---
This sf.net email is sponsored by:ThinkGeek
Oh, it's good to be a geek.
http://thinkgeek.com/sf
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Re: authpgsql bug

2002-07-03 Thread Peter C. Norton

On Wed, Jul 03, 2002 at 10:36:42AM -0400, Sam Varshavchik wrote:
 I'm not sure what the deal is there.  The PGSQL_HOST setting goes directly 
 to postgres, unaltered... 
 
 -- 
 Sam 

Sam,

I sent in an explanations and changes to the documention in the
authpgsqlrc months ago.  Could you update the documentation based
on the info below? The current comments in authpgsqlrc are misleading.

Here's the message I sent:

This answers a question I was asking on my first installation.  The
following (important) correction to the comment in authpgsqlrc:

##NAME: LOCATION:0
#
# The server hostname, port, userid, and password used to log in.
#
# To connect to a socket, delete PGSQL_HOST, and put the socket filename
# into PGSQL_PORT

PGSQL_HOST  pgsql.example.com
PGSQL_PORT  5400
PGSQL_USERNAME  admin
PGSQL_PASSWORD  admin


Is incorrect.  If postgres is using /tmp/.s.PGSQL.5432 as its socket,
and you follow the above directions and set

PGSQL_PORT  /tmp/.s.PGSQL.5432

then an syscall trace on an authdaemon process shows that it fails
with an ENOENT trying to open /tmp/.s.PGSQL.0 (iirc - I discovered
this at 3:00 am). What works is setting PGSQL_PORT to 5432.  It seems
that the PORT is taken as a string to append to /tmp/.s.PGSQL. when
the postgres client lib tries to connect to the unix domain socket.

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.


---
This sf.net email is sponsored by:ThinkGeek
No, I will not fix your computer.
http://thinkgeek.com/sf
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] MySQL authorization

2002-06-25 Thread Peter C. Norton

On Tue, Jun 25, 2002 at 09:44:18AM +0300, Antony Dovgal wrote:
  Have you tried using varchars instead of chars?
 I don't think this can be the reason.

In the postgres module, using char instead of varchar returns a
whitespace padded string which prevents matching of hashed passwords.
I don't know if the mysql module does the same or not.  Why not test it?

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.


---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] MySQL authorization

2002-06-24 Thread Peter C. Norton

Have you tried using varchars instead of chars?

-Peter

On Mon, Jun 24, 2002 at 09:09:46PM -0700, David A. Mason wrote:
 Greetings.
 
 My courier is allowing system authentication via PAM with no problem,
 and when I attempt to use an account listed in the mysql table, I can
 see in the mysql logfile that the query was executed, and when I copy
 and paste that same query, I get good results, but I am not able to
 authenticate any users in the mysql database.
 
 In case this was due to a lack of maildirs, I created the users' home
 directories and maildirs using the maildirmake command and setting the
 owner and group to match those in the database (65534).
 
 I've tried with just a clear password set, and I've tried with both
 clear and crypt set (created using the userdbpw command.
 
 Anyway, after all these efforts, I only get responses . NO Login
 failed. with pretty wan logs.
 
 Anybody encountered and got around this?
 
 DAM
 
 
 
 
 ---
 Sponsored by:
 ThinkGeek at http://www.ThinkGeek.com/
 ___
 courier-users mailing list
 [EMAIL PROTECTED]
 Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.


---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Really over a barrel here...

2002-06-12 Thread Peter C. Norton

On Wed, Jun 12, 2002 at 11:13:21AM -0500, Jonah Sullivan wrote:
 The server timeout is set to something ridiculous like 2 hours.  The IP
 concurrency limit is 10.  The server has no other problems sending or
 receiving and is actually very well-behaved otherwise.

What's the client timeout set to?  Whatever it is, set it to its max.

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___

Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Really over a barrel here...

2002-06-12 Thread Peter C. Norton

Its time to pull out tcpdump or ethereal and take a close look at
what's actually happening.

-Peter

On Wed, Jun 12, 2002 at 01:21:09PM -0500, Jonah Sullivan wrote:
 10 minutes..
 
 it's 'timing out' within seconds when it attempts to connect for the
 first time.
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]] On Behalf Of Peter C.
 Norton
 Sent: Wednesday, June 12, 2002 11:46 AM
 To: [EMAIL PROTECTED]
 Subject: Re: [courier-users] Really over a barrel here...
 
 On Wed, Jun 12, 2002 at 11:13:21AM -0500, Jonah Sullivan wrote:
  The server timeout is set to something ridiculous like 2 hours.  The
 IP
  concurrency limit is 10.  The server has no other problems sending or
  receiving and is actually very well-behaved otherwise.
 
 What's the client timeout set to?  Whatever it is, set it to its max.
 
 -- 
 The 5 year plan:
 In five years we'll make up another plan.
 Or just re-use this one.
 
 ___
 
 Sponsored by:
 ThinkGeek at http://www.ThinkGeek.com/
 ___
 courier-users mailing list
 [EMAIL PROTECTED]
 Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
 

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___

Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



[courier-users] Increased error logging verbosity?

2002-05-29 Thread Peter C. Norton

I'm getting the following in my logs:

May 29 10:24:51 ghetto courierlocal:
id=00112A60.3CF4E387.42EF,from=spacey@mailhost,addr=[EMAIL PROTECTED]:
maildir.open: Permission denied

What would it take for the open method to print the directory that
failed to be opened to syslog as well?

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Increased error logging verbosity?

2002-05-29 Thread Peter C. Norton

To answer my own question, a hack to do this is to change
courier/module.local/deliver.c line 530:

   if ((delivf=fopen(p, w)) == 0)  
   {
sprintf(buf, maildir.open %s:, p);
delivery_error(buf);
return (-1);
   }

-Peter
   

On Wed, May 29, 2002 at 02:28:01PM -0700, Peter C. Norton wrote:
 I'm getting the following in my logs:
 
 May 29 10:24:51 ghetto courierlocal:
 id=00112A60.3CF4E387.42EF,from=spacey@mailhost,addr=[EMAIL PROTECTED]:
 maildir.open: Permission denied
 
 What would it take for the open method to print the directory that
 failed to be opened to syslog as well?
 
 -- 
 The 5 year plan:
 In five years we'll make up another plan.
 Or just re-use this one.
 
 ___
 
 Don't miss the 2002 Sprint PCS Application Developer's Conference
 August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm
 
 ___
 courier-users mailing list
 [EMAIL PROTECTED]
 Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Opinions wanted: mail gateway?

2002-05-24 Thread Peter C. Norton

On Fri, May 24, 2002 at 04:58:39PM -0500, Jerry Amundson wrote:
 Public services should be placed in the dmz, and not even
 the dmz should be allowed to create connections into the
 internal net.
 
 Except for the mail hub smtp'ing to/from the internal mail server, right?

You could probably avoid this by using serialmail and ssh.  I don't
know if its worth the cost, but ssh'ing from the internal server to
the dmz server, then forwarding a port from localhost on the dmz
server to the remote server, and just having serialmail run over that
forwarded connection would substantially reduce the hole.

Fetchamail could serve the same purpose, but with the substantial
issue of relying on fetchmail.

I suspect that for most people, having users check email on the dmz
smtp server, or an imap/pop3 server in the dmz would be a lot more
practical.

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Re: 0.35.1 Solaris 8 : crash/restore probleme

2002-04-16 Thread Peter C. Norton

So to make a backup/restore process possible, you have to write a
script that'll rename files based on the inode of the file that the
name is generated from.

The general approach is

foreach file in $queue_dir; do 
  $INUM=$(ls -ils | awk '{print $1}')

  for i in $(find $queue_dir -name $file*); do
  mv $i $INUM
  done
done

This is just the idea.  I don't remember w/o reading the internals of
the precise filenames and directory structures, but the above could be
turned into a queue_restore process after some trial and error.

-Peter

On Tue, Apr 16, 2002 at 10:01:48AM -0400, Sam Varshavchik wrote:
 Thierry DELHAISE writes: 
 
 
 We use NetBackup ( a commercial product ) to accomplish the save/restore
 step. All FS under our machine are UFS. I think the save process is made by
 a TAR clone, not a cpio one, neither a DD. 
 
 At re-startup, Courier send a lot of : 
 
 Courierd : Queue file corruption inode 57061
 Courierd : Queue file corruption inode ...
 Courierd : Queue file corruption inode ... 
 
 in syslog.
 
 The mail queue is inode-based.  When you restore, the mail queue files are 
 restored to different inodes. 
 
 -- 
 Sam 
 
 
 ___
 courier-users mailing list
 [EMAIL PROTECTED]
 Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] UserDB problem

2002-03-04 Thread Peter C. Norton

On Mon, Mar 04, 2002 at 11:18:42AM -0700, Deric Abel wrote:
 
 I am currently having a problem with the UserDB deleting it's self or entrys 
 there in.  We have traced it down to happen when update (or adding to) the 
 UserDB file with userdb..if we add a user account with userdb as a user 
 (courier) then do the same but running with root we lose data from from the 
 previous times.   Is this a problem others are having or should you only be 
 running userdb as root or as some other user?!?!?

I'm not sure what you mean here... if you add a user account as a user, then
your run makeuserdb, does it work?  How are you adding the file as a user?

If you add a user account as root, then run makeuserdb, does it work?  How
are you adding the file as root?

If you lose data, do you lose data from the userdb.dat file, or do you lose
it from the files you modified?

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] authpgsql problems

2002-03-01 Thread Peter C. Norton

This came up for someone else a few weeks ago.  You need varchar and not
char types for postgresql, or else it apparently pads responses with spaces
(iirc).

Sam, can you create a separate README.postgresql.html file that at least says: 

!DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
http://www.w3.org/TR/html4/loose.dtd;
html
head
  titleCourier PostgreSQL authentication module/title
  meta name=MSSmartTagsPreventParsing content=TRUE
/head

body text=#00 bgcolor=#FF link=#EE vlink=#551A8B alink=#FF
h1Courier PostgreSQL authentication module/h1

pPlease read the README.mysqlrc.html since almost all information there
applies to postgres as well, but with postgres change the schema to:

preCREATE TABLE passwd (
idvarchar(128) DEFAULT '' NOT NULL PRIMARY KEY,
crypt varchar(128) DEFAULT '' NOT NULL,
clear varchar(128) DEFAULT '' NOT NULL,
name  varchar(128) DEFAULT '' NOT NULL,
uid   int(10) unsigned DEFAULT '65534' NOT NULL,
gid   int(10) unsigned DEFAULT '65534' NOT NULL,
home  varchar(255) DEFAULT '' NOT NULL,
maildir   varchar(255) DEFAULT '' NOT NULL,
quota varchar(255) DEFAULT '' NOT NULL,
);/pre

pThere is a problem with postgresql and courier where postgres will return
character fields with padding.  This will interfere with
courier/authdaemon's working properly. Using varchar instead prevents this.

/body
/html






On Thu, Feb 28, 2002 at 11:52:49PM -0500, Tim Hunter wrote:
 courier=# \d passwd
 Table passwd
 Attribute | Type | Modifier
 ---++
 id | character(128) | not null default ''
 crypt | character(128) | not null default ''
 clear | character(128) | not null default ''
 name | character(128) | not null default ''
 uid | integer | not null default 65534
 gid | integer | not null default 65534
 home | character(255) | not null default ''
 maildir | character(255) | not null default ''
 quota | character(255) | not null default ''
 Index: id_id

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] I have written a HOWTO, where to post it?

2002-03-01 Thread Peter C. Norton

On Sat, Mar 02, 2002 at 01:20:33AM -0500, Geevarghese Philip wrote:
 1. What sort of disclaimer, licensing(I want it to be free for all) etc should 
 I put in the document?

I'd recommend taking a look at
http://www.linuxdoc.org/HOWTO/HOWTO-INDEX/copyright.html which uses the gnu
free documentation license.  Its probably along the lines of what you want,
though other language may be available.  Check out the documentation at the
*bsd sites - they may have different licenses, but I suspect that the
documentation is under a slightly more strict copyright then the software.
I think its just (c) 1998-2000 OpenBSD and the like.

 2. I have the document in three formats now -- lyx, latex, and ps. Will that 
 be enough for all people?

Depends on whether it can make its way to .txt and .html.  Those two are
more relevant for something like this.

 3. Where should I send these so that those who need it can find it?

Maybe it could be included with the courier distro?  For starters, though,
you could post it to the list in text form so future searches will turn it
up.  A prominent subject like Courier Virtual Domains with Postgresql
HOWTO would be helpful.

-Peter

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



[courier-users] correction to authpgsqlrc comment/docs

2002-02-27 Thread Peter C. Norton

This answers a question I was asking on my first installation.  The
following (important) correction to the comment in authpgsqlrc:

##NAME: LOCATION:0
#
# The server hostname, port, userid, and password used to log in.
#
# To connect to a socket, delete PGSQL_HOST, and put the socket filename
# into PGSQL_PORT

PGSQL_HOST  pgsql.example.com
PGSQL_PORT  5400
PGSQL_USERNAME  admin
PGSQL_PASSWORD  admin


Is incorrect.  If postgres is using /tmp/.s.PGSQL.5432 as its socket, and
you follow the above directions and set

PGSQL_PORT  /tmp/.s.PGSQL.5432

then an syscall trace on an authdaemon process shows that it fails with an
ENOENT trying to open /tmp/.s.PGSQL.0 (iirc - I discovered this at 3:00 am).
What works is setting PGSQL_PORT to 5432.  It seems that the PORT is taken
as a string to append to /tmp/.s.PGSQL. when the postgres client lib tries
to connect to the unix domain socket.

Sam, can you correct this in the next release?

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Courier clustered?

2002-02-27 Thread Peter C. Norton


You need to define your idea of a cluster.  

I.e. do you want something excessive like 2 systems with 1 TB of disk in a
database with all messages written to postgres on each system and drbd
replicating transactions and a HA/failover to another server with 20
pop/imap/smtp front-ends?

Or do you just want an nfs server and 2 courier smtp servers that deliver to
them and say a few pop/imap servers that read from that nfs server?

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Cannot authenticate; userdb/authdaemond/FreeBSD

2002-02-27 Thread Peter C. Norton

On Wed, Feb 27, 2002 at 08:59:29PM +0100, Roland Schneider wrote:
 Try the utility 'authtest' from the sources, and the utility
 authdaemontest.pl has to be somewhere in the archives.
 
 You also could configure --without-authdaemon, much easier
 to debug with strace.

The way I tend to do it is to limit your authdaemon to 1 child process, and
strace it.  This makes it pretty easy, too.  Under *bsd, use... I forget
what the syscall trace utility is.

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] reconstruction utility

2002-02-04 Thread Peter C. Norton

On Tue, Feb 05, 2002 at 01:37:35AM +0200, Oguz YILMAZ wrote:
 does courier imap have a reconstruction tool for Maildirs? like 
 reconstruct utility in cyrus imap. this is reallyy needed.

Why?  What's being broken in your maildirs?

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Re: reconstruction utility

2002-02-04 Thread Peter C. Norton

On Tue, Feb 05, 2002 at 04:21:12AM +0200, Oguz YILMAZ wrote:
 how should you know nobody will need?
 
 1-no software can be thought as perfect. errors always may occur.(even 
 maybe outside of the software like black outs)

Nope - atomic filesystem operations like rename, etc. guarantee that these
events do not prevent mail delivery, and do not incurr queue corruption.

 2-in another side: soft vda patch for postfix implements maildir++ 
 delivery.because maildrop does not compile on gcc 3x I can not use it. 
 because my platform hp ux 11i IA64 have only this compiler, gcc 3.0
 I have to usepostfix with this patch. and it does not modify `maildirsize` 
 file after delivery of mail file into maildir.i think this will affect 
 some things..
 now Ihave two choice;
 a: patch th epatch to postfix to modofy maildirsize file.

Yeah, this is the preferrable option.

 b: use maildrop as mail delivery agent (can not possible for now)
 c: use a recontructor time to time to recontruct maildirsize and other 
 files.
 
 according to 1 and 2, anybody may need a reconstruction utility.

That's not a reconstruction utility - that's du.

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Submission port ;)

2002-01-28 Thread Peter C. Norton

You probably do not need to punch a hole in the firewall for it.  It seems
to be for local users to send their email out.

On Tue, Jan 29, 2002 at 12:25:17AM +0100, Mark Janssen wrote:
 Hi List,
 
 I've been running Courier for some weeks now, and am now gearing up to
 do a larger scale beta test (company wide). But I still have some
 questions. I was working on firewalling the mail system and I would like
 to know if the Submission port (587/tcpopensubmission)
 needs to be accessable from the outside.
 
 Currently I have closed everything but pop3/pop3s/smtp/imap2/imaps/http/https
 and submission. But is submission used by 'outside' processes, or only
 from the local system (the webmail and imap processes) ??
 
 Can I safely close or leave open this port...
 
 Mark Janssen Unix / Linux, Open-Source and Internet Consultant @ SyConOS IT
 E-mail: mark(at)markjanssen.nl / maniac(at)maniac.nl GnuPG Key Id: 357D2178
 Web: Maniac.nl Unix-God.[Net|Org] MarkJanssen.[com|net|org|nl] SyConOS.[com|nl]
 
 ___
 courier-users mailing list
 [EMAIL PROTECTED]
 Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] virtual email

2002-01-17 Thread Peter C. Norton

You assign one real uid/gid combination(to own the maildirs, etc) and you
build a database (either userdb, ldap, postgres, mysql, or anything else you
want to program for) and use that database to authenticate users, with all
uid and gid set the the virtual user that you set up.  Some schema examples
are in the authmysql and the authpostgres documentation.

-Peter

On Thu, Jan 17, 2002 at 10:47:56AM -0600, Tony Bibbs wrote:
 I'm a Courier convert and I've dug around in the installation document
 an can't seem to find how to configure Courier to use virtual email
 accounts as opposed to creating valid system accounts (I'll be using
 mysql authentication).  Any points of reference, gotchas, etc would be
 appreciated.
 
 Thanks in advance,
 
 --Tony
 
 
 
 
 ___
 courier-users mailing list
 [EMAIL PROTECTED]
 Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] virtual email

2002-01-17 Thread Peter C. Norton

On Thu, Jan 17, 2002 at 12:03:02PM -0600, Tony Bibbs wrote:
 I'm assuming I need to do a maildirmake as that user to create the
 maildir.  

Absolutely correct.

 My question (maybe this is more than I need to know) is how
 does Courier use a single maildir for multiple users. Specifically, if I
 insert a new user into the MySQL table, will the users virtual maildir
 be created automatically?

It doesn't.  You make one maildir per user you add, and then you set that
virtual users' maildir field to that maildir.

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Sending mail from the console

2002-01-17 Thread Peter C. Norton

You mean something like

# mail -s my mail [EMAIL PROTECTED]  /var/log/my_log 

???

On Thu, Jan 17, 2002 at 10:40:52AM -0800, [EMAIL PROTECTED] wrote:
 Hi
 
 I'm trying to create a bash script that will parse certain log files for
 errors and forward them to postmaster.
 
 I can manage everything except the message delivery. 
 
 What command can I use to delivery an email message from a bash shell. 
 
 If possible, could you please provide an example of the usage of the
 command.
 
 Thank you
 
 
 ___
 courier-users mailing list
 [EMAIL PROTECTED]
 Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] MTA Comparison

2002-01-16 Thread Peter C. Norton

On Wed, Jan 16, 2002 at 11:31:46AM -0700, [EMAIL PROTECTED] wrote:
 very cool stuff. So does Exim.. Exchange well it has the marketting 
 arm I like to know small things like why it looses attachements 
 due to not following the RFCs. Wonder where they go? ;-))

Attachments?  Attachments?  That steaming turd looses anything it pleases
once in a while.  Its like AOL implemented in the small.

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Re: MTA Comparison

2002-01-16 Thread Peter C. Norton

On Wed, Jan 16, 2002 at 06:01:00PM -0500, Sam Varshavchik wrote:
 Correction: did.  Qmail was revolutionary in 1996.  Not any more.  Qmail is 
 not, by any stretch of imagination, revolutionary right now.  It's OK, for 
 most intents and purposes, but you can't point out anything in Qmail to me 
 that can be described as revolutionary, right now.  What?  Maildirs?  
 Everyone, and their uncle, can talk to maildirs now.  What else? 

Yeah, lets see if zeroseek ever gets anywhere.

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Auto-upload mail from backup server to main server?

2002-01-15 Thread Peter C. Norton

You could deliver all email that you're intending to forward into a maildir
and user djb's serialmail to deliver when you want it to.  Its pretty simple
to setup and should work fine with a virtualdomain setup for each domain
that you backup.  You could just set serialmail to run ever 5 or 10 minutes
automaticly and you'd have automated store and forward.

-Peter

On Tue, Jan 15, 2002 at 07:28:46AM +, William Hue wrote:
 Hi All,
 
 I've been using Courier since v0.29.0; great product!
 
 I have two mail servers for a given domain, call it domain.com for the
 purpose
 of this discussion.  The two servers are at two separate sites.
 
 I've set up two MX entries for domain.com with different preferences,
 and this
 works fine.  Mail gets accepted by the primary server (mail.domain.com);
 if the
 primary fails, mail starts going to the secondary server
 (mail2.domain.com).
 
 My question is:  Is there a way for me to, from a cron job, upload
 e-mail from
 the secondary server back to the primary server (when it is back up), so
 my
 users don't have to check for e-mail from both servers?  I figure this
 would be
 as simple as forwarding new messages, but I need to be able to specify
 the MTA
 as mail.domain.com, or else the local server accepts the forwarded
 messages
 again.
 
 Any suggestions would be appreciated.
 
 Thanks in advance,
 
 William Hue
 
 
 ___
 courier-users mailing list
 [EMAIL PROTECTED]
 Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] MTA Comparison

2002-01-15 Thread Peter C. Norton

On Tue, Jan 15, 2002 at 11:10:35AM -0600, Phil Brutsche wrote:
 I think this opinion came to be in 1996/97 after some qmail proponents
 grepped the Exim 1.x source for instances of strcpy and called that a
 security audit (I might be remembering the details wrong).

Its because the code didn't safely handle strings, and because it ran as a
single monolithic processes so any piece of code means that you own the
whole thing.

 These days that's akin to auditing a WinNT 3.1 installation, finding
 problems, then declaring WinXP to have the same problems.  Silly, isn't
 it? :)

The last exim advisory I see from bugtraq is a format string bug fixed in
version 3.30.  What version is exim at now?

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Auto-upload mail from backup server to main server?

2002-01-15 Thread Peter C. Norton

Its easy to use, but if the documentation doesn't do it for you let me know
and I'll send you a one-liner that works for me from a backup host.

For those who are interested the advantages of this over a normal backup MX
scenario are as follows:

1) Serialmail never bounces.  If your DNS gets completely shot and you're
upstream nameserver is returning authoritative nxdomain for your main server
while its unreachable (or something along those lines) and your backup host
works, serialmail will not bounce the email - it'll just retry.

2) Its seperate from your other services.  Nice, small, and self-contained.

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Re: running multiple versions of esmtpd

2002-01-13 Thread Peter C. Norton

A couple of us have done this.  You have to wind through the courier
install, but you can start another daemon on the smtps port with tls/ssl on
by default.

Check the archives.

-Peter

On Sun, Jan 13, 2002 at 08:13:31PM -0500, Andrew Newton wrote:
 Sam Varshavchik wrote:
 
 Andrew Newton writes:
 
 Will I cause any problems if I run multiple versions of esmtpd?  I 
 want to run one on port 25 and one on port 465.
 
 
 You can already do this.  In fact, the PORT setting in the esmtpd 
 configuration file tells you how to do it.
 
 Hey, that's pretty slick!
 
 However, I'm trying to get Evolution to work and it seems to want to do 
 SMTP with SSL on port 465.  I did a packet trace, and it seems to start 
 off trying to negotiate an SSL session.  This is different behaviour 
 than what is on port 25, which uses STARTTLS.
 
 Is there a way to put a version of the server up on port 465 using SSL 
 similar to IMAP?  Will running to separate versions do anything bad (I 
 suspect not)?
 
 -andy
 
 
 ___
 courier-users mailing list
 [EMAIL PROTECTED]
 Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Re: Replacing maildir message storage with SQL

2002-01-07 Thread Peter C. Norton

On Tue, Jan 08, 2002 at 10:15:40AM +1100, Simon Cocking wrote:
  It seems to me the ultimate goal is to replicate not just the mail, but
  the state of the mail back and forth.
 
 *Exactly* :o)

Then use a cluster filesystem or something like drdb.  SQL databases are
really really slow compared to a filesystem, when you can't control the
usage profile.  Using maildirs on top of gfs would get you better
replication, better speed, and better and easier redundancy then using a
database.

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: addendum to [courier-users] Inbound traffic jam

2002-01-07 Thread Peter C. Norton

You need to have domains listed in files in esmtpaccpetmailfor.dir/
and then you need to run makeacceptmailfor.  Check out the man page for it.

-Peter

On Mon, Jan 07, 2002 at 07:48:50PM -0600, David M . Stowell wrote:
 On 2002.01.07 18:59 Sysop wrote:
 Sysop wrote:
 
 Oh, I think I see where some of the problem lies...  I thought 
 somebody was trying to use you as an SMTP server, from outside your 
 network. This is just general mail coming in from another smtp server 
 for delivery
 
 where do you have your domains listed, for hosted or local?
 
 I have them listed in locals. No domains are listed in any other 
 configuration file. I've attached a copy of locals.
 
 Thanks,
 
 David M. Stowell



-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Suggested patch: check mail before entering IDLE mode

2002-01-07 Thread Peter C. Norton

On Tue, Jan 08, 2002 at 12:15:14AM -0500, Sam Varshavchik wrote:
 This is definitely wrong.  If no mailbox is open, you SHOULD NOT open 
 INBOX due to IDLE!

Sam,

Not having looked carefully at the patch, are you speaking in all caps
because you're quoting an RFC (in which case SHOULD NOT could be == to YOU
CAN) or can you expand on this?

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] authpgsql don't authenticate ... but authuserdb do .. need help please ...

2002-01-06 Thread Peter C. Norton

[ I think I sent something similar, but munged the To: line.  Apologies if
this turns up twice ]

The comment doesn't really explain it.  Postgres creates a socket in a
directory that you specify, but I believe I've observed that this socket
name changes based on the pid of the postmaster process.

On Sun, Jan 06, 2002 at 07:25:58PM -0200, Theo Cabrerizo Diem wrote:
 There's a comment explainig hot to to this in authpgsql ... but, to
 avoid bigger problems .. I am connecting to 127.0.0.1 
 
 extracted from authpgsql
 # To connect to a socket, delete PGSQL_HOST, and put the socket filename
 # into PGSQL_PORT
 
 I didn't tested it yet 
 if you make authpgsql work, please contact me ...

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] authpgsql don't authenticate ... but authuserdb do .. need help please ...

2002-01-06 Thread Peter C. Norton

On Sun, Jan 06, 2002 at 07:32:20PM -0200, Theo Cabrerizo Diem wrote:
 Any other idea ? Is there a option to debug courier that gives me a more
 compreensive error like : Auth FAILED: Password Incorrect : password was
 to be foobar  ? or Auth FAILED: I made a boo boo running a query ? :o)

Use strace on the authdaemon process.  When I tested I reducted the number
of authdaemon children to 1 so I wouldn't have to figure out which one I was
using.

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Add Buy.com to list of 8-bit header offenders

2002-01-03 Thread Peter C. Norton

On Thu, Jan 03, 2002 at 09:30:51PM -0500, Greg Owen wrote:
  I would like to cast my vote against this proposal. Not
  only do I admire Sam's dedication to the RFC's, I also
  support it.
 
 I say, go ahead and encapsulate.  Sam bypasses RFCs when it suits him -
 the recent calendaring discussions make that clear.  I'm sick of getting
 dropped from mailing lists because Joe User in Podunk has a bad email client
 that generated a bounce that the list software took personally.

You're in apples and oranges territory comparing the calendar with bogus
8bit headers.  The calendar Sam's making doesn't claim any standards
compliance or dependancy on other software being compliant to any standard.
SMTP on the other hand is a widely abused standard that more developers
writing smtp software should invest the time in understanding.  Every smtp
mail delivery relies on both hosts speaking the same lingo, and if somoene
sending mail can't figure out how to do it, its good that they should be
informed when they make a mistake.  After all, what might they do next?

-Peter

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Relay for dynamic clients

2002-01-02 Thread Peter C. Norton

On Wed, Jan 02, 2002 at 12:19:23AM -0800, Sysop wrote:
 Sorry to push this, but I havn't really gotten a responce

Exqueeze me, but I did answer this:
http://www.geocrawler.com/lists/3/SourceForge/3723/0/7436386/

Have you tried out my answer?


-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Relay for dynamic clients

2002-01-01 Thread Peter C. Norton

On Tue, Jan 01, 2002 at 02:24:23AM -0800, Sysop wrote:
 So I have come clients, that need to use me as an SMTP server.  Problem 
 is, they are on DHCP, so I can't easily add them to the smtpaccesslist. 
  I would like to enable it so that certian hosts, EG static hosts, can 
 rely period.  And those that are on DHCP can supply a username/password 
 to relay.  can this be done? or is it all all or nothing shot?

I haven't tried this myself, but I suspect that if a user authenticates then
relaying is allowed, even if authentication is not strictly required in the
config.

 Also, if I enable relay via  username/password, what entries do I put in 
 for teh smtpaccess list?

The static addresses.

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] Courier + LDAPX

2001-12-13 Thread Peter C. Norton

Perhaps at www.sunfreeware.com the package includes the .h and .a files for
openldap?

-Peter

On Thu, Dec 13, 2001 at 06:34:36PM -0600, Jason bone wrote:
 I have read in the readme files where it says you need the development
 libraries for OpenLDAP no matter what implementation of LDAP you are using
 to get this to work. Well I am using OpenLDAP, However I am having a
 little difficulty getting Development libraries for OpenLDAP of
 the UltraSparc Solaris 8 flavor. The only ones I can find are Linux
 development libraries for OpenLDAP. Can someone guide me to the right
 place, becuase www.openldap.org doesn't have a Package to download
 for the development libraries at all. Not even a source package. Or
 at least I wasn't able to find one on their site.

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] smtps?

2001-12-13 Thread Peter C. Norton

On Thu, Dec 13, 2001 at 10:38:58PM -0800, Gordon Messmer wrote:
 Sam~ Any chance of including this in the distribution when I get it right?

Well, if my vote counts for anything, you've got it. It'll certianly be
helpful.

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] smtps?

2001-12-11 Thread Peter C. Norton

OK, its working for me.  I'll post the stuff I did here.

On Tue, Dec 11, 2001 at 02:08:13AM -0800, Gordon Messmer wrote:
 I've got a patch almost ready.  The attached patch adds the esmtpd-ssl 
 service and makes the other rc files resemble each other more closely.
 
 However, it doesn't work.  Yeah, sorta useless... but it's close.  It 
 looks like the problem is that when courieresmtpd is started under 
 couriertls, the socket is nonblocking, so instead of reading lines it 
 reads the entire buffer's worth of characters (5k) before giving a 
 responce.  So that needs to be fixed before it'll work.
 
 I notice that esmtpd calls read() on the sockets, where the pop server 
 (for instance) calls fgets on stdin.  Why they are designed differently, I 
 dunno.
 
 If someone else finishes this before I do (I have some other stuff to work 
 on for the next two days) so much the better.  Otherwise, I'll try to 
 f1x0r it later this week.
 
 On Sun, 9 Dec 2001, Peter C. Norton wrote:
 
  What's the proper method to get esmtpd to use couriertls to listen on port
  465?  I've tried looking at how the imapd does this, but it seems to be
  some magic that I haven't figured out.
  
  I'm doing this because I'd like to use evolution and to be able to encrypt
  my smtp sessions. It doesn't seem that evolution suports starttls. Searching
  for how to do this hasn't turned up any info that I can use directly, so any
  pointers that I may have missed would be appreciated.
  
  
 
 -- 
 If I had a dollar for every brain that you don't have,
   I'd have one dollar. - Squidward to SpongeBob

 diff -ruN courier-0.36.1/courier/imapd-ssl.rc.in 
courier-0.36.1-smtps/courier/imapd-ssl.rc.in
 --- courier-0.36.1/courier/imapd-ssl.rc.inThu Mar 15 19:39:41 2001
 +++ courier-0.36.1-smtps/courier/imapd-ssl.rc.in  Mon Dec 10 10:19:43 2001
 @@ -5,39 +5,58 @@
  # See COPYING for distribution information.
  
  
 -prefix=@prefix@
 -exec_prefix=@exec_prefix@
 +prefix=@prefix@
 +exec_prefix=@exec_prefix@
 +sysconfdir=@sysconfdir@
 +bindir=@bindir@
 +sbindir=@sbindir@
 +libexecdir=@libexecdir@
  
 -. @sysconfdir@/imapd
 -. @sysconfdir@/imapd-ssl
 +. ${sysconfdir}/imapd
 +. ${sysconfdir}/imapd-ssl
  
 -case $1 in
 +export PATH
 +export SHELL
 +
 +case $1 in
  start)
 - LIBAUTHMODULES=
 - for f in `echo $AUTHMODULES`
 - do
 - LIBAUTHMODULES=$LIBAUTHMODULES @libexecdir@/authlib/$f
 - done
 -
 - ulimit -d $IMAP_ULIMITD
 - @SETENV@ - @SHELL@ -c  . @sysconfdir@/imapd ; \
 - . @sysconfdir@/imapd-ssl ; \
 - IMAP_TLS=1; export IMAP_TLS; \
 - `sed -n '/^#/d;/=/p' @sysconfdir@/imapd | \
 - sed 's/=.*//;s/^/export /;s/$/;/'`
 - `sed -n '/^#/d;/=/p' @sysconfdir@/imapd-ssl | \
 - sed 's/=.*//;s/^/export /;s/$/;/'`
 - @sbindir@/couriertcpd -address=$SSLADDRESS \
 - -stderrlogger=@sbindir@/logger \
 - -stderrloggername=imapd-ssl \
 - -maxprocs=$MAXDAEMONS -maxperip=$MAXPERIP \
 - -pid=$SSLPIDFILE $TCPDOPTS \
 - $SSLPORT $COURIERTLS -server -tcpd \
 - @libexecdir@/courier/imaplogin $LIBAUTHMODULES \
 - @bindir@/imapd Maildir
   ;;
  stop)
 - @sbindir@/couriertcpd -pid=$SSLPIDFILE -stop
 + ${sbindir}/couriertcpd -pid=$SSLPIDFILE -stop
 + exit 0
 + ;;
 +restart)
 + ${sbindir}/couriertcpd -pid=$SSLPIDFILE -restart
 + exit 0
 + ;;
 +*)
 + exit 0
   ;;
  esac
 -exit 0
 +
 +cd ${prefix}
 +
 +AUTHMODULELIST=
 +for f in `echo $AUTHMODULES`
 +do
 + AUTHMODULELIST=$AUTHMODULELIST ${libexecdir}/authlib/$f
 +done
 +AUTHMODULELIST=`echo $AUTHMODULELIST`
 +
 +ulimit -d $IMAP_ULIMITD
 +@SETENV@ - @SHELL@ -c  . ${sysconfdir}/imapd ; \
 + . ${sysconfdir}/imapd-ssl ; \
 + IMAP_TLS=1; export IMAP_TLS; \
 + `sed -n '/^#/d;/=/p' ${sysconfdir}/imapd | \
 + sed 's/=.*//;s/^/export /;s/$/;/'`
 + `sed -n '/^#/d;/=/p' ${sysconfdir}/imapd-ssl | \
 + sed 's/=.*//;s/^/export /;s/$/;/'`
 + ${sbindir}/couriertcpd \
 + -stderrlogger=${sbindir}/logger \
 + -stderrloggername=imapd-ssl \
 + -maxprocs=$MAXDAEMONS -maxperip=$MAXPERIP \
 + -pid=$SSLPIDFILE $TCPDOPTS \
 + -address=$SSLADDRESS $SSLPORT \
 + $COURIERTLS -server -tcpd \
 + ${libexecdir}/courier/imaplogin $AUTHMODULELIST \
 + ${bindir}/imapd Maildir
 diff -ruN courier-0.36.1/courier/imapd.rc.in courier-0.36.1-smtps/courier/imapd.rc.in
 --- courier-0.36.1/courier/imapd.rc.inSun Jul 29 17:13:39 2001
 +++ courier-0.36.1-smtps/courier/imapd.rc.in  Mon Dec 10 10:19:31 2001
 @@ -5,42 +5,58 @@
  # See COPYING for distribution information.
  
  
 -prefix=@prefix@
 -exec_prefix=@exec_prefix@
 +prefix=@prefix@
 +exec_prefix

[courier-users] Changes to get smtps/ssmtp working

2001-12-11 Thread Peter C. Norton

It'd be nice if this could be setup by the default courier install scripts.

The first attachment is the diff that'll make esmptd-msa into esmtpd-ssl.

The other thing you need to do is a modification to
/usr/lib/courier/share/esmtpd.

Around line 31, add:

'esmtpd-ssl')
configfiles=${sysconfdir}/esmtpd ${sysconfdir}/esmtpd-ssl
. ${sysconfdir}/esmtpd
. ${sysconfdir}/esmtpd-ssl
;;

and change the error message just below to 
*)
echo Must be invoked as esmtpd or esmtpd-msa or esmtpd-ssl 2
exit 1
;;
esac

and change the end of the script to:

echo ulimit -d $ULIMIT
if [ x${SSLPORT} != x ] ; then
echo ${sbindir}/couriertcpd $TCPDOPTS $SSLPORT \
${bindir}/couriertls -tcpd -server \
${sbindir}/courieresmtpd $AUTHMODULES '/dev/null 21 /dev/null'
else 
echo ${sbindir}/couriertcpd $TCPDOPTS $PORT \
${sbindir}/courieresmtpd $AUTHMODULES '/dev/null 21 /dev/null'
fi

) | /usr/bin/env - /bin/sh
exit 0


I *think* that's all I did.

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.


--- esmtpd-msa  Mon Dec 10 11:26:49 2001
+++ esmtpd-ssl  Mon Dec 10 12:24:59 2001
@@ -21,9 +21,9 @@
 
 ##NAME: BOFHCHECKDNS:0
 #
-#  ESMTP MSA is likely to want to verify return domain addresses.
+#  ESMTP SSL is likely to want to verify return domain addresses.
 
-BOFHCHECKDNS=1
+BOFHCHECKDNS=0
 
 ##NAME: NOADDMSGID:0
 #
@@ -71,14 +71,14 @@
 #  The ADDRESS setting, if given, is a default for ports that do not have
 #  a specified IP address.
 
-PORT=587
+SSLPORT=smtps
 
 ##NAME: PIDFILE:0
 #
 #  We *MUST* use a different PID file than esmtpd!!!
 #
 
-PIDFILE=/var/spool/courier/tmp/esmtpd-msa.pid
+PIDFILE=/var/spool/courier/tmp/esmtpd-ssl.pid
 
 ##NAME: ACCESSFILE:1
 #
@@ -97,7 +97,7 @@
 #  prefix=/usr/lib/courier
 #  exec_prefix=/usr/lib/courier
 #  . ${sysconfdir}/esmtpd
-#  . ${sysconfdir}/esmtpd-msa
+#  . ${sysconfdir}/esmtpd-ssl
 #  case x$ESMTPDSTART in
 #  x[yY]*)
 #/usr/lib/courier/sbin/esmtpd-msa start
@@ -108,7 +108,7 @@
 # with enough platforms so that people get annoyed with having to flip it to
 # YES every time.
 
-ESMTPDSTART=NO
+ESMTPDSTART=YES
 
 ##NAME: CUSTOM:1
 #
@@ -118,6 +118,8 @@
 # If you want to override them, do it here:
 #
 
+
+
 ##NAME: MAXDAEMONS:1
 
 MAXDAEMONS=40




Re: [courier-users] Changes to get smtps/ssmtp working

2001-12-11 Thread Peter C. Norton

Oh yeah, I had to 

# ln -s /usr/lib/courier/share/esmtpd /usr/lib/courier/sbin/esmtpd-ssl

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] RPM install of courier-0.36.1.20011210

2001-12-11 Thread Peter C. Norton

You built the rpm's and it found a perl install in /usr/local/bin.  However
rpm only knows about perl if you installed a perl rpm.

Solution: if this is the only problem you're seeing, then just run

rpm -Uvh --nodeps courier-*.rpm

On Tue, Dec 11, 2001 at 11:16:39AM -0800, Sysop wrote:
 I built the rpm's and everything went good.  I then went to rpm -Uvh the 
 packages that I had installed from previous courier versions, and I get 
 this output:
 
 error: failed dependencies:
 /usr/local/bin/perl   is needed by courier-0.36.1.20011210-1.7.1
 /usr/local/bin/perl   is needed by 
 courier-webmail-0.36.1.20011210-1.7.1
 
 The thing is, I DO have a file /usr/local/bin/perl   but which perl 
 shows /usr/bin/perl
 
 What could be wrong?
 
 Jkeating
 j2solutions.net
 
 
 ___
 courier-users mailing list
 [EMAIL PROTECTED]
 Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



Re: [courier-users] RPM install of courier-0.36.1.20011210

2001-12-11 Thread Peter C. Norton

I'll postulate that someone put a symlink in /usr/local/bin and it was the
first perl that the configure script tried out.  

-Peter

P.S. Anyone have a postgres config that they can share using a unix domain
socket?

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



[courier-users] Password changing in sqwebmail

2001-12-10 Thread Peter C. Norton

I'm using the webmail portion of courier.  My system is entirely
virtual-user based - no users will shells are to receive email, and no email
addresses have shells. 

Would the webmail password change form be useful for my environment?

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



[courier-users] calendar goals?

2001-12-10 Thread Peter C. Norton

Is there any intention to make the calendar backend work as an icalendar 
(rfc 2445).  I'm starting to read the rfc, and I've noticed that there's the
beginnings of an implementation of some part of the library under the name
of libical at sourceforge.

Again, focusing on evolution (and I guess outlook and netscape) having a
calendar server as part of courier would be cool.  I'm going to assume,
before reading the RFC, that implementing an icalendar server is a PITA, but
if it is possible has anyone done it, and would having courier's calendar
access this be useful?

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users



[courier-users] smtps again

2001-12-09 Thread Peter C. Norton

I've been playing with couriertls and I'm still a bit confused.  Has anyone
else done this, and can you post the command line that you're using to
achieve this?

-- 
The 5 year plan:
In five years we'll make up another plan.
Or just re-use this one.

___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users