RE: [courier-users] Question about storage architecture? Hardlinks for multiple deliveries?

2005-03-05 Thread Mitch (WebCob)
> I don't think it can be accomplished without a massive and fundamental
> change to courier.  On a unix fs, a hard link is just a reference to the
> destination file.  The link points to an inode which contains permission
> data, etc.  Either the first user to receive the message would have
> permission to modify it, or no one would.  The latter would require that
> the entire system drop the unix security model and start storing
> messages either in a central location, or in a DB like Exchange.
> Maildrop would likely have to be removed from the system, as well.

[Mitch says:] Hey Gord - I realize what a hardlink is - but when you use
virtual users, they are often using only one real unix id, so that's not an
issue there... and from what I understand about maildir, the file is never
modified - a client which "edits" a message, deletes the original and
creates a new one - right?

> It's really not worth being concerned over until you have as many users
> as google, and a lot of duplicate messages sent to the bulk of them.
[Mitch says:] 
Probably right, was just curious - we did a few tests, in some cases 10% of
messages were duplicated, but they were often the big ones - the ones with
attachements and so on - made me wonder with a lot of GB's of active mail
storage how much of that was duplicated - and if it was referenced by
hardlink how much processor would be saved in duplicate spam runs, duplicate
item caches, etc...

I know it isn't happening - was just a Saturday musing - thanks!

m/



---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
___
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


[courier-users] Question about storage architecture? Hardlinks for multiple deliveries?

2005-03-05 Thread Mitch (WebCob)








I did some googling – I thought this idea had
come up before can’t see it though  – we were reviewing the
number of messages on our system with multiple recipients and came up with more
than a few – my understanding is that Gmail uses a hardlink-like system
to basically reference count messages received – saves on storage demands
and makes their marketing needs easier…

 

Could something similar be accomplished with courier
(not the marketing – just the storage savings!)

 

I’m not expecting an instant change – now
or ever – just throwing out the idea to consider the relative merits and
difficulties…

 

In our case we have condense our maildrop processing
into maildroprc – users don’t run custom scripts –
conceivably a single message could be delivered to ALL recipients instead of a
copy for each. This would reduce processing and storage demands drastically –
I see a lot of difficulties to be overcome just curious what people think.

 

Thanks!

 

m/








[courier-users] Debugging an error 534

2005-01-28 Thread Mitch (WebCob)








I’m getting error 534 on my courier server when
ONE remote client connects and tries to send mail… they claim they are
sending to a single recipient – I obtained a copy of a message received
on another non-courier server, and looked at the headers – I don’t
see anything. Is there a way to capture the message and determine where the
problem is?

 

I know it’s their problem, but it would be good
if I could help determine the source… I could turn on bigbrother, or
maybe use some tcp packet capture?

 

I’m not an expert in that – hoping someone
who has had similar experience can offer some advice.

 

Thanks!

 

m/








[courier-users] Debugging an error 534 - 2nd post

2005-01-28 Thread Mitch (WebCob)








If you received this already sorry – hasn’t
shown up on the list from what I can see, so I’m trying again:

 

I’m getting error 534 on my courier server when
ONE remote client connects and tries to send mail… they claim they are
sending to a single recipient – I obtained a copy of a message received
on another non-courier server, and looked at the headers – I don’t see
anything. Is there a way to capture the message and determine where the problem
is?

 

I know it’s their problem, but it would be good
if I could help determine the source… I could turn on bigbrother, or
maybe use some tcp packet capture?

 

I’m not an expert in that – hoping
someone who has had similar experience can offer some advice.

 

Thanks!

 

m/








RE: [courier-users] Courier::Filter 0.16

2005-01-19 Thread Mitch (WebCob)

Sam Varshavchik [EMAIL PROTECTED] wrote:
> No -- the problem that prevents this from working is that by that time
> the message's MIME structure is already parsed.  If, suddenly the
> message's contents change, the pre-parsed offsets of various MIME
> entities in the message will result in a corrupted message, should
> Courier choose to rewrite it.

Can't Courier just determine whether the message file was modified, and if
so, re-read and re-parse the message?  That should avoid any performance
problems for backward compatible behavior (i.e. for non-modifying
filters).


[Mitch says:] Another hack I played with a while back (which may still work
on current versions was to edit a PREEXISTING header - thereby preserving
the structure... that is sometimes enough for people - you make sure all
messages are created with a header "X-My-Header: XXX" and then as needed you
rewrite it to "X-My-Header: No_" or "X-My-Header: Yes" - note they are the
same length, so it doesn't screw up the structure byte offsets...

Just in case that helps...

m/



---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Courier::Filter 0.16

2005-01-19 Thread Mitch (WebCob)

Can't Courier just determine whether the message file was modified, and if
so, re-read and re-parse the message?  That should avoid any performance
problems for backward compatible behavior (i.e. for non-modifying
filters).


[Mitch says:] That's been kicked around before - it would seem to be a lot
more efficient than resubmitting all the time, but the fact that it hasn't
happened yet makes me wonder how much of a bear that option must be...

If it's not that BAD, but just a low priority , maybe Sam could provide a
few helpful hints to people who want to take that on - would there be an
objection to including the feature if it were made?

m/



---
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
___
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Feasibility of encrypting the mail spool.

2005-01-17 Thread Mitch (WebCob)


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Lloyd Zusman
Sent: January 17, 2005 9:54 AM
To: courier-users@lists.sourceforge.net
Subject: [courier-users] Feasibility of encrypting the mail spool.

I'm wondering how much work it would take to add the ability to
optionally encrypt the Courier mail spool.


[Mitch says:] I would think it'd be pretty major - you'd have to look up
keys - do all the work - a number of API's would have to have params or
information storage for the keys added, etc.

Can I ask what the thinking behind this is?

If you can't trust root, nothing is safe - root could always read the keys
from a memory dump etc.

If you can trust root, directory security should keep people safe... if you
worry about media theft, consider an encrypted file system?

If you don't trust the platform at all, then maybe you are trying to fix the
wrong thing? Write a new mapi provider (or other) that resides on the client
and does the work - or use PGP... at least this defers the encryption
overhead to the client side...

Iirc, at least one version of the web client Sam wrote allowed for GPG -
which could be done on windows as well...

Just a few musings

Cheers

m/



---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Creating users with crypt passwords

2005-01-14 Thread Mitch (WebCob)

>openssl -passwd -1
>should work independantly of any crypt(3) stuff on your OS


[Mitch says:] no "-" before passwd at least on freebsd...
Passwd is a command

openssl passwd -1

m/



---
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almosthttp://www.thinkgeek.com/sfshirt
___
courier-users mailing list
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Backing-up mail to a windows box

2004-12-02 Thread Mitch \(WebCob\)

> Or is there another backup method I should be using?

[Mitch says:] You can also tar / gzip or bzip BEFORE you back up - makes
rsync a lot less efficient - but so does windows ;-) If it's all you got,
that's your best option - another option is to buy a second hard disk for
the *nix box and use it for your backups.

m/



---
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Re: Empty messages halting POP downloads

2004-11-17 Thread Mitch (WebCob)
Sam Varshavchik wrote  on 17.11.2004 2:33:

> Mark Constable writes:
> 
>> On Wednesday 17 November 2004 00:55, Malcolm Weir wrote:
>>
>>> > ...
>>> > -   printf(".\r\n");
>>> > +   printf("\r\n.\r\n");
...
> 
> It's a hack.  All messages will now have a mysterious blank line 
> appended to them.  Most people will probably never notice, but it 
> doesn't feel right.

OK, this hack could be slighly complicated to add blank line only if a 
message doesn't have any body lines.

-- 
Alexei.

[Mitch says:] I understand Sam's concern about modifying all messages and
thing he's right, but there has to be something easier than replacing the
broken clients and less brutal than what I do now (discard all messages too
small to be useful ;-)

Some people get a lot of these messages - and although I've tried to
convince them to fix their own problem by logging into webmail they persist
in the notion that it's a server problem - I don't know if these messages
didn't exist when they were at former hosts, or if the bug in the client
didn't exist at that point... or if sendmail, exim or other somehow patch
their messages...

In short - if Sam would accept a better patch then I'd sure appreciate if it
was there ;-)

m/



---
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Missing spam folder

2004-10-31 Thread Mitch \(WebCob\)
> > I have hundreds of users with the same disability ;-)
> 
> You will note that the Courier-IMAP server implements access 
> control lists. 
> Therefore, it would be a trivial matter to run a script that 
> turns off the 
> delete-folder ACL on everyone's spam folder, thus preventing the 
> luser from 
> deleting it.
> 
> Of course, with an ACL-capable IMAP client the luser will be able 
> to reset 
> the ACL; however if the luser knows how to set ACLs, the luser is 
> not likely 
> to be the kind that deletes the spam folder.
> 

Great idea!

I'll shovel that on my to do pile - though I still like the autocreating folders ;-) 
If anyone else does something similar - share with us please!

Thanks!

m/



---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id065&op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Re: Fixing corrupted queue?

2004-10-30 Thread Mitch \(WebCob\)
> Lloyd Zusman <[EMAIL PROTECTED]> writes:
>
> > I am peridically getting the following error message among my 'courierd'
> > syslog entries:
> >
> >   QUEUE FILE CORRUPTION: inode 4508670
> >
> > How do I fix this?
> >
> > Thanks in advance.
>
> I fixed this:
>
> I found a 70/D4508670 file with no corresponding queue entres.  I
> removed the 70/D4508670 file, and then all was well.
>
>
> --
>  Lloyd Zusman

Thanks for sharing that Lloyd!

The usual recommendation iirc was "disk error - delete your mailq" - which
never made my users happy.

Still indicitive of a crash of some sort I guess, but at least a more
gradeful way to recover than wiping the queue!

Thanks!

m/



---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Missing spam folder

2004-10-30 Thread Mitch \(WebCob\)
> Alle 16:07, giovedì 28 ottobre 2004, Bowie Bailey ha scritto:
> > I have a user who has a bad habit of deleting his spam folder.  This
> > causes his junk mail to start backing up in the mail queue until I
> > notice and fix it.

I have hundreds of users with the same disability ;-)

if you search the archives you will find a patch I posted for maildrop,
which allows it to autocreate missing subfolders.

It isn't a part of mainstream code, but has worked for me for years... next
time I upgrade I'll publish the latest version if I remember (or anyone
asks).

m/



---
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id065&op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] imap / pop3 maxperip - how to detect a problem and override on a per-ip basis?

2004-10-23 Thread Mitch (WebCob)
> > Same question I guess applies to other limit conditions... like
> MAXDAEMONS,
> > MAXPERIP etc. Is there a way to detect if the limits are being tested? I
>
> There is a warning message that gets logged when you hit MAXDAEMONS.
>
> No warning messages are logged when you hit MAXPERC or MAXPERIP.
> You don't
> want your logs quickly filled when someone's trying to throw several
> thousand connections at you, per second.
>

Two ideas... or suggestions...

1) could a "log file" be written or touched to indicate the last time one of
these events occured? That way there would be no danger of spewing to much
crap into the logs... Just a simple timestamp or even a 0 byte file touched
when the event occurs... or perhaps just the address that caused the
error... one record - overwrite as needed.

optionally, if these log messages were available in a debug mode, it might
be a helpful diagnostic tool...

2) could the localhost have a separate set of limits? If not defined,
default to the original - if defined, use them?

I'm not able to do this right now, but would like your thoughts on the
idea - maybe it's an easy change - maybe there is something stupid about the
idea...

Thanks!

m/



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] imap / pop3 maxperip - how to detect a problem and override on a per-ip basis?

2004-10-23 Thread Mitch (WebCob)
> Mitch (WebCob) writes:
>
> > Is there a way to override the limit for known "good" hosts? We
> have some
>
> No.  The only thing you can do is start another copy of the server on a
> different IP address, with a different configuration.
>

Thanks Sam. You might be the only one who knows enough about the internals
for these...

If I do the above, my problem would probably be a fiar bit of inefficiency -
the servers have many IP addresses, and if I have to list them all in the
generic config instead of a listen_all, that results in a file handle per
connection and some overhead in other areas right? That wouldn't be the
best - if I have to do this, I guess I could use a different port, and
configure webmails to you that port though - that way I can keep both
daemons on listen_all, and avoid the difficulties that would otherwise
result from IP adding and deleting.

BUT...

Is the limit in effect for localhost? (Just checking if that's a special
case... I found an OLD note I made that at one point I thought it was - not
sure if I was right then or if it still applies though...)

Is there an error message generated when this condition occurs - something I
could find in the logs? At this point I can't even be sure that's my
problem. I only get told about the problem about once a week - used to be
once a month though...

Same question I guess applies to other limit conditions... like MAXDAEMONS,
MAXPERIP etc. Is there a way to detect if the limits are being tested? I
don't want to set them unrealistically high, but I also don't want a limit
of 40 instead of 50 or whatever to cause 1 or 2 client complaints a day ;-)

Thanks again.

m/



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


[courier-users] imap / pop3 maxperip - how to detect a problem and override on a per-ip basis?

2004-10-23 Thread Mitch (WebCob)
Hi - think I MIGHT be having troubles with connections to my imap and pop3
daemons... think they MIGHT be due to limits in the MAXPERIP, but they are
intermittant, and before I raise limits and open myself up to a dos attack I
thought I'd ask if there is a way to verify?

Does anything specific show up in the logs if the limit is reached?

Is there a way to override the limit for known "good" hosts? We have some
webmail clients on local servers - so I'm wondering if I can set a special
limit for them, or if I have to run different processes... like one on a
separate address, and firewall or screen it from public view and use it only
for the "good" clients?

The symptom I'm seeing is errors connecting to the server by the webmail
client - don't know if they webclients are at fault (users can't be trusted
to report the error reliably, and it isn't an apache error per say, so
there's no log of it...

Also - I know I've seen it before, but every time I look I can't find it -
is there a central doc of all the bofh options? When I look on the courier
site I don't see one, but I'm sure I have before...

Thanks!

m/



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Beta release of the Courier authentication library.

2004-10-20 Thread Mitch \(WebCob\)
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:courier-users-
> [EMAIL PROTECTED] On Behalf Of Sam Varshavchik
> Sent: October 20, 2004 19:07
> To: [EMAIL PROTECTED]; courier-
> [EMAIL PROTECTED]; [EMAIL PROTECTED];
> SqWebMail mailing list
> Subject: [courier-users] Beta release of the Courier authentication
> library.
> 
> Download: http://www.courier-mta.org/download.php#authlib
> 

[Mitch (bitblock)] I know the ink is still wet on the announcement... but I
already have a question...

Currently I've got a rather nasty little wrapper around maildrop to allow it
to pull in additional fields from my user tables... I had visions...

1) that the new auth library and all things that call it could pass as
output, but otherwise ignore additional fields from the user query
2) that maildrop could pull in this information so that I could avoid the
wrapper...

This would be an easier and more efficient hack if the programs which use
the auth library could somehow just ignore additional fields returned...
that way if I managed to hack the auth library and maildrop, I at least
wouldn't have to revisit everywhere that calls the auth library?

Of course maybe with the new system I'm missing a new and better way to do
what I want...

My goal is simple (in idea, but not implementation ;-)...
To control all user accounts through a central maildrop script relying on
database stored options... with my wrapper I've done this already, and works
to allow things like activation of various maildrop actions, filters,
xfilters etc. and even auto responses...

Just thought with the new system there might be an easier way.

Thanks... enjoying the evolution!

m/




---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Courier-mta and MySQL for aliases, domains, etc

2004-10-18 Thread Mitch (WebCob)
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:courier-users-
> [EMAIL PROTECTED] On Behalf Of Filipe
> Sent: October 18, 2004 02:10
> To: [EMAIL PROTECTED]
> Subject: Re: [courier-users] Courier-mta and MySQL for aliases, domains,
> etc
> 
> Manfred Heubach said:
> > Sorry, for that. I didn't understand that you want to keep all data in
> > the db. Is this really necessary for you?
> > You could try to use LDAP. You can store accounts and aliases in LDAP.
> > But you still need to configure your hosteddomains within courier.
> 
> It isn't *REALLY* necessary but then what is? I was going to use the full
> courier-mta system as a convenience so I didn't have multiple different
> mail packages to keep track of. But if it's more inconvenient than using
> what I have now, postfix + courier-imap + maildrop + cyrus-sasl, then
> there's no point in changing. I just wish I had the time to delve through
> the code and get a working patch for the features I want... pity I don't!
> Thanks for the input anyway!!!

Someone said at one point that it would be too much work or put too much
load on the db server... I don't understand how it would be more work than
just storing the accounts as I do now, EXCEPT that at present, courier
itself doesn't have ANY access to the database...

All the access to db is done through the authentication module, which has
limits on the number of active db connections and so on, so it won't
overload your db when you get hundreds of connections to the smtp server. If
you patch courier so it does something like this, you have to be aware of
the load, and possibly have to create your own alias daemon to support
this...

I'd had to write a wrapper for maildrop so I could get all my db stored
information into the context of the maildrop program for processing -
ideally I should do the same one day... I needed full details on my user
records (from db) to determine how to apply various filters, cc's, etc.

If you were doing it "right" it might be something Sam would get behind and
incorporate as an option... ask him?

I'd like to see it, but not if it puts a huge load on the db server - I've
already got scripts to generate my required courier files - aliases,
domains, etc. ;-)

m/



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Problem with "undisclosed-recipients"

2004-10-16 Thread Mitch (WebCob)
> comes into mailbox "cur" folder. It size is about 360-380 bytes maximum.
> When someone tries to check mail mostly in Outlook Express, server
> unexpectedly terminates connection.
> Problem solves when I delete this message from mailbox on server.
>
> The question is: How not to process this kind of messages?

Create a filter. If you are delivering through maildrop, you can put your
filter in maildroprc, and have it effect all messages. We had a bunch of
these, they are spam I think, but it causes outlook to crap out. For me, it
wasn't a problem if outlook was reading imap, but when reading pop, if it
gets stuck on a message, that message remains in the queue for next time.
Our first recommendation to effected users was to switch to imap or set up
imap as a secondary way to clear the bad message. We had some people use
their webmail login for this purpose.

It's definitely outlook that's the problem though - I could bypass the bad
messages with other readers.

Our "bad message" was different though, so our filter would be useless to
you

m/



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] WU-IMAP to Courier IMAP means Moodle can not connect

