Horms | 6 Aug 11:12 2007
Picon

Re: updated IPv6 patches for perdition and vanessa socket lib

On Tue, Jun 12, 2007 at 01:46:11PM -1000, Antonio Querubin wrote:
> On Tue, 12 Jun 2007, Antonio Querubin wrote:
> 
> > The original IPv6 patches I submitted earlier didn't build on Linux systems. 
> > Attached are updated IPv6 patches which have been tested successfully in 
> > inetd mode on CentOS 5.  However, in daemon mode under CentOS, sometimes the 
> > spawned process will segfault.  I'm still trying to determine whether this is 
> > due to a problem with the patch itself or the way I've built the RPM.  Both 
> > daemon mode and inetd mode under FreeBSD seems to work reliably though so I 
> > suspect this problem is something peculiar to Linux which I've overlooked. 
> > In any case, I'm putting these updated patches out in the hope of getting 
> > additional data back from anyone running perdition in daemon mode on Linux 
> > systems.
> 
> The above didn't make it to the mailing list because of message size 
> limitations being exceeded by the attachments.  The updated patches can be 
> found at:
> 
> http://malasada.lava.net/~tony/perdition-ipv6.diff
> http://malasada.lava.net/~tony/vanessa_socket-ipv6.diff

Thanks, I'll try and integrate these patches into the next release.

--

-- 
Horms
  H: http://www.vergenet.net/~horms/
  W: http://www.valinux.co.jp/en/

______________________________________________
Perdition-users mailing list
(Continue reading)

Matt Richards | 7 Aug 20:16 2007
Picon

Script Maps

Hello,

Is there a map module for perdition that gets the necessary information
it needs by using a script ?

I was thinking something like the script runs in a constant while loop
reading each line from STDIN and returns the remote server information
to STDOUT.
This is basically how authentication programs are used with the squid
web proxy.

I'm asking this because I am looking into a setup that runs multiple
dovecot servers which all point back to the same location by use of
networked file systems.
Everything is working fine apart from a small problem that is related to
users logging into two different servers at the same time.

So although I need to make sure users are always connected to the same
server this doesn't have to always be the same server but just the same
server within a set amount of time from when the users logs in and I
could quite easily set this up if perdition supported scripts as its
backend.

I'm sure this will open up other possibilities such as using database
backends that perdition doesn't have a module for.

Cheers,

Matt.

(Continue reading)

Gustavo Luiz Duarte | 9 Aug 17:40 2007
Picon

Re: Script Maps

not a script, but a library function.
http://www.vergenet.net/linux/perdition/perditiondb.5.shtml#lbAE

[]'s
Gustavo

On 8/7/07, Matt Richards <matt <at> faceparty.net> wrote:
Hello,

Is there a map module for perdition that gets the necessary information
it needs by using a script ?

I was thinking something like the script runs in a constant while loop
reading each line from STDIN and returns the remote server information
to STDOUT.
This is basically how authentication programs are used with the squid
web proxy.

I'm asking this because I am looking into a setup that runs multiple
dovecot servers which all point back to the same location by use of
networked file systems.
Everything is working fine apart from a small problem that is related to
users logging into two different servers at the same time.

So although I need to make sure users are always connected to the same
server this doesn't have to always be the same server but just the same
server within a set amount of time from when the users logs in and I
could quite easily set this up if perdition supported scripts as its
backend.

I'm sure this will open up other possibilities such as using database
backends that perdition doesn't have a module for.

Cheers,

Matt.


______________________________________________
Perdition-users mailing list
Perdition-users <at> vergenet.net
http://lists.vergenet.net/listinfo/perdition-users

______________________________________________
Perdition-users mailing list
Perdition-users <at> vergenet.net
http://lists.vergenet.net/listinfo/perdition-users
Markus Feilner | 10 Aug 11:27 2007
Picon

Author wanted ...

Hello List,
I am an editor at of the german Linux Magazine and I am looking for an author 
who might want to write some 3+pages on Perdition and IMAP proxies. 

If you are interested, please send me a personal mail to:

<mfeilner <at> linuxnewmedia.de>

Thank you!

Mit freundlichen Gruessen - Best Regards, 

Markus Feilner

