lmtpadinject - alpha version.

2007-05-11 Thread Benjamin Donnachie

I have just released an alpha version of lmtpadinject for testing - see
http://www.py-soft.co.uk/~benjamin/download/lmtpadinject-0.02.c

This program sits between your MTA and Cyrus and injects plain text
adverts into the top of messages.  By using an external program, these
can be customised to the recipient.

It uses LMTP to communicate with the MTA and Cyrus and currently only
supports sockets.

To compile, just run gcc lmtpadinject-0.02.c -o lmtpadinject -lpthread

Then to run just use ./lmtpadinject 

All configuration parameters are currently at the top of the source file
- just edit them according to your system and then recompile.

I will be adding support for configuration files and generally tidying
the code.  Remember, this is alpha quality - use at your own risk!

That said, it's working fine on my system with the following config:

Postfix --- dspam --- lmtpadinject --- Cyrus
  || (LMTP)
  ||
  ||
  V^
ClamAV
(Content filter)

Please note, I wrote this program for use by a site that donates most of
the money raised to charity.

Please contact me off list for further information, or if you would like
to help with testing.

Take care,

Ben

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


Re: configure errors on x86_64 linux

2007-05-11 Thread Michael Menge

Hi,

thanks for the help, after replacing the file with one from the system  
it worked. But i think we should add a newer version of the config.sub  
to the cyrus distribution or add some hints in the README / DOCs




Quoting Simon Matter [EMAIL PROTECTED]:


Hi,

configure of cyrus-2.3.8 fails on a SLES10 x64_64 system.
I think i have to use a build option with configure, but i don't know
which is the correct one for an 64 bit xeon


Hi,

I have no idea about SuSE but on RedHat based systems, you need a package
called redhat-rpm-config which includes a recent config.sub with is useful
on x64_64.

Simon



vendor_id   : GenuineIntel
cpu family  : 6
model   : 15
model name  : Intel(R) Xeon(R) CPU5140  @ 2.33GHz


 config.log --
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.59.  Invocation command line was

   $ ./configure --enable-idled --enable-listext --without-snmp
--enable-pcreposix

## - ##
## Platform. ##
## - ##

hostname = mailserv08
uname -m = x86_64
uname -r = 2.6.16.27-0.9-smp
uname -s = Linux
uname -v = #1 SMP Tue Feb 13 09:35:18 UTC 2007

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch  = x86_64
/usr/bin/arch -k   = unknown
/usr/convex/getsysinfo = unknown
hostinfo   = unknown
/bin/machine   = unknown
/usr/bin/oslevel   = unknown
/bin/universe  = unknown

PATH: /sbin
PATH: /usr/sbin
PATH: /usr/local/sbin
PATH: /opt/gnome/sbin
PATH: /root/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /usr/X11R6/bin
PATH: /bin
PATH: /usr/games
PATH: /opt/gnome/bin
PATH: /opt/kde3/bin
PATH: /usr/lib/mit/bin
PATH: /usr/lib/mit/sbin


## --- ##
## Core tests. ##
## --- ##

configure:1378: checking build system type
configure:1391: error: /bin/sh ./config.sub x86_64-unknown-linux-gnu
failed
...
-


M.Menge Tel.: (49) 7071/29-70316
Universitaet Tuebingen  Fax.: (49) 7071/29-5912
Zentrum fuer Datenverarbeitung  mail:
[EMAIL PROTECTED]
Waechterstrasse 76
72074 Tuebingen

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


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






M.Menge Tel.: (49) 7071/29-70316
Universitaet Tuebingen  Fax.: (49) 7071/29-5912
Zentrum fuer Datenverarbeitung  mail:  
[EMAIL PROTECTED]

Waechterstrasse 76
72074 Tuebingen


smime.p7s
Description: S/MIME krytographische Unterschrift

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

Re: How to stop IMAP referrals?

2007-05-11 Thread Frank Richter
 Is there a way to prevent an imapd front-end from advertizing or
 performing referrals to a back-end server, and just do proxying
 instead?

