Re: qmail smtp auth

2001-10-31 Thread gjerdelist

[Redirected from the qmailadmin list]

On Mon, 29 Oct 2001, Bill Shupp wrote:
 1. Apply the smtp-auth patc to qmail found here:
 http://members.elysium.pl/brush/qmail-smtpd-auth/
[snip - instructions on how to get smtp auth working with vpopmail]

Hi,
I just did this, and I ran into a problem.

qmail-smtpd runs like this(uid 101 = qmaild, gid 16 = nofiles)
tcpserver -v -c100 -R -H -X -x/var/service/qmail-smtpd/tcprules.cdb -u101 
-g16 0 smtp qmail-smtpd /home/vpopmail/bin/vchkpw

vpopmail is installed as vpopmail.vchkpw (89.89)
qmaild is a member of vchkpw group

The authentication works(when bad user or password the setgid 
doesn't happen), but it doesn't return properly:
Oct 31 10:42:01 munin vpopmail[2864]: vchkpw: login success 
[EMAIL PROTECTED]:xxx.xxx.xxx.xxx
Oct 31 10:42:01 munin vpopmail[2864]: vchkpw: setgid 89 failed errno 1 
[EMAIL PROTECTED]:xxx.xxx.xxx.xxx

Not sure why it would try a setgid after authentication worked..  I've 
also tried running qmail-smtpd as qmaild.qmaild, but no difference.

Any ideas?

Thanks for any help,
Ole Gjerde




Pop after SMTP doesn't work

2001-10-31 Thread Axel Stallknecht

Hi,

can anyone tell me, what the files open-smtp.tmp. means ?
All files are 0 sized.
I have a lot of these files in /home/vpopmail/etc/.
And roaming users doesn't work.
vpopmail makes no entries to the open-smtp file.
Why is that ?
Anything else in my qmail/vpopmail configuration works fine.

cu
Axel




rcphost + smtp auth

2001-10-31 Thread Krishna Dagli

Hi,

I'm using qmail + vpopmail on the mail server.(along with other stuff) 
I'm doing, first fetch mail from the server then only you can 
send mail through me. ie. support for roaming users in vpopmail.

When I use exim + fetchmail on my local machine
(both of them gets started as soon as ppp connection is up.) 
Some time I get rcphost not allowed(553) from my mail server. This is 
peftectly fine in case I've not yet fetched my mail or fetchmail has
not run successfully.

But the problem is that first qmail+vpopmail accepts the entire
message and after some time (some time couple of hours)
it bounces the message back with 553 error, which is
a problem if it does not want to relay it should kill the smtp
connection very early in the game. 

Second problem is the bounced message is some time clipped which
forces me to recreate entire message again, which again a problem.

Please help, how do I solve this problem.
Thanks in advance.
==
Krishna.



strange behaviour

2001-10-31 Thread Valerio Santinelli



I'm currently using the stable version of vpopmail 
5.0 and I'm having this problem:

- I setted up a main domain (digi-web.it) and some 
aliases to that domain (digisoft-multimedia.it and 
digisoftmultimedia.it)
- I added some users (tanis, bitbrk, 
etc..)
- I added a user with a "." in the name 
(lino.ciociano)
- I added aliases for the first set of users 
(valerio.santinelli, marco.gelpi, etc..)
- I added an alias for lino.ciociano 
(lino)


Now, when I send a mail to [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] 
everything works fine but if I send a mail to [EMAIL PROTECTED] 
I get an error saying that the mailbox does not exists.

Oct 31 13:42:29 www qmail: 1004532149.917729 new 
msg 499877Oct 31 13:42:29 www qmail: 1004532149.917824 info msg 499877: 
bytes 242 from [EMAIL PROTECTED] qp 
1396 uid 0Oct 31 13:42:29 www qmail: 1004532149.920518 starting delivery 7: 
msg 499877 to local digisoft-multimedia.it-lino.ciociano@digisoft-multimedia.itOct 
31 13:42:29 www qmail: 1004532149.920566 status: local 1/10 remote 0/20Oct 
31 13:42:29 www qmail: 1004532149.930234 delivery 7: failure: 
Sorry,_no_mailbox_here_by_that_name._vpopmail_(#5.1.1)/Oct 31 13:42:29 www 
qmail: 1004532149.930316 status: local 0/10 remote 0/20Oct 31 13:42:29 www 
qmail: 1004532149.934216 bounce msg 499877 qp 1400Oct 31 13:42:29 www qmail: 
1004532149.934296 end msg 499877


All the other addresses are working 
fine.

--Valerio Santinellihttp://www.digisoft-multimedia.it/


RE: Unable to chdir to vpopmail/usrs diretory error in LDAP module

2001-10-31 Thread claudius frankewitz

I have done something simular with the schema file.
But vpopmail dose not add an mail entry. So change you last line in the
schema file to that:

# Object Class Definitions

objectclass ( 1.3.6.1.4.1.7914.1.2.2.1 NAME 'qmailUser'
  DESC 'QMail-LDAP User' SUP top AUXILIARY
  MUST ( uid )
  MAY ( mail $ mailMessageStore $ homeDirectory $ userPassword $
mailAlternateAddress $ qmailUID $ qmailGID $ mailQuota $
mailHost $ mailForwardingAddress $ deliveryProgramPath $
qmailDotMode $ deliveryMode $ mailReplyText $
accountStatus $ qmailAccountPurge $ qmaildomain) )


Mail is now an optional field. Now you wont get errors, if you add an user.
But you have still to maintaine the ldap-database (and add the right domain
and email-address). I use the gq tool.


So far. But can anybody tell me why every f*** peace of qmail-addon need it
own schema file. courrier imap has it one one.

claudius





Mysql-Relay, Vpopmail SMTP ???

2001-10-31 Thread Toph Kemmann

Hello,
I need help to properly START qmail and smtp (with mysql-relay) 
I get no error messages (or I don´t find it) when I send mail and
getting mail is no problem (including saving data in mysqltable
relay)!

/home/vpopmail/bin/.vpopbull -f file.txt 192.168.0.99
works fine !!

versions: vpopmail-5.0 (home/vpopmail/ -- user vpopmail 89 and group
89 vchkpw), qmail-1.03 (user qmaild), MySQL 3.23.42, (Suse7.2)

POP Start:
-
tcpserver -u89 -g89 0 pop3 /var/qmail/bin/qmail-popup 192.168.0.99
/home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir 21 |
/var/qmail/bin/splogger pop3 3   
-
SMTP Start:
-
tcpserver -v -u89 -g89 0 smtp /var/qmail/bin/qmail-smtpd 21 |
/var/qmail/bin/splogger smtpd 3  
-
Qmail Start:
rc script:
-
#!/bin/sh
# Using splogger to send the log through syslog.
# Using qmail-local to deliver messages to ~/Mailbox by default.
exec env - PATH=/var/qmail/bin:$PATH \
qmail-start ./Maildir splogger qmail
-

I´ve ALSO tried to install Daemontools and supervice - run - scripts ..
with following startscript:

#!/bin/sh

PATH=/var/qmail/bin:/usr/local/bin:/usr/bin:/bin
export PATH

case $1 in
start)
echo -n Starting qmail: svscan
cd /var/qmail/supervise
env - PATH=$PATH svscan 
echo $!  /var/run/svscan.pid
echo .
;;
stop)

