Tanen | 2 Dec 2003 21:26
Picon

[courier-imap] All version won't be compiled

Hello,
I'm trying to compile the new courier-imap 2.2.1 because i have never get
the old one compiled, and i'm getting now the same problem that the old
release.

I'm using :
./configure --prefix=/usr/local/courier-imap --disable-root-check
--without-authpam --without-authldap \
--without-authpwd --without-authmysql --without-authpgsql
--without-authshadow --without-authuserdb \
--without-authcustom --without-authcram --without-authdaemon
--with-authvchkpw --with-ssl

as configure command,
and i'm getting this error, in the last seconds of execution of the
configure script :

--------------------------------------------------------------

checking for setsid... yes
checking for setlogin... no
checking for crypt in -lcrypt... yes
checking for crypt... yes
checking for crypt() prototype... 0
configure: creating ./config.status
config.status: creating Makefile
sed: file ./confstatg3JECV/subs-2.sed line 3: Unterminated `s' command
config.status: creating modulelist
sed: file ./confstatg3JECV/subs-2.sed line 3: Unterminated `s' command
config.status: creating installlist
(Continue reading)

Courier Mail | 3 Dec 2003 03:24
Favicon

(no subject)

My ~/.mailfilters/default looks like this: 

if ( /^From: *!.*/ && lookup ($MATCH2, "drop.list"))
{
       exit
} 

Where ~/.mailfilters/drop.list is a list of email addresses I want to 
block..  This doesn't work..  Is this a failure in understanding how 
maildrop works, or my maildrop is screwed up? 

