Re: [vchkpw] qmail+vpopmail+openldap+qmailadmin in redhat7.3

2003-07-16 Thread lixiang
hi,Jens:
I did guess that you should be off for your business trip or holidays ,  :-)
I think basedn and binddn is the same in my vldap.h and slapd.conf, and if i have 
the below entry tree in my openldap through ldapbrowser:

   dc=koal,dc=com
   |
 -ou=people
|
 - ou=net.koal.com
 |-uid=postmaster
  -uid=test

and my slapd.conf:

databaseldbm
suffix  dc=koal,dc=com
rootdn  cn=root,ou=people,dc=koal,dc=com
rootpw  x ( here is the same with the password in vldap.h)

and my vldap.h:

#undef OLD_VLDAP

#define VLDAP_SERVER localhost
#define VLDAP_PORT LDAP_PORT
#define VLDAP_USER cn=root,ou=people,dc=koal,dc=com
#define VLDAP_PASSWORD x ( here is the same with the password in slapd.conf)

#define MAX_BUFF 500

#ifdef OLD_VLDAP
   #define VLDAP_BASEDN ou=Subs, o=vpop
#else
   #define VLDAP_BASEDN ou=people,dc=koal,dc=com
#endif

I test the pop3 authentication  :

[EMAIL PROTECTED] root]# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK [EMAIL PROTECTED]
user test
+OK 
pass test
Error: No such object
matched DN: ou=people,dc=koal,dc=com
-ERR authorization failed
Connection closed by foreign host.

and then maillog reports:

Jul 16 14:39:29 mailserver vpopmail[1244]: vchkpw-pop3: vpopmail user not found 
test@:127.0.0.1


if i test the pop3 with a domain that doesn't exsits :

[EMAIL PROTECTED] root]# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK [EMAIL PROTECTED]
user [EMAIL PROTECTED]
+OK 
pass test
Error: No such object
matched DN: ou=people,dc=koal,dc=com
-ERR authorization failed

then maillog reports:

Jul 16 14:42:06 mailserver vpopmail[1261]: vchkpw-pop3: vpopmail user not found [EMAIL 
PROTECTED]:127.0.0.1

it seems that i should submit the correct and complete email add:  [EMAIL PROTECTED]


then i test :

[EMAIL PROTECTED] root]# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK [EMAIL PROTECTED]
user [EMAIL PROTECTED]
+OK 
pass test
-ERR aack, child crashed

and then maillog reports nothing about this failed login.

it seems that the vchkpw has recognized this [EMAIL PROTECTED]
,but child crashed error is occured. 
what's happened?  






[vchkpw] Expiration Date on users accounts

2003-07-16 Thread Sérgio Manuel Rosa
Hi all, 

I dont know if this is possible but here it goes; is possible, and how, to 
have an expiration date on every user mail account? 

I'm running redhat+qmail+qmailadmin+vpopmail+sqwebmail. 

Thanks
srosa


Re: [vchkpw] qmail+vpopmail+openldap+qmailadmin in redhat7.3

2003-07-16 Thread Jens Jahr
Zitat von lixiang [EMAIL PROTECTED]:

Hi lixiang,

OK, now I see your Prob !!

It is somekind of loop that you configured:

See here:

slapd.conf:

--- snip
 suffix  dc=koal,dc=com
 rootdn  cn=root,ou=people,dc=koal,dc=com  --- WRONG !!
--- snap

vldap.h
--- snip
 #define VLDAP_BASEDN ou=people,dc=koal,dc=com
 #define VLDAP_USER cn=root,ou=people,dc=koal,dc=com  --- WRONG !!
--- snap

###
You solution should look like this:

slapd.conf:

--- snip
 suffix  dc=koal,dc=com
 rootdn  cn=root,dc=koal,dc=com This is the difference
--- snap

vldap.h
--- snip
 #define VLDAP_BASEDN ou=people,dc=koal,dc=com
 #define VLDAP_USER cn=root,dc=koal,dc=com   This is the difference

--- snap


The rootdn must _not_ be a ldap entry that is inside your trie !!! 
It is just an internal User !!

So you might try this.
And remenber ! Your organisation ( dc=koal,dc=com ) and your arganisational Unit
( ou=people, dc=koal, dc=com) must both exist !!

And please make sure yout BASEDN in vldap.h is used. 
E.g. like

#define VLDAP_BASEDN ou=people,dc=koal,dc=com

And delete the #if-def clause

Cheers
Jens






Re: [vchkpw] possible smtp-auth bug (qmail)

2003-07-16 Thread Peter Palmreuther
Hi Bård,

On Tue, 15 Jul 2003 20:51:24 +0200 Bård Tommy Nilsen wrote:

 Ok, cause when i checked it through www.abuse.net it said that my server
 was open for relay.

Well, if I tell you you've to jump out the windows in 10th floor you're
gonna jump?

  250 martine.fjord-data.no 
 
 To: [EMAIL PROTECTED]

Is the domain 'test.sonen.no' handled by 'martine.fjord-data.no'? Is
this server authorative for handling mails to this domain?

1.) No? Than you _have_ a problem. You're accepting mail for a domain you
maybe don't want to handle. You're a relay. 
See 2.b.). If the described scenario is your case you're not an
open relay.
If 2.b.) does not appliy you are an open relay.