...
..
.
_

output:
-
www2:~ # qmail start
Starting qmail: svscan.
www2:~ # supervise: usage: supervise [ -rsudox ] dir program args ...
supervise: usage: supervise [ -rsudox ] dir program args ...
supervise: usage: supervise [ -rsudox ] dir program args ...
supervise: usage: supervise [ -rsudox ] dir program args ...
-
and only following processes ps -au --

 8750 pts/5S  0:00 svscan
 8755 pts/5Z  0:00 [supervise defunct]
 8756 pts/5Z  0:00 [supervise defunct]
 8757 pts/5Z  0:00 [supervise defunct]
 8758 pts/5Z  0:00 [supervise defunct]

/var/log/messages says when I send mail :
...
-
Oct 31 13:26:59 www2 smtpd: 1004531219.451765 tcpserver: pid 7642 from 192.168.0.69
Oct 31 13:26:59 www2 smtpd: 1004531219.522431 tcpserver: ok 7642 :192.168.0.99:25 
:192.168.0.69::1296
Oct 31 13:26:59 www2 smtpd: 1004531219.626149 tcpserver: end 7642 status 0
Oct 31 13:26:59 www2 smtpd: 1004531219.626688 tcpserver: status: 0/40
-

Thanks a lot in advance !
Toph
[EMAIL PROTECTED]





vpopmail and procmail

2001-10-31 Thread Charlie Chrisman

could someone give me a brief run down of how to use procmail with qmail and
vpopmail?  or at least point me in the right direction?

thanks
charlie




tcp.smtp is disappearing after a clearopensmtp

2001-10-31 Thread Romain GRIFFITHS

tcp.smtp is in ~vpopmail/etc/
I have compiled vpopmail-5.0 with enable-roaming-users=y.

but when I invoke clearopensmtp it create the file 

tcp.smtp.cdb

with the static relay present in tcp.smtp
but the creation erase tcp.smtp magically.

My OS is FreeBSD 4.4.

Thank you.




Re: qmail smtp auth

2001-10-31 Thread Bill Shupp