2004-10-09 Thread Mitch \(WebCob\)
> However the online Learning management system that I use
(B> http://moodle.org
(B> also uses IMAP authentication and that authentication
(B> now does not work since the transition from the
(B> WU-IMAP to Courier-IMAP server.
(B>
(B> Moving back to the WU-IMAP means that I can reconnect using Moodle.
(B>
(B
(BI'd be curious about your log messages, and also if the user name in the
(Bcourier system is the same as in the wu system... courier support virtual
(Blogins ([EMAIL PROTECTED]) which are often masked by various webmail tools which
(Bappend the domain automatically...
(B
(BOther than that, I'd look for the logs and see what they tell you. Standard
(Bauthentication by php script works for us here.
(B
(Bm/
(B
(B
(B
(B---
(BThis SF.net email is sponsored by: IT Product Guide on ITManagersJournal
(BUse IT products in your business? Tell us what you think of them. Give us
(BYour Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
(Bhttp://productguide.itmanagersjournal.com/guidepromo.tmpl
(B___
(Bcourier-users mailing list
(B[EMAIL PROTECTED]
(BUnsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

RE: [courier-users] sub-folder new mail notifications

2004-10-05 Thread Mitch \(WebCob\)
> Have not used Apple's Mail app but Thunderbird and Mozilla must be told
> what folders to check regularly for new mail.  Right click on the folder
> and choose properties.  It's in there.
>
Same for outlook - kinda... it defaults to check all "subscribed" folders...
you can select to view all folders, and only check subscribed folders, which
gives the same result...

Checking too many folders leads to REALLY slow response though - be warned
;-)

m/



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Upgrade broke courier

2004-10-05 Thread Mitch \(WebCob\)
> The fact that I can receive mail to accounts on the server when
> sent by the
> server tells me it is not completely broke,  but I have been frustrated
> trying to figure this out. Any help would be appreciated.
>

Need more info Dave... what do you see in the logs when someone from the
outside tries to send you mail?

Send yourself a message and post the logs?

m/



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] sub-folder new mail notifications

2004-10-05 Thread Mitch \(WebCob\)
> Correct me if I'm wrong, but the way I read the documentation for
> imapd, I don't need FAM, all I need is IDLE and ENHANCEDIDLE set.
>
> Any ideas?

I think you are wrong... I thought without FAM folder modifications would
not be noticed except when polled, and I think that applies to current
folder, not all folders... I think some mail clients poll all "subscribed"
folders on send/receive, and update those new messages flags...

I could be wrong too though

m/



---
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Using rsync to backup maildirs from Cygwin

2004-09-23 Thread Mitch \(WebCob\)


> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of
> [EMAIL PROTECTED]
> Sent: Thursday, September 23, 2004 4:12 PM
> To: [EMAIL PROTECTED]
> Subject: [courier-users] Using rsync to backup maildirs from Cygwin
> 
> 
> Ok, so I will admit the only tangental relationship of this to 
> courier, but 
> I am trying to use the combination of openssh + cygwin on WinXP 
> to do some 
> basic network backups of Maildir directories running on a RedHat 
> + courier 
> server. 
> 
> The problem appears to be related to the cygwin port of the ssh client's 
> ability to handle Maildir file names. When I run a command such as: 
> 

The problem iirc, is that different file and operating systems support different 
characters and have different rules. Courier's maildirs make use of characters that 
aren't supported on windows. Your best bet would be rsync support (or hacking it 
yourself) to do a regex replace on destination file names to strip or replace illegal 
(from the destination of perspective) characters...

OR to hack courier and stop it at the source... there might be a constant defined 
somewhere for the "separator" character (i.e. the , ?)

just a few thoughts.

m/



---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


[courier-users] odd pop3 password bug in courier-0.44.2

2004-09-21 Thread Mitch \(WebCob\)
Ok. Before you flame, there are a bunch of ways you could blame this on me
or Microsoft.

That's besides the point ;-)

Here's what I did:

1) set up mail account in outlook
2) copied users password from spreadsheet
3) pressed "send-receive"

Got no mail.

The logs indicate a successful pop login and out, with no errors, and mail
messages sitting in "new" are moved to "cur" but NOT DOWNLOADED.

What I found after much head scratching, is that the spreadsheet appends a
newline I think ( or carriage return?) (try it yourself with excel) to the
cell you copy and paste...

Outlook isn't smart enough to trim the password field.

On the other hand, there is no error from courier.

So is it a courier problem in that it doesn't log the error? Or is it the
extra newline that's throwing outlook off?

I have my fix - don't want to be beaten up for my error, just think that if
it is causing the pop3 session to crap out and yet isn't logged, then we
should have an error message in courier for that.

cheers.

m/




---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Planned changes to Courier's authentication library.

2004-09-20 Thread Mitch \(WebCob\)
> I'm planning to make the following structural changes.  This is the only 
> chance for someone to talk me out of it.
> 

Not wanting to miss my chance ;-)

Not sure if this is the appropriate time to consider a few issues or not - and maybe 
they have been addressed elsewhere while I wasn't looking - if so, forgive me. I 
handle these parameters in my user database, and assume if that's where they are, they 
might be retrieved through the auth lib...

1) As one other responder mentioned, use of authentication fields within maildrop is 
often useful. Although we can write custom queries, we can't pass any additional 
fields into courier for maildrop or filters to consider during the run.

e.g. does a user want a global filter enforced, or does a user want spam moved to a 
subfolder.

Currently I address this with a maildrop wrapper, which makes a second query to the 
user database, fetching all the extra config values and storing them in the 
environment, then calls the original maildrop. Not efficient, but it works.

2) As someone with a lot of domains (by my standards anyways) I have been trying to 
segregate users mail to their appropriate IP's. That means [EMAIL PROTECTED] should 
not be accepted through domain2.com's ip, and ideally, should not be sent through the 
default system ip, but rather the ip appropriate for that domain name. Currently no 
way of working around that, the result being that a few high volume users have tried 
(sucessfully) to put their usage on another users bill by using their ip. This is just 
an extension of the code existing that serves to restrict operational services - yes?

3) SSL services per IP - connection to auth here is more tenuous, just that the 
user-ip link is in my auth tables.

I've mentioned these things before, and realize they may not be mainstream, or easy, 
but thought that as this was the "only chance" it was worth mentioning in case others 
have the same needs.

Thanks again for the awesome tool.

m/



---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] multiple MySQL servers

2004-09-17 Thread Mitch \(WebCob\)
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Will
> Yardley
> Sent: Friday, September 17, 2004 12:55 PM
> To: [EMAIL PROTECTED]
> Subject: [courier-users] multiple MySQL servers
>
>
> Is there any mechanism to have Courier (IMAP / POP3) check more than one
> MySQL server (so that if one fails, Courier can still authenticate
> users)? I know that Postfix allows this if you're using MySQL for
> virtual maps / aliases.
>
> The current documenation for authmysql doesn't seem to suggest that this
> is a possibility.
>

This doesn't have to be courier's problem...

I can see this would make it easier, but there are other ways to skin the
cat. You cluster the database, and use ip failover scripts to move the live
IP to the backup server in case of failure...

then everything in your world just connects to the live mysql server ip - no
matter what box it's on.

m/



---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] DEFAULTDELIVERY

2004-09-04 Thread Mitch \(WebCob\)
The message is pretty self explanatory.

Cannot have world/group
permissions on the filter file - for your own good.

Very simply, this means your .mailfiter file has to be more 600 - not 644,
666 (which is inherantly evil anyways - right?)

Kidding asside this is about user permissions - courier is refusing to
process a filter file which has write (or any? can't remember) permissions
assigned to the group or world...

So your ls probably looks like this:

-rw-rw-rw- .mailfilter

when it should be:

-rw--- .mailfilter

hth.

m/

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of
> [EMAIL PROTECTED]
> Sent: Wednesday, September 01, 2004 7:37 AM
> To: [EMAIL PROTECTED]
> Subject: [courier-users] DEFAULTDELIVERY
>
>
> Hello list,
>
> I have some questions abouth .courier .mailfilter
> Following envoriement i use, a vmail setup with a mysql db imap server
> with a defaultdelivery in the /etc/courier/courierd like this:
>
> DEFAULTDELIVERY="|/usr/bin/spamc|/usr/lib/courier/bin/maildrop"
>
>
> so i would add a autoresponder with mailbot.
> i added the .mailfilter file for every Maildir
> but i got a strange error with some permission problem on the maildrop
> ??
>
> see here :
> Aug 25 11:18:25 email courierlocal:
> id=00033C80.412C595F.0B5C,from=<[EMAIL PROTECTED]>,addr=<[EMAIL PROTECTED]
> mog.net>: /usr/lib/courier/bin/maildrop: Cannot have world/group
> permissions on the filter file - for your own good.
>
>
> had some one out there a tip/hint for me !!
> special thanxs
>
> cu
>
> Mike
>
>
>
>
> ---
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
> ___
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>



---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Max recipients question

2004-09-01 Thread Mitch \(WebCob\)
default value is in:
courier/etc/module.esmtp:MAXRCPT=100

I didn't know this could be overridden in BOFH - what's the criteria? Can it
be based on authenticated senders or received IP or ?

Last time I read the docs this wasn't in BOFH iirc...

m/

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Russell
> Premont
> Sent: Wednesday, September 01, 2004 10:02 AM
> To: Courier-Users
> Subject: [courier-users] Max recipients question
>
>
> If there is no maxrcpts specified in BOFH is there a default value that is
> used?
>
>
>
>
> ---
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
> ___
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>



---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] DEPLOY: SPF/Sender ID support in Courier.

2004-08-27 Thread Mitch \(WebCob\)
>
> It will not be possible for me to implement Sender ID in Courier.
>  Courier
> is licensed under the GPL.  The FSF already flatly stated that
> Microsoft's
> IP license is not GPL compatible.  I reviewed the most recent version of
> Microsoft's proposed IP license, and I've reached the same
> conclusion.  For
> this reason Sender ID cannot be implemented in Courier; Courier's
> implementation will be limited to the unencumbered SPF-classic.
>
> --
> Sam Varshavchik
> http://www.courier-mta.org
>

You may have said the KEY PHRASE there... "it will not be possible for
me..." - you would be a target.

I wonder if this would be another scenario where something similar to the
RSA stuff where various encryption libraries were released as free code
maintained offshore which users could plug into their systems freely - as
long as they weren't in a country upholding RSA's patent rights?

It's like GIF? Who in their right mind would pay to use it?!?!

The code could be a patch to absolve you of risk ;-)

m/



---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


[courier-users] How to send from a non-replyable address?

2004-08-21 Thread Mitch \(WebCob\)
I have a support system tool which we do not want to accept reply emails
to... for a variety of reasons, I want to configure it to send notifications
that will not be repliable to...

I've seen some other systems actually use an empty from address - not sure
if that will cause problems, but I'd rather make my message look like a DSN
perhaps?

If I format a line like:

From: Support System <@>

What effect will it have? Is there a better way? I don't want to alias the
messages to the bit bucket - there are a bunch of reasons this will cause me
other problems...

Suggestions?

Sorry if the message seems to be bordering off-topic, but Courier seems to
be one of the most stringent mail servers I've ever used (and I like that)
so I figured if I make it work here... it will work elsewhere too ;-)

Thanks!

m/



---
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] mailbot for virtual users? Read message from MySQL?

2004-07-26 Thread Mitch \(WebCob\)
Yeah - problem would be support thereof... If I just did it say once every
10 minutes, I'd be guaranteed to have 1 in 1000 freaking out because of a
horendous typo they just found out about, which they corrected and isn't
reflected in their tests (assuming they test ;-)

I'd have to dump them all pretty often, or have to change the database to
detect change time on the memo and select / dump based on that, which I
guess I could do as well, just seemed like an icky work around.

Figured I'd see if someone else was struggling with the same issue ;-)

I wonder which would be worse - a query per mail for the small percentage of
users on vacation, or a query per minute for all the users, rewriting
changed vacation messages as I go ;-)

Thanks for the refinement of the idea.

m/

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Gordon
> Messmer
> Sent: Monday, July 26, 2004 2:58 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [courier-users] mailbot for virtual users? Read message
> from MySQL?
>
>
> Mitch (WebCob) wrote:
>
> > I'd like to start using mailbot, but I've got a bit of a problem... I
> > maintain my vacation messages in a MySQL database along with
> the login info
> > etc.
> ...
> > One alternative I see, is to forge dumping the message from
> MySQL to a temp
> > file every time a vacation message is to be sent, but that
> seems wasteful.
>
> You could periodically dump the users' messages to plain text files in
> their home directories.  It's probably more efficient than dumping files
> every time a message is sent, and requires no changes to mailbot.
>
>
>
>
> ---
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
> ___
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>



---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


[courier-users] mailbot for virtual users? Read message from MySQL?

2004-07-24 Thread Mitch \(WebCob\)
I'd like to start using mailbot, but I've got a bit of a problem... I
maintain my vacation messages in a MySQL database along with the login info
etc.

One solution I see would be to have mailbot load the message from the
database, but I am not a C programmer... I have hacked things occasionally
but wouldn't call my self a C guru ;-)

One alternative I see, is to forge dumping the message from MySQL to a temp
file every time a vacation message is to be sent, but that seems wasteful.

Another possibility I guess, would be to get mailbot to accept the message
on another input stream and open that socket in the calling program and push
the data in that way, but again that requires C skills ;-)

Any thoughts on if this might happen in some form? Or am I better off to do
the temp file idea.

Thanks.

m/



---
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] courierlogger & couriertcpd

2004-06-27 Thread Mitch (WebCob)
so change the startup scripts?

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Eric
> Pretorious
> Sent: Sunday, June 27, 2004 4:09 PM
> To: [EMAIL PROTECTED]
> Subject: [courier-users] courierlogger & couriertcpd
> 
> 
> Hello, All:
> 
> I've been scratching my head lately trying to figure-out if it's 
> okay to use 
> courierlogger to start couriertcpd (instead of the other way 
> around) so that 
> I can specify the -facility option of courierlogger. (The 
> existing start-up 
> scripts call couriertcpd with the -stderrlogger option.)
> 
> Will this work?
> 
> -- 
> Eric P.
> Sunnyvale, CA
> 
> 
> ---
> This SF.Net email sponsored by Black Hat Briefings & Training.
> Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
> digital self defense, top technical experts, no vendor pitches, 
> unmatched networking opportunities. Visit www.blackhat.com
> ___
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
> 


---
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Email Autoresponder?

2004-06-11 Thread Mitch \(WebCob\)
I personally have not done this, but I read this recently:

http://www.courier-mta.org/mailbot.html

Which seems to show a better way to do things ;-)

This is from my maildroprc:

## LOOK INTO MAILBOT FOR RESPONSE LIMITING ETC!

BADLOOP="mail_loop_detected"
if ($UI_EnableVacationMessage eq "Y" && ! /^FROM_DAEMON/ && ! /^X-Loop:
$BADLOOP/)
{
/^Subject: (.*)$/
SUBJECT=$MATCH
cc "| ( $REFORMAIL -r -t -I\"From: $UI_Name <$UI_Email>\" -I\"Subject:
Abscence Notification ($SUBJECT)\"  -I\"Errors-To:
[EMAIL PROTECTED]" -I\"Precedence: junk\" -A\"X-Loop: $BADLOOP\" ; \
  echo \"$UI_VacationMessage\"; \
  ) | $SENDMAIL -t"
}

Maildrop has to be your delivery agent, and the variables have to have
something in them... thought the concept might help you get started.

m/

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Eduardo
> Roldan
> Sent: Friday, June 11, 2004 12:50 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [courier-users] Email Autoresponder?
>
>
> On Fri, 2004-06-11 at 14:46, keith wrote:
> > I'm hoping this is the right place to post this.
> > I'm wondering if anyone can point me to documentation on how to set up
> > an email autoresponder (eg. Out of office for 3 days type of thing)
> > that will work with Courier Maildrop, and Courier-IMAP.  As far as I
> > can determine it would seem that Maildrop would be the process
> > handling such things.
>
>
> There are examples in the 'maildropex' man page
> 'maildrop' must be your DEFAULTDELIVERY to make these work.
>
>
>
> ---
> This SF.Net email is sponsored by the new InstallShield X.
> From Windows to Linux, servers to mobile, InstallShield X is the
> one installation-authoring solution that does it all. Learn more and
> evaluate today! http://www.installshield.com/Dev2Dev/0504
> ___
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>



---
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Courier activity on port 113

2004-06-09 Thread Mitch \(WebCob\)
yes - read the man - look for a no-identd option

m/

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of mail
> Sent: Wednesday, June 09, 2004 8:58 PM
> To: Phillip Hutchings; [EMAIL PROTECTED]
> Subject: Re: [courier-users] Courier activity on port 113
> 
> 
> Hi,
> 
> Thanks Phillip! Is there a way to stop courier from checking? As I don't 
> run an identd service too and also don't see why I should. I have no 
> need for this and would prefere stopping courier from generating such 
> requests.
> 
> Thanks
> Chris
> 
> 
> Phillip Hutchings wrote:
> 
> >
> > On 10/06/2004, at 8:39 AM, mail wrote:
> >
> >> Hi,
> >>
> >> I installed the APF firewall on my linuxbox a few days ago and have 
> >> log files full TCP DROP messages caused by courier outgoing (and some 
> >> incoming) activity on port 113.
> >> What is this for? Is it needed? Can I turn this off? Or should I open 
> >> port 113?
> >
> >
> > Port 113 is identd - it is supposed to identify the user who opened 
> > the connection on the specified port. MTAs frequently check this and 
> > add it to the Received: headers as part of the audit trail. You should 
> > either allow these connections and make sure identd is running, or 
> > reject them. Silently dropping causes delays. I use iptables and 
> > REJECT them, as I don't have an identd. One day I might install one, 
> > but it's not that important.
> >
> > -- 
> > Phillip Hutchings
> > [EMAIL PROTECTED]
> > http://www.sitharus.com/
> 
> 
> 
> ---
> This SF.Net email is sponsored by: GNOME Foundation
> Hackers Unite!  GUADEC: The world's #1 Open Source Desktop Event.
> GNOME Users and Developers European Conference, 28-30th June in Norway
> http://2004/guadec.org
> ___
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
> 


---
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite!  GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Removing internal information from header

2004-06-07 Thread Mitch \(WebCob\)
you could connect it with a simple socket proxy - you connect to the proxy -
the proxy connects to courier - then courier will always show the received
line as from 127.0.0.1.

m/

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Stephan
> Adler
> Sent: Monday, June 07, 2004 12:49 AM
> To: [EMAIL PROTECTED]
> Subject: [courier-users] Removing internal information from header
>
>
> Hi!
>
> For several reasons I don't wan't courier to send the first "received
> from" field in the header - showing what client in the internal network
> the mail came from.
>
> What would be the most easy way to do this? I am using an courier for
> all mailtraffic (inbound,outbound) with authuserdb, I searched the
> mailng list archive but didn't find any hints there.
>
> I thought about an smtprealy with postfix or something like that, but
> I'm not sure what would be the best solution. Maybe someone here has a
> solution running.
>
> Thanks a lot
> Stephan Adler
>
>
> ---
> This SF.Net email is sponsored by the new InstallShield X.
> From Windows to Linux, servers to mobile, InstallShield X is the one
> installation-authoring solution that does it all. Learn more and
> evaluate today! http://www.installshield.com/Dev2Dev/0504
> ___
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>



---
This SF.Net email is sponsored by: GNOME Foundation
Hackers Unite!  GUADEC: The world's #1 Open Source Desktop Event.
GNOME Users and Developers European Conference, 28-30th June in Norway
http://2004/guadec.org
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Re: queue questions

2004-06-05 Thread Mitch \(WebCob\)
Not sure if this has changed recently, but iirc, there was the possibility
of either reading or modifying queue files - and I think I've heard of
people doing it - for example to mark a user as delivered or failed etc.
Don't see why you couldn't apply the same logic to the other fields in that
file - except that with things like next delivery attempt and so on, some of
that info might be cached?

And what if courier attempted a delivery while you were monkeying with the
file?

I think you'd have to make sure at the least that you were modifying
something with ample time to complete before next delivery attempt - eh?

m/

> on no. 3 ... is there a specific reason for this, or is it just that
> not enough people have requested this feature ? ... i would like to
> have a functionality like in postfix where you can "hold" a msg in the
> hold queue indefinitely until you are ready to re-inject it into the
> delivery queue.
>
> any chance this could come to courier ?
>



---
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Multiple Default Domains

2004-06-04 Thread Mitch \(WebCob\)


> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Dennis
> Skinner
> Sent: Friday, June 04, 2004 12:16 PM
> To: [EMAIL PROTECTED]
> Subject: [courier-users] Multiple Default Domains
>
>
> 2. Modify the authmysqlrc code to include $(interface), although
> translating this to a domain in a mysql query may be slightly
> problematic.
>
> 3. compile courier twice with different prefixes and run 2 sets of
> daemons, each with a different default domain and running on different
> ip addresses.
>

If memory serves, you are stuck with option 2 or option 3. I wanted to
implement option 2, but haven't got around to it. Instead I just have ALL
users logging in with [EMAIL PROTECTED]

Ideally for accounting purposes, I also wanted SMTP to send on the interface
belonging to that domain - but we all have dreams - eh? (would be better for
accounting for high volume users). To address this I'm left turning on big
brother mode and parsing and creating accounting data from the control
files...

m/



---
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Relay limiting

2004-05-31 Thread Mitch \(WebCob\)
> :P - I probably misexpressed myself, I'm really sorry.

No problem - your english is better than my [Spanish, Puertugese (spelling?)
etc. etc.]

> a) There was such or similar config option

I don't think A exists. I'm 99.999% certain.

> b) I had to write a filter.

I think this is your only option. Courier has had many improvements over the
past couple years - I bet a fresh install of a new version would present a
lot fewer problems. If you are short on testing hardware, I've heard of
people compiling and installing to listen on alternate ports for testing
purposes - then all you need to do to go live is stop the old version, and
start the new version on the same ports.
> I love programming. Actually, I'm currently writing a mail-tracking system
> that can be used by "Big brotheryish" bosses to know how much time passed
> between an incoming mail from a customer and the associated reply to it

That sounds neat too... I bet that would be of interest to many companies
who have an online customer service component...

Let us know how a new version with filters install goes - I know I had
trouble with it at one point, but have had no problem with recent versions.

cheers.

m/



---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Relay limiting

2004-05-31 Thread Mitch \(WebCob\)
Hey Arturo... I think you haven't found what you are looking for cause you
are looking for the wrong thing ;-)

Acceptmailfor determines domains your server will accept mail for DELIVERY -
not for relaying and retransmission.

You probably need to write your own filter such based on the courierfilter
global mail filtering setup. There are a few ways to do this - even PERL -
then you can scan each message on arrival (during the smtp dialog) and see
if it matches your domain or any one of your domains or maybe exactly the
domain of that user - then you can reject it before it is accepted. You
would need to be aware that this filter is called regardless of whether or
not the user is authenticating it, so you will have to make your filter
sensitive to the state of RELAYCLIENT or something so you don't apply the
rule when you are receiving mail for local delivery...

I bet there would be many people interested if you wrote such a filter -
interesting idea - I think I would like it too ;-)

m/

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Arturo
> "Buanzo" Busleiman
> Sent: Monday, May 31, 2004 1:45 PM
> To: [EMAIL PROTECTED]
> Subject: [courier-users] Relay limiting
>
>
> I run a webmail service for 4k+ users. I require smtp authentication for
> clients to be able to send mail, but I would like to limit the domain
> origin to those eMails in my acceptmailfor file. How can I do that? I've
> been struggling courier-mta for more than two years, and still haven't
> found what I'm looking for (yes, quite U2-esque).
>
> Thank you!
>
> --
> Arturo "Buanzo" Busleiman - www.buanzo.com.ar - GNU/Linux Documentation
> President, Open Information System Security Group - Argentina
>
> "En teoria, no existe diferencia entre teoria y practica. Pero, en la
> practica, esto no es asi."
>
>
>
> ---
> This SF.Net email is sponsored by: Oracle 10g
> Get certified on the hottest thing ever to hit the market... Oracle 10g.
> Take an Oracle 10g class now, and we'll give you the exam FREE.
> http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
> ___
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>



---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Limit sending mails to 1 per minute / user? Stupid idea?

2004-05-20 Thread Mitch \(WebCob\)
> is it an unrealistic or unintelligent approach to limit the amount of
> mail that can be sent with a server?

Don't think that would work for a variety of reasons...

Many users read their email, reply and press send, but the ACTUAL sending
occurs every few minutes in batches - what happens - they get deferred or
queued?

Assuming they are queued, client A sends interoffice mail to other users and
gets huge delays on sending?

Don't think it would make anyone happy. We log our mail sent, and process
the logs to catch abusers. We virus scan to prevent spread of viruses... We
restrict users from submitting mail through webscripts without
authentication...

No abuse so far. Our AUP says we'll cut them off and they know it.

Just my 2 pennies.

m/




---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] MS Outlook with Courier-Imap problems

2004-05-12 Thread Mitch \(WebCob\)
Outlook stupidity (I say that as a user!) and doesn't belong on the list.
Outlook seems to only consider messages in Local folders or on the exchange
server worth of switching screens for, but have seen the same problem with
other IMAP servers. It's an outlook limitation sorry.

m/

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Lee
> Strawther
> Sent: Wednesday, May 12, 2004 7:27 AM
> To: [EMAIL PROTECTED]
> Subject: [courier-users] MS Outlook with Courier-Imap problems
>
>
> I have a redhat enterprise linux box with courier-imap-3.0.3-1.3ES.i386
> running. Our users ms outlook clients are set to popup a box saying "New
> mail has arrived, would you like to read it. Yes/No". The only thing
> that clicking on yes does it makes that box go away (which is what
> clicking on No does). Back when we were using Microcrap Exchange,
> clicking on Yes would open up the email automatically no matter what
> screen you were currently in. Anyone have any Ideas?
>
>
>
> ---
> This SF.Net email is sponsored by Sleepycat Software
> Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
> deliver higher performing products faster, at low TCO.
> http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
> ___
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>



---
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Spamcop and so on not for everyone? WHITELIST?

2004-05-10 Thread Mitch \(WebCob\)
Maybe a dumb question - but IF they use authenticated smtp, and they use the
MSA port, do these checks get bypassed?

If so, maybe there is the answer?

m/

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Grzegorz
> Janoszka
> Sent: Monday, May 10, 2004 7:33 AM
> To: [EMAIL PROTECTED]
> Subject: [courier-users] Spamcop and so on not for everyone? WHITELIST?
>
>
>
> Hello
>
> In my /etc/courier/esmtpd I have:
>
> BLACKLISTS="-block=korea.services.net,BLOCK
> -block=sbl.spamhaus.org,BLOCK [...]"
>
> together - 9 different entries.
>
> It works well but it takes a long time to check all databases for IP.
> My local users have to wait a few seconds before their mua will start
> sending emails.
> Resolver configuration is OK, simply some dns servers sometimes don't work
> and queries have to time out :(
>
> Is it possible to have something like WHITELIST? I mean local addresses
> which should not be checked against spam/proxy databases?
> Or can I set a variable in smtpaccess/default (such as RELAYCLIENT) which
> diables BLACKLIST checking?
>
> --
> Grzegorz Janoszka
>
>
> ---
> This SF.Net email is sponsored by Sleepycat Software
> Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
> deliver higher performing products faster, at low TCO.
> http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
> ___
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>



---
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] RE: spontaneous maildrop error? error writing to mailbox

2004-05-04 Thread Mitch \(WebCob\)
Thanks Gord...

A pipe | is considered a mailbox delivery.

Didn't realize that. Should have - screwed up in a similar way before. The
program was puking, and as a result, the delivery was failing, but for some
reason wasn't seeing errors... when I added -V 1 to the maildrop, the name
of the offending program was output though - which made it easier to track
down and fix.

Strange thing was that my maildroprc file contained an echo, which wasn't
being logged even though logically it MUST have been executed.

m/

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Gordon
> Messmer
> Sent: Tuesday, May 04, 2004 3:42 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [courier-users] RE: spontaneous maildrop error? error
> writing to mailbox
>
>
> Mitch (WebCob) wrote:
>
> >
> > which would imply that for some reason my Maildir is being
> recognized as an
> > mbox?!?!?
>
> Or that your maildroprc or .mailfilter file has a "to" or "cc" which is
> directing mail to a mailbox file rather than the Maildir.  It could be a
> malformed "to" or "cc" which the user intended to deliver mail to
> another address or program, but used the wrong syntax.
>
>
>
>
> ---
> This SF.Net email is sponsored by: Oracle 10g
> Get certified on the hottest thing ever to hit the market... Oracle 10g.
> Take an Oracle 10g class now, and we'll give you the exam FREE.
> http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
> ___
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>



---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


[courier-users] RE: spontaneous maildrop error? error writing to mailbox

2004-05-04 Thread Mitch \(WebCob\)
Solved.

Was a problem with a piped command terminatng...

I added "-V 1" to the maildrop call which then displayed WHICH iped command
was terminating... For future reference, command pipes are treated as mbox
deliveries.

thanks!

m/


> -Original Message-
> From: Mitch (WebCob) [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 04, 2004 1:49 PM
> To: [EMAIL PROTECTED]
> Subject: RE: spontaneous maildrop error? error writing to mailbox
>
>
> Further confusion...
>
> It seems that this error is generated in :
> int FormatMbox::DeliverTo(class Mio &mio) from formatmbox.C
>
> which would imply that for some reason my Maildir is being
> recognized as an mbox?!?!?
>
> Here is a directory listing:
>
> drwx--  6 sys  sys512 May  4 19:53 .Old
> drwx--  6 sys  sys512 Feb  4 07:40 .Trash
> drwx--  2 sys  sys  63488 May  4 20:10 courierimapkeywords
> -rw-r--r--  1 sys  sys 10 May  4 19:53 courierimapsubscribed
> -rw-r--r--  1 sys  sys400 May  4 20:30 courierimapuiddb
> drwx--  2 sys  sys512 May  4 20:30 cur
> drwx--  2 sys  sys512 May  4 20:30 new
> drwx--  2 sys  sys512 May  4 20:30 tmp
>
> Curious - I don't use keywords - isn't that a little large for an
> empty directory?
>
> recreated it - didn't seem to help...
>
> ARGH - I hate the unexplained...
>
> Thanks.
>
> m/
> > -Original Message-
> > From: Mitch (WebCob) [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, May 04, 2004 1:28 PM
> > To: [EMAIL PROTECTED]
> > Subject: spontaneous maildrop error? error writing to mailbox
> >
> >
> > Just started today. Haven't made changes to the system in a week
> > or more...
> >
> > Some messages TO THE SAME ACCOUNTS are deliver.
> >
> > Some are deferred.
> >
> > What am I missing? Can I do something to maildrop to make it more
> > explicit? I'm using it for default delivery
> >
> > Here is an example log (stripped of full host names etc.):
> >
> > May  4 20:15:23 slim1 courierd:
> > started,id=00018D87.4097F8AD.DDC5,from=<[EMAIL PROTECTED]>,module=loc
> > al,host=sys!!1001!1001!/home/sys!!,addr=
> > May  4 20:15:23 slim1 courierd: Waiting.  shutdown time=none,
> > wakeup time=Tue May  4 20:15:51 2004, queuedelivering=399, inprogress=1
> > May  4 20:15:24 slim1 courierlocal:
> > id=00018D87.4097F8AD.DDC5,from=<[EMAIL PROTECTED]>,addr=<[EMAIL PROTECTED]>:
> > maildrop: error writing to mailbox.
> > May  4 20:15:24 slim1 courierlocal:
> > id=00018D87.4097F8AD.DDC5,from=<[EMAIL PROTECTED]>,addr=<[EMAIL PROTECTED]>:
> > /usr/local/courier/bin/maildrop: Unable to deliver to mailbox.
> > May  4 20:15:24 slim1 courierlocal:
> > id=00018D87.4097F8AD.DDC5,from=<[EMAIL PROTECTED]>,addr=<[EMAIL PROTECTED]>,s
> > tatus: deferred
> > May  4 20:15:24 slim1 courierd: completed,id=00018D87.4097F8AD.DDC5
> >
> > ANY IDEAS?
> >
> > I've got 400 messages in the queue and growing... a restart of
> > the courier processes did not help. SOME are delivered just
> > fine... the first statement I have in the maildrop file is an
> > echo, so a working one looks like this:
> >
> > May  4 20:15:22 slim1 courierd:
> > newmsg,id=00018D8C.4097F9D9.DF69: dns; localhost (localhost
> > [127.0.0.1])
> > May  4 20:15:22 slim1 courierd:
> > started,id=00018D8C.4097F9D9.DF69,from=<[EMAIL PROTECTED]>,module=loc
> > al,host=sys!!1001!1001!/home/sys!!,addr=
> > May  4 20:15:22 slim1 courierd: Waiting.  shutdown time=none,
> > wakeup time=Tue May  4 20:15:23 2004, queuedelivering=400, inprogress=1
> > May  4 20:15:22 slim1 courierlocal:
> >
> id=00018D8C.4097F9D9.DF69,from=<[EMAIL PROTECTED]>,addr=<[EMAIL PROTECTED]>: 
> DEBUG 1
> > May  4 20:15:22 slim1 courierlocal:
> > id=00018D8C.4097F9D9.DF69,from=<[EMAIL PROTECTED]>,addr=<[EMAIL PROTECTED]>,s
> > ize=3455,success: Message delivered.
> > May  4 20:15:22 slim1 courierd: completed,id=00018D8C.4097F9D9.DF69
> >
> > Thanks!
> >
> > m/




---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


[courier-users] RE: spontaneous maildrop error? error writing to mailbox

2004-05-04 Thread Mitch \(WebCob\)
Further confusion...

It seems that this error is generated in :
int FormatMbox::DeliverTo(class Mio &mio) from formatmbox.C

which would imply that for some reason my Maildir is being recognized as an
mbox?!?!?

Here is a directory listing:

drwx--  6 sys  sys512 May  4 19:53 .Old
drwx--  6 sys  sys512 Feb  4 07:40 .Trash
drwx--  2 sys  sys  63488 May  4 20:10 courierimapkeywords
-rw-r--r--  1 sys  sys 10 May  4 19:53 courierimapsubscribed
-rw-r--r--  1 sys  sys400 May  4 20:30 courierimapuiddb
drwx--  2 sys  sys512 May  4 20:30 cur
drwx--  2 sys  sys512 May  4 20:30 new
drwx--  2 sys  sys512 May  4 20:30 tmp

Curious - I don't use keywords - isn't that a little large for an empty
directory?

recreated it - didn't seem to help...

ARGH - I hate the unexplained...

Thanks.

m/
> -Original Message-
> From: Mitch (WebCob) [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 04, 2004 1:28 PM
> To: [EMAIL PROTECTED]
> Subject: spontaneous maildrop error? error writing to mailbox
>
>
> Just started today. Haven't made changes to the system in a week
> or more...
>
> Some messages TO THE SAME ACCOUNTS are deliver.
>
> Some are deferred.
>
> What am I missing? Can I do something to maildrop to make it more
> explicit? I'm using it for default delivery
>
> Here is an example log (stripped of full host names etc.):
>
> May  4 20:15:23 slim1 courierd:
> started,id=00018D87.4097F8AD.DDC5,from=<[EMAIL PROTECTED]>,module=loc
> al,host=sys!!1001!1001!/home/sys!!,addr=
> May  4 20:15:23 slim1 courierd: Waiting.  shutdown time=none,
> wakeup time=Tue May  4 20:15:51 2004, queuedelivering=399, inprogress=1
> May  4 20:15:24 slim1 courierlocal:
> id=00018D87.4097F8AD.DDC5,from=<[EMAIL PROTECTED]>,addr=<[EMAIL PROTECTED]>:
> maildrop: error writing to mailbox.
> May  4 20:15:24 slim1 courierlocal:
> id=00018D87.4097F8AD.DDC5,from=<[EMAIL PROTECTED]>,addr=<[EMAIL PROTECTED]>:
> /usr/local/courier/bin/maildrop: Unable to deliver to mailbox.
> May  4 20:15:24 slim1 courierlocal:
> id=00018D87.4097F8AD.DDC5,from=<[EMAIL PROTECTED]>,addr=<[EMAIL PROTECTED]>,s
> tatus: deferred
> May  4 20:15:24 slim1 courierd: completed,id=00018D87.4097F8AD.DDC5
>
> ANY IDEAS?
>
> I've got 400 messages in the queue and growing... a restart of
> the courier processes did not help. SOME are delivered just
> fine... the first statement I have in the maildrop file is an
> echo, so a working one looks like this:
>
> May  4 20:15:22 slim1 courierd:
> newmsg,id=00018D8C.4097F9D9.DF69: dns; localhost (localhost
> [127.0.0.1])
> May  4 20:15:22 slim1 courierd:
> started,id=00018D8C.4097F9D9.DF69,from=<[EMAIL PROTECTED]>,module=loc
> al,host=sys!!1001!1001!/home/sys!!,addr=
> May  4 20:15:22 slim1 courierd: Waiting.  shutdown time=none,
> wakeup time=Tue May  4 20:15:23 2004, queuedelivering=400, inprogress=1
> May  4 20:15:22 slim1 courierlocal:
> id=00018D8C.4097F9D9.DF69,from=<[EMAIL PROTECTED]>,addr=<[EMAIL PROTECTED]>: 
> DEBUG 1
> May  4 20:15:22 slim1 courierlocal:
> id=00018D8C.4097F9D9.DF69,from=<[EMAIL PROTECTED]>,addr=<[EMAIL PROTECTED]>,s
> ize=3455,success: Message delivered.
> May  4 20:15:22 slim1 courierd: completed,id=00018D8C.4097F9D9.DF69
>
> Thanks!
>
> m/



---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


[courier-users] spontaneous maildrop error? error writing to mailbox

2004-05-04 Thread Mitch \(WebCob\)
Just started today. Haven't made changes to the system in a week or more...

Some messages TO THE SAME ACCOUNTS are deliver.

Some are deferred.

What am I missing? Can I do something to maildrop to make it more explicit?
I'm using it for default delivery

Here is an example log (stripped of full host names etc.):

May  4 20:15:23 slim1 courierd:
started,id=00018D87.4097F8AD.DDC5,from=<[EMAIL PROTECTED]>,module=local,host=sy
s!!1001!1001!/home/sys!!,addr=
May  4 20:15:23 slim1 courierd: Waiting.  shutdown time=none, wakeup
time=Tue May  4 20:15:51 2004, queuedelivering=399, inprogress=1
May  4 20:15:24 slim1 courierlocal:
id=00018D87.4097F8AD.DDC5,from=<[EMAIL PROTECTED]>,addr=<[EMAIL PROTECTED]>: 
maildrop:
error writing to mailbox.
May  4 20:15:24 slim1 courierlocal:
id=00018D87.4097F8AD.DDC5,from=<[EMAIL PROTECTED]>,addr=<[EMAIL PROTECTED]>:
/usr/local/courier/bin/maildrop: Unable to deliver to mailbox.
May  4 20:15:24 slim1 courierlocal:
id=00018D87.4097F8AD.DDC5,from=<[EMAIL PROTECTED]>,addr=<[EMAIL PROTECTED]>,status:
deferred
May  4 20:15:24 slim1 courierd: completed,id=00018D87.4097F8AD.DDC5

ANY IDEAS?

I've got 400 messages in the queue and growing... a restart of the courier
processes did not help. SOME are delivered just fine... the first statement
I have in the maildrop file is an echo, so a working one looks like this:

May  4 20:15:22 slim1 courierd: newmsg,id=00018D8C.4097F9D9.DF69: dns;
localhost (localhost [127.0.0.1])
May  4 20:15:22 slim1 courierd:
started,id=00018D8C.4097F9D9.DF69,from=<[EMAIL PROTECTED]>,module=local,host=sy
s!!1001!1001!/home/sys!!,addr=
May  4 20:15:22 slim1 courierd: Waiting.  shutdown time=none, wakeup
time=Tue May  4 20:15:23 2004, queuedelivering=400, inprogress=1
May  4 20:15:22 slim1 courierlocal:
id=00018D8C.4097F9D9.DF69,from=<[EMAIL PROTECTED]>,addr=<[EMAIL PROTECTED]>: DEBUG 
1
May  4 20:15:22 slim1 courierlocal:
id=00018D8C.4097F9D9.DF69,from=<[EMAIL PROTECTED]>,addr=<[EMAIL 
PROTECTED]>,size=3455,s
uccess: Message delivered.
May  4 20:15:22 slim1 courierd: completed,id=00018D8C.4097F9D9.DF69

Thanks!

m/



---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


[courier-users] Erroneous partial messages received?

2004-04-30 Thread Mitch \(WebCob\)
ok - maybe I opened myself up to this problem...


I set :
opt BOFHBADMIME=accept

because I have a large number of clients who regularly communicate with
people who use accents and so on in their email subjects - and despite being
against rfc, it works...

Now I have a problem that maybe is related to enabling badmime? Not sure...
I think this goes beyond badmime and is just badmessage - incomplete mail
part of a bad spam engine? I get messages like these:

Received: from adsl-67-118-200-105.dsl.sktn01.pacbell.net ([67.118.200.105])
  by slim1.bitblock.com with esmtp; Thu, 29 Apr 2004 22:58:19 +
Received: from 143.161.104.57 by 67.118.200.105; Thu, 29 Apr 2004
18:50:12 -0500
Message-ID: ,module=lo
cal,[EMAIL PROTECTED]
!10599!10418!/home/CLIENTHOME!!,addr=<[EMAIL PROTECTED]>
Apr 29 22:58:26 slim1 courierd: Waiting.  shutdown time=none, wakeup
time=Thu Apr 29 22:59:06 2004, queuedelivering=12, inprogress=1
Apr 29 22:58:26 slim1 courierlocal:
id=00018A0B.4091888E.42EB,from=<[EMAIL PROTECTED]>,addr=,size=274,succes
s: Message delivered.
Apr 29 22:58:26 slim1 courierd: completed,id=00018A0B.4091888E.42EB

The problem is that the clients machines hang when reading the mail.

Any suggestions on how to eliminate these kinds of mails?

Thanks!

m/



---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


[courier-users] SA bug effecting courier... some help needed from a perl Guru - the SA guys are listening (Thanks Theo)

2004-04-21 Thread Mitch \(WebCob\)
http://bugzilla.spamassassin.org/show_bug.cgi?id=2906

I reported this a long time ago, basically, the courier received line does
not match the tests applied by Spam Assassin... this results in false
positives on thinks like SORBS and DYNA_BLOCK for your own authenticated
users...

I've seen numerous courier users complain about this, and the suggestion to
them is to reduce the score of various rules, which unfortunately reduces
the effectiveness of SA...

I'm not a PERL guy. Some experience with it, but not enough... Got this
message from Theo - it seems that the SA developers use different mail
servers, and would need sample headers, and cooperation from courier users
to test... it's on the list for 3.0, so if someone wants to help, would be
nice for everyone to be able to use those rules again.

> > I'm not sure why this keeps getting pushed out - is it a big
> problem? Or a
>
> Mostly just us having a billion other things already going on.
>
> > etc., reducing SA's effectiveness - maybe if someone could
> point me to the
> > relavent code I could find a PERL friendly courier supporter to write a
> > patch for submission to move it up the priority list?
>
> A patch would definitely help.  The code is in the 3.0 code,
> lib/Mail/SpamAssassin/Received.pm, parse_received_line() ...
>
> Also, if you could attach to the ticket (via the web interfaces attachment
> system) a number of samples which show the header, that'd be great.
> It's hard to develop without having source material. :(

So there is the reference to the code, I can post some example Received
headers, wanted to make sure I was posting correct stuff - not sure if I
remember 100% on Lloyds ID patch acceptance, but it would probably effect
the situation as well - should be optional to cover the bases, but I thought
that this would be the best place to get the gammut of header variations
over recent history so that a working regex can be developed.

Thanks

m/



---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Images not appearing in webmail pages - UPDATE

2004-04-19 Thread Mitch \(WebCob\)
can you view the images when accessed through a normal web site?

Can you view the images if you download them and access them locally?

Can you view ANY png images server from your server?

Problem could be with apache and a valid mime magic mapping, or could be
with the client and the file types settings in windows overriding the
default behavious - checking these things above should tell you WHERE the
problem is.

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of John
> Bossert
> Sent: Monday, April 19, 2004 11:24 AM
> To: [EMAIL PROTECTED]
> Subject: [courier-users] Images not appearing in webmail pages - UPDATE
>
>
> Upon further investigation, the problem doesn't seem to be with the
> location of the images.  Apache's access_log shows that the files are
> being found without problems.
>
> What I think is happening is that the .PNG files aren't being handled
> correctly.  I've tested with both Mozilla 1.7beta and IE6.0 - in both
> cases, the images aren't properly displayed.  With IE, I get the "little
> red 'X'" where the images would be displayed.
>
> Bringing up the Properties (under IE) for such an image file shows "Not
> Available" for the Type.
>
> I'm not sure if this is a browser, webserver, sourcefile or whatever
> kind of problem - has anyone seen/resolved this kind of thing?  Thanks.
>
> -j
>
> John Bossert wrote:
>
> > I'm not able to get images/icons to display in webmail, though
> I am able
> > to log in and see text/my mail, change passwords, etc.  Using 0.45.4
> > built from source on Debian.  Webadmin seems to work fine.
> >
> > Stock Apache 2.0.49 httpd.conf file with the following additions:
> >
> >  > ScriptAlias /webadmin "/usr/sbin/courier/webmail/webadmin"
> >  > ScriptAlias /webmail "/usr/sbin/courier/webmail/webmail"
> >
> > The webmail and webadmin executables have been copied to cgi-bin, per
> > the INSTALL directives, even though the ScriptAlias definitions would
> > seem to make that unnecessary.
> >
> > Creating the /opt/apache/htdocs/webmail directory and copying the .png
> > files there has no effect.  I see the same thing if the directory
> > doesn't exist.  There are no errors appearing in the apache logs.
> >
> > Bouncing apache and sqwebmaild didn't change anything.
> >
> > Any suggestions?  Thanks.
> >
>
>
>
> ---
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> ___
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>



---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] esmtp auth off by default?

2004-02-25 Thread Mitch \(WebCob\)
I've never changed anything that I'm aware of to have auth used to allow
relaying...

Forcing AUTH for all smtp traffic would effectively disable the server from
receiving mail from anyone unless it comes from another mail gateway smart
enough to authenticate. So that part was left "off".

Right?

m/

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Anand
> Buddhdev
> Sent: Wednesday, February 25, 2004 3:17 AM
> To: Courier Users
> Subject: Re: [courier-users] esmtp auth off by default?
>
>
> On Tue, Feb 24, 2004 at 09:37:47PM -0800, Gordon Messmer wrote:
>
> > Is it just me or is AUTH off by default?
>
> It's off by default. One always has to go and set the 2 variables in
> esmtpd for AUTH to work. Sam insists that SMTP authentication is
> "already configured" and "nothing needs to be done", so either he's
> mistaken, or it's a bug in the default configuration file.
>
> --
> Anand Buddhdev
>
>
> ---
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> ___
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>



---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] globalfilters cannot drop messages

2004-02-24 Thread Mitch \(WebCob\)
Don't know about this - has been oft talked about - and from what I have
heard done by a few. Are you sure? A read doesn't nessecarily imply a read
lock or that it will not be refreshed afterwards - does it?

m/

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of
> Alessandro Vesely
> Sent: Tuesday, February 24, 2004 10:01 AM
> To: Courier mailing list
> Subject: [courier-users] globalfilters cannot drop messages
>
>
> Looking at the code in submit2.C reveals that, before calling a
> global filter, ctlfile is flushed so that the filter can read it,
> but it's not closed, so that the filter cannot write to it.



---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Can't get STARTTLS to work from Win2k client

2004-02-18 Thread Mitch \(WebCob\)
You should not have to uninstall it - just remove or disable the outgoing
proxy - checking the inbound should still be a good thing - right?

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of John
> BOSSERT
> Sent: Wednesday, February 18, 2004 9:02 AM
> Cc: [EMAIL PROTECTED]
> Subject: Re: [courier-users] Can't get STARTTLS to work from Win2k
> client
>
>
> A follow-up...  It is Norton 2004.  I looked at the task list and saw
> "CCPROXY.exe" - uninstalling Norton allowed "STARTTLS" to return a "220
> - Ok".
>
> This, in spite of the fact I had previously disabled outbound email
> scanning.
>
> I'll investigate this further to see if there's anyway for Norton 200*4*
> to play nice in the sandbox - any advice, please send to me and I'll
> summarize to the list.  Thanks.
>
> John BOSSERT wrote:
> > Thanks.  I found that one on Google, disabled Norton AV completely.  No
> > joy.  Any other ideas?  Diagnostic courses of investigation?
> >
> > Joseph C. Lininger wrote:
> >
> >> A common problem for this is if you are running Norton Antivirus on
> >> the Windows box. It uses an smtp proxy which will block the starttls
> >> request. Took me for ever to figure this one out. The only solution I
> >> know of is to disable scanning of outgoing messages in Norton
> Antivirus.
> >>
> >
> >
>
>
>
> ---
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> ___
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>



---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Prevent folder deletion

2004-02-16 Thread Mitch \(WebCob\)
Could send you a patch that allows maildrop to autocreate missing folders...

Coulda sworn though that someone created "nodelete" files owned by root with
no group or world perms in a folder... as Courier is not running as root -
it's running as the user who's folder it's accessing, it would be impossible
for it to remove the folder with a root owned file contained in it - unless
you have something broken in your file permissions / file system...

m/

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Matt
> Soccio
> Sent: Friday, February 13, 2004 6:24 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [courier-users] Prevent folder deletion
>
>
> On Fri, 2004-02-13 at 01:12, Mitch (WebCob) wrote:
> > Hey Matt - I never realized the Trash folder was undeletable...
> if that's
> > the case, I imagine that is hardcoded - you could look... and
> add your own
> > folder. I do remember discussion of placing files owner by another user
> > inside the folders to prevent them from being deleted. If you
> experiment,
> > you may find a single file will cause the directory unlink to
> fail and the
> > folder delete process to be cancelled.
> >
>
> Mitch - thanks for the idea.  Just for the record, I couldn't get the
> unlink to fail with any sort of placeholder file.  I backed up a step
> and placed the logic in exim so that the router does not execute if the
> Spam directory is not present.
>
> Matt
>
> > Don't know if this still works... haven't heard about this in a
> long time.
> >
> > m/
> >
> > > -Original Message-
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED] Behalf Of Matt
> > > Sent: Thursday, February 12, 2004 1:40 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: [courier-users] Prevent folder deletion
> > >
> > >
> > > I have an exim router that automatically handles spam for
> virtual users,
> > > by delivering it to a Maildir/.Spam folder.  I would like to make this
> > > folder "undeletable", like the Trash to maintain the
> integrity of the exim
> > > router.  Is there an easy way to do this, or is the Trash
> functionality
> > > hard-coded?
> > >
> > > Thanks
> > >
> > > Matt
> > >
> > >
> > >
> > > ---
> > > SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> > > Build and deploy apps & Web services for Linux with
> > > a free DVD software kit from IBM. Click Now!
> > > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> > > ___
> > > courier-users mailing list
> > > [EMAIL PROTECTED]
> > > Unsubscribe:
> https://lists.sourceforge.net/lists/listinfo/courier-users
> > >
> >
>
>
>
> ---
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> ___
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>



---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] delay in HELO response

2004-02-16 Thread Mitch \(WebCob\)
Am willing to entertain the idea, but why? Are response times that different
in practice? Or can a simple baseline be established based on your
connectivity in general... a threshold PER connection is probably a lot more
work to test than a threshold per server, and I don't see volunteers yet ;-)
So you'll have to justify the extra work to whoever volunteers to fix the
problem.

Would probably be easier to print time TAKEN if threshold is exceeded.

Just guessing though - not looking at the code.

m/
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Holmström
> Lars
> Sent: Sunday, February 15, 2004 11:44 PM
> To: Mitch (WebCob); Holmström Lars; [EMAIL PROTECTED]
> Subject: RE: [courier-users] delay in HELO response
>
>
> May be a treshold value for each BLACKLIST entry would make sense. If
> reached, a message is printed in maillog ?
> /Lars
>
> -Original Message-
> From: Mitch (WebCob) [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 16, 2004 8:27 AM
> To: Holmström Lars; [EMAIL PROTECTED]
> Subject: RE: [courier-users] delay in HELO response
>
> I've heard of that on the list before... if a blacklist goes down or stops
> responding, it can add a significant amount of time to startup.
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Behalf Of
> > Holmström Lars
> > Sent: Sunday, February 15, 2004 10:41 PM
> > To: Holmström Lars; Mitch (WebCob); Holmström Lars;
> > [EMAIL PROTECTED]
> > Subject: RE: [courier-users] delay in HELO response
> >
> >
> > But still I have not found where the time spent between the socket is
> > established and courier respond with "220  Ready".
> >
> > Can you give me some advice or hint ?
> > /Lars
> >
> >   _
>
>
> ---
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id56&alloc_id438&op=ick
> ___
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>



---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] delay in HELO response

2004-02-15 Thread Mitch \(WebCob\)
doesn't sound like a bad idea... maybe for simplicity, just a global timeout
exceeded threshold which would log the offending blacklists name... might be
simpler...

If you are volunteering to path, I'm sure there would be interest from
some - I've seen this problem crop up before - particularly by people who
use more than a couple blacklists...

m/

> -Original Message-
> From: Holmström Lars [mailto:[EMAIL PROTECTED]
> Sent: Sunday, February 15, 2004 11:44 PM
> To: Mitch (WebCob); Holmström Lars; [EMAIL PROTECTED]
> Subject: RE: [courier-users] delay in HELO response
>
>
> May be a treshold value for each BLACKLIST entry would make sense. If
> reached, a message is printed in maillog ?
> /Lars
>
> -Original Message-
> From: Mitch (WebCob) [mailto:[EMAIL PROTECTED]
> Sent: Monday, February 16, 2004 8:27 AM
> To: Holmström Lars; [EMAIL PROTECTED]
> Subject: RE: [courier-users] delay in HELO response
>
> I've heard of that on the list before... if a blacklist goes down or stops
> responding, it can add a significant amount of time to startup.
>
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] Behalf Of
> > Holmström Lars
> > Sent: Sunday, February 15, 2004 10:41 PM
> > To: Holmström Lars; Mitch (WebCob); Holmström Lars;
> > [EMAIL PROTECTED]
> > Subject: RE: [courier-users] delay in HELO response
> >
> >
> > But still I have not found where the time spent between the socket is
> > established and courier respond with "220  Ready".
> >
> > Can you give me some advice or hint ?
> > /Lars
> >
> >   _
>



---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] delay in HELO response

2004-02-15 Thread Mitch \(WebCob\)
I've heard of that on the list before... if a blacklist goes down or stops
responding, it can add a significant amount of time to startup.

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Holmström
> Lars
> Sent: Sunday, February 15, 2004 10:41 PM
> To: Holmström Lars; Mitch (WebCob); Holmström Lars;
> [EMAIL PROTECTED]
> Subject: RE: [courier-users] delay in HELO response
>
>
> But still I have not found where the time spent between the socket is
> established and courier respond with "220  Ready".
>
> Can you give me some advice or hint ?
> /Lars
>
>   _



---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Re: My Modest Proposal

2004-02-15 Thread Mitch \(WebCob\)


> -Original Message-
> From: Lloyd Zusman [mailto:[EMAIL PROTECTED]
> Sent: Sunday, February 15, 2004 7:48 PM
> To: Mitch (WebCob)
> Subject: Re: [courier-users] Re: My Modest Proposal
>
>
> "Mitch \(WebCob\)" <[EMAIL PROTECTED]> writes:
>
> > [ ... ]
> >> So ... I would request that Sam just expose the internal message
> >> structure to us during a global filter, and then give us the tools to
> >> hang ourselves.
> >
> > I agree with you totally, BUT I thought this would be a low effort
> > solution to allow header mods without the complications of forcing a
> > rebuild of this internal sctructure - which is certainly beyond my C
> > capability... with this, adding a Spam: yes or Spam: no_ is easy, and
> > doesn't require a reject / resubmit.
>
> Have you looked through the code to see how easy this change would be to
> write?

Totally simple! See what Sam is saying is that you CAN change the message
file as long as none of the key information changes location... so as long
as headers remain the same size, the content can change... as long as body
parts remain the same size, content CAN change.

So if we use submit to add the headers, before the structure is built, and
just pad them to the largest size to be used, then we can edit them inside a
filter without effect on courier.

e.g. add:

Spam-Status: XXX

Replace with:
Spam-Status: yes
OR
Spam-Status: no_

The same could work for anything that desires to add a header to flag a
status on a message without resubmission.

The first hack would be to simply add a constant with whatever headers
hardcoded (this is within my C ability ;-)

The better hack would be to add support for a config file which would
contain a template for all headers to add - could ideally be read as courier
is loaded or as submit is run. I'm hoping there is someone C'ish enough to
do this - or I can do the former, but the former certainly isn't polished
enough for distribution.

> >> I'm going to continue pushing for my "id" solution as part of the
> >> "Received:" header.  Please don't take this as a rejection of your good
> >> ideas.  I just think that a unique ID is a beneficial addition to the
> >> "Received" header, especially since it's part of one or more RFC's, and
> >> because other MTA's implement it.
> >>
> >> There is nothing about that "id" field which precludes any of your
> >> suggestions.
> >
> > Nope - understood - the only qualm I had about this is that we are
> > already partially screwed for spam assassin support - the more we mod
> > our receive headers the worse it will be.
>
> Well, the "id" field has been in one or more RFC's for years.  At least
> one other MTA, namely exim, uses this "id" field exactly as I use it
> here: it contains the queue ID (I just posted a patch to use this queue
> ID instead of my own, home-grown unique ID).
>
> Therefore, I doubt that this will have any added impact on SpamAssassin.

Would still be interesting to see what happens... and as I indicated in the
bug notice I forwarded to the courier list... SpamAssassin ack the problem,
but keep putting off the fix for courier... if anyone interested in courier
is PERL friendly, it would be a good thing to get fixed.

If your change makes the Received header more like an Exim receiver header,
then it might fix the problem already - worth testing... an indication of
the problem is triggering the dynablock rule on mail submitted through the
courier server. At least I think that's how it works.

m/



---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


[courier-users] FW: [Bug 2906] Courier Received header format not detected - causing false positive on RCVD_IN_DYNABLOCK

2004-02-15 Thread Mitch \(WebCob\)
Just to keep courier users in the loop...

I posted this bug report a while ago - it has been pushed back in the
"target" list...

The effect of this is that courier received lines are not matched properly,
which causes DYNABLOCK matches - which are worth 1 point at present...

I'm not a PERL guy, but if someone is, would be nice if we weren't all
getting an extra point on our mail eh?

m/

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Sunday, February 15, 2004 2:09 PM
To: [EMAIL PROTECTED]
Subject: [Bug 2906] Courier Received header format not detected -
causing false positive on RCVD_IN_DYNABLOCK


http://bugzilla.spamassassin.org/show_bug.cgi?id=2906

[EMAIL PROTECTED] changed:

   What|Removed |Added

   Target Milestone|2.70|3.0.0





--- You are receiving this mail because: ---
You reported the bug, or are watching the reporter.



---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Re: Determining a message's queue ID from a local filter?

2004-02-15 Thread Mitch \(WebCob\)
If I remember right, didn't some of that information have to do with
reception time and inode number? I think courier starts the id creation ,
but it isn't complete until saved in a final message queue file - I could be
way off, but I remember something to that effect...

m/

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Lloyd
> Zusman
> Sent: Sunday, February 15, 2004 12:57 PM
> To: [EMAIL PROTECTED]
> Subject: [courier-users] Re: Determining a message's queue ID from a
> local filter?
>
>
> Lloyd Zusman <[EMAIL PROTECTED]> writes:
>
> > I'd like to determine a message's queue ID from within a local filter
> > (e.g., maildrop).
> >
> > I'm talking about the ID that looks like this:
> >
> >   00444CCD.40299099.1DDE
> >
> > This doesn't appear to be possible.  But am I missing something,
> > perhaps?
> >
> > Thanks in advance.
>
> I haven't seen any replies to this, so I'm trying again.
>
> Am I right in assuming that it isn't possible to get a message's queue
> ID when accessing this message within a local filter? ... or is there
> some information associated with every message, or embedded within it,
> which will let me do this?
>
> Hmm ... is there perhaps an environment variable that I can import
> within a local filter which contains information that I can use to
> determine the message's queue ID?
>
> Thanks.
>
> --
>  Lloyd Zusman
>  [EMAIL PROTECTED]
>
>
>
> ---
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> ___
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>



---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] delay in HELO response

2004-02-14 Thread Mitch \(WebCob\)
I would expect courier itself is having problems doing the reverse lookup...

iirc, courier doesn't use your local resolver, so it does its own DNS. Try
turning off revser lookups and or ident - see where your problem lies. There
was discussion about this before, Sam wanted performance in the reverse
lookup - of course if the firewall restricts outbound queries or doesn't do
stateful allows on outbound UDP you could have a problem. Unless you need it
turn it off? If you need it, figure out couriers port symantecs and modify
your firewall?

m/

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Holmström
> Lars
> Sent: Saturday, February 14, 2004 2:03 PM
> To: [EMAIL PROTECTED]
> Subject: [courier-users] delay in HELO response
>
>
> I have a 0.44.2 installation on a RH8.0 with webmail, imap, pop3 and a few
> more modules.
>
> My users, and myself, have no problem using pop3, imap and
> webmail, but when
> sending mail via SMTP I got a long delay before the mail actually is
> recieved by courier.
>
> My LAN has no firewall. I have verified the DNS setup, including
> the reverse
> lookup, and can not find any obvious problem.
>
> I used tcpdump to watch the traffic between the mailserver, the client and
> the DNS.
>
> I can see that it takes approx 2 sec to forkl a new process, do the ident
> and the DNS lookup, but then nothing happend for about 2 minutes.
> This is as
> far as I understand before the mailserver respond with its
> ID_string and is
> ready to recieve the HELO ?
>
> If I connect to port 25 via telnet I got exactly the same behaviour. From
> where the tcp-session is established (looking with netstat) until the
> mailserver print something in my telnet window it takes more than
> 2 minutes.
>
> Can some one direct me to where to look for the problem and possibly give
> some good advice ?
>
> /Lars
>
>
> ---
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> ___
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>



---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] [PATCH] reformime: return exit code of external program

2004-02-14 Thread Mitch \(WebCob\)
I came up with something a fair bit leaner I think - seems to work for me.

Now I based this on some code someone else was talking about... and for the
life of me I can't remember where I put the name... so the credit doesn't
belong with me! but irrc, he didn't sign his work... I just made a few
tweaks, but here it is, and fixed some file handle stuff to make it work on
my system.

It runs as a perlfilter, so it's daemonized if I understand right - doesn't
get started and stopped, and is capable of rejecting the mail during the
SMTP process - so the remote server gets an error, and we just drop the
message.

SOURCE:
# $| = 1;
use IO::File;

my $filedesc=shift @ARGV;
my $socket=undef;
my $tempdir = "/tmp/scan-$$";
my ($line, $mailfile, $errmsg);
#open($socket, "+<&$filedesc");
my $socket=new IO::File "+<&$filedesc";
die "$!" unless defined $socket;


while (defined ($line=<$socket>)) {
chomp $line;
last unless($line);
$mailfile = $line unless($mailfile);
# Ignore control files
}
if($mailfile) { $errmsg = viruscheck($mailfile, $tempdir); }
$errmsg = "200 Ok" unless($errmsg);
$errmsg .= "\n" unless $errmsg =~ /\n$/;
print $socket $errmsg;
close($socket);
undef($socket);

##

sub viruscheck() {
my $filename=shift;
my $temproot=shift;
my $tempdir;
$tempdir = newtmpdir($temproot);
system("/usr/local/courier/bin/reformime -x$tempdir/ < $filename");
return "432 internal mime handler failure" if($?);
system("/usr/local/bin/clamscan", '-i', '--quiet',
'--disable-summary',
'-r', '--max-space=2', '--max-files=1000',
'--max-recursion=5',
'-l', $tempdir.".rep", "--tempdir=$tempdir", $tempdir);
if($?) {
return "432 virus scanner invocation failure" if($? != 256);
my ($fh, $err, $virus_ref);

#return "432 $tempdir.rep";
#   open($fh, $tempdir.".rep");
$fh = new IO::File "< $tempdir.rep";
return "432 virus scanner report failure" unless($fh);
while(<$fh>) {
chomp;
if(/^$tempdir\/(.*)/) { $virus_ref = $1; $err =
"ANTIVIRUS ALERT! $virus_ref"; last; }
}
close($fh);
if(-d '/tmp/virus_log/') {
$virus_ref =~ s/[^a-zA-Z0-9.:_ ]/-/g;
my($file, $virus) = split(/ +/, $virus_ref);
chop($file);
system("/bin/cp $filename /tmp/virus_log/$virus");
}
return "432 virus scanner report failure" unless($err);
return "500 $err";
}
cleantmpdir($tempdir);
return "";
}

sub cleantmpdir {
  my $tempdir=shift;
  system('/bin/rm', '-rf', $tempdir);
  unlink($tempdir.".rep");
}

sub newtmpdir {
  my $tempdir=shift;
  if(-d $tempdir) { cleantmpdir($tempdir); }
  mkdir($tempdir, 0700);
  return $tempdir;
}


INSTALLING:

cp SOURCE/clamav-fiter.pl /usr/local/courier/share/
chmod 755 /usr/local/courier/share/clamav-fiter.pl

echo "all" >/usr/local/courier/etc/filters/perlfilter-mode
echo "10" >/usr/local/courier/etc/filters/perlfilter-numprocs
echo "/usr/local/courier/share/clamav-fiter.pl"
>/usr/local/courier/etc/filters/perlfilter
/usr/local/courier/sbin/filterctl start perlfilter
/usr/local/courier/sbin/courierfilter start
mkdir /tmp/virus_log

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Flavio
> Stanchina
> Sent: Saturday, February 14, 2004 3:31 AM
> To: [EMAIL PROTECTED]
> Subject: [courier-users] [PATCH] reformime: return exit code of external
> program
>
>
> I see that filtering is all the rage here lately, so I'm proposing this
> small patch to reformime that allowed me to create a simple but
> effective virus filter from maildroprc. The patch is against Debian
> version 0.42.2-10. BTW, Racke, I see you read this list too... do you
> have experimental packages for more recent versions?
>
> Background: I'm administering a couple of mail servers and after the
> MyDoom outbreak I took a deeper look into virus filtering. All my users
> on Windows have local virus scanners, but the more viruses I stop on the
> server, the less support requests I get...
>
> I looked at Amavis and other solutions, but I'm uncomfortable with such
> beasts. I was looking for something easier to set up. I discovered the
> existence of reformime a few days ago, and it looked like the -X option
> was what I needed to call ClamAV safely from maildrop, except that
> there's no easy way to signal that a virus has been found. Here's what
> my patch does: if the external program terminates with a nonzero exit
> status, reformime terminates and returns (program exit status + 20).
>
> This is what I put into /etc/courier/maildroprc:
># log delivered emails for debugging purposes
>logfile ./maildrop.log
>exception {
>  `/usr/bin/reformime 

RE: [courier-users] [request], please extende MAXPERIP options

2004-02-12 Thread Mitch \(WebCob\)
I'm not sure, but I thought localhost was expempt from this limit, which
would let you connect unlimited times if you went through a tunnel -
alternatively, you could run two daemons - one for your webmail, and one for
your other users - BUT, your webmail probably can't have any more
connections than it has apache threads - which I doubt is 5000 (unless you
are using persistent connections).

m/

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of
> Miroslav Ris
> Sent: Thursday, February 12, 2004 8:44 PM
> To: [EMAIL PROTECTED]
> Subject: [courier-users] [request], please extende MAXPERIP options
>
>
> hi,
>
> thanks Sam for courier-imap server.
> it's really best!
> i am using this over 2 years.
>
> request:
> please add per tcp/ip:netmask MAXPERIP options for courier-imap server.
>
> problem:
> using webmail (squirrelmail and smm) for access to mail boxes (about 5000
> users, and set MAXPERIP=5000).
> but same users use stupid M$ mail readers (MS Outlook Express and
> MS Entourage).
> this apps generate lots connections to imap server (one
> connections for every
> mail in local app cache) and server totally freeze.
>
> need set MAXPERIP for webmail server to 5000 and for all others to 4.
>
> thanks!
>
> --
> Miroslav Ris
>
>
> ---
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> ___
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>



---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Prevent folder deletion

2004-02-12 Thread Mitch \(WebCob\)
Hey Matt - I never realized the Trash folder was undeletable... if that's
the case, I imagine that is hardcoded - you could look... and add your own
folder. I do remember discussion of placing files owner by another user
inside the folders to prevent them from being deleted. If you experiment,
you may find a single file will cause the directory unlink to fail and the
folder delete process to be cancelled.

Don't know if this still works... haven't heard about this in a long time.

m/

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Matt
> Sent: Thursday, February 12, 2004 1:40 PM
> To: [EMAIL PROTECTED]
> Subject: [courier-users] Prevent folder deletion
>
>
> I have an exim router that automatically handles spam for virtual users,
> by delivering it to a Maildir/.Spam folder.  I would like to make this
> folder "undeletable", like the Trash to maintain the integrity of the exim
> router.  Is there an easy way to do this, or is the Trash functionality
> hard-coded?
>
> Thanks
>
> Matt
>
>
>
> ---
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> ___
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>



---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Message submission process (Re: Rejection/re-insertion methodology howto?)

2004-02-12 Thread Mitch \(WebCob\)
Hey Sam - Thanks!

I think I understand a lot better, and imagine others do too... And of
course if it isn't said often enough - we appreciate that you have a day job
too and that there are always priorities... Now, for those of use who want
to hack... I have a counter proposal...

First the long term (perhaps nirvana like) and then the short term hack.

Long term, it would be nice if a filter could signal - perhaps by exit code,
that the structure needed to be reread and reparsed before continuing. On
returning a certain exit code, courier could know that an acceptance was
given, but that the message was changed, and force an rebuild of the memory
structure you mentioned, using the message file as source. There may be a
more efficent way to do it, such as distinguishing between header only vs.
body mods, etc., but at least this would make the reparsing overhead only a
burden to those of us who need it - and it would still be better than
resending - right?

Short term hack:

So we can only make a change if it doesn't alter the position or structure
of existing data. That's the key. So lets do just that. Define a buffer
size, intended to be large enough to record whatever information you want to
modify in a filter Then, much like Lloyd has suggested, path submit.
Submit will now create a new header:

X-Filter-Info: XX
 
 

You could of course substiture X for any character you like - so long as it
doesn't break mail header standards. Then, you could wrap your arbitrary
filter data in base64, pad with X's, and replace the old header installed by
submit.

No message structure alteration, and an editable payload. Could even be done
multiple times as needed for diferent filters or purposes - create as many
"place holder" padded headers as needed - in fact this could be done
generically, by "including" this value from the config file - so that a
recompile isn't needed to change the headers As submit starts it could
append a value from /etc/addheaders to the message.

Anyone like this idea? Gets us to the editable header stage a lot quicker,
without as much overhead doesn't it?

Would I screw something up doing this?

Sam: Thanks again for your efforts and the explanation.

m/



---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Making user names case-insensitive?

2004-02-12 Thread Mitch \(WebCob\)
search for locallowercase in the manual. The restriction is that ALL your
user names and aliases MUST be in lower case... then all mixed case names
will be converted to lower case before matching and local delivery.

hth

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Flavio
> Stanchina
> Sent: Thursday, February 12, 2004 2:34 PM
> To: [EMAIL PROTECTED]
> Subject: [courier-users] Making user names case-insensitive?
>
>
> Is there a way to tell Courier that user names should be treated as
> case-insensitive?
>
> I know I should educate my users until they understand that email
> addresses are case-sensitive, but until then...
>
> --
> Ciao,
>  Flavio Stanchina
>  Trento - Italy
>
>
>
>
> ---
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> ___
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>



---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Re: My Modest Proposal

2004-02-12 Thread Mitch \(WebCob\)
> I think that's a great idea!  However, my suggestion would be to use
> submit to your advantage here.  The "submit" protocol is well documented
> somewhere (I read it for over an hour the other night) and while a
> little unwieldy IMO it also seems like the best way to do injection.
>
> I come from a qmail background, and it seems to me that 'submit' takes
> the place of qmail-inject and qmail-queue.  It also seems like there
> might be some benefit to writing a qmail-inject-like wrapper for submit.

I like that idea... wonder how hard it would be.

One side note though - a word of warning. SpamAssassin looks at received
headers and ALREADY fails to properly recognize courier's format - as a
result mail received locally from an authenticated user is not detected as
such and may be penalized for coming from a black hole listed IP

I've submitted a bug report and been told that it MAY be fixed by version
2.70 - doing this could likely derail this header test again, so if you use
SA you may have to code to skip it for locally authenticated users (which is
probably an efficient idea anyways...)

Looking forward to the benchmarks - and also secretly wanting to try
modifying a message file to see what happens. Maybe we misunderstood Sam -
it is possible a modification could be ok as long as it doesn't corrupt the
mime envelope?? Just a thought...

m/



---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] My Modest Proposal

2004-02-12 Thread Mitch \(WebCob\)
Me too. If it's still a long way off, then maybe this is the way to go - on
the other hand if Sam can provide some guidance as to where one would have
to look to start making such a change - and perhaps what the bigger
challenges are, then maybe we can amass enough effort amounst us to make it
happen - eh?

m/

> -Original Message-
> From: Derrick T. Woolworth [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 12, 2004 12:43 AM
> To: Mitch (WebCob)
> Cc: Lloyd Zusman; [EMAIL PROTECTED]
> Subject: RE: [courier-users] My Modest Proposal
>
>
> I think its important to the evolution of Courier that it
> eventually support
> modification of messages from any courierfilter.  I've never
> quite understood
> why this isn't allowed - possibly a filesize issue, security?  I
> would only be
> guessing, but in the grand scheme of things I'm sure there's a
> lot of folks
> that would love this ability.
>
> I'd like to hear from Sam regarding the effort to make this
> modification and
> perhaps why its so long in coming?
>
> Thanks,
>
> D
>
> --
> Derrick T. Woolworth
> R&D Technology, LLC.
> 6701 W. 121st, Suite 310
> Overland Park, KS 66209
> Phone: (913) 491-0345
> Fax:   (913) 491-1645
>
>
> Quoting "Mitch (WebCob)" <[EMAIL PROTECTED]>:
>
> | Hi Lloyd.
> |
> | Would like to hear what others think including Sam - but it
> sounds like the
> | best of a bad situation to me. I wonder how the effort and
> overhead you are
> | making compare with a patch to courier that would allow modification of
> | message files during global filtering. Although such an option
> may lower the
> | efficiency of delivery perhaps if submitted as a compile time option it
> | could be acceptable for inclusion in the distribution.
> |
> | Personally, I make my hacks as a last resort after trying to ellicit
> | support, as maintaining them - particularly when dependancies
> on the core
> | software may not be broken with future versions.
> |
> | I've seen people running filters twice to do rejection and modification
> | separately - maybe before embarcing on this you might want to do some
> | benchmarks?
> |
> | Just a few thoughts.
> |
> | m/
> |
> | > -Original Message-
> | > From: [EMAIL PROTECTED]
> | > [mailto:[EMAIL PROTECTED] Behalf Of Lloyd
> | > Zusman
> | > Sent: Wednesday, February 11, 2004 5:21 AM
> | > To: [EMAIL PROTECTED]
> | > Subject: [courier-users] My Modest Proposal
> | >
> | >
> | > In one or two other threads, I mentioned a Modest Proposal for a small
> | > change in Courier.  I'm about to start work on a patch and a piece of
> | > add-on software that implement this proposal, and so I want
> to describe
> | > it here, in a bit more detail.
> | >
> | > The problem I'm trying to solve is this: for reasons of efficiency,
> | > Courier's global filters cannot modify messages.  Only local
> filters can
> | > do that.  Because a global filter can cause an immediate
> failure during
> | > the SMTP dialog, there are some functions that are best
> performed during
> | > a global filter.  But some of these functions make minor
> changes to the
> | > message, such as the addition of header fields.  SPF is one such
> | > function.
> | >
> | > The recommended solution for this, namely having the global filter
> | > modify the control file in order to block message delivery and then
> | > re-injecting a modified version of the message, is cumbersome,
> | > inelegant, overly complex, and probably inefficient.
> | >
> | > Therefore, I propose the following:
> | >
> | > A small change is made to Courier (probably only a few lines
> of code in
> | > submit.C) which will cause a unique ID to be put into the "Received:"
> | > header for every message that Courier processes.  Because this ID will
> | > be visible both during global and local filtering, it
> provides a way to
> | > match a message going through a local filter with its predecessor that
> | > might have gone through a global filter.  This allows state
> information
> | > to be maintained for the life of a message through the local
> and global
> | > filters.
> | >
> | > I propose the generation of this unique ID instead of using the
> | > Message-ID header, because we cannot count on Message-ID being totally
> | > unique.
> | >
> | > How does this solve the problem that I mentioned above?
> Well, a global
> | > filter that wants to change a message can create an entry in a data
> | > store using 

RE: [courier-users] My Modest Proposal

2004-02-11 Thread Mitch \(WebCob\)
Hi Lloyd.

Would like to hear what others think including Sam - but it sounds like the
best of a bad situation to me. I wonder how the effort and overhead you are
making compare with a patch to courier that would allow modification of
message files during global filtering. Although such an option may lower the
efficiency of delivery perhaps if submitted as a compile time option it
could be acceptable for inclusion in the distribution.

Personally, I make my hacks as a last resort after trying to ellicit
support, as maintaining them - particularly when dependancies on the core
software may not be broken with future versions.

I've seen people running filters twice to do rejection and modification
separately - maybe before embarcing on this you might want to do some
benchmarks?

Just a few thoughts.

m/

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Lloyd
> Zusman
> Sent: Wednesday, February 11, 2004 5:21 AM
> To: [EMAIL PROTECTED]
> Subject: [courier-users] My Modest Proposal
>
>
> In one or two other threads, I mentioned a Modest Proposal for a small
> change in Courier.  I'm about to start work on a patch and a piece of
> add-on software that implement this proposal, and so I want to describe
> it here, in a bit more detail.
>
> The problem I'm trying to solve is this: for reasons of efficiency,
> Courier's global filters cannot modify messages.  Only local filters can
> do that.  Because a global filter can cause an immediate failure during
> the SMTP dialog, there are some functions that are best performed during
> a global filter.  But some of these functions make minor changes to the
> message, such as the addition of header fields.  SPF is one such
> function.
>
> The recommended solution for this, namely having the global filter
> modify the control file in order to block message delivery and then
> re-injecting a modified version of the message, is cumbersome,
> inelegant, overly complex, and probably inefficient.
>
> Therefore, I propose the following:
>
> A small change is made to Courier (probably only a few lines of code in
> submit.C) which will cause a unique ID to be put into the "Received:"
> header for every message that Courier processes.  Because this ID will
> be visible both during global and local filtering, it provides a way to
> match a message going through a local filter with its predecessor that
> might have gone through a global filter.  This allows state information
> to be maintained for the life of a message through the local and global
> filters.
>
> I propose the generation of this unique ID instead of using the
> Message-ID header, because we cannot count on Message-ID being totally
> unique.
>
> How does this solve the problem that I mentioned above?  Well, a global
> filter that wants to change a message can create an entry in a data
> store using this unique ID as a key.  In this entry will be some sort of
> description of the change.  Later, when the message passes through the
> local filter, the data store is accessed and the entry is looked up by
> means of this same unique ID.  The local filter then interprets this
> data and makes whatever modification is necessary to the message.
>
> As an adjunct to this small patch to (probably) submit.C, I will also
> write a package that can be used within global and local filters to
> manage this data store.  Since I'm using courier-pythonfilter for my
> global filtering, I will write this adjunct package in Python.  Of
> course, there is no requirement to use this package.  Many people
> will just want to ignore this unique ID, and others will want to
> use it in their own ways.
>
> An example should clarify this.  Here's how this would work with SPF:
>
> 1.  SMTP dialog begins.
>
> 2.  A global filter is invoked at the appropriate time in order to
> perform SPF checking.  If this test fails, the message is
> immediately rejected.  But if it succeeds,  we need to add an
> "SPF-Received" header to the message.
>
> 3.  Still within the global filter, extract the new unique ID from
> Courier's "Received" header in the message.
>
> 4.  Using my adjunct data store package, persist an appropriate
> SPF-Received header, using this unique ID as the key.
>
> 5.  Global filter exits.
>
> 6.  Later, the message is processed by a local filter ... in my
> case, this will be handled via maildrop.
>
> 7.  Very early in this local filter's processing, 'xfilter' the message
> through a homegrown utility which extracts the unique ID from
> Courier's "Received" header in the message.
>
> 8.  Still within this xfilter propgram, and using my same data store
> package, try to retrieve any information that might have been
> previously persisted for this message, keyed by this unique ID.  If
> there is no such information, skip to step 11.
>
> 9.  If information exists, interpret it.  In this example, we have
> persisted an SPF-Received header.  We then a

RE: [courier-users] RE: Global filtering

2004-02-11 Thread Mitch \(WebCob\)
1) there is no reason this would remain constant
2) as this value is only used locally, it wouldn't be that quick to leak (relative to 
other leaks of addresses
3) it would be very easy to rotate this regularly to keep it from being guessed
4) there would be a trail of received headers that could be used to validate it

Don't think it's the best option, but this was the best idea when this was last 
discussed. I don't know WHY we can't change the architecture to allow filters to 
modify the messages... perhaps someone with more C knowlege than I can look at it?

m/

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Julian
> Mehnle
> Sent: Wednesday, February 11, 2004 7:08 AM
> To: [EMAIL PROTECTED]
> Subject: [courier-users] RE: Global filtering
> 
> 
> Mitch (WebCob) [EMAIL PROTECTED] wrote:
> > I think Roland answered most of this already - except to say 
> that the way
> > to exclude messages from refiltering was to set an
> > X-Already-Seen-By-My-Filter
> > header so that you could skip re-running if you saw that header.
> 
> That's a bad idea, since any spammer or virus could send messages 
> with that header field already included, and thus bypass filtering.
> 
> 
> 
> ---
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id56&alloc_id438&op=ick
> ___
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
> 



---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Re: Global filtering

2004-02-11 Thread Mitch \(WebCob\)
I think Roland answered most of this already - except to say that the way to
exclude messages from refiltering was to set an X-Already-Seen-By-My-Filter
header so that you could skip re-running if you saw that header. Suggested
injection method was I belive by sendmail call.

m/

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of
> Alessandro Vesely
> Sent: Wednesday, February 11, 2004 2:42 AM
> To: Mitch (WebCob)
> Cc: Lloyd Zusman; [EMAIL PROTECTED]
> Subject: Re: [courier-users] Re: Global filtering
>
>
> "Mitch (WebCob)" wrote:
> >
> > There IS a way to do this, it's just a bit ugly (IMHO at least).
> >
> > Sam says the way is to run your filter and read the message
> file - do any
> > rewriting you want to, and inject a new message. The control file can be
> > modified to indicate successful delivery of the first message, the new
> > message injected with modified content will take it's place.
>
> > [...]
> > Maybe someone should just try it?
> >
> > Or try the reinjection method suggested by Sam. No database
> required. Use
> > the existing filter model.
>
> And the injection method suggested was?
>
> I was going to try reinjecting it with SMTP. But that's quite
> tricky because
> the filter cannot know that the content had been filtered already
> (and when
> the filter is paranoid, a digital signature seems the only way).
>
> What if there are more global filters?
>
> Ale
>
>
> ---
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> ___
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


[courier-users] RE: Help with an update to a little hack? Popping only some mail... Was working with .38 doesn't with .44.2

2004-02-10 Thread Mitch \(WebCob\)
Answered my own question... hate embarassing myself by asking dumb things...

I read the code more carefully - then did this (Posting it just in case it
helps someone else):

--- pop3dserver.c.ORIGINAL  Mon Feb  9 07:51:48 2004
+++ pop3dserver.c   Wed Feb 11 01:16:20 2004
@@ -332,7 +332,7 @@
 struct dirent *de;
 struct msglist *m;

-   if ((dirp=opendir("cur")) == 0)
+   if ((dirp=opendir(".POP3/cur")) == 0)
{
perror("pop3d");
return;
@@ -353,7 +353,7 @@
perror("malloc");
exit(1);
}
-   strcat(strcpy(m->filename, "cur/"), de->d_name);
+   strcat(strcpy(m->filename, ".POP3/cur/"), de->d_name);
m->isdeleted=0;
m->next=msglist_l;
msglist_l=m;
@@ -922,7 +922,7 @@

 static void purgetmp()
 {
-DIR*p=opendir("tmp");
+DIR*p=opendir(".POP3/tmp");
 time_t t;
 struct dirent *de;
 struct statstat_buf;
@@ -937,7 +937,7 @@
if (de->d_name[0] == '.')   continue;
n=malloc(strlen(de->d_name)+5);
if (!n) continue;
-   strcat(strcpy(n, "tmp/"), de->d_name);
+   strcat(strcpy(n, ".POP3/tmp/"), de->d_name);
if (stat(n, &stat_buf) == 0 && stat_buf.st_mtime < t)
unlink(n);
free(n);
@@ -999,7 +999,7 @@
msglist_l=0;
msglist_a=0;
purgetmp();
-   maildir_getnew(".", INBOX, NULL, NULL);
+   maildir_getnew(".POP3/", INBOX, NULL, NULL);
scancur();
sortmsgs();
printf("+OK logged in.\r\n");




---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


[courier-users] Help with an update to a little hack? Popping only some mail... Was working with .38 doesn't with .44.2

2004-02-10 Thread Mitch \(WebCob\)
Hi.

I had a need to use pop to retrieve messages left in a subfolder of a
Maildir. I wrote a patch to the pop3d program in 0.38, and had no problems
for aobut a year... now after upgrading some of my servers I'm moving over
those users - I whip out my trusty patch and BANG - it doesn't apply, so I
go and create SIMILAR mods to the new file, and it doesn't work...

Does someone who knows more about the inner workings of this program have
ANY insight as to what I've missed?

Originally I had this patch:

--- pop3dserver.c.ORIGINAL  Thu Mar  6 20:26:48 2003
+++ pop3dserver.c   Thu Mar  6 20:29:12 2003
@@ -114,7 +114,7 @@
 struct dirent *de;
 struct msglist *m;

-   if ((dirp=opendir("cur")) == 0)
+   if ((dirp=opendir(".POP3/cur")) == 0)
{
perror("pop3d");
return;
@@ -597,7 +597,7 @@

 static void purgetmp()
 {
-DIR*p=opendir("tmp");
+DIR*p=opendir(".POP3/tmp");
 time_t t;
 struct dirent *de;
 struct statstat_buf;
@@ -622,7 +622,7 @@

 static void scannew()
 {
-DIR*p=opendir("new");
+DIR*p=opendir(".POP3/new");
 struct dirent *de;
 char   *n, *o;

Which worked FINE!

After the upgrade to 44.2 I edited it to this:

--- pop3dserver.c.ORIGINAL  Mon Feb  9 07:51:48 2004
+++ pop3dserver.c   Mon Feb  9 07:55:30 2004
@@ -332,7 +332,7 @@
 struct dirent *de;
 struct msglist *m;

-   if ((dirp=opendir("cur")) == 0)
+   if ((dirp=opendir(".POP3/cur")) == 0)
{
perror("pop3d");
return;
@@ -922,7 +922,7 @@

 static void purgetmp()
 {
-DIR*p=opendir("tmp");
+DIR*p=opendir(".POP3/tmp");
 time_t t;
 struct dirent *de;
 struct statstat_buf;

The check of the new folder seems missing. Not sure what changed or how, but
my new patch seems to connect fine to an EMPTY mailbox, but returns the
error:

if (!f)
{
printf("-ERR Can't open the message file - it's gone!\r\n");
fflush(stdout);
return;
}

So obviously something has changed...

Any ideas?!?!? PLEASE and thanks...

m/



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Re: Global filtering

2004-02-10 Thread Mitch \(WebCob\)
There IS a way to do this, it's just a bit ugly (IMHO at least).

Sam says the way is to run your filter and read the message file - do any
rewriting you want to, and inject a new message. The control file can be
modified to indicate successful delivery of the first message, the new
message injected with modified content will take it's place.

I understand the process, but I have a hard time understanding why this is
better than allowing a filter to modify the message. I also have a hard time
understanding WHAT exactly in the message is "cached" (the reason that
direct modification of the message won't work according to what I recall
from Sam's explanation was that there were things in the courier process
that were not re-read from disk during the delivery process...)

Maybe someone should just try it?

Or try the reinjection method suggested by Sam. No database required. Use
the existing filter model.

m/



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Re: Definitive way to determine whether there's been authorization?

2004-02-08 Thread Mitch \(WebCob\)
Ok... my 2 pennies (still only worth 1.75 pennies cause I'm Canadian)

I don't know python, but assuming maildrop is your delivery agent wouldn't
you be better off doing any easy accepts in maildrop before calling out to
another program (save compile, load and exec... etc.)

I can't argue for or against - just asking.

m/

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Lloyd
> Zusman
> Sent: Sunday, February 08, 2004 6:37 PM
> To: [EMAIL PROTECTED]
> Subject: [courier-users] Re: Definitive way to determine whether there's
> been authorization?
>
>
> Lloyd Zusman <[EMAIL PROTECTED]> writes:
>
> > "Mitch \(WebCob\)" <[EMAIL PROTECTED]> writes:
> >
> >> If the last received header (the one added by YOUR server says
> AUTH, you can
> >> trust it - otherwise it can be spoofed. I just read the headers.
> >>
> >> You can use a for loop and a counter to ensure you only check the first
> >> received header.
> >>
> >> m/
> >
> > Got it.  Thanks.  I'll post my corrected filter script in a
> little while.
>
> ... and here it is.  How does it look?
>
>
>   #!/usr/bin/python
>
>   import re
>   import sys
>   import string
>   import courier.control
>   import courier.config
>
>   # Accepts all incoming messages that have been submitted via a
>   # successful AUTH dialog.
>
>   # Run before the spf filter.  Its 'order' variable is set to 2.
>   order = 1
>
>   # Record in the system log that this filter was initialized.
>   sys.stderr.write( 'Initialized the AUTH python filter\n' )
>
>   eohpat= re.compile(r'^\s*$')
>   whitepat  = re.compile(r'^\s')
>   rcvdpat   = re.compile(r'^Received:\s')
>   authpat   = re.compile(r'\(AUTH:\s+LOGIN\s+(\S+?)\s*\)', re.I | re.M)
>   accepted  = '200 Ok'
>   intfail   = '451 Internal failure locating message data file'
>   moretests = ''
>   user  = None
>   verbose   = False
>
>   def isReceived( header ):
> if header is None:
>   return False
> match = rcvdpat.search(header)
> if match:
>   return True
> else:
>   return False
>
>   def isAuth( header ):
> global user
> if header is None:
>   return False
> match = authpat.search(header)
> if match:
>   user = match.group(1)
>   return True
> else:
>   user = None
>   return False
>
>   def dofilter( message_data_file, message_ctrl_files ):
>
> global user
>
> result = moretests
> currHeader = None
> user   = None
>
> try:
>   lines = open(message_data_file,'r').readlines()
> except:
>   return intfail
>
> for line in lines:
>   match = eohpat.search(line)
>   if match:
> # If we're here, we have reached the end of the
> # headers, and we haven't yet seen any "Received:"
> # lines.  The only line we haven't tested yet is
> # the header that is currently being built.  If
> # it's a "Received:" line, then it must therefore be
> # the first line of this type, and we can then
> # test to see if it indicates an AUTH was done.  If
> # so, we accept the message without further
> # (courier-)filtering; if not, we pass it on to any
> # subsequent filtering steps.
> if isReceived(currHeader) and isAuth(currHeader):
>   result = accepted
> if verbose and currHeader is not None:
>   sys.stderr.write( currHeader )
> break
>   match = whitepat.search(line)
>   if match:
> # If we're here, the line begins with white space, which
> # means that it needs to be appended to the header that
> # we're currently building.
> if currHeader is None:
>   # The first line in the message file is an incomplete
>   # header.  Something is wrong.  Bye-bye.
>   break
> currHeader = currHeader + line
>   elif isReceived(currHeader):
> # We only look at the first "Received:" header.  If it's
> # an AUTH, then we know that our local server has done
> # a successful authorization and we accept the message
> # with no further (courier-)filtering; however, if this
> # "Received:" header is not an AUTH, then we know
> # definitively that the user came in without an
> # authorization, and therefore, this

RE: [courier-users] Re: Definitive way to determine whether there's been authorization?

2004-02-08 Thread Mitch \(WebCob\)
As anexample (based on some discussions with Gord) I now use this:

if ( $SIZE < 512000 )
{
i=1
foreach /Received: .*/
{
if ( $i == 1 && ( ! ($MATCH =~ /Received: .*\(AUTH:
[^)]*\) *by /)))
{
xfilter "/usr/bin/spamc -U
/var/run/spamassassin.sock -u $UI_ID"
}
i=$i+1
}
}

hth

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Lloyd
> Zusman
> Sent: Sunday, February 08, 2004 5:10 PM
> To: [EMAIL PROTECTED]
> Subject: [courier-users] Re: Definitive way to determine whether there's
> been authorization?
>
>
> "Mitch \(WebCob\)" <[EMAIL PROTECTED]> writes:
>
> > If the last received header (the one added by YOUR server says
> AUTH, you can
> > trust it - otherwise it can be spoofed. I just read the headers.
> >
> > You can use a for loop and a counter to ensure you only check the first
> > received header.
> >
> > m/
>
> Got it.  Thanks.  I'll post my corrected filter script in a little while.
>
>
> --
>  Lloyd Zusman
>  [EMAIL PROTECTED]
>
>
>
> ---
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> ___
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Definitive way to determine whether there's been authorization?

2004-02-08 Thread Mitch \(WebCob\)
If the last received header (the one added by YOUR server says AUTH, you can
trust it - otherwise it can be spoofed. I just read the headers.

You can use a for loop and a counter to ensure you only check the first
received header.

m/

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Lloyd
> Zusman
> Sent: Sunday, February 08, 2004 4:23 PM
> To: [EMAIL PROTECTED]
> Subject: [courier-users] Definitive way to determine whether there's
> been authorization?
>
>
> In the courier-pythonfilter module below, I am looking into the message
> data file for a line that looks like this among the message headers:
>
>   (AUTH: LOGIN whatever)
>
> When I see this, I accept the message and don't send it through my
> subsequent SPF processing.
>
> However, I just realized that this can be easily spoofed, as follows:
>
>   % telnet mx.myhost.com 25
>   ehlo somewhere.com
>   mail from: <[EMAIL PROTECTED]>
>   rcpt to: <[EMAIL PROTECTED]>
>   data
>   (AUTH: LOGIN foobar)
>   From: <[EMAIL PROTECTED]>
>   To: <[EMAIL PROTECTED]>
>   Subject: whatever
>
>   Message
>   .
>
> Because of this, I'd like to know if there is a definitive way from
> within a courierfilter module to determine whether a given SMTP dialog
> is the result of a successful authorization, or whether it's a simple,
> non-authorized dialog, such as the one above.
>
> I don't see any way to find this out from the message data file or from
> the message control file, but I hope that I'm overlooking something.
>
> Any ideas?
>
> Thanks in advance.
>
>
> Here's the courier-pythonfilter module that I mentioned above:
>
> >   import re
> >   import sys
> >   import string
> >   import courier.control
> >   import courier.config
> >
> >   # Accepts all incoming messages that have been submitted via a
> >   # successful AUTH dialog.
> >
> >   # Run before any other filter.
> >   order = 1
> >
> >   # Record in the system log that this filter was initialized.
> >   sys.stderr.write( 'Initialized the AUTH python filter\n' )
> >
> >   authpat  = re.compile(r'^\(AUTH:\s+LOGIN\s+\S+\)', re.I)
> >   emptypat = re.compile(r'^\s*$')
> >
> >   def dofilter( message_data_file, message_ctrl_files ):
> > lines = open(message_data_file,'r').readlines()
> > lines = map(string.strip, lines)
> > for line in lines:
> >   match = emptypat.search(line)
> >   if match:
> > # Stop processing after final message header
> > return ''
> >   match = authpat.search(line)
> >   if match:
> > sys.stderr.write( 'Login authorization succeeded:
> message accepted\n' )
> > return '200 Ok'
> > return ''
>
> --
>  Lloyd Zusman
>  [EMAIL PROTECTED]
>
>
>
> ---
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> ___
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Where does "ident" come from in the courier logs?

2004-02-08 Thread Mitch \(WebCob\)
If memory serves, unless you specify no-ident in your tcp options, courier
will indent query the remote connection for a use id associated with the
socket.

Some firewalls / servers don't run identd, others block it, SOME return a
real user id, but many masquerade a "nobody" id for all users or allow users
override the value returned.

hth.

m/

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Lloyd
> Zusman
> Sent: Sunday, February 08, 2004 2:28 PM
> To: [EMAIL PROTECTED]
> Subject: [courier-users] Where does "ident" come from in the courier
> logs?
>
>
> I'm curious about something:
>
> The following is a typical error line that shows up in my courier
> logs (a single line, wrapped here for readability):
>
>   Feb  8 17:23:51 myhost courieresmtpd: error,relay=:::163.21.15.248,
>   ident=hidden-user,from=<[EMAIL PROTECTED]>: 517 Syntax error
>
> Where does "ident=hidden-user" come from?
>
> Is "hidden-user" the HELO/EHLO value, perhaps?
>
> Thanks in advance.
>
> --
>  Lloyd Zusman
>  [EMAIL PROTECTED]
>
>
>
> ---
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> ___
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] maildrop(rc)

2004-02-07 Thread Mitch \(WebCob\)
Not sure, but I think you'd have to chmod 666 your logfile - otherwise the
first user will access it but others won't - maildrop will be running with
the uid of the user being delivered to, so this would cause a problem...
other things might be permissions related as well...

m/

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Mark
> Constable
> Sent: Saturday, February 07, 2004 11:15 AM
> To: [EMAIL PROTECTED]
> Subject: [courier-users] maildrop(rc)
>
>
> courier-maildrop 0.42.2
>
> I am having trouble getting global maildrop filtering to work.
>
> # grep DEFAULTDELIVERY /etc/courier/courierd
> DEFAULTDELIVERY="| /usr/bin/maildrop"
>
> # cat /etc/courier/maildroprc
> logfile /var/log/bogofilter.log
> xfilter "/usr/bin/bogofilter -e -p -d /var/lib/bogofilter/"
>
> if ((/^X-Spam: Yes/:h))
> {
>/^Subject: *!.*/:h
>xfilter "/usr/bin/reformail -I'Subject: **Spam** '\"$MATCH2\""
> }
>
> if ((/^X-Spam: Unsure/:h))
> {
>/^Subject: *!.*/:h
>xfilter "/usr/bin/reformail -I'Subject: **Suspect** '\"$MATCH2\""
> }
>
> if ((/^X-Spam: No/:h))
> {
>/^Subject: *!.*/:h
>xfilter "/usr/bin/reformail -I'Subject: **NotSpam** '\"$MATCH2\""
> }
>
> #to "./Maildir"
>
> Messages are being succesfully delivered but /var/log/bogofilter.log
> remains empty and there is no sign of any tagging. The above as an
> individuals users .mailfilter does work as intended with nothing but
> the uncommented 'to "./Maildir"' and the users .courier changed to
> '| /usr/bin/maildrop' so the xfilter section is Ok. No log errors.
>
> And yes, I restarted courier, many times. Any suggestions ?
>
> --markc
>
>
>
> ---
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> ___
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] Interection PHP with courier

2004-01-31 Thread Mitch (WebCob)
Ahh - I didn't know what transport you were using.

But from what I read in the courier / sendmail manual, the variables you want are
MAILUSER and MAILHOST --- you have an extra S - could that be the problem?

Does that help?

m/

Giacomo A. Catenazzi ([EMAIL PROTECTED]) wrote*:
>
>Mitch (WebCob) wrote:
>> Why do you think this would work?
>
>Hmmm. I think it should work because:
>1) PHP use 'sendmail' command
>2) courier sendmail uses the environment variables MAILSHOST and
>MAILSUSER to set sender.
>3) The  below should set such env. vars
>
>Surely I'm wrong, but where? why?
>
>BTW: I want that my client have the right sender, but
>I cannot control what kind of PHP they write.
>
>ciao
>   cate
>
>
>>
>> I've never seen any reference to this method of controlling the sender.
>>
>> I use the pear/mail classes to do this - no problems.
>>
>> m/
>>
>> Giacomo A. Catenazzi ([EMAIL PROTECTED]) wrote*:
>>
>>>Hello.
>>>
>>>I've some problem setting the right sender in apache/PHP:
>>>In my apache conf I have for example:
>>>
>>>ServerAdmin [EMAIL PROTECTED]
>>>DocumentRoot /home/xxx/www.xxx.tdl
>>>ServerName www.xxx.tld
>>>SetEnv MAILSHOST xxx.tdl
>>>SetEnv MAILSUSER info
>>>
>>>
>>>The environment variable is set and it is correct in PHP,
>>>but I don't understand why PHP mail() doesn't pass it
>>>correctly to courier.
>>>
>>>Someone have similar problems?
>>>Do you have other solution on how to pass different
>>>sender to different virtual domains?
>>>
>>>TIA
>>>ciao
>>> cate
>



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Interection PHP with courier

2004-01-30 Thread Mitch \(WebCob\)
This may be a dumb question, but have you verified your environment is actually
being set?

Run something like `/bin/env` after making your calls to setenv, and check the
output?

Of course you'd have to do this from the web script and not from the command
line... Sendmail had some options (like overriding the from address) that
required the user id of the account attempting this to be in a config file of
trusted addresses I think - or something similar...

And php can be configured not to export certain env's too...

worth a check if you haven't already.

hth

m/

> -Original Message-
> From: Giacomo A. Catenazzi [mailto:[EMAIL PROTECTED]
> Sent: January 29, 2004 12:46 AM
> To: Mitch (WebCob)
> Cc: [EMAIL PROTECTED]
> Subject: Re: [courier-users] Interection PHP with courier
>
>
>
>
> Mitch (WebCob) wrote:
>
> > Ahh - I didn't know what transport you were using.
> >
> > But from what I read in the courier / sendmail manual, the
> variables you want are
> > MAILUSER and MAILHOST --- you have an extra S - could that be the problem?
> >
> > Does that help?
>
> courier use the version with S for bounces and 'from' header ("RETURN
> ADDRESS" section) and without S for 'from' header ("SENDER ADDRESS"
> secion of man page).
> On command line it works, with php not.
>
> ciao
>   cate
>
>
>
>
>
> >
> > m/
> >
> > Giacomo A. Catenazzi ([EMAIL PROTECTED]) wrote*:
> >
> >>Mitch (WebCob) wrote:
> >>
> >>>Why do you think this would work?
> >>
> >>Hmmm. I think it should work because:
> >>1) PHP use 'sendmail' command
> >>2) courier sendmail uses the environment variables MAILSHOST and
> >>   MAILSUSER to set sender.
> >>3) The  below should set such env. vars
> >>
> >>Surely I'm wrong, but where? why?
> >>
> >>BTW: I want that my client have the right sender, but
> >>I cannot control what kind of PHP they write.
> >>
> >>ciao
> >>cate
> >>
> >>
> >>
> >>>I've never seen any reference to this method of controlling the sender.
> >>>
> >>>I use the pear/mail classes to do this - no problems.
> >>>
> >>>m/
> >>>
> >>>Giacomo A. Catenazzi ([EMAIL PROTECTED]) wrote*:
> >>>
> >>>
> >>>>Hello.
> >>>>
> >>>>I've some problem setting the right sender in apache/PHP:
> >>>>In my apache conf I have for example:
> >>>>
> >>>>   ServerAdmin [EMAIL PROTECTED]
> >>>>   DocumentRoot /home/xxx/www.xxx.tdl
> >>>>   ServerName www.xxx.tld
> >>>>   SetEnv MAILSHOST xxx.tdl
> >>>>   SetEnv MAILSUSER info
> >>>>
> >>>>
> >>>>The environment variable is set and it is correct in PHP,
> >>>>but I don't understand why PHP mail() doesn't pass it
> >>>>correctly to courier.
> >>>>
> >>>>Someone have similar problems?
> >>>>Do you have other solution on how to pass different
> >>>>sender to different virtual domains?
> >>>>
> >>>>TIA
> >>>>ciao
> >>>>  cate
> >>
> >
>



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] Problems deleting empty folders

2004-01-30 Thread Mitch (WebCob)
Try this...

Select a different folder with left mouse (like inbox) then right click on the
folder you want to delete, and select delete from the option menu.

I think the OS returns a failure on the delete folder request because the IMAP
client is currently "IN" that folder.

m/

Marc Balmer ([EMAIL PROTECTED]) wrote*:
>
>Hi
>
>After searchinf the web and the archives for hours without a solution to
>my problem I kindly ask for help here:
>
>I am running courier-imap 1.7.2 on OpenBSD 3.4-current on Intel
>hardware.  I can create folders, store messages etc. and also maildrop
>works like a charm.  But...  strange enough I can not delete empty
>folders.  The IMAP server alwas returns "Cannot delete this folder.".
>The folder is empty and I have the same behaviour with different clients
>and also when I create the folder with maildirmake.
>
>I have this strange problem on all of my OpenBSD machines.
>
>I usually use Mozilla as a client.
>
>Any help would be very appreciated.
>
>- Marc Balmer
>
>
>
>---
>The SF.Net email is sponsored by EclipseCon 2004
>Premiere Conference on Open Tools Development and Integration
>See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
>http://www.eclipsecon.org/osdn
>___
>courier-users mailing list
>[EMAIL PROTECTED]
>Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Re: [courier-users] Interection PHP with courier

2004-01-29 Thread Mitch (WebCob)
Why do you think this would work?

I've never seen any reference to this method of controlling the sender.

I use the pear/mail classes to do this - no problems.

m/

Giacomo A. Catenazzi ([EMAIL PROTECTED]) wrote*:
>
>Hello.
>
>I've some problem setting the right sender in apache/PHP:
>In my apache conf I have for example:
>
> ServerAdmin [EMAIL PROTECTED]
> DocumentRoot /home/xxx/www.xxx.tdl
> ServerName www.xxx.tld
> SetEnv MAILSHOST xxx.tdl
> SetEnv MAILSUSER info
>
>
>The environment variable is set and it is correct in PHP,
>but I don't understand why PHP mail() doesn't pass it
>correctly to courier.
>
>Someone have similar problems?
>Do you have other solution on how to pass different
>sender to different virtual domains?
>
>TIA
>ciao
>   cate
>
>
>---
>The SF.Net email is sponsored by EclipseCon 2004
>Premiere Conference on Open Tools Development and Integration
>See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
>http://www.eclipsecon.org/osdn
>___
>courier-users mailing list
>[EMAIL PROTECTED]
>Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Couriermlm headaches - capital letters ?

2004-01-27 Thread Mitch \(WebCob\)
Not sure about couriermlm, but for local addresses to be treated case
insensitively, you need to touch /usr/local/courier/etc/locallowercase (or
your own equivalent). Don't know if that will help here though.

m/

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of De
> Schrijver Peter
> Sent: Monday, January 26, 2004 8:39 AM
> To: [EMAIL PROTECTED]
> Subject: [courier-users] Couriermlm headaches - capital letters ?
>
>
> Couriermlm keeps giving me headaches ...
>
> I tried to subscribe an email address mannually. The Email Adress
> contains captials and 2 "-" like in: "[EMAIL PROTECTED]". I
> tried the same by using the normal subscription method using an email to
> the list.
>
> Both methods result in the email address showing up (couriermlm lsub
> listdir, and in the daily subscription list by mail to the owner), but
> mail sent to the list by the sender (he did not change his email address
> in the mean time) bounces "You are not subscribed to the list" ...
>
> Do i need to start anything manually ? After 2 years of (not very
> intense) use of couriermlm, this behaviour is new to me :)
>
> TIA
> Peter
>
>
> ---
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> ___
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] aliase to /dev/null

2004-01-23 Thread Mitch \(WebCob\)
I THINK I have the answer on this...

For an alias you would have to deliver to "| cat >/dev/null" (but the
preferred way is to discard the message in maildrop).

Do this by simply setting EXITCODE=0 and calling "exit":

EXITCODE=0
exit

m/

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Derrick
> T. Woolworth
> Sent: Friday, January 23, 2004 9:31 AM
> To: [EMAIL PROTECTED]
> Subject: [courier-users] aliase to /dev/null
>
>
> In an attempt to create a bit-bucket alias, I added:
>
> bit-bucket:  /dev/null
>
> To the aliases file, however the mail server says that bit-bucket
> at any domain
> is not recognized as a valid user.
>
> Is there a way to do this?
>
> Thanks,
>
> D
>
>
>
>
>
>
>
> ---
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> ___
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Re: freemail as local mail forgery test?

2004-01-23 Thread Mitch \(WebCob\)
Glad to know it works for you... my concerns / thoughts were:
1) there was discussion about replacing freemail with soemthing that handled
freemail better (which might not work for this as freemail does)
2) if I add enough domains, this will slow things down - so I was wondering
if it made sense as a global option (a la bofh) for all domains hosted

I got started on this as I had clients losing inter-company mail to spam
filters... so I added whitelists, and they started getting more spam...

just following the links in the chain ;-)

Thanks.

m/


> -Original Message-
> From: Gerardo Gregory [mailto:[EMAIL PROTECTED]
> Sent: Friday, January 23, 2004 12:38 AM
> To: Mitch (WebCob)
> Cc: Sam Varshavchik; [EMAIL PROTECTED]
> Subject: Re: [courier-users] Re: freemail as local mail forgery test?
>
>
> Mitch,
>
>   Theoreticaly speaking the methadology you are using has been
> deployed in network edge devices for years, and it is very sound.
>A common attack awhile back called The Land attack (affecting
> earlier 95/98 MS systems), was achieved by sending packets to a host,
> using the host's IP address as the source and destination (this was an
> attack using forged IP's).  Hence the machine would respond to itself.
> Network admins ussualy add a rule stating to block from  netblock> to  on their ingress points.
>I was actualy wondering for the last few days if such was
> feasible  with any of the filtering oprions in Courier-MTA.  I have
> received numerous Spam messages from [EMAIL PROTECTED] to
> [EMAIL PROTECTED] already and it has started to annoy me.
>   The level of Spam received at my corporate mail system is
> incredible, but being in the business of customer inbound call centers,
> direct mail, and data analysis caused me to end up with too much of our
> own internal campaign drafts tagged as Spam when I had
> SpamAssasin deployed.
>   What followed was a two month battle between my corporate account
> managers and my drafted security policies.  Eventualy politics won and
> the policies where revised.  I am now looing at DSPAM or other
> 'Bayasian' alternatives to fix the spam issue.
>I actualy deployed this on our gateway smarthost today after
> reading you initial post and it has worked for me.
>
> Best regards,
>
> Gerardo
>
>
> Mitch (WebCob) wrote:
>
> >
> >>-Original Message-
> >>From: [EMAIL PROTECTED]
> >>[mailto:[EMAIL PROTECTED] Behalf Of Sam
> >>Varshavchik
> >>Sent: Thursday, January 22, 2004 3:50 PM
> >>To: [EMAIL PROTECTED]
> >>Subject: [courier-users] Re: freemail as local mail forgery test?
> >>
> >>
> >>Mitch (WebCob) writes:
> >>
> >>
> >>>Ok - any opinions on this?
> >>>
> >>>If I use the freemail structure to reject mail claiming to be
> >>
> >>from my local
> >>
> >>>users if they are relayed from anything other than my mx's ...
> >>
> >>any problem
> >>
> >>>with say 500 - 1000 entries like this?
> >>
> >>With modern, fast CPUs, shouldn't be a problem unless you're
> >>handling a LOT
> >>of mail.
> >>
> >>
> >
> >
> > Any opinion on the concept?
> >
> > I think you had said something about replacing the freemail
> concept with a
> > better process - is there an alternative I should consider as a
> better way
> > to do this?
> >
> > Is this something you could keep in mind when you work on a better
> > "freemail"?
> >
> > Think it's a good idea?
> >
> > My thought was to have a way to reject forged local senders,
> allowing me to
> > whitelist my local virtual domains within all the mail
> filtering mechanisms
> > to avoid thousands of extra individual whitelist froms, while
> avoiding spam
> > from me to me... if you follow my run-on sentance ;-)
> >
> > Thanks!
> >
> > m/
> >
> >
> >
> > ---
> > The SF.Net email is sponsored by EclipseCon 2004
> > Premiere Conference on Open Tools Development and Integration
> > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> > http://www.eclipsecon.org/osdn
> > ___
> > courier-users mailing list
> > [EMAIL PROTECTED]
> > Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
> >
>
> --
> Gerardo A. Gregory
> Manager Network Administration and Security
> 
> Affinitas - Latin for "Relationship"
> Helping Businesses Acquire, Retain, and Cultivate
> Customers
> Visit us at http://www.affinitas.net
>
>



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Re: freemail as local mail forgery test?

2004-01-22 Thread Mitch \(WebCob\)


> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Sam
> Varshavchik
> Sent: Thursday, January 22, 2004 3:50 PM
> To: [EMAIL PROTECTED]
> Subject: [courier-users] Re: freemail as local mail forgery test?
>
>
> Mitch (WebCob) writes:
>
> > Ok - any opinions on this?
> >
> > If I use the freemail structure to reject mail claiming to be
> from my local
> > users if they are relayed from anything other than my mx's ...
> any problem
> > with say 500 - 1000 entries like this?
>
> With modern, fast CPUs, shouldn't be a problem unless you're
> handling a LOT
> of mail.
>
>

Any opinion on the concept?

I think you had said something about replacing the freemail concept with a
better process - is there an alternative I should consider as a better way
to do this?

Is this something you could keep in mind when you work on a better
"freemail"?

Think it's a good idea?

My thought was to have a way to reject forged local senders, allowing me to
whitelist my local virtual domains within all the mail filtering mechanisms
to avoid thousands of extra individual whitelist froms, while avoiding spam
from me to me... if you follow my run-on sentance ;-)

Thanks!

m/



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] /etc/maildroprc not being read?

2004-01-22 Thread Mitch \(WebCob\)
That MAY not be the correct location for the file.

Mine lives in /us/local/couier/etc

Depends on your install - would probably be in a maildrop subfolder with the
rest of the config files, and yes - far as I know it supports the same
syntax and is just a system wide version.

hth

m/

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Thursday, January 22, 2004 12:05 PM
> To: Mitch (WebCob); Courier Users List
> Subject: RE: [courier-users] /etc/maildroprc not being read?
>
>
>
> >
> > echo will output to the log file.
> >
> > I use it for debugging all the time. check the manual
>
> Correct, I use it a lot also.
>
> Isn't /etc/maildroprc basically a system-wide mailfilter
> file? Doesn't it support the same maildropfilter syntax as
> regular .mailfilter files?
>
> For some reason the "echo" inside my maildroprc isn't
> working (I don't see anything output to maillog).
>
> I also tried running a program inside maildroprc, as a test,
> which also doesn't seem to work. And again, I don't see any
> errors reported in the maillog.
>
> I must be doing something wrong?
>
> My maildroprc simply has this:
>
> echo "home is $HOME"
> `ls -la $HOME > $HOME/ls-la`
>
> I would expect to see the "home is /home/ricardo" in the
> maillog, and also see a file /home/ricardo/ls-la created in
> my home directory. I see neither, yet there are no errors
> and my mail is delivered normally.
>
> Ricardo
>



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


[courier-users] freemail as local mail forgery test?

2004-01-22 Thread Mitch \(WebCob\)
Ok - any opinions on this?

If I use the freemail structure to reject mail claiming to be from my local
users if they are relayed from anything other than my mx's ... any problem
with say 500 - 1000 entries like this?

Or is there a better way or an existing method or a patch to regard all
hosted domains like this?

Would allow me to whitelist my own domains and users without opening the dor
to forged froms in spam...

All my users are advised to use my smtp or msa ports with authentication.

Thanks!

m/



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] /etc/maildroprc not being read?

2004-01-22 Thread Mitch \(WebCob\)
echo will output to the log file.

I use it for debugging all the time. check the manual

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Rick
> Erlandson
> Sent: Thursday, January 22, 2004 11:18 AM
> To: Courier Users List
> Subject: RE: [courier-users] /etc/maildroprc not being read?
>
>
> > I was running some tests with /etc/maildroprc and put in a
> > simple test in it to verify it was being read prior to
> > $HOME/.mailfilter. So I created /etc/maildroprc with only
> > one line in it:
>
> > echo "home is $HOME"
>
> maildroprc is not a script and the echo prolly gets ignored.  You
> could use
> the logfile directive to verify it is being read.  You might try adding
> logfile = /somedir/somefile to /etc/maildroprc (make it different filename
> if you already log)
> and if you have logging in .mailfilter comment it (I believe settings in
> .mailfilter override maildroprc settings)
> Then if you start getting things logged to that file instead, it
> is reading
> maildroprc.
>
>
> Rick Erlandson
>
>
>
> ---
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> ___
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Re: RFC 1035 error V.S. First two MX entries BAD for domain

2004-01-22 Thread Mitch \(WebCob\)


> -Original Message-
> > How exactly does his ISP's decision to keep broken DNS become
> > your problem?
>
> Simple -- he'd make the case that you should only refuse to
> deliver mail if
> there are no correct MX records, not if there are any broken ones.
>

I share your pain here with this happens - BUT on the other hand I think I
have fewer of these issues (and have even parlayed some of them into new
clients) than I had of problems with reliability, security and function of
other mta's - choices are what make for differences.



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Re: RFC 1035 error V.S. First two MX entries BAD for domain

2004-01-22 Thread Mitch \(WebCob\)


> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Roger
> B.A. Klorese
> Sent: Wednesday, January 21, 2004 8:02 PM
> To: Mitch (WebCob)
> Cc: 'Sam Varshavchik'; [EMAIL PROTECTED]
> Subject: Re: [courier-users] Re: RFC 1035 error V.S. First two MX
> entries BAD for domain
>
>
> "Accept liberally" should still be the watchword for anything not
> constituting an attack pathway.
>

I sort of agree with this - so does Sam - hence the ability to accept badly
formatted mime messages - But this isn't accept - this is sending.

Should courier waste cycles confirming the complete DNS structure of a
domain? no I don't think so...

Should it try a second delivery if it can't contact primary MX - yes that's
standard

Should it try to exhaust all possiblities just in case one of the records
turns out to be usable when the rest are crap?

Why should I waste my processor time helping someone else evade spam through
confusion? (Even if this works, it slows everyone else down).

m/



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Re: RFC 1035 error V.S. First two MX entries BAD for domain

2004-01-21 Thread Mitch \(WebCob\)
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Roger
> B.A. Klorese
> Sent: January 21, 2004 4:21 PM
> To: 'Sam Varshavchik'; [EMAIL PROTECTED]
> Subject: RE: [courier-users] Re: RFC 1035 error V.S. First two MX
> entries BAD for domain
>
>
> > And I'll make a case that broken DNS records are a sign of an
> > incompetently-administered ISP, and that it's been
> > historically shown that
> > incompetently-administered ISPs typically have other
> > problems, such as open
> > relays and hacked proxies, and zombies.
>
> Great -- now we have *software* that wages preemptive war.

It took me a while Roger, but I've come to agree (with the occasional client
inspired nagging doubt). A solid product that works and follows the rules vs.
one that accepts anything remotely appropriate thrown at it and muddles through.
The problem here, is not courier, but that people got used to sendmail and
others that were too permissive and allowed people to get sloppy in their
structure. How much work should one do to allow others to be sloppy?

General statement - not meant to directly slam anyone.

m/



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


[courier-users] ./new ./cur ./tmp - programatically deleting a message...

2004-01-17 Thread Mitch \(WebCob\)
Ok - maybe this is self evident by the folder names... but I don't want to
waste cycles if I don't have to.

I want to programatically remove a message from a folder based on certain
conditions. The message was recently (1 millisecond? 1 second? 1 hour?)
delivered by maildrop.

Do I have to check all folders for it's existance?

Is there a window of time after which I only have to check .cur?

Thanks!

m/



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Re: "Message not found" when running cancelmsg?

2004-01-17 Thread Mitch \(WebCob\)
Don't know if there is a better way, but everyone seems to have to flush it
out manually - or programatically and try again...

I've never had it happen to me - and I've never heard of anyone being able
to reproduce it - but it does seem to happen sometimes - maybe it was due to
aliases...


> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of ricardo
> Sent: Friday, January 16, 2004 10:19 PM
> To: Sam Varshavchik
> Cc: Courier-Users (E-mail)
> Subject: Re: [courier-users] Re: "Message not found" when running
> cancelmsg?
>
>
> Hi Sam,
>
> > > So mailq still shows about 10,000 messages as being in the
> > > queue, even though cancelmsg reports them as "not found"
> >
> > It should not take a long time to go through a 10,000-message
> queue.  You
> > need to investigate the real reason your mail queue is backed up.
>
> As you may have seen my other posts, there is some problem with these
> messages. It has been 5 days and mailq still reports them as being in the
> queue, while at the same time cancelmsg reports the message as "not
> found".
>
> > > > How can I fix this?
> >
> > Find the real reason why your mail is being processed so slowly.
>
> The problem is that the "offending" messages are a result of a badly
> configured aliases file. So every single one of these messages are
> returning a "450 Service temporarily unavailable." error. And maillog
> repeatedly shows this error.
>
> But this all loops back to my initial confusion. I originally issued a
> cancelmsg command to every one of these roughly 10,000 messages in the
> hopes of "clearing up" this problem. But these messages refuse to be
> removed from mailq, and seem to be repeatedly retried at the appropriate
> retry schedule.
>
> So how can I clear up this problem? They will continue to generate the
> "450 Service temporarily unavailable." error, and continue to be
> deferred.
> I have my queuetime set to only 12h, but I guess that doesn't matter?
>
> Any help is appreciated!
>
> Thanks
> Ricardo
>
>
> ---
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> ___
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Proper handling of SENDER with TMDA in maildroprc - WAS RE: [courier-users] Re: Does courier / maildrop unset SENDER if it's empty?

2004-01-15 Thread Mitch \(WebCob\)
I object to the word stupid, particularly because I think you are missing
something - there are valid reasons to process messages with no sender - but
there ARE some that don't need to be processed... I think I see what you are
saying...

Maybe I'm doing something DUMB here... maybe I'm running tmda when I don't
need to in this case - I think I see what you are saying, but if I change it
to not run for enpty SENDER, then a spammer sending mail from <> won't be
processed - right?
Neither would a bounce (generated by TMDA to a non-existant remote user)

Here is the code at present:
  LOCKTMDA=$HOME/.tmda.lock
  flock $LOCKTMDA {
SH_SENDER=escape($SENDER)
cc "| env SENDER='$SENDER' /usr/local/tmda/bin/tmda-filter"
if ($EXITCODE != "0")
{
  EXITCODE=0
  exit
}
  }
  #continue processing if TMDA approves message

Currently, if EXITCODE !=0, then tdma-filter has done something with the
message... I don't need to deliver, so I set my EXITCODE and exit
If it IS 0, then I should continue to deliver it.

Are you proposing I bypass TDMA when the SENDER is empty?

Would that allow bounces through?

Would it allow UNWANTED bounces through?

Currently TMDA eats bounces generated by it's confirmation messages, but I
wonder if it won't also eat bounces that the user may want to see... I might
have to try to force that to see...

Thanks

m/

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Roland
> Sent: Thursday, January 15, 2004 2:12 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [courier-users] Re: Does courier / maildrop unset SENDER if
> it's empty?
>
>
> --On Mittwoch, 14. Januar 2004 10:08 -0500 Courier User
> <[EMAIL PROTECTED]>
> wrote:
>
> >> But the point is still there: TDMA is supposed to return challenges
> >> to unknown senders which is just not possible with bounces.
> >> And tdma especially trolls for bounces with exactly those challenges.
> >>
> >> The line in .mailfilter should be something like:
> >>
> >> cc "| test \"$SENDER\" && tdma-filter"
> >
> > TMDA functions properly if the SENDER variable is "" (empty string)
> > as opposed to being completely unset.  The "cc" command above works
> > fine.
>
> What do you expect to achieve by sending a challenge for a received
> bounce ?
>
> Doing such stupid things actually is typical for those sending back
> challenges to everything received (preferably on a unfiltered catchall),
> and they really deserve the 100% false positive rate...
>
> Roland
>
>
>
> ---
> This SF.net email is sponsored by: Perforce Software.
> Perforce is the Fast Software Configuration Management System offering
> advanced branching capabilities and atomic changes on 50+ platforms.
> Free Eval! http://www.perforce.com/perforce/loadprog.html
> ___
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>



---
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Re: deleting messages reviewed...

2004-01-14 Thread Mitch \(WebCob\)
> > I agree completely.  Sam?
> 
> maildropfilter already fully documents how the exit command works:
> 
>EXIT - TERMINATE FILTERING UNCONDITIONALLY
>   exit
>  
>The exit statement immediately terminates filtering.  
> maildropâs return
>code is set to the value of the EXITCODE variable.  
> Normally,  maildrop
>terminates  immediately  after successfully delivering the 
> message to a
>mailbox. The exit statement causes maildrop to terminate 
> without deliv-
>ering the message anywhere.
> 
> What exactly is so confusing, here?
> 

To you - nothing - to me (now) nothing... maybe it doesn't belong there, but belongs 
in a FAQ.

How do I dump a message?

Set the exit code to 0 and call exit.

Or maybe an example... I've seen a lot of people I'd normally consider reasonably 
smart waste a lot of time trying to send to /dev/null - (including myself).

What about a reference of exit codes and what they mean?

0 - message to be considered delivered (even if it was not actually sent anywhere!)
1 - defer.. (guessing)
99 - temp fail?

For those of us who started before courier, although in many ways better I think, some 
of the changes can be confusing... this would be one of em

Thanks!

m/

PS - any thoughts on the delivery to char devices / sockets I was asking about? Just 
speaking conceptually - not asking you to code it



---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


RE: [courier-users] Re: Alternate filtering possibilities - WAS RE: [courier-users] deleting messages reviewed...

2004-01-14 Thread Mitch \(WebCob\)
> This is probably not what you wanted to hear, but it's how I feel.
>

No worries man - this is a discussion list - everyone is entitled to opinion
and comment!

I'm not saying I'm right... I just look at the number of "glue" processes on
my farm and try to eliminate waste.

With each and every message delivered requiring multiple calls to external
processes which each result in a shell, and a process which is memory and
CPU... every time we pipe a file through something as simple as "cat" -
which is the simplest of all no-op pipes (probably not but it will do for
this discussion), it's another seat of descriptors, reads, time slice
allocations buffers to manage and so on - it all adds up.

I hear where you are coming from - and agree sometimes simple is better, but
from another point of view eliminating unneeded processes and pipe is simple
too...

I'm not even 100% sure it would be easily possible - just thought I'd probe
for some opinions...

Sometimes I end up on my own (like making maildrop autocreate subfolders as
needed).

That's ok too... just like to help build if the group finds it's of interest
eh?

m/



---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


Alternate filtering possibilities - WAS RE: [courier-users] deleting messages reviewed...

2004-01-14 Thread Mitch \(WebCob\)
Okey dokey - from the top ;-)

I first was trying to simply do "to /dev/null".

I realized this didn't work, but to "|cat >/dev/null" did

The reason (from the logs) was that maildrop was treating /dev/null like an
mbox file.

iirc, procmail doesn't lock unless you force it to (at least it didn't a
while back) - which meant it could deliver to /dev/null no problem, and
could do an mbox file without conflict IF you remembered to add the lock
call (failing to do so seems to work but can result in mail loss during
simultaneous deliveries, so kudos to Sam for eliminating that problem...

What I realized from this is that how maildrop flock's everything is what
prevents it from delivering to a file socket or a character device. If a
test were done prior to the lock call to see if the handle points to a
socket or a device, and if so skip the lock, then maildrop could communicate
with filter daemons directly with no need to have a calling stub (like
spamc) run interferance.

So what started as a search for a way to sh!tcan mail, has lead me to a
curiousity about what some of the more experienced users might think about
enhancing the locking smarts in procmail to allow direct connection to file
sockets & character devices - could open some doors...

Did I explain that better?

m/

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Jon
> Nelson
> Sent: Wednesday, January 14, 2004 1:18 PM
> Cc: Courier Users List
> Subject: RE: [courier-users] deleting messages reviewed...
>
>
> On Wed, 14 Jan 2004, Mitch \(WebCob\) wrote:
>
> ...
>
> > You were against a "special case" patch for dev-null - which I
> agree is not
> > needed now that I know the "one true way"(tm)
> >
> > What I was pondering was a general patch which would make
> communicating with
> > filter daemons (listening on file sockets or char devices)
> possible - and
> > that would be to skip the locking in these cases where it has
> no point - it
> > would have the side effect of allowing /dev/null to work, but
> that's not my
> > point here... It would allow direct delivery to things like
> spamd without a
> > stub spamc program to manage the socket.
>
> And maildrop does some kind of locking (flock?)?
> I apologize, I'm coming into this discussion at the end.
> Please describe what you are trying to do (specifically), what you
> think the problem is, what maildrop's behavior is, etc...
>
> --
> Ensign Walnut approaches Dr. Crusher with caution...
>
> Jon Nelson <[EMAIL PROTECTED]>
> C and Python Code Gardener
>
>
> ---
> This SF.net email is sponsored by: Perforce Software.
> Perforce is the Fast Software Configuration Management System offering
> advanced branching capabilities and atomic changes on 50+ platforms.
> Free Eval! http://www.perforce.com/perforce/loadprog.html
> ___
> courier-users mailing list
> [EMAIL PROTECTED]
> Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
>



---
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
___
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users


  1   2   3   4   >