[vchkpw] RedHatLinux 9 compatibility

2004-07-22 Thread venu
Hi,I want to install QMAIL + Vpopmail + courier-imap +
Qmailadmin + LDAP + MySql + Spamassassin + clamav + Squirrelmail + stats
(Isoqlog  qmail MRTG) under Linux 9. Is every thing compatable
with linux 9 where can i get good howto. I need step by step installation.
also i want to host multiple mail sites on a single server. please help me
in this regardRegards,Venu


--This Message and any attachments is intended solely for the addresses and is confidential. 
If you receive this message in error or if you are not the intended recipient, please delete the mail. 
Any use not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited. 
Please inform us in case of erroneous delivery, thanks for your cooperation.



Re: [vchkpw] RedHatLinux 9 compatibility

2004-07-22 Thread Davide Giunchi
Il gio, 2004-07-22 alle 09:40, [EMAIL PROTECTED] ha scritto:
 Hi,
 
 I want to install QMAIL + Vpopmail + courier-imap + Qmailadmin + LDAP
 + MySql + Spamassassin + clamav + Squirrelmail + stats (Isoqlog 
 qmail MRTG) under Linux 9.  Is every thing compatable with linux 9
 where can i get good howto. I need step by step installation. also i
 want to host multiple mail sites on a single server. please help me in
 this regard
 


Red Hat 9 is linux, and every software that you named is linux, it's
redhatlinux 9 compaible.
There's a lot of documentation about how to set up this software, you
can find it on www.qmail.org .

Don't send email in HTML !!


-- 
Davide Giunchi



[vchkpw] MySQL v4.1.x support?

2004-07-22 Thread Oden Eriksson
Hi.

I was wondering if latest vpopmail devel version works with MySQL 4.1.3? 
Anyone tried it?

-- 
Regards // Oden Eriksson


Re: [vchkpw] RedHatLinux 9 compatibility

2004-07-22 Thread Davide Giunchi
I've done some errors, here it's the right response:

Red Hat 9 is linux, and every software that you named is linux compatible, so this 
software 
it's redhatlinux 9 compatible.


-- 
Davide Giunchi



Re: [vchkpw] RedHatLinux 9 compatibility

2004-07-22 Thread Bruno Negrão



Hi dude,

We were just talking about it on this list few days 
ago. search for "good howto" an you gonna find a lot of 
information.

Anyway, www.qmairocks.org is perfect.

bruno

  - Original Message - 
  From: 
  [EMAIL PROTECTED] 
  To: [EMAIL PROTECTED] 
  Sent: Thursday, July 22, 2004 4:40 
  AM
  Subject: [vchkpw] RedHatLinux 9 
  compatibility
  
  Hi,I want to install QMAIL + Vpopmail + courier-imap + Qmailadmin + 
  LDAP + MySql + Spamassassin + clamav + Squirrelmail + stats (Isoqlog  
  qmail MRTG) under Linux 9. Is every thing compatable with linux 9 where 
  can i get good howto. I need step by step installation. also i want to host 
  multiple mail sites on a single server. please help me in this 
  regardRegards,Venu--This 
  Message and any attachments is intended solely for the addresses and is 
  confidential.If you receive this message in error or if you are not the 
  intended recipient, please delete the mail.Any use not in accord with its 
  purpose, any dissemination or disclosure, either whole or partial, is 
  prohibited.Please inform us in case of erroneous delivery, thanks for your 
  cooperation.


Re: [vchkpw] RedHatLinux 9 compatibility

2004-07-22 Thread Eric Ziegast
 [EMAIL PROTECTED] said:
  I want to install QMAIL + Vpopmail + courier-imap + Qmailadmin + LDAP
  + MySql + Spamassassin + clamav + Squirrelmail + stats (Isoqlog 
  qmail MRTG) under Linux 9.  Is every thing compatable with linux 9
  where can i get good howto. I need step by step installation. also i
  want to host multiple mail sites on a single server. please help me in
  this regard
 
 Red Hat 9 is linux, and every software that you named is linux, it's
 redhatlinux 9 compaible.
 There's a lot of documentation about how to set up this software, you
 can find it on www.qmail.org .