On Wednesday, October 31, 2001, at 03:52 AM, [EMAIL PROTECTED] wrote:

 [Redirected from the qmailadmin list]

 On Mon, 29 Oct 2001, Bill Shupp wrote:
 1. Apply the smtp-auth patc to qmail found here:
 http://members.elysium.pl/brush/qmail-smtpd-auth/
 [snip - instructions on how to get smtp auth working with vpopmail]

 Hi,
 I just did this, and I ran into a problem.

 qmail-smtpd runs like this(uid 101 = qmaild, gid 16 = nofiles)
 tcpserver -v -c100 -R -H -X -x/var/service/qmail-smtpd/tcprules.cdb 
 -u101
 -g16 0 smtp qmail-smtpd /home/vpopmail/bin/vchkpw

Don't you need /bin/true at the end?

 vpopmail is installed as vpopmail.vchkpw (89.89)
 qmaild is a member of vchkpw group

 The authentication works(when bad user or password the setgid
 doesn't happen), but it doesn't return properly:
 Oct 31 10:42:01 munin vpopmail[2864]: vchkpw: login success
 [EMAIL PROTECTED]:xxx.xxx.xxx.xxx
 Oct 31 10:42:01 munin vpopmail[2864]: vchkpw: setgid 89 failed errno 1
 [EMAIL PROTECTED]:xxx.xxx.xxx.xxx

smtp-auth authentications are not logged in my environment.

 Not sure why it would try a setgid after authentication worked..  I've
 also tried running qmail-smtpd as qmaild.qmaild, but no difference.

 Any ideas?

I'd try /bin/true at the end of the start script.

Regards,

Bill Shupp




Changing Quotas

2001-10-31 Thread Security Alerts

I've seen this message posted dozens of times in the archive but nobody
seems to give a full answer.

I have a vdomain setup without any problems.

Unfortunately, I screwed up on the quota and set it far too low. I tried
re-installing vpopmail with the correct quota but all my new users still
have the same old low quota. (same problem lots of people seem to have)

The common response to this question is that you can change this with
vsetuserquota which is fine for existing users but how can I change it for
all NEW users I create? I've seen multiple posts that you can set it for the
domain but how??

e.g. if my domain is domain.com what is the exact syntax to change  the
quota to 10MB??

The help file doesn't tell me anything about changing it for a domain only 
for one user.

Thanks in advance. 



Re: Changing Quotas

2001-10-31 Thread Bill Shupp


On Wednesday, October 31, 2001, at 02:14 PM, Security Alerts wrote:

 I've seen this message posted dozens of times in the archive but nobody
 seems to give a full answer.

 I have a vdomain setup without any problems.

 Unfortunately, I screwed up on the quota and set it far too low. I tried
 re-installing vpopmail with the correct quota but all my new users still
 have the same old low quota. (same problem lots of people seem to have)

 The common response to this question is that you can change this with
 vsetuserquota which is fine for existing users but how can I change it 
 for
 all NEW users I create? I've seen multiple posts that you can set it 
 for the
 domain but how??

 e.g. if my domain is domain.com what is the exact syntax to change  the
 quota to 10MB??

 The help file doesn't tell me anything about changing it for a domain 
 only
 for one user.

 Thanks in advance.

The default quota is set at compile time.  If you want to change it, you 
need to recompile with the new quota setting.

To change all the quotas for domain.com, you should be able to do:

vsetuserquota domain.com 1000

or vsetuserquota domain.com 10MB

Regards,

Bill Shupp




Re: Changing Quotas

2001-10-31 Thread Security Alerts

That doesn't seem to work. I'm doing it as root. Does that make any 
difference.

I do a 'vsetuserquota domain.com 10MB' and then when I had a user to 
domain.com they still have the old settings.

Can somebody explain to me why recompiling with the new settings doesn't 
reset the default quota limit?? Or would it work if I deleted the domain, 
reinstalled vpop and recreate the domain??

Sorry for all the silly questions but I have 300 users to add to the server 
and I don't want to have to change the settings for all the users 
individually.



On Wednesday 31 October 2001 12:29, you wrote:
 On Wednesday, October 31, 2001, at 02:14 PM, Security Alerts wrote:
  I've seen this message posted dozens of times in the archive but nobody
  seems to give a full answer.
 
  I have a vdomain setup without any problems.
 
  Unfortunately, I screwed up on the quota and set it far too low. I tried
  re-installing vpopmail with the correct quota but all my new users still
  have the same old low quota. (same problem lots of people seem to have)
 
  The common response to this question is that you can change this with
  vsetuserquota which is fine for existing users but how can I change it
  for
  all NEW users I create? I've seen multiple posts that you can set it
  for the
  domain but how??
 
  e.g. if my domain is domain.com what is the exact syntax to change  the
  quota to 10MB??
 
  The help file doesn't tell me anything about changing it for a domain
  only
  for one user.
 
  Thanks in advance.

 The default quota is set at compile time.  If you want to change it, you
 need to recompile with the new quota setting.

 To change all the quotas for domain.com, you should be able to do:

 vsetuserquota domain.com 1000

 or vsetuserquota domain.com 10MB

 Regards,

 Bill Shupp