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
Here is my perdition.imap4.conf.
add_domain servername_lookup
connection_logging
domain_delimiter @
F /var/log/perdition
g perdition
imap_capability IMAP4REV1
map_library /usr/lib/libperditiondb_posix_regex.so
map_library_opt /etc/perdition/popmap.re
server_resp_line
P IMAP4
u perdition
Here is my popmap.re
nelsonts(a)foo.com nelsonts(a)10.5.0.1
nelsonts(a)fee.net nelsonts(a)10.5.0.8
foo.com >> 64.5.4.7 (sample IP only)
fee.net >> 64.5.4.7 (sample IP only)
When I tried to use Outlook, I input in my incoming 64.5.4.7, email add is nelsonts(a)foo.com , Account nelsonts and I successfully get my email under foo.com. But when I tried the email add nelsonts(a)fee.net using incoming 64.5.4.7 and Account nelsonts, I get the email under my nelsonts(a)foo.com account which suppose to be nelsonts(a)fee.net
It seems it did not redirect to server 10.5.0.8 when I tried to used nelsonts(a)fee.net. Is there something wrong in my popmap.re or perdition.imap4.conf? Both server has account nelsonts
----- Original Message ----
From: Chris Stratford <chris.stratford(a)pipex.net>
To: Nelson Serafica <ntserafica(a)yahoo.com>
Cc: perdition-users(a)vergenet.net
Sent: Tuesday, September 4, 2007 4:33:10 PM
Subject: Re: [PERDITION-USERS] multiple domains and local servers
On Mon, 2007-09-03 at 22:44 -0700, Nelson Serafica wrote:
> So you mean I will just remove the hashmark in add_domain
> servername_lookup and add:
>
> (.*)(a)64.0.2.6 $1@serverA
> (.*)(a)64.0.2.7 $1@serverB
> (.*)(a)64.0.2.8 $1@serverC
>
> to popmap.re? server A is the local server and 64.0.2.6 is the public.
> Same goes to other IPs.
Come to think of it, you might not even need the "$1@" part, but I've
not tried it that way.
> I just add serverA,serverB and serverC in the outgoing_server of the
> perdition.imap.conf. Is this correct?
Oh yes, I forgot that bit. You won't need outgoing_server, because it
should get the details from the popmap.re lookup.
Our system setup is a little different from yours, but our
perdition.imap4.conf file (minus a few irrelevant bits) might help:
add_domain servername_lookup
no_bind_banner
domain_delimiter @
group nogroup
map_library /usr/local/perdition/lib/libperditiondb_bdb.so
map_library_opt /usr/local/perdition/etc/popmap.db
timeout 1800
username nobody
username_from_database
We use BerkeleyDB lookups instead of regex and our login names get
changed on the way through the system, but the basic idea is the same.
The popmap.db file has entries that look a bit like this:
user1(a)domain1.com mailbox1@server1
user2(a)domain1.com mailbox2@server5
user3(a)domain3.com mailbox9@server1
Our real IMAP server expects to see mailbox1, mailbox2, etc. as login
names, but as you are probably not doing this, you can omit
"username_from_database".
Chris.
____________________________________________________
Tired of spam? Yahoo! Mail has the best spam protection around
http://ph.mail.yahoo.com
So you mean I will just remove the hashmark in add_domain servername_lookup and add:
(.*)(a)64.0.2.6 $1@serverA
(.*)(a)64.0.2.7 $1@serverB
(.*)(a)64.0.2.8 $1@serverC
to popmap.re? server A is the local server and 64.0.2.6 is the public. Same goes to other IPs.
I just add serverA,serverB and serverC in the outgoing_server of the perdition.imap.conf. Is this correct?
----- Original Message ----
From: Chris Stratford <chris.stratford(a)pipex.net>
To: Nelson Serafica <ntserafica(a)yahoo.com>
Cc: perdition-users(a)vergenet.net
Sent: Monday, September 3, 2007 5:15:10 PM
Subject: Re: [PERDITION-USERS] multiple domains and local servers
On Sun, 2007-09-02 at 18:55 -0700, Nelson Serafica wrote:
> I'm setting up a mail server but don't know if perdition can do this.
It can.
> I have a front server and 5 local server. Front server has 3 public
> ip's. Can I designate different domains per public IP basis? Let's say
> the public IP:
>
> 64.0.2.6 (domain X) to local server A
> 64.0.2.7 (domain Y) to local server B
> 64.0.2.8 (domain Z) to local server C
>
> So here's the questions:
>
> Can all these public IP listen to port 110/143 at the same time?
> If someone email to domain X, it will listen to 64.0.2.6 port 110/143
> and transferred it to local server A?
Perdition should listen on all interfaces by default, so that part isn't
a problem.
You would then need to add "add_domain servername_lookup" into your
config file(s) which will convert "USER eric" into "USER
eric(a)64.0.2.6" (or .2.7 or .2.8 depending on which IP address they
connected to).
Finally you will need some sort of username to server map. For
something as simple as this layout, regular expressions might be the way
to go, so you will want something like these in your config files(s):
map_library /usr/lib/libperditiondb_posix_regex.so
map_library_opt /etc/popmap.re
And something like this in popmap.re:
(.*)(a)64.0.2.6 $1@serverA
(.*)(a)64.0.2.7 $1@serverB
(.*)(a)64.0.2.8 $1@serverC
That should be about it. I've never tried using the regex library
myself, so that last bit might be wrong, but the general idea should be
okay.
Chris.
____________________________________________________
Tired of spam? Yahoo! Mail has the best spam protection around
http://ph.mail.yahoo.com
I'm setting up a mail server but don't know if perdition can do this.
I have a front server and 5 local server. Front server has 3 public ip's. Can I designate different domains per public IP basis? Let's say the public IP:
64.0.2.6 (domain X) to local server A
64.0.2.7 (domain Y) to local server B
64.0.2.8 (domain Z) to local server C
So here's the questions:
Can all these public IP listen to port 110/143 at the same time?
If someone email to domain X, it will listen to 64.0.2.6 port 110/143 and transferred it to local server A?
____________________________________________________
Tired of spam? Yahoo! Mail has the best spam protection around
http://ph.mail.yahoo.com
In the Debian/Ubuntu setup for perdition, there is
/etc/perdition/perdition.conf and there is also /etc/default/perdition
which gets dotted into /etc/init.d/perdition. I'm running all of
pop3, pop3s, imap4, and imap4s modes.
Most of the config info is the same, so I did that in perdition.conf.
That leaves me with pretty short command line options to set
separately in /etc/default/perdition. So far, so good.
I'm trying to set imap_capability for imap4/imap4s and pop_capability
for pop3/pop3s. By trial and error, I have figured out that those two
names are just synonyms in perdition.conf, so I can't set them both
there. Fine, I'll just set them differently in
/etc/default/perdition.
Alas, the embedded spaces are driving me a little crazy. Has anyone
worked out the combination of quote marks, backslashes, and other
shell magic to get things interpreted correctly by the time it gets
interpreted by the init script?
(I know I can just use different config files for the different
protocols, which is what I will do if I don't find some other
solution. I'd just rather avoid the redundancy if there is some other
answer.)
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
Dear all,
I've already setup perdition as my one redhat sendmail server that harddisk
is almost full,
so i want to use perdition to migrate some users to another redhat sendmail
server...
but..how to do that check pop3 user and password from /etc/shadow only..
my existing sendmail server is very simple configuration...so i didn't have
any database to store username and passwords
also, i want to divide half of pool of users(for example, total users=20) to
old server A and another 10 users to server B...
then i have 2 lists of user...i got a headache about my openwebmail....how
to automatically move list-A-users to server A and list-B-users to server B
when they want to login to openwebmail...
sorry for this stupid question...i'm newbabie on setup linux server...
thx again..
regards,
winnie
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.
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(a)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(a)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(a)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(a)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(a)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
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(a)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(a)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(a)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(a)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(a)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