-- 
Linux New Media AG, Sueskindstr. 4, 81929 Muenchen, Germany
Phone: +49 89 9934 1122, Fax: +49 89 9934 1199
mfeilner <at> linuxnewmedia.de - http://www.linuxnewmedia.de

Linux New Media - The Pulse of Linux
Lawrence - Malaga - Manchester - 
Muenchen -  Sao Paulo - Timisoara - Warszawa

---------------------------------------------------
Sitz der Gesellschaft: Sueskindstrasse 4, 81929 Muenchen
Amtsgericht Muenchen: HRB 129161
Vorstand: Rosemarie Schuster, Hermann Plank
Aufsichtsratsvorsitzender: Rudolf Strobl
______________________________________________
Perdition-users mailing list
Perdition-users <at> vergenet.net
http://lists.vergenet.net/listinfo/perdition-users

Jimmy Brake | 11 Aug 15:44 2007

migrating from courier imap as the imap proxy - error "NO Could not determine server"

Hi!

I have installed perdition-mysql on ubuntu from the default ubuntu 
packages. Configured and loaded a real user account into the mysql database.

Here is my /etc/perdition/perdition.cfg:

connection_logging
debug
connection_limit 1200
M /usr/lib/libperditiondb_mysql.so.0
m 
localhost:3306:dbPerdition:tblPerdition:perdition:password:user:servername:port

Other than some ssl errors the perdition processes start fine.

?> telnet www.isurge.com 143
Trying 64.151.83.157...
Connected to www.isurge.com.
Escape character is '^]'.
* OK IMAP4 Ready inbound3 0001deb7
a login jimmy <at> dalliance.com mypassword
a NO Could not determine server

Trying this on my production system works(it also proxies to the mail 
node behind our firewall).

?> telnet mail.dwalliance.com 143
Trying 64.151.83.154...
Connected to inbound.thejobdomain.com.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT 
THREAD=REFERENCES SORT QUOTA] Courier-IMAP ready. Copyright 1998-2003 
Double Precision, Inc.  See COPYING for distribution information.
a login jimmy <at> dalliance.com mypassword
a OK LOGIN Ok.

Here are what I hope are helpful lines from the log file:

Aug 11 06:17:34 inbound3 perdition[18736]: Auth: 127.0.0.1->127.0.0.1 
user="jimmy <at> dalliance.com" server="(null)" port="143" status="failed: 
Could not determine server"
Aug 11 06:23:56 inbound3 perdition[20487]: Connect: 
66.92.29.233->64.151.83.157
Aug 11 06:23:56 inbound3 perdition[20487]: SELF:   "* OK IMAP4 Ready 
inbound3 0001deb7\r\n"
Aug 11 06:24:04 inbound3 perdition[20487]: CLIENT: "a login 
jimmy <at> dalliance.com mypassword\r\n"
Aug 11 06:24:04 inbound3 perdition[20487]: username_add_domain: 
username_add_domain 0 1 0x52b514
Aug 11 06:24:07 inbound3 perdition[20487]: SELF:   "a NO Could not 
determine server\r\n"
Aug 11 06:24:07 inbound3 perdition[20487]: Auth: 
66.92.29.233->64.151.83.157 user="jimmy <at> dalliance.com" server="(null)" 
port="143" status="failed: Could not determine server"

I guess some more info about our configuration would be helpful. We have 
a proxy in front of our email servers the mailboxes for each domain are 
spread across the email servers. Presently a users email client sends 
their complete email address as their username.

Thanks In Advance,

Jimmy

Attachment (jimmy.vcf): text/x-vcard, 221 bytes
______________________________________________
Perdition-users mailing list
Perdition-users <at> vergenet.net
http://lists.vergenet.net/listinfo/perdition-users
Jens Laas | 12 Aug 11:15 2007
Picon
Picon

Re: Script Maps

(07.08.07 kl.19:16) Matt Richards skrev följande till perdition-users <at> verge...:

> Hello,
>
> Is there a map module for perdition that gets the necessary information
> it needs by using a script ?

I have implemented a perdition module for this usage.

Its used like:
$ perdition.imap4 --debug --no_daemon  -M /usr/lib/libperditiondb_exec.so 
-m /tm
p/prg -P IMAP4