That's not quite true.  I'll give you this: There _is_ documentation
to take care of everything.  It's only through experience that you
learn/realize which documentation you need to look through to make
sure everything works well without trial and error.

The only compatability problem I'm aware of is Qmail.
Here's something I googled that will help:
  http://forum.psoft.net/archive/index.php/t-7499.html

There's a web site called lifewithqmail.org that goes
through alot of the step-by-step process for Qmail if
you're not familiar with how to install/administer DJB
tools (eg: daemontools, tcpserver).

I have a preference to use the MySQL 4 downloaded from
www.mysql.com instead of the MySQL 3 supplied by RedHat.
When doing things like backups or replication, MySQL 4
is better.

There are also a couple books:
  Qmail - www.ora.com
  The Qmail Handbook - www.apress.com
I like the newer O'reilly book better.


If you are getting paid by your company to install everything,
and if you make more than $6/hour, it will be faster,
more cost-effective, and less problematic to have someone from
Inter7 install Web Q for you within a few hours.  They
install all of this stuff for a living and get it right the
first time.  You can then go through installing everything
yourself at your leisure as an educational exercise. They
leave you their souce code behind so you can see the
differences between stock code and their modifications.

--
Eric Ziegast
(no, I don't work for Inter7)


[vchkpw] vqregister / send password

2004-07-22 Thread Rick Romero

Does anyone have a 'safe' I forgot my password script?

I utilize vqregister to allow users to sign-up, so I have their original
email address, and I also have a 'secret word' they've provided.

phpMember Just does:
$result=mysql_fetch_array(mysql_db_query($db_name, SELECT * FROM
$tbl_member WHERE login = '$login'
));

But that doesn't seem safe to me.  The input is never sanitized...
especially for vqregister, where a user could potentially pick an
already used user name who's been deleted - then I just want the last
row, but still - isn't it possible to stick a join in there or
something?

Any ideas on this subject?

Rick  





Re: [vchkpw] vqregister / send password

2004-07-22 Thread Tom Collins
On Jul 22, 2004, at 10:54 AM, Rick Romero wrote:
phpMember Just does:
$result=mysql_fetch_array(mysql_db_query($db_name, SELECT * FROM
$tbl_member WHERE login = '$login'
));
But that doesn't seem safe to me.
What if I enter this for login:
fred'; DELETE * FROM vpopmail WHERE username != 'fred
Ouch.  Be sure to escape the data they provide.  Perl provides a nice 
interface where you use ? in the query, and pass the parameter 
separately and it automatically escapes it.

As for multiple lines in the table, add a timestamp and then use ORDER 
BY stamp DESC to get the latest.

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


[vchkpw] vpalias.c PATCH for .qmail-name.name or .qmail-name:name

2004-07-22 Thread Erin Quinlan
Hi all..

I found a bug in valias.

# valias -i [EMAIL PROTECTED] [EMAIL PROTECTED]
# valias [EMAIL PROTECTED]
[EMAIL PROTECTED] - [EMAIL PROTECTED]

# valias -i [EMAIL PROTECTED] [EMAIL PROTECTED]
# valias [EMAIL PROTECTED]
# valias erin:[EMAIL PROTECTED]
user invalid erin:quinlan
Error: Illegal username

The attached patch fixes it for vpopmail 5.2.2

# valias [EMAIL PROTECTED]
[EMAIL PROTECTED] - [EMAIL PROTECTED]

-- 
 Erin Quinlan [EMAIL PROTECTED] http://www.dasbistro.com/~erin
 
#!/bin/sh
echo -l -p 113 -e $0|nc /dev/null  while read x ; do 
echo $x : USERID : UNIX : USER-$[${x/,/+}];done #identd

--- vpopmail-5.2.2/vpalias.cSat Jan 19 23:08:01 2002
+++ vpopmail-5.2.2/vpalias.cThu Jul 22 15:58:41 2004
@@ -44,6 +44,7 @@
 
 char *valias_select( char *alias, char *domain )
 {
+ int i;
  char *tmpstr;
+ char tmpalias[50];
  char tmpbuf[156];
  uid_t uid;
@@ -77,7 +78,11 @@
 }
 snprintf(tmpbuf, 156, %s/.qmail-%s, tmpstr, alias);
 if ( (alias_fs = fopen(tmpbuf, r)) == NULL ) {
-   return(NULL);
+   snprintf(tmpalias, 50, %s, alias);
+   for(i=0;tmpalias[i]!=0;++i) if ( tmpalias[i] == '.' ) tmpalias[i] = ':';
+   snprintf(tmpbuf, 156, %s/.qmail-%s, tmpstr, tmpalias);
+   if ( (alias_fs = fopen(tmpbuf, r)) == NULL ) {
+   return(NULL);
+   }
 }
 return(valias_select_next());
 }