2.) Yes? Are they handled locally (e.g. by vpopmail)?
a.) Yes too? THAT'S NOT RELAYING! No matter what anybody else sais,
RELAYING it is *ONLY* if you accept mail for hosts and/or
domains that is /NOT/ handled locally.
b.) No? This can be intentionally, e.g. if you have a mail gateway
that forwards messages to a different host in your network which
handles the messages finally. But it's /INTENDED/ relaying. Not
an open relay. Open relay you only are if you accept mail for
arbitrary domains.

 If you dont recieve it then its not a relay (Its still a Bad Thing (TM)
 that it accepted)

Stupid nonsense!

 So this is normal, or have I done something wrong ??

Your qmail accepted a message for an address it is configured for per
'rcpthosts', what should be wrong with this?

P.S.: Your quoting style is horrible. Please reconsider changing it to
the so called inline quoting as you see it in this mail. This makes
reading a whole thread more easy, it allows following the topic _a lot_
easier and reduced the size of messages as you automatically trim down
the quotes instead of full quoting the original message every time
(which is unnecessary in 99% of the times it's used).
-- 
Ciao,
 Pit



Re: [vchkpw] [qmailadmin] aliases to bitbucket

2003-07-16 Thread Peter Palmreuther
Hi Tom,

On Tue, 15 Jul 2003 10:15:51 -0700 Tom Collins wrote:

 It might be helpful to add another program (vstoremail?) to the 
 vpopmail distribution that would accept a message in STDIN and save it 
 to the Maildir specified as the first parameter.  Then it would be 
 possible to have entries in your .qmail file like

 |/usr/local/bin/spamc | /home/vpopmail/bin/vstoremail 
 /home/vpopmail/domains/example.com/fred/Maildir/

This program already exists, albeit it's not part of vpopmail.

http://www.superscript.com/qtools/intro.html

look for 'tomaildir'.

Quote useful and spares invoking one of the monsters maildrop or
procmail, if one does not need the filtering capabilities they offer,
but only a program to deliver from a STDOUT-pipe to a maildir structure.
-- 
Ciao,
 Pit



Re: [vchkpw] Expiration Date on users accounts

2003-07-16 Thread Peter Palmreuther
Hi Sérgio,

On Wed, 16 Jul 2003 10:34:02 +0100 Sérgio Manuel Rosa wrote:

 I dont know if this is possible but here it goes; is possible, and
 how, to have an expiration date on every user mail account? 

It ain't possible with only vpopmail-suite.
You'll have to remember expiration in an arbitrary third party
application and evaluate these data cron'ed to remove expired users by
calling 'vdeluser' or using vpopmail library calls.
-- 
Ciao,
 Pit



[vchkpw] Re: Expiration Date on users accounts

2003-07-16 Thread Sérgio Manuel Rosa
Those are not the best news I could want, but it was what I was expecting. 

Does anybody implemented something like this? Each user have a account valid 
for n time, after that time expires the account is closed or deleted. 

Thanks Peter. 

SRosa 

Peter Palmreuther writes: 

Hi Sérgio, 

On Wed, 16 Jul 2003 10:34:02 +0100 Sérgio Manuel Rosa wrote: 

I dont know if this is possible but here it goes; is possible, and
how, to have an expiration date on every user mail account? 
It ain't possible with only vpopmail-suite.
You'll have to remember expiration in an arbitrary third party
application and evaluate these data cron'ed to remove expired users by
calling 'vdeluser' or using vpopmail library calls.
--
Ciao,
 Pit 





[vchkpw] vpopmail does not like my 2nd domain

2003-07-16 Thread Matthias F. Brandstetter
Hi all,

I have a strange problem with qmail+vpopmail. Except this error 
everything works like a charm, so I don't think it's a big issue.

OK: After setting up qmail (wiht LWQ.org) and vpopmail (with install 
instructions from inter7.com) I set up my first domain with 
vadddomain; this domain gets every mail as it should.

Then, I added a 2nd domain with vadddomain, and a 2nd test-user under 
this new domain. Problem now is: If I send an email to this 
[EMAIL PROTECTED], this email is stored into the account from 
[EMAIL PROTECTED]

I have no idea how this could be, vadddomain seems to add all entries 
for this 2nd virtual domain ok to all config files.

Has somebody an idea what could be wrong here?
Greetings and TIA, Matthias

-- 
Matthias F. Brandstetter [mailto:[EMAIL PROTECTED]
now playing Groove Salad: a nicely chilled plate of ambient beats and 
grooves. [SomaFM]




Re: [vchkpw] qmail+vpopmail+openldap+qmailadmin in redhat7.3

2003-07-16 Thread lixiang




Hi, Jens:

   actually, my rootdn was  cn=root,dc=koal,dc=com in both my vldap.h and slapd.conf 
in the before,  and i ensured that the basedn in vldap.h was 
ou=people,dc=koal,dc=com .  i tested what you mentioned  just now, this cann't help 
me .
  the err acck ,child crashed  error remains.
 if i input a user which doesn't exsit,  it will reports  err authorization failed.  
if i input the correct user and password, it will reports err acck, child crashed .  
i think it has recognized the user and password ,but  sth lead to the child crashed 
error.  i have searched the vpopmail mailing list, there were many reports about the 
same error, and it seems that many reasons will lead to this error, but until now, i 
still havn't find any valuable solution to me.

my configure parameters:

./configure --enalbe-ldap=y --enable-roaming-users=y --enable-logging=y 

redhat 7.3 
vpopmail-5.3.20
openldap-2.0.27
qmailadmin-1.0.20

any suggestions?
thanks a lot,  :-), 





Re: [vchkpw] vpopmail does not like my 2nd domain

2003-07-16 Thread Peter Palmreuther
Hi Matthias,

On Wed, 16 Jul 2003 15:27:24 +0200 Matthias F. Brandstetter wrote:

 Then, I added a 2nd domain with vadddomain, and a 2nd test-user under 
 this new domain. Problem now is: If I send an email to this 
 [EMAIL PROTECTED], this email is stored into the account from 
 [EMAIL PROTECTED]

What happens to a mail to 

[EMAIL PROTECTED]

while '[EMAIL PROTECTED]' does *NOT* exist?

What does 

qmail-showctl |grep '[vV]irtual'

print out?

 I have no idea how this could be, vadddomain seems to add all entries 
 for this 2nd virtual domain ok to all config files.

Well ... if everything would be OK the mail would be delivered to the
correct mailbox, wouldn't it? :-)
-- 
Ciao,
 Pit



Re: [vchkpw] vpopmail does not like my 2nd domain

2003-07-16 Thread Matthias F. Brandstetter
-- quoting Peter Palmreuther --
 What happens to a mail to

 [EMAIL PROTECTED]

 while '[EMAIL PROTECTED]' does *NOT* exist?

Then I get a error like no such user on this system -- you know what 
I mean.

 Well ... if everything would be OK the mail would be delivered to
 the correct mailbox, wouldn't it? :-)

Yeah, you're right :)

I had another idea: My OLDdomain is hostA.domain.tld, my NEWdomain 
is hostB.domain.tld. Could this be the problem? I mean, would it 
work, if the domains are completely different?

Greetings, Matthias

-- 
Matthias F. Brandstetter [mailto:[EMAIL PROTECTED]
now playing Groove Salad: a nicely chilled plate of ambient beats and 
grooves. [SomaFM]




Re: [vchkpw] Vpopmail Installation Problem

2003-07-16 Thread Ajai Khattri
zafar rizvi wrote:

I am in problem of installing vpopmail with centralized mysql database
support, and getting error in make command.
i think its all bcz of disconnection from remote system.
I test the connection with php script and got output like that.
Error :Lost Connection to mysql server during query.
A basic troubleshooting step would be to check that the MySQL connection 
with the same username and password actually works. You can probably do 
this by logging into your mail server and connecting your central 
database by using the mysql client.

--
Aj.
Systems Administrator / Developer



Re: [vchkpw] vpopmail does not like my 2nd domain

2003-07-16 Thread Peter Palmreuther
Hi Matthias,

On Wed, 16 Jul 2003 17:39:33 +0200 Matthias F. Brandstetter wrote:

 What happens to a mail to

 [EMAIL PROTECTED]

 while '[EMAIL PROTECTED]' does *NOT* exist?

 Then I get a error like no such user on this system -- you know what 
 I mean.

Sorry, no mailbox here by that name.

Shouldn't be _THAT_ hard to copy/paste the error message if you expect
somebody helping you.

 I had another idea: My OLDdomain is hostA.domain.tld, my NEWdomain 
 is hostB.domain.tld. Could this be the problem?

Could could be many thing.
Usually it ain't a problem, with usually meaning: set up correctly.

 I mean, would it work, if the domains are completely different?

Of course. The same as if can work with second level domains being
identically and only third level domain differing.
It's all a matter of setting up correctly.

But to be honest: I neither have time nor delight to play the could it
be game. I asked:

| What does 
|
| qmail-showctl |grep '[vV]irtual'
|
| print out?

Additionally please send the output of 

qmail-showctl |grep 'locally.'

Unless you are willing to present the information I don't see a way to help
you finding the solution. I don't like hazard games when it comes to
system administrations, so I'll no longer simply guess what out of a few
thousand options might be wrong.
-- 
Ciao,
 Pit



Re: [vchkpw] Vpopmail Installation Problem

2003-07-16 Thread zafar rizvi
hi
Its mean mysql client must be installed on the qmail server first.
ok 
I have but still i am getting error.
ERROR 2003: Can't connect to MySQL server on '192.168.0.64' (111)

AND I have my.conf like that
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock

[mysql.server]
user=mysql
basedir=/var/lib

[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid


Would u tell me what's wrong. or what setting left.

Thanks
ZAfar


- Original Message - 
From: Ajai Khattri [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 16, 2003 9:18 PM
Subject: Re: [vchkpw] Vpopmail Installation Problem


 zafar rizvi wrote:
 
  I am in problem of installing vpopmail with centralized mysql database
  support, and getting error in make command.
  i think its all bcz of disconnection from remote system.
  
  I test the connection with php script and got output like that.
  Error :Lost Connection to mysql server during query.
 
 A basic troubleshooting step would be to check that the MySQL connection 
 with the same username and password actually works. You can probably do 
 this by logging into your mail server and connecting your central 
 database by using the mysql client.
 
 -- 
 Aj.
 Systems Administrator / Developer
 
 
 




Re: [vchkpw] vpopmail does not like my 2nd domain

2003-07-16 Thread Matthias F. Brandstetter
-- quoting Peter Palmreuther --
 Sorry, no mailbox here by that name.

 Shouldn't be _THAT_ hard to copy/paste the error message if you
 expect somebody helping you.

Sorry, I had no access to the server, that's the reason why I didn't 
know the exact message. But of course you're right, that's the error 
msg. I get.

  I had another idea: My OLDdomain is hostA.domain.tld, my
  NEWdomain is hostB.domain.tld. Could this be the problem?

 Could could be many thing.
 Usually it ain't a problem, with usually meaning: set up
 correctly.

Ok, I tried now with another domain, and I get the same error.

 I asked:
 | What does
 |
 | qmail-showctl |grep '[vV]irtual'
 |
 | print out?

Jep, as told above, I had no access to my server. Here is the output:

=
virtualdomains:
Virtual domain: mx2.ebox.at:mx2.ebox.at
Virtual domain: mailtest.reinprecht.at:mailtest.reinprecht.at
virtualdomains.lock: I have no idea what this file does.
=

 Additionally please send the output of

 qmail-showctl |grep 'locally.'

there is no output for 'locally'.

 Unless you are willing to present the information I don't see a way
 to help you finding the solution. I don't like hazard games when it
 comes to system administrations, so I'll no longer simply guess
 what out of a few thousand options might be wrong.

Ok, you're right, sorry for that; but I *AM* willing to present 
everything you need to help me. I really have no idea why this isn't 
working, so I would be glad if you could help.

Greetings, Matthias

-- 
Matthias F. Brandstetter [mailto:[EMAIL PROTECTED]
now playing Groove Salad: a nicely chilled plate of ambient beats and 
grooves. [SomaFM]




Re: [vchkpw] Vpopmail Installation Problem

2003-07-16 Thread Ajai Khattri
zafar rizvi wrote:

Its mean mysql client must be installed on the qmail server first.
Well you have to have mysqlclient libraries installed to talk to another 
MySQL server anyway!

I have but still i am getting error.
ERROR 2003: Can't connect to MySQL server on '192.168.0.64' (111)
So you have a basic connectivity problem:

1. Check MySQL is running on the remote server and is listening on that IP.

2. If it is, trying telnetting to port 3306 from the mail server to the 
MySQL server and see if you get connected.

3. Check you don't have a firewall running locally on both machines.

Etc etc etc.

--
Aj.
Systems Administrator / Developer



[vchkpw] Re: vpopmail does not like my 2nd domain

2003-07-16 Thread Peter Palmreuther
Hello Matthias,

On Wednesday, July 16, 2003 at 7:05:58 PM you wrote (at least in
part):

 | qmail-showctl |grep '[vV]irtual'
 =
 virtualdomains:
 Virtual domain: mx2.ebox.at:mx2.ebox.at
 Virtual domain: mailtest.reinprecht.at:mailtest.reinprecht.at
 virtualdomains.lock: I have no idea what this file does.
 =

OK, here I don't see two identically at second level domain entries.
Are you talking about messages to '[EMAIL PROTECTED]' get delivered to
'[EMAIL PROTECTED]' or vice versa? Or is your 'problematic'
domain a different one not listed here?

If the former: what's the output of

egrep '(mx2.ebox.at|mailtest.reinprecht.at)'

If the latter: what happens if you execute

vadddomain -r NEWdomain.at

again? Does the NEWdomain.at now show up in
'/var/qmail/control/virtualdomains'???
Or is there any error message when you try to 'add' the domain again?

 qmail-showctl |grep 'locally.'
 there is no output for 'locally'.

OK. So an accidentally both delivered to the same local can be
excluded.
-- 
Best regards
Peter Palmreuther

God gets boring when you let him have his way.




Re: [vchkpw] Re: vpopmail does not like my 2nd domain

2003-07-16 Thread Matthias F. Brandstetter
-- quoting Peter Palmreuther --
  =
  virtualdomains:
  Virtual domain: mx2.ebox.at:mx2.ebox.at
  Virtual domain: mailtest.reinprecht.at:mailtest.reinprecht.at
  virtualdomains.lock: I have no idea what this file does.
  =
 

 OK, here I don't see two identically at second level domain
 entries. Are you talking about messages to '[EMAIL PROTECTED]' get
 delivered to '[EMAIL PROTECTED]' or vice versa? Or is
 your 'problematic' domain a different one not listed here?

*) If I send a mail to [EMAIL PROTECTED] (which is the FQHN of this 
machine), then it is delivered fine.

*) If I send a mail to [EMAIL PROTECTED], then it is 
delivered to to [EMAIL PROTECTED] account.

*) If I send a mail to [EMAIL PROTECTED] (which is an 
existing vpopmail account for this domain, but not on mx2.ebox.at), 
then I get this error in my logfile (and in my bounce mail):

=
delivery 4: failure: 
Sorry,_no_mailbox_here_by_that_name._vpopmail_(#5.1.1)
=

 If the former: what's the output of

 egrep '(mx2.ebox.at|mailtest.reinprecht.at)'

=
[EMAIL PROTECTED]:/var/qmail/control# /var/qmail/bin/qmail-showctl | egrep 
'(mx2.ebox.at|mailtest.reinprecht.at)'
bouncehost: (Default.) Bounce host name is mx2.ebox.at.
defaulthost: (Default.) Default host name is mx2.ebox.at.
doublebouncehost: (Default.) 2B recipient host: mx2.ebox.at.
envnoathost: (Default.) Presumed domain name is mx2.ebox.at.
helohost: (Default.) SMTP client HELO host name is mx2.ebox.at.
idhost: (Default.) Message-ID host name is mx2.ebox.at.
localiphost: (Default.) Local IP address becomes mx2.ebox.at.
me: My name is mx2.ebox.at.
SMTP clients may send messages to recipients at mx2.ebox.at.
SMTP clients may send messages to recipients at 
mailtest.reinprecht.at.
smtpgreeting: (Default.) SMTP greeting: 220 mx2.ebox.at.
Virtual domain: mx2.ebox.at:mx2.ebox.at
Virtual domain: mailtest.reinprecht.at:mailtest.reinprecht.at
=

 If the latter: what happens if you execute

 vadddomain -r NEWdomain.at

(I replaced NEWdomain.at with mailtest.reinprecht.at, because this 
is my NEWdomain)

=
[EMAIL PROTECTED]:/var/qmail/control# /home/vpopmail/bin/vadddomain -r 
mailtest.reinprecht.at
Error: Domain already exists
=

 again? Does the NEWdomain.at now show up in
 '/var/qmail/control/virtualdomains'???

(again, mailtest.reinprecht.at is now my NEWdomain.at)

=
[EMAIL PROTECTED]:/var/qmail/control# cat /var/qmail/control/virtualdomains
mx2.ebox.at:mx2.ebox.at
mailtest.reinprecht.at:mailtest.reinprecht.at
=

And my /var/qmail/control/locals file is empty.
Is anything wrong with this configuration?

Greetings and thx for your help, Matthias

-- 
Matthias F. Brandstetter [mailto:[EMAIL PROTECTED]
now playing Groove Salad: a nicely chilled plate of ambient beats and 
grooves. [SomaFM]




Re: [vchkpw] Re: vpopmail does not like my 2nd domain

2003-07-16 Thread Tom Collins
What does /var/qmail/users/assign look like?  Could both domains be 
mapped to the same home directory?

Is mail for mx2.ebox.at stored in ~vpopmail/domains/mx2.ebox.at?

--
Tom Collins
[EMAIL PROTECTED]
http://sniffter.com/ - info on the Sniffter hand-held Network Tester



Re: [vchkpw] Re: vpopmail does not like my 2nd domain

2003-07-16 Thread Matthias F. Brandstetter
-- quoting Tom Collins --
 What does /var/qmail/users/assign look like?

=
[EMAIL PROTECTED]:/var/qmail/control# cat /var/qmail/users/assign
+mx2.ebox.at-:mx2.ebox.at:89:89:/home/vpopmail/domains/mx2.ebox.at:-::
+mailtest.reinprecht.at-:mailtest.reinprecht.at:89:89:/home/vpopmail/domains/mailtest.reinprecht.at:-::
.
=

 Could both domains be mapped to the same home directory?
 Is mail for mx2.ebox.at stored in ~vpopmail/domains/mx2.ebox.at?

Jep, both domains have their home dirs under /home/vpopmail.
I added these two domains with ~vpopmail/bin/vadddomain. It should add 
all necessary entries into all necessary config files, shouldn't it?

Greetings, Matthias

-- 
Matthias F. Brandstetter [mailto:[EMAIL PROTECTED]
now playing Groove Salad: a nicely chilled plate of ambient beats and 
grooves. [SomaFM]




Re: [vchkpw] Re: vpopmail does not like my 2nd domain

2003-07-16 Thread Matthias F. Brandstetter
-- quoting Matthias F. Brandstetter --
 Jep, both domains have their home dirs under /home/vpopmail.
 I added these two domains with ~vpopmail/bin/vadddomain. It should
 add all necessary entries into all necessary config files,
 shouldn't it?

Update: I tried to delete my orig. domain (mx2.ebox.at) from vpopmails 
DB, now I get the following error when sending a mail to 
[EMAIL PROTECTED]:

=
   - The following addresses had permanent fatal errors -
[EMAIL PROTECTED]
(reason: 553 sorry, that domain isn't in my list of allowed 
rcpthosts (#5.7.1))
=

But: I *have* it in my rcpthosts file:

=
[EMAIL PROTECTED]:/var/qmail/control# cat rcpthosts
mailtest.reinprecht.at
=

Do I have to insert this domain into another config file as well, so 
that qmail accepts it?

Greetings, Matthias

-- 
Matthias F. Brandstetter [mailto:[EMAIL PROTECTED]
now playing Groove Salad: a nicely chilled plate of ambient beats and 
grooves. [SomaFM]




Re: [vchkpw] Re: vpopmail does not like my 2nd domain

2003-07-16 Thread Rick Macdougall


Matthias F. Brandstetter wrote:

-- quoting Matthias F. Brandstetter --

Jep, both domains have their home dirs under /home/vpopmail.
I added these two domains with ~vpopmail/bin/vadddomain. It should
add all necessary entries into all necessary config files,
shouldn't it?


Update: I tried to delete my orig. domain (mx2.ebox.at) from vpopmails 
DB, now I get the following error when sending a mail to 
[EMAIL PROTECTED]:

=
   - The following addresses had permanent fatal errors -
[EMAIL PROTECTED]
(reason: 553 sorry, that domain isn't in my list of allowed 
rcpthosts (#5.7.1))
=

But: I *have* it in my rcpthosts file:

=
[EMAIL PROTECTED]:/var/qmail/control# cat rcpthosts
mailtest.reinprecht.at
=
Do I have to insert this domain into another config file as well, so 
that qmail accepts it?
Hi,

Did you HUP qmail-send after making manual changes to the config files ?

Regards,

Rick





Re: [vchkpw] Re: vpopmail does not like my 2nd domain

2003-07-16 Thread Matthias F. Brandstetter
-- quoting Rick Macdougall --
 Hi,

 Did you HUP qmail-send after making manual changes to the config
 files ?

Jep, I even tried to reboot my machine -- with no success :(
I really have no idea left. I am searching for this on google the 
whole day now, posting to newsgroups and mailinglist, but nobody 
seems to have an answer (only things which I already have tried).

So long... Matthias

-- 
Matthias F. Brandstetter [mailto:[EMAIL PROTECTED]
now playing Groove Salad: a nicely chilled plate of ambient beats and 
grooves. [SomaFM]




RE: [vchkpw] Seamless Integration - Finally Posted - New Look, Feel, and Navigation for Qmailadmin

2003-07-16 Thread Justin Couto

Unfortunately I don't have a test address you can view this at.  It is
an internal system.  If you follow my instructions you should be able to
replicate it pretty easy.

Maybe if I get time in the future I could put an example up, but I am
not sure when that will be.

Justin C.

-Original Message-
From: Linux [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 15, 2003 5:44 PM
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [vchkpw] Seamless Integration - Finally Posted - New Look,
Feel, and Navigation for Qmailadmin

Do you have an URL that we can look at to see this in action?  I would
love
to do something like this myself!

Thank you,

Linux

 Hello Everyone,

 I am writing in response to someone that asked how we seamlessly
 integrated squirrelmail and qmailadmin using iframes and so a user
 doesn't have to login to each application after initially logging in.

 This was a pretty simple task using PHP.

 Instruction:

 First we created our administrative shell.  This contained a header
and
 a footer in two separate PHP files.

 Next we created our own login.php file that asked for a username and
 password.  This script included the header.php and the footer.php

 Once a person submits the login form contained in the login.php page,
we
 use PHP pop functions to authenticate them on our mail servers.  If
 there is a successful authentication, we break the email address apart
 into 3 variables.  The variables are username, domainname, and
password.


 These variable are then added into a session and the users gets
 redirected to our squirrmail.php login script.

 Our squirmail.php script includes our header.php script, the line for
 the Iframe that points to the squirmail login script and our
footer.php
 script.

 Our header.php script keeps the session running.  At the top of the
page
 in the header script we have a navigation bar with 2 icons in it.  The
 icons point to our squirmail.php and our qmailadmin.php scripts.

 Our qmailadmin.php script is setup exactly like out squirrelmail.php
 script.  It contains the header that keeps the seesion information and
a
 line that includes the Iframe that points to the qmailadmin login
script
 and our footer.php script.

 The two icons in the header that allow you to switch between the two
 different application have dtnamic links that get built by the
 information stored in the session.  So basically the username and
 password get passed through the links when they are clicked.  The
links
 are built and populated via the session variables.

 This all works like a charm.

 I realize I could have been a little clearer explaining this, but I
 figure most of you with programming experience should be able to
figure
 it out.

 I hope this helps.

 Justin C.








RE: [vchkpw] Seamless Integration - Finally Posted - New Look, Feel,and Navigation for Qmailadmin

2003-07-16 Thread spork
On Wed, 16 Jul 2003, Justin Couto wrote:

 Maybe if I get time in the future I could put an example up, but I am
 not sure when that will be.

To save yourself a little work, how about a few select screenshots?  I'm
sure there's plenty of people that are curious, but not quite curious
enough that they're going to install it.

Thanks,

Charles

 Justin C.

 -Original Message-
 From: Linux [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 15, 2003 5:44 PM
 Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: [vchkpw] Seamless Integration - Finally Posted - New Look,
 Feel, and Navigation for Qmailadmin

 Do you have an URL that we can look at to see this in action?  I would
 love
 to do something like this myself!

 Thank you,

 Linux

  Hello Everyone,
 
  I am writing in response to someone that asked how we seamlessly
  integrated squirrelmail and qmailadmin using iframes and so a user
  doesn't have to login to each application after initially logging in.
 
  This was a pretty simple task using PHP.
 
  Instruction:
 
  First we created our administrative shell.  This contained a header
 and
  a footer in two separate PHP files.
 
  Next we created our own login.php file that asked for a username and
  password.  This script included the header.php and the footer.php
 
  Once a person submits the login form contained in the login.php page,
 we
  use PHP pop functions to authenticate them on our mail servers.  If
  there is a successful authentication, we break the email address apart
  into 3 variables.  The variables are username, domainname, and
 password.
 
 
  These variable are then added into a session and the users gets
  redirected to our squirrmail.php login script.
 
  Our squirmail.php script includes our header.php script, the line for
  the Iframe that points to the squirmail login script and our
 footer.php
  script.
 
  Our header.php script keeps the session running.  At the top of the
 page
  in the header script we have a navigation bar with 2 icons in it.  The
  icons point to our squirmail.php and our qmailadmin.php scripts.
 
  Our qmailadmin.php script is setup exactly like out squirrelmail.php
  script.  It contains the header that keeps the seesion information and
 a
  line that includes the Iframe that points to the qmailadmin login
 script
  and our footer.php script.
 
  The two icons in the header that allow you to switch between the two
  different application have dtnamic links that get built by the
  information stored in the session.  So basically the username and
  password get passed through the links when they are clicked.  The
 links
  are built and populated via the session variables.
 
  This all works like a charm.
 
  I realize I could have been a little clearer explaining this, but I
  figure most of you with programming experience should be able to
 figure
  it out.
 
  I hope this helps.
 
  Justin C.
 
 
 







Re: [vchkpw] Seamless Integration - Finally Posted - New Look, Feel, and Navigation for Qmailadmin

2003-07-16 Thread Ken Jones
I'd like to see it too. I'm interested in adding in access
to dnsadmin in a frame.

Ken Jones


On Wednesday 16 July 2003 12:31 pm, spork wrote:
 On Wed, 16 Jul 2003, Justin Couto wrote:
  Maybe if I get time in the future I could put an example up, but I am
  not sure when that will be.

 To save yourself a little work, how about a few select screenshots?  I'm
 sure there's plenty of people that are curious, but not quite curious
 enough that they're going to install it.

 Thanks,

 Charles

  Justin C.
 
  -Original Message-
  From: Linux [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, July 15, 2003 5:44 PM
  Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
  Subject: Re: [vchkpw] Seamless Integration - Finally Posted - New Look,
  Feel, and Navigation for Qmailadmin
 
  Do you have an URL that we can look at to see this in action?  I would
  love
  to do something like this myself!
 
  Thank you,
 
  Linux
 
   Hello Everyone,
  
   I am writing in response to someone that asked how we seamlessly
   integrated squirrelmail and qmailadmin using iframes and so a user
   doesn't have to login to each application after initially logging in.
  
   This was a pretty simple task using PHP.
  
   Instruction:
  
   First we created our administrative shell.  This contained a header
 
  and
 
   a footer in two separate PHP files.
  
   Next we created our own login.php file that asked for a username and
   password.  This script included the header.php and the footer.php
  
   Once a person submits the login form contained in the login.php page,
 
  we
 
   use PHP pop functions to authenticate them on our mail servers.  If
   there is a successful authentication, we break the email address apart
   into 3 variables.  The variables are username, domainname, and
 
  password.
 
   These variable are then added into a session and the users gets
   redirected to our squirrmail.php login script.
  
   Our squirmail.php script includes our header.php script, the line for
   the Iframe that points to the squirmail login script and our
 
  footer.php
 
   script.
  
   Our header.php script keeps the session running.  At the top of the
 
  page
 
   in the header script we have a navigation bar with 2 icons in it.  The
   icons point to our squirmail.php and our qmailadmin.php scripts.
  
   Our qmailadmin.php script is setup exactly like out squirrelmail.php
   script.  It contains the header that keeps the seesion information and
 
  a
 
   line that includes the Iframe that points to the qmailadmin login
 
  script
 
   and our footer.php script.
  
   The two icons in the header that allow you to switch between the two
   different application have dtnamic links that get built by the
   information stored in the session.  So basically the username and
   password get passed through the links when they are clicked.  The
 
  links
 
   are built and populated via the session variables.
  
   This all works like a charm.
  
   I realize I could have been a little clearer explaining this, but I
   figure most of you with programming experience should be able to
 
  figure
 
   it out.
  
   I hope this helps.
  
   Justin C.





[vchkpw] Seamless Iframe Integration -New Look, Feel, and Navigation for Qmailadmin

2003-07-16 Thread Justin Couto
Hello Everyone,

Per Charles, Ken, and a few others requests, I have posted some screen
shots showing how we have seamlessly integrated the squirrelmail and
qmailadmin software application together under one login.

This could be used to integrate these and other application, so to your
customers all these different software application look uniform and as
one.

This makes it easier for small companies like ours to compete and allows
us to give our customers big company functionality utilizing the many
open source utilities available to us.  Everything can be centralized
and it makes it easier on the customer, your support teams, and your
development teams.

Building a shell application that could iframe in a multitude of other
application with very little work may be another good open source
project that could be started.

We have posted 4 screenshots and brief instructions on how to
incorporate different apps using Iframes and PHP.

We posted this right below the instruction and screenshots for the
qmailadmin interface we designed.

You can see this and download the files for the qmailadmin interface we
designed here:

http://www.somnioworld.com/qmailadmin.php

Thanks all and I hope this helps!

Justin C.



[vchkpw] vmysql.h patch ??

2003-07-16 Thread Alan Murrell
Hello,

There is a qmailadmin-toaster project which has
created RPMS for creating a Qmailadmin toaster.

As part of their software, they have patched vmysql.h
so that the database information is kept in a file
called sql in the /var/qmail/control directory
(actually, a more appropriate place would rpolly be
~vpopmail/etc, but that's another matter).

Anyway, I much prefer this idea of being able to
change MySQL server information via a single file, as
opposed to recompiling vpopmail (and all the tools
that uses it's libs, like Qmailadmin) whenever you
wish to change the server that the vpopmail MySQL
database is stored on.

I have included the patch below (it's for 5.3.8),
since it is open source, and hopefully this can make
it into the mainstream branch?

Please note: I am not the author of this patch, so
please do not give me credit for it; I am just trying
to bring good code to the masses :-)

Thanks!

Alan Murrell [EMAIL PROTECTED]


diff -Naur ./vmysql.c ../vpopmail-5.3.8/vmysql.c
--- ./vmysql.c  Sat Apr  6 16:30:30 2002
+++ ../vpopmail-5.3.8/vmysql.c  Thu Aug  1 01:40:08
2002
@@ -93,11 +93,50 @@
 void vcreate_lastauth_table();
 #endif

+/*
+ * Qmail Toaster Patch
+ */
+void leggi_parametri_sql() {
+
+   FILE *fp;
+   if(fp=fopen(/var/qmail/control/sql,r)) {
+   char line[256];
+   char tag[256];
+   char value[256];
+
+   while(fgets(line,256,fp)) {
+   char *comment;
+   if(comment=strchr(line,'#')) {
+   *comment='\0';
+   }
++   if(sscanf(line,%s\t%s\n,
tag, value) != 2) continue;
+
+   if(!strcasecmp(tag,server)) {
+   sprintf( MYSQL_UPDATE_SERVER,
%s, value ) ;
+   sprintf( MYSQL_READ_SERVER,  
%s, value ) ;
+   } else if(!strcasecmp(tag,user)) {
+   sprintf( MYSQL_UPDATE_USER,
%s, value ) ;
+   sprintf( MYSQL_READ_USER,
%s, value ) ;
+   } else if(!strcasecmp(tag,pass)) {
+   sprintf( MYSQL_UPDATE_PASSWD,
%s, value ) ;
+   sprintf( MYSQL_READ_PASSWD,
%s, value ) ;
+   }
+
+   }
+
+   }
+
+}
+
+
 /*
  * Open a connection to mysql for updates
  */
 int vauth_open_update()
 {
+leggi_parametri_sql() ;
+
 if ( update_open != 0 ) return(0);
 update_open = 1;

@@ -155,6 +194,8 @@
  */
 int vauth_open_read()
 {
+leggi_parametri_sql() ;
+
 /* if we are already connected, just return */
 if ( read_open != 0 ) return(0);
 read_open = 1;
@@ -186,6 +227,8 @@
  */
 int vauth_open_read_getall()
 {
+leggi_parametri_sql() ;
+

 /* if we are already connected, just return */
 if ( read_getall_open != 0 ) return(0);
diff -Naur ./vmysql.h ../vpopmail-5.3.8/vmysql.h
--- ./vmysql.h  Sat Apr  6 16:30:31 2002
+++ ../vpopmail-5.3.8/vmysql.h  Thu Aug  1 01:38:31
2002
@@ -19,14 +19,26 @@
 #define VPOPMAIL_MYSQL_H

 /* Edit to match your set up */
-#define MYSQL_UPDATE_SERVER localhost
-#define MYSQL_UPDATE_USER   root
-#define MYSQL_UPDATE_PASSWD secret
-
-#define MYSQL_READ_SERVER   localhost
-#define MYSQL_READ_USER root
-#define MYSQL_READ_PASSWD   secret
+//#define MYSQL_UPDATE_SERVER localhost
+//#define MYSQL_UPDATE_USER   root
+//#define MYSQL_UPDATE_PASSWD secret
+//
+//#define MYSQL_READ_SERVER   localhost
+//#define MYSQL_READ_USER root
+//#define MYSQL_READ_PASSWD   secret
 /* End of setup section*/
+
+/* QmailToaster patch */
+char db_host[256] ;
+char db_user[256] ;
+char db_password[256] ;
+char MYSQL_UPDATE_SERVER[256] ;
+char MYSQL_UPDATE_USER[256] ;
+char MYSQL_UPDATE_PASSWD[256] ;
+char MYSQL_READ_SERVER[256] ;
+char MYSQL_READ_USER[256] ;
+char MYSQL_READ_PASSWD[256] ;
+void leggi_parametri_sql() ;

 /* defaults - no need to change */
 #define MYSQL_VPORT 0



__ 
Post your free ad now! http://personals.yahoo.ca



[vchkpw] vpopmail with postgres support

2003-07-16 Thread zafar rizvi
hi
i am trying to compile vpopmail with centralized database.
But failed ?
So i decide to leave mysql support
Anyhow now tell me plz how i use postgresql as centerlized database, and how
i will specify as postgresql support in compiling and where i will change in
the vpgsql.h file.

Thanks
ZafAr