Q2, I tried doing this to my /usr/local/courier/etc/maildroprc and it wasn't 
too happy..  :-( 

Thanks.
Albert

-------------------------------------------------------
This SF.net email is sponsored by OSDN's Audience Survey.
Help shape OSDN's sites and tell us what you think. Take this
five minute survey and you could win a $250 Gift Certificate.
http://www.wrgsurveys.com/2003/osdntech03.php?site=8
Devin Rubia | 3 Dec 2003 14:50

Re: (no subject)

On Wed, Dec 03, 2003 at 10:24:54AM +0800, Courier Mail wrote:
> My ~/.mailfilters/default looks like this: 
> 
> if ( /^From: *!.*/ && lookup ($MATCH2, "drop.list"))
> {
>       exit
> } 
> 
> Where ~/.mailfilters/drop.list is a list of email addresses I want to 
> block..  This doesn't work..  Is this a failure in understanding how 
> maildrop works, or my maildrop is screwed up? 
> 
> Q2, I tried doing this to my /usr/local/courier/etc/maildroprc and it 
> wasn't too happy..  :-( 

$ man maildropfilter
[SNIP]
                              filename is a name of a  file  con-
     taining  a  list of patterns. Note that filename is relative
     to the current directory, which is the home directory of the
     user  when maildrop runs in delivery mode, or embedded mode.
[SNIP]

So try putting ".mailfilters/drop.list" in your lookup command.  You
could also use "$HOME/.mailfilters/drop.list" if you want to make doubly
certain.

--

-- 
Devin

(Continue reading)

John Locke | 5 Dec 2003 21:28
Favicon

MySQL maildrop problems

Hi,

Yesterday I fell victim to the maildrop bouncing messages when MySQL was
unavailable issue. While doing some db maintenance, I managed to
hopelessly lock up MySQL.

The next thing I knew, Maildrop had bounced 7 legitimate messages before
I shut down the MTA.

I've been using Maildrop 1.6.2, and am aware of Chris Master's patch for
this issue, sent to the list on October 15.

I downloaded 1.6.3, but couldn't figure out how to get "patch" to
automatically update the source from the diff file Chris sent. So I
manually edited the source, and made the changes listed in the diff. But
it wouldn't compile.

Can someone update this patch for 1.6.3, and explain how to apply it?

One other issue. I next tried to compile 1.6.3 as is, with exactly the
same configure options as I'd used for 1.6.2:

./configure --enable-maildropldap --enable-maildropmysql \
--enable-maildirquota --enable-trusted-users="root dspamcgi mail"

I set the binary to setUID root, changed it to the ownership of the
1.6.2 version, but the new binary immediately started bouncing messages
again with this in my maillog: 

status=bounced (user unknown. Command output: Invalid user specified.
(Continue reading)

Thomas Hug | 6 Dec 2003 12:02
Picon
Favicon

Re: MySQL maildrop problems

On Fri, 5 Dec 2003 12:28, John Locke wrote:

> Hi,
>
> Yesterday I fell victim to the maildrop bouncing messages when MySQL was
> unavailable issue. While doing some db maintenance, I managed to
> hopelessly lock up MySQL.
>
> The next thing I knew, Maildrop had bounced 7 legitimate messages before
> I shut down the MTA.

maybe i will shut down the mailserver if some mysql checks fail. so i
get an sms notification because of the outage of the mailserver.
incoming mails would just wait on the secondary mx.

no mails would get lost. and customers which try to send mails get an
error. better an error than a bounce.

-tom

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
Adalberto Branco Araújo | 6 Dec 2003 21:06

Qmail + maildrop question

I use qmail to scan my incoming and outgoing messages for virus, using
qmail-scanner. I don't have local users. I use smtproutes to deliver scanned
messages to another mail server.
For outgoing messages, users connect directly to qmail's SMTP.
Can i use maildrop to copy some user's (not all) messages to a local audit
account ?
And can I do this using keywords too (i.e. copy every message that contains
the word sex to an local audit account) ?
And the last one, copy messages with some kinds of attachments, like xls,
doc, etc.

Thanks in advance.

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.547 / Virus Database: 340 - Release Date: 2/12/2003

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
Chris Masters | 11 Dec 2003 11:46
Picon
Favicon

Re: MySQL maildrop problems


I'm going to spend some time getting a decent diff
together for the latest version (to submit to the
devleopers), but it won't be right now.

If you need this functionality try and apply the
changes to 1.6.2 and let me know if you have any
compilation issues.

Cheers, Chris

--- John Locke <mail <at> freelock.com> wrote:
> Hi,
> 
> Yesterday I fell victim to the maildrop bouncing
> messages when MySQL was
> unavailable issue. While doing some db maintenance,
> I managed to
> hopelessly lock up MySQL.
> 
> The next thing I knew, Maildrop had bounced 7
> legitimate messages before
> I shut down the MTA.
> 
> I've been using Maildrop 1.6.2, and am aware of
> Chris Master's patch for
> this issue, sent to the list on October 15.
> 
> I downloaded 1.6.3, but couldn't figure out how to
> get "patch" to
(Continue reading)

John Angelmo | 11 Dec 2003 14:44
Gravatar

filtering outgoing mail

Is it possible to use maildrop to filter outgoing mail just like it's 
done with incoming? That wold help me alot and not having a HUGE single 
outbox

/John

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
Graeme | 12 Dec 2003 17:12

replacing deliverquota with maildrop

I run my mail server on FreeBSD 4.9 and am using exim and courier-imap
with virtual mail users whose details are held in a mysql database. For
incoming mail exim verifies the user, retrieves the location of the
virtual user's Maildir, and currently hands off to deliverquota from a
transport that includes the following:

 command = /the/path/to/deliverquota -w 90 \
               /the/path/to/the/virtual/user/Maildir/

Which works really well.

I want to replace deliverquota with maildrop in order to be able to use
per user mailfilters. I have tried modifying the hand off to:

 command = /the/path/to/maildrop -w 90 \
               -d /the/path/to/the/virtual/user/Maildir/

but get the following error:
  mail maildrop[15485]: Invalid user specified.

I have been searching the net and the archives but have ended up more
confused than enlightened!

Can anyone point me in the right direction please?

Thanks
Graeme

-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
(Continue reading)

Sam Varshavchik | 13 Dec 2003 01:08
Gravatar

Re: replacing deliverquota with maildrop

Graeme writes:

> I run my mail server on FreeBSD 4.9 and am using exim and courier-imap
> with virtual mail users whose details are held in a mysql database. For
> incoming mail exim verifies the user, retrieves the location of the
> virtual user's Maildir, and currently hands off to deliverquota from a
> transport that includes the following:
> 
>  command = /the/path/to/deliverquota -w 90 \
>                /the/path/to/the/virtual/user/Maildir/
> 
> Which works really well.
> 
> I want to replace deliverquota with maildrop in order to be able to use
> per user mailfilters. I have tried modifying the hand off to:
> 
>  command = /the/path/to/maildrop -w 90 \
>                -d /the/path/to/the/virtual/user/Maildir/
> 
> but get the following error:
>   mail maildrop[15485]: Invalid user specified.

The -d option to maildrop specifies the userid to whom the message is to be 
delivered to.  Normally it's only used when maildrop is invoked by root; 
maildrop looks up the userid's home directory, and delivers to 
$HOME/Maildir.  The alternative is to arrange to have maildrop invoked under 
the recipient's userid, in which case it can figure out the home directory 
on its own.

maildrop is mail delivery agent for system accounts; there is no direct 
(Continue reading)


Gmane