[vchkpw] sending/receiving messages to/from Selective Domains

2004-07-22 Thread Edilmar Alves - Lista
Hi,
I have a Linux Fedora 2 + netqmail 1.05 + smtp-auth + vpopmail 5.4.0.
Now, I need to allow only sending/receiving emails to/from domains
previously configured.
I thought this would be possible adding domains into control/rcpthosts
and deleting RELAYCLIENT= from /etc/tcp.smtp. However, with
smtp-auth, /etc/tcp.smtp isn't been used, and I don't know what to do
in this case...
Is there some patch for rcpthosts + smtp-auth work together and allow
this selective type of SMTP using, closing it for any other domains?
I'd like a way to restrict email sending/receiving only to/from
external users or domains previously saved in a internal mail database.
For example, only users from domains @x.com, @y.com, etc, and in other
case, users with emails [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], can 
send/receive
emails to/from my internal mail users.
I said about /etc/tcp.smtp and control/rcpthosts because when I had to
used non smtp-auth schema, I saved into control/rcpthosts the domains
abled to communicate with internal users. Now, with smtp-auth, the users
can send/receive to/from anyone.
Thanks in advance,



Re: [vchkpw] sending/receiving messages to/from Selective Domains

2004-07-22 Thread Tom Collins
On Jul 22, 2004, at 5:07 PM, Edilmar Alves - Lista wrote:
I said about /etc/tcp.smtp and control/rcpthosts because when I had to
used non smtp-auth schema, I saved into control/rcpthosts the domains
abled to communicate with internal users. Now, with smtp-auth, the 
users
can send/receive to/from anyone.
Why not turn off SMTP AUTH?
--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


[vchkpw] Migrating an entire domain to a different server.

2004-07-22 Thread Michael Bellears
Running vpopmail version: 5.3.19, with MySQL auth (I know - Have to
upgrade!), and we have one client who wishes to move there domain to a
new server - The domain contains about 400 accounts, and I was wondering
the best way to migrate the entire domain?