/tmp/prg is run with username in argv[1] and in ENV("MAILUSER").

$ cat -n /tmp/prg
      1  #!/bin/bash
      2  #echo "NO no such user $1"
      3  #echo "ERR failure"
      4  echo "OK mailserver.x.y"

There is no constant loop. The program or script is invoked each time.
This is of no great concern performance wise in Linux unless your server 
is very heavliy loaded.

Im on vacation now but I can post the program next week when I get back to 
work (on thursday).

You should treat it as a beta-version though.

Cheers,
Jens

>
> I was thinking something like the script runs in a constant while loop
> reading each line from STDIN and returns the remote server information
> to STDOUT.
> This is basically how authentication programs are used with the squid
> web proxy.
>
> I'm asking this because I am looking into a setup that runs multiple
> dovecot servers which all point back to the same location by use of
> networked file systems.
> Everything is working fine apart from a small problem that is related to
> users logging into two different servers at the same time.
>
> So although I need to make sure users are always connected to the same
> server this doesn't have to always be the same server but just the same
> server within a set amount of time from when the users logs in and I
> could quite easily set this up if perdition supported scripts as its
> backend.
>
> I'm sure this will open up other possibilities such as using database
> backends that perdition doesn't have a module for.
>
> Cheers,
>
> Matt.
>
>
> ______________________________________________
> Perdition-users mailing list
> Perdition-users <at> vergenet.net
> http://lists.vergenet.net/listinfo/perdition-users
>

-----------------------------------------------------------------------
     'In theory, there is no difference between theory and practice.
      But, in practice, there is.'
-----------------------------------------------------------------------
     Jens Låås                              Email: jens.laas <at> data.slu.se
     Department of Computer Services, SLU   Phone: +46 18 67 35 15
     Vindbrovägen 1
     P.O. Box 7079
     S-750 07 Uppsala
     SWEDEN
-----------------------------------------------------------------------
______________________________________________
Perdition-users mailing list
Perdition-users <at> vergenet.net
http://lists.vergenet.net/listinfo/perdition-users

Jimmy Brake | 16 Aug 07:57 2007

migrating from courier imap as the imap proxy - error "NO Could not determine server"

Hi!

I have installed perdition-mysql on ubuntu from the default ubuntu
packages. Configured and loaded a real user account into the mysql database.

Here is my /etc/perdition/perdition.cfg:

connection_logging
debug
connection_limit 1200
M /usr/lib/libperditiondb_mysql.so.0
m
localhost:3306:dbPerdition:tblPerdition:perdition:password:user:servername:port

Other than some ssl errors the perdition processes start fine.

?> telnet www.isurge.com 143
Trying 64.151.83.157...
Connected to www.isurge.com.
Escape character is '^]'.
* OK IMAP4 Ready inbound3 0001deb7
a login jimmy <at> dalliance.com mypassword
a NO Could not determine server

Trying this on my production system works(it also proxies to the mail
node behind our firewall).

?> telnet mail.dwalliance.com 143
Trying 64.151.83.154...
Connected to inbound.thejobdomain.com.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT
THREAD=REFERENCES SORT QUOTA] Courier-IMAP ready. Copyright 1998-2003
Double Precision, Inc.  See COPYING for distribution information.
a login jimmy <at> dalliance.com mypassword
a OK LOGIN Ok.

Here are what I hope are helpful lines from the log file:

Aug 11 06:17:34 inbound3 perdition[18736]: Auth: 127.0.0.1->127.0.0.1
user="jimmy <at> dalliance.com" server="(null)" port="143" status="failed:
Could not determine server"
Aug 11 06:23:56 inbound3 perdition[20487]: Connect:
66.92.29.233->64.151.83.157
Aug 11 06:23:56 inbound3 perdition[20487]: SELF:   "* OK IMAP4 Ready
inbound3 0001deb7\r\n"
Aug 11 06:24:04 inbound3 perdition[20487]: CLIENT: "a login
jimmy <at> dalliance.com mypassword\r\n"
Aug 11 06:24:04 inbound3 perdition[20487]: username_add_domain:
username_add_domain 0 1 0x52b514
Aug 11 06:24:07 inbound3 perdition[20487]: SELF:   "a NO Could not
determine server\r\n"
Aug 11 06:24:07 inbound3 perdition[20487]: Auth:
66.92.29.233->64.151.83.157 user="jimmy <at> dalliance.com" server="(null)"
port="143" status="failed: Could not determine server"