See 
http://cyrusimap.web.cmu.edu/archive/message.php?mailbox=archive.info-cyrusmsg=43322


  There are a couple of reasons that I'd prefer this.  The
 main one is that the back-end server doesn't offer the full range of
 authentication mechanisms.  Another is that Pine users complain that
 they keep getting prompted for a password whenever they send mail, if
 they have their `sent mail' folder on the IMAP server.  I'd be happier
 if the front-end would just proxy the connections to the back-end.

Regards,
Frank

-- 
Email: [EMAIL PROTECTED]  http://www.tu-chemnitz.de/~fri/
Work:  Computing Services,  Chemnitz University of Technology,  Germany

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


Re: Quota with Cyrus !!!

2007-05-11 Thread FORMER 03 | Baltasar Cevc

Hi Donatien,


I have a problem to define and to use the quota on my Cyrus Server.
I have install this : cyrus-admin-2.2, cyrus-clients-2.2, cyrus- 
common-2.2 and cyrus-imapd-2.2 all of this package works
on Debian etch server, and my mail server work fine with Cyrus  
IMAP, Postfix, Sasl, SSL / TLS, PAM modules and Winbind with  
authentication

trow Windows Active Directory!!!

But when i try to define quota, my user are over quota, but he can  
send mail and receive them ??


What is the problem with my server 
Also i can't use quota -f or quota user.username when i logge on  
cyrus user to my server 
May that be the quota tool of your OS and not of cyrus - some systems  
provide their own tools for quota which set a disk quota. Cyrus  
quotas are seperated of system quotas.




But i can setquota user.username or listquotaroot user.username 

What is lqr mailbox in which mails are received in cyradm show?





--
Baltasar Cevc

_ FORMER 03 GmbH
_ infanteriestraße 19 haus 6 eg
_ D-80797 muenchen

_ http://www.former03.de




PGP.sig
Description: This is a digitally signed message part

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

Re: Replication and failover

2007-05-11 Thread Bron Gondwana
On Thu, May 10, 2007 at 12:14:44PM -0400, Nik Conwell wrote:
 Do you have separate IP addresses for each instance of cyrus on the  
 machine as well, or just the machine itself?  If just the machine,  
 what 'names' does the front-end know the back-end instances by?

Every store has an IP address for master (a.b.10.$storenumber) and
one for the replica (a.b.11.$storenumber) which maps to hosts files
entries (yay templating), so you can just refer to store6m.internal
to connect to the master IP address for store6.  Slots themselves
don't have any IP addresses.  Machines have their own base IP address,
and you can find them by, for example.

my $store = ME::ImapStore-new($storename);
# note, does DB lookup (cached for 5 seconds)
my $slot = $store-MasterSlot();
my $server = $slot-Machine();
my $ip = $server-InternalAddress();

and if you don't have perl you can always invoke it or write a small
Template::Toolkit script to spit out what you want.

Bron.

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


Re: load balancing at fastmail.fm

2007-05-11 Thread Bron Gondwana
On Thu, May 10, 2007 at 09:49:01AM -0400, Nik Conwell wrote:
 
 On Jan 12, 2007, at 10:43 PM, Rob Mueller wrote:
 
 Yep, this means we need quite a bit more software to manage the  
 setup, but now that it's done, it's quite nice and works well. For  
 maintenance, we can safely fail all masters off a server in a few  
 minutes, about 10-30 seconds a store. Then we can take the machine  
 down, do whatever we want, bring it back up, wait for replication  
 to catch up again, then fail any masters we want back on to the  
 server.
 
 Just curious how you do this - do you just stop the masters and then 
 change the proxy to point to the replica?  Webmail users shouldn't  
 notice this but don't the desktop IMAP clients notice?

We use IPAddr2 from linux-ha to bind the master IP address and replica
IP address to each machine based on the database entry saying which
slot is the master.  That way we don't need to change anything else,
you just connect to the master IP address.

It also means every slot can just bind to the standard ports on its
IP address.

As you can imagine, there's a lot of templating and custom config and
init scripts going on here - but it all works nicely once you're set
up!

The failover scripts also run sync_client on leftover log files and
other consistency checks.

Bron.

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


Re: Quota with Cyrus !!!

2007-05-11 Thread Donatien Vrielynck

FORMER 03 | Baltasar Cevc a écrit :

Hi Donatien,


I have a problem to define and to use the quota on my Cyrus Server.
I have install this : cyrus-admin-2.2, cyrus-clients-2.2, 
cyrus-common-2.2 and cyrus-imapd-2.2 all of this package works
on Debian etch server, and my mail server work fine with Cyrus IMAP, 
Postfix, Sasl, SSL / TLS, PAM modules and Winbind with authentication

trow Windows Active Directory!!!

But when i try to define quota, my user are over quota, but he can 
send mail and receive them ??


What is the problem with my server 
Also i can't use quota -f or quota user.username when i logge on 
cyrus user to my server 
May that be the quota tool of your OS and not of cyrus - some systems 
provide their own tools for quota which set a disk quota. Cyrus quotas 
are seperated of system quotas.




But i can setquota user.username or listquotaroot user.username 

What is lqr mailbox in which mails are received in cyradm show?





--
Baltasar Cevc

_ FORMER 03 GmbH
_ infanteriestraße 19 haus 6 eg
_ D-80797 muenchen

_ http://www.former03.de



Hello Mr.Baltasar and thanks for your help,

What i try to manage is only the Mail Quota on the mailbox users, and 
not the OS quota users ... may be it's important to manage both ???

Actually i interesting only Mail Quota

My overquota user is user.testfi07, and here this is the result of lqr 
command on cyradm logon :


localhost lqr user.testfi07
*user.testfi07 STORAGE 11307/4096 (276.0498046875%)*
localhost

Here you will find the list of my “user.mailbox”.

localhost lm
user.palelv01 (\HasChildren)
user.palelv01.Drafts (\HasNoChildren)
user.palelv01.Sent (\HasNoChildren)
user.palelv01.Trash (\HasNoChildren)
user.palelv02 (\HasChildren)
user.palelv02.Drafts (\HasNoChildren)
user.palelv02.Sent (\HasNoChildren)
user.palelv02.Trash (\HasNoChildren)
*user.testfi07 (\HasChildren)
user.testfi07.Sent (\HasNoChildren)
user.testfi07.Trash (\HasNoChildren)
user.testfi07.nouveau-dossier (\HasNoChildren)*
user.testfp07 (\HasChildren)
user.testfp07.Sent (\HasNoChildren)
user.testfp07.Trash (\HasNoChildren)
localhost

Obviously, and will be appropriate to you about it, the “user.testfi07” 
is well overquota more
276%… and although it cannot write a copy of the message sent in its 
repertory “sent folder”, which is normal….

he can in spite of sent the message to others users and to receive some…
what is not the normal behavior of a mail server which manages the 
quotas ???


Here you will find the part of my /etc/imapd.conf , Quota section !!!

# Quota

# If nonzero, normal users may create their own IMAP accounts by creating
# the mailbox INBOX. The user's quota is set to the value if it is positive,
# otherwise the user has unlimited quota.
autocreatequota: 4096 /*(This poor value is for testing quota !!!)
*/
# Quota warning % usage BAL
quotawarn: 85

# If enabled, uses an improved directory hashing scheme which hashes the 
entire
# username instead of using just the first letter. This changes hash 
algorithm
# used for quota and user directories and if hashimapspool is enabled, 
the entire mail spool.

#fulldirhash: 0

# If enabled, lmtpd retrurns a permanent failure code when a users 
mailbox is over quota.
# By default, the failure is temporary, causing the MTA to queue the 
message and retry later.

lmtp_over_quota_perm_failure: true

# The cyrusdb backend to use for quotas.
quota_db: quotalegacy

# The maximum amount of free space (in kB) in which to give a quota warning
# (if this value is 0, or if the quota is smaller than this amount, than 
warnings are always given).
# quotawarnkb: 0 */(Here i dont understand the difference beetwen 
quotawarn  quotawarnkb ???)


/*Tanks again for your help.
Please to read you again.

Donatien.


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


Re: lmtpadinject - alpha version.

2007-05-11 Thread Benjamin Donnachie
Benjamin Donnachie wrote:
 I have just released an alpha version of lmtpadinject for testing - see
 http://www.py-soft.co.uk/~benjamin/download/lmtpadinject-0.02.c

I've made some minor changes already to take into account real world
messages and the version timed at 16:40 on 2007/05/11 is the latest copy.

I didn't release there had been some downloads otherwise I would have
bumped up the version number.

Take care,

Ben

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


Cyrus failover steps

2007-05-11 Thread Ilya Vishnyakov
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
 
Hello Cyrus Gurus!

I set up cyrus replication on our freeBSD 6.2 boxes. I used this tutorial.
http://cyrusimap.web.cmu.edu/imapd/install-replication.html
Could someone please suggest a documentation on How to failover from
one server to another in case of emergency? I googled and googled and
couldn't find anything. Please point me to the right direction , don't
let me to ruin all the mailboxes. Thank you in advance.

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
iD8DBQFGRKkcUZGmaUWxLn8RAm7OAKCp/YyZ86diMaYP0PtaNKejDWM8QwCeK/N4
BdQJMfZutSS37eqduzqf4MI=
=NtVI
-END PGP SIGNATURE-


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


Re: lmtpadinject - alpha version.

2007-05-11 Thread Benjamin Donnachie
Benjamin Donnachie wrote:
 I've made some minor changes already to take into account real world
 messages and the version timed at 16:40 on 2007/05/11 is the latest copy.

Sorry - I lied!  Another very minor change so the 23:00hrs version of
v0.02 is now the most up-to-date.  Think I'll move to svn very soon...

Ben

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


Re: upgrade 2.3.7 - 2.3.8

2007-05-11 Thread Jo Rhett
Check the flags on your mailboxes.  If cd are missing T-bird 2  
users will have grief.  If so, search the archives for the script I  
posted to fix the problem.


On May 10, 2007, at 12:00 AM, Rudy Gevaert wrote:


Hi,

Did anyone have troubles when upgrading from 2.3.7 to 2.3.8?  We  
are using virtual domains and unix hierarchy seperator.


thanks in advance,
--
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --  
-- --
Rudy Gevaert  [EMAIL PROTECTED]  tel:+32 9 264  
4734
Directie ICT, afd. Infrastructuur ICT Department, Infrastructure  
office

Groep SystemenSystems group
Universiteit Gent Ghent University
Krijgslaan 281, gebouw S9, 9000 Gent, Belgie
www.UGent.be
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --  
-- --


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


--
Jo Rhett
Net Consonance : consonant endings by net philanthropy, open source  
and other randomness




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


Re: Cyrus failover steps

2007-05-11 Thread Scott M. Likens
Hi Ilya, there are many methods for failover.

One is heartbeat,

According to Freshports you have a version of Heartbeat available.

http://www.freshports.org/sysutils/heartbeat/

it's web site is http://www.linux-ha.org

Should give you some reading.

Scott

On Fri, 11 May 2007 13:34:20 -0400
Ilya Vishnyakov [EMAIL PROTECTED] wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
  
 Hello Cyrus Gurus!
 
 I set up cyrus replication on our freeBSD 6.2 boxes. I used this
 tutorial. http://cyrusimap.web.cmu.edu/imapd/install-replication.html
 Could someone please suggest a documentation on How to failover from
 one server to another in case of emergency? I googled and googled and
 couldn't find anything. Please point me to the right direction , don't
 let me to ruin all the mailboxes. Thank you in advance.
 
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.5 (MingW32)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
  
 iD8DBQFGRKkcUZGmaUWxLn8RAm7OAKCp/YyZ86diMaYP0PtaNKejDWM8QwCeK/N4
 BdQJMfZutSS37eqduzqf4MI=
 =NtVI
 -END PGP SIGNATURE-
 
 
 Cyrus Home Page: http://cyrusimap.web.cmu.edu/
 Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
 List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
 
 !DSPAM:4644b4fd253086491211187!
 
 


-- 
What does one want when one is engaged in the sexual act?
That everything around you give you its utter attention
Think only of you, care only for you...
Every man wants to be a tyrant when he fornicates


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