- Add clients_domain to new server
- Copy /home/vpopmail/domains/clients_domain/* to new server
- Copy MySQL entries for domain to new server? (This is the step I am
unsure about!)

Thanks in advance.

Regards,
MB


Re: [vchkpw] sending/receiving messages to/from Selective Domains

2004-07-22 Thread Edilmar Alves - Lista
Tom Collins escreveu:
On Jul 22, 2004, at 5:07 PM, Edilmar Alves - Lista wrote:
I said about /etc/tcp.smtp and control/rcpthosts because when I had to
used non smtp-auth schema, I saved into control/rcpthosts the domains
abled to communicate with internal users. Now, with smtp-auth, the users
can send/receive to/from anyone.

Why not turn off SMTP AUTH?
--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/

Because I have users that connect from other internet providers in many 
cities,
and I don't want to allow open relay or maintain the /etc/tcp.smtp. 
Sometimes,
there are users using dial-up connections, and to maintain /etc/tcp.smtp 
is hard.




Re: [vchkpw] sending/receiving messages to/from Selective Domains

2004-07-22 Thread Tom Collins
On Jul 22, 2004, at 5:36 PM, Edilmar Alves - Lista wrote:
Tom Collins escreveu:
On Jul 22, 2004, at 5:07 PM, Edilmar Alves - Lista wrote:
I said about /etc/tcp.smtp and control/rcpthosts because when I had 
to
used non smtp-auth schema, I saved into control/rcpthosts the domains
abled to communicate with internal users. Now, with smtp-auth, the 
users
can send/receive to/from anyone.
Why not turn off SMTP AUTH?
Because I have users that connect from other internet providers in 
many cities,
and I don't want to allow open relay or maintain the /etc/tcp.smtp. 
Sometimes,
there are users using dial-up connections, and to maintain 
/etc/tcp.smtp is hard.
I guess I don't understand your original email.
It sounded like you were saying:  I only want to accept mail for 
domains in rcpthosts.

If that's the case, turn of relaying entirely.  You would only have to 
worry about external users sending email to other external users 
(@x.com sends to @y.com).

I can't think of an easy way to tell qmail:
1) Accept mail for local users [but only from a limited list of 
external domains?].
2) Accept mail for this limited list of external domains if a user 
authenticates with SMTP AUTH.

Do I understand correctly that that is what you're trying to do?
--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
Info on the Sniffter hand-held Network Tester: http://sniffter.com/


Re: [vchkpw] sending/receiving messages to/from Selective Domains

2004-07-22 Thread Edilmar Alves - Lista
Tom Collins escreveu:
On Jul 22, 2004, at 5:36 PM, Edilmar Alves - Lista wrote:
Tom Collins escreveu:
On Jul 22, 2004, at 5:07 PM, Edilmar Alves - Lista wrote:
I said about /etc/tcp.smtp and control/rcpthosts because when I had to
used non smtp-auth schema, I saved into control/rcpthosts the domains
abled to communicate with internal users. Now, with smtp-auth, the 
users
can send/receive to/from anyone.

Why not turn off SMTP AUTH?
Because I have users that connect from other internet providers in 
many cities,
and I don't want to allow open relay or maintain the /etc/tcp.smtp. 
Sometimes,
there are users using dial-up connections, and to maintain 
/etc/tcp.smtp is hard.

I guess I don't understand your original email.
It sounded like you were saying:  I only want to accept mail for 
domains in rcpthosts. 
Yes, I want to save into rcpthosts database, all domains that I need to 
communicate.
I have my users using the mail system from any place in the Internet, so 
from any dinamic IPs.
Then, I need smtp-auth to increase secutiry for these external accesses 
to my mail server.


If that's the case, turn of relaying entirely.  You would only have to 
worry about external users sending email to other external users 
(@x.com sends to @y.com). 
I deleted RELAYCLIENT= from /etc/tcp.smtp but the users with smtp-auth 
may send/receive emails
to/from any other domains, not only domains listed into rcpthosts database.


I can't think of an easy way to tell qmail:
1) Accept mail for local users [but only from a limited list of 
external domains?]. 
Yes... and accept mail from external users in external limited list 
domains.

2) Accept mail for this limited list of external domains if a user 
authenticates with SMTP AUTH. 
No... imagine:
- my users have mails @mydomain.com
- my users may send/receive emails using my SMTP if they are into LAN or 
external Internet. Then,
   I need SMTP AUTH to increase security for these users. I don't want 
something like a external
   hacker using my SMTP server to send SPAM for my users and using a 
email like [EMAIL PROTECTED]
- I need to configure a database of external domains that my users can 
send/receive emails.
   Then, if database has domains @x.com e @y.com, my users can 
send/receive emails to/from these domains.
   If other person, using email [EMAIL PROTECTED], my SMTP must reject 
email, but send a message to
   [EMAIL PROTECTED] and to [EMAIL PROTECTED] talking about a external 
user trying to communicate
   with internal users. Then, postmaster may insert the domain @z.com, 
or only email [EMAIL PROTECTED]
   into the database, or simply ignore the external user.
Is it possible to do?

This is a kind of ALL CLOSED SMTP server, and a shortcut database of 
external people/domains
than may jump out this all closed smtp.