I guess some more info about our configuration would be helpful. We have
a proxy in front of our email servers the mailboxes for each domain are
spread across the email servers. Presently a users email client sends
their complete email address as their username.

Thanks In Advance,

Jimmy

Attachment (jimmy.vcf): text/x-vcard, 221 bytes
______________________________________________
Perdition-users mailing list
Perdition-users <at> vergenet.net
http://lists.vergenet.net/listinfo/perdition-users
Jens Laas | 20 Aug 09:16 2007
Picon
Picon

Re: Script Maps

(07.08.07 kl.19:16) Matt Richards skrev följande till perdition-users <at> verge...:

> Hello,
>
> Is there a map module for perdition that gets the necessary information
> it needs by using a script ?
>

Hello!

This is perdition plugin:
http://infra.slu.se/jensl/perdition_exec-0.73.tar.gz

It allows you to use a script/program for lookup.

The executed program should return one of:
1. "OK <servername>[:<port>]"
2.  "ERR[ error description ]" if an error occured
3.  "NO [ reason ]" if the key was not found

I have only tested this on Linux but I see no reason for it not to work OK 
under other OS.

The only thing I expect could give you trouble is the build instructions 
for other OS than Linux.

Cheers,
Jens

-----------------------------------------------------------------------
     'In theory, there is no difference between theory and practice.
      But, in practice, there is.'
-----------------------------------------------------------------------
     Jens Låås                              Email: jens.laas <at> data.slu.se
     Department of Computer Services, SLU   Phone: +46 18 67 35 15
     Vindbrovägen 1
     P.O. Box 7079
     S-750 07 Uppsala
     SWEDEN
-----------------------------------------------------------------------
______________________________________________
Perdition-users mailing list
Perdition-users <at> vergenet.net
http://lists.vergenet.net/listinfo/perdition-users

winnie lam | 21 Aug 17:14 2007
Picon

Can't run service...

Dear all,
I've setup perdition on redhat linux ES 2.1, then i tried to run "/etc/init.d/perdition start" ==> perdition:[ok], after then i typed "/etc/init.d/perdition status" ==> perdition.pop3 is stopped ..ooo..what should I do....my perdition.conf as following:
 
bind_address 192.168.18.230
connection_logging
log_facility /var/log
pop_capability POP3
connection_limit 999
map_library /usr/lib/libperditiondb_gdbm.so
map_library_opt /etc/perdition/popmap.gdbm.db
protocol POP3
outgoing_port 110
outgoing_server localhost
pid_file /var/run/perdition.pop3/perdition.pop3.pid
timeout 40
username nobody
 
======================
 
I want to use this perdition for mail server migration....I think my "perdition.conf" got something wrongly...anyone please advise me.....
 
many many thanks again...
 
regards,
winnie
 
______________________________________________
Perdition-users mailing list
Perdition-users <at> vergenet.net
http://lists.vergenet.net/listinfo/perdition-users
Winnie | 18 Aug 14:17 2007
Picon

how to check user from text file in popmap.re???

Dear all,

hi..i want to setup perdition server before 2 sendmail with openwebmail servers.
But there are 200 users divided into 2 different sendmail servers A & B..
...so..i made 2 text files /etc/sendmailA.txt and /etc/sendmailB.txt which are 
marked down which users are mapped to certain servers...

but...in your "popmap.re" example, there are only divided character starting 
from A to F will map to server A and others will map to server B...but..I can't 
divide the user in this way...I must map those user from /etc/sendmailA.txt 
& /etc/sendmailB.txt ...then how to check user login name from 
both "/etc/sendmailA.txt & sendmailB.txt" in popmap.re .... 

thx for your attention and patience...

regards,
winnie

______________________________________________
Perdition-users mailing list
Perdition-users <at> vergenet.net
http://lists.vergenet.net/listinfo/perdition-users


Gmane