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

2003-07-17 Thread Peter Palmreuther
Hi Matthias,

First: sorry for a mistake in my last mail, the 'egrep' command should
have been executed on '/var/qmail/users/assign', but somthing went wrong
with copy/paste.

On Wed, 16 Jul 2003 21:09:57 +0200 Matthias F. Brandstetter wrote:

>> 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
> =

I first thought I might have one or two ideas on what goes wrong, but
thinking about them I ended up with: "this is nonsense".

So it's debugging time. You have set up / done something _REALLY_
wicked. I don't know what yet, but it must be something from "the outer
limit" :-)
Therefore your have to do _real_ debugging right know:

- figure qmail-smtpd PID (i.e.: figure the PID of 'tcpserver' or 'inetd'
  process that is bound to port 25)
- attach 'strace' (I'm assuming you're running Linux; if you're on *BSD
  use 'truss') to this process:

  strace -tf -o /tmp/qmail-smtpd.log -s 4096 -p $PID_of_QMAIL_SMTPD

- send a mail to '[EMAIL PROTECTED]'
- after the mail has bounces kill the 'strace'.
- post the file '/tmp/qmail-smtpd.log', compress before attaching it to
  a mail, send via PM if passwords might occur in the file (e.g. due to
  SMTP-AUTH used).
  Of course you can have a look at the file yourself and if your think
  you figured the cause of your problem you can drop a note about this
  in the message with attached file and present your theory, for us
  being able to confirm or decline. But _PLEASE_: don't alter the
  content of the file. Don't strip something out, don't anonymize.

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

'rcpthosts' should be enough for the first "acceptance", the error
message you presented indicates the domain ain't found there.
If it were and only "delivery" would fail the error you get back would
be a different one.
-- 
Ciao,
 Pit



[vchkpw] Change Password Script

2003-07-17 Thread David Choo
I know this has been asked millions of times. I've searched the archives
but I found nothing on it.

I'm currently running vpopmail 5.2.1 with qmailadmin. Many of my
customers are changing their password via qmailadmin, but I've gathered
feedback that they would prefer to be able to change password without
login in.

Something like that for forms. 

==
Email Address
Old Password
New Password
Confirm New Password.
==

I've searched high and low, and found nothing on it. My vpopmail setup
is currently using CDB, and to convert to MySQL takes time as I would
need ALL my users to login. Considering the number of inactive accounts
I have, that might take some months down the road.

As such, is there anyone kind enough to guide me on this?

Regards,
David Choo






[vchkpw] clearopensmtp not clearing?

2003-07-17 Thread top
Hi,

I think my clearopensmtp is not working
I have cronjob (clear every 5 minutes)
9-59/5 * * * /home/vpopmail/bin/clearopensmtp 2>&1 > /dev/null

but content of
/home/vpopmail/etc/open-smtp

remains the same, (i think it deletes entries after 3 hours as default for
vpopmail).

Shouldn't open-smtp file be empty after clearopensmtp, or am I missing
something?

I'm using vpopmail-5.3.20.

Thanks





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

2003-07-17 Thread Matthias F. Brandstetter
-- quoting Peter Palmreuther --
> So it's debugging time. You have set up / done something _REALLY_
> wicked. I don't know what yet, but it must be something from "the
> outer limit" :-)
> Therefore your have to do _real_ debugging right know:
>
> - figure qmail-smtpd PID (i.e.: figure the PID of 'tcpserver' or
> 'inetd' process that is bound to port 25)
> - attach 'strace' (I'm assuming you're running Linux; if you're on
> *BSD use 'truss') to this process:
>
>   strace -tf -o /tmp/qmail-smtpd.log -s 4096 -p $PID_of_QMAIL_SMTPD
>
> - send a mail to '[EMAIL PROTECTED]'
> - after the mail has bounces kill the 'strace'.

Ok then, finally I got it ... FINALLY :)

*BIG* thanks to Peter Palmreuther for this great tip with strace. I 
can see in the trace that my mailserver (say: the sender, not the new 
one with this issue) replaced the virtual domain 
"mailtest.reinprecht.at" with "mx2.ebox.at" -- I think because of a 
wrong CNAME/MX record in DNS, I will investigate further...

But when I telnet on port 25 to this new qmail server and send a mail 
manually, then everything works fine.

So, thanks again to Peter and all the others who helped me out with 
this! Greetings, Matthias

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




[vchkpw] Incorrect Servername in Mail Header

2003-07-17 Thread Widmer Hannes
Hi List


I've a problem. I had prepaired my mailserver based on 
Qmail / vpopmail /mysql and it works great, really. 
Now, I was adding a domain from my friend and till this i get 
his domainname in my header, but there need's to be the domain 
"technocity.ch" and not "hardintaste.ch".

Does somebody has a Idea from where this entry comes ?... 
I really want to change this, but I don't know where.


Thanks a lot for your help and sorry about my bad english... Im swiss
*s*..


Greetrings Hannes Widmer

The Header:

Received: from detroit.technocity.ch [62.2.113.167] by mail.cybercity.ch
with ESMTP
  (SMTPD32-7.15) id A08B215007E; Thu, 17 Jul 2003 17:28:11 +0200
Received: (qmail 67927 invoked by uid 89); 17 Jul 2003 15:28:10 -
Received: from unknown (HELO webmail.technocity.ch) (127.0.0.1)
  by localhost with SMTP; 17 Jul 2003 15:28:10 -
Received: from 212.90.198.7
(SquirrelMail authenticated user [EMAIL PROTECTED])
by ! webmail.hardintaste.ch !! with HTTP;
Thu, 17 Jul 2003 17:28:10 +0200 (CEST)
Message-ID:
<[EMAIL PROTECTED]
!!!>
Date: Thu, 17 Jul 2003 17:28:10 +0200 (CEST)
Subject: test
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
User-Agent: SquirrelMail/1.4.0
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
X-Priority: 3
Importance: Normal
X-RCPT-TO: <[EMAIL PROTECTED]>
Status: U
X-UIDL: 346699504

  \|||/ 
  (@ @) 
---o00-(_)-00o--- Cybernet (Schweiz) AG

Hannes Widmer

Junior System Engineer
Cybernet Hostmaster
Schaffhauserstrasse 560
Postfach 
CH-8052 Zuerich

Tel. +41 (0)1 306'46'46
Fax. +41 (0)1 306'95'96

email [EMAIL PROTECTED]

http://www.cybernet.ch





[vchkpw] vadduser 5.3.20 - Segmentation Fault

2003-07-17 Thread Fabio Bastiglia Oliva
Hi,

I'm getting a strange error here...

I'm using vpopmail 5.3.20 with MySQL

I just can't add a user using vadduser, the system returns
Segmentation Fault.

May someone help me to solve this???

Here is a snippet of the strace:

-
...
socket(PF_UNIX, SOCK_STREAM, 0) = 3
fcntl64(3, F_GETFL) = 0x2 (flags O_RDWR)
connect(3, {sin_family=AF_UNIX, path="/var/run/mysql/mysql.sock"}, 110) = 0
brk(0x805e000)  = 0x805e000
setsockopt(3, SOL_IP, IP_TOS, [8], 4)   = -1 EOPNOTSUPP (Operation not supported)
setsockopt(3, SOL_SOCKET, SO_KEEPALIVE, [1], 4) = 0
read(3, "(\0\0\0", 4)   = 4
read(3, "\n3.23.57\0\305\10\0\0f1^ffN4Y\0,\0\10\2\0\0\0\0\0\0"..., 40) = 40
open("/usr/share/mysql/charsets/Index", O_RDONLY|O_LARGEFILE) = 4
fstat64(4, {st_mode=S_IFREG|0644, st_size=549, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0x40015000
read(4, "# sql/share/charsets/Index\n#\n# T"..., 4096) = 549
brk(0x805f000)  = 0x805f000
read(4, "", 4096)   = 0
close(4)= 0
munmap(0x40015000, 4096)= 0
write(3, "\37\0\0\1\r \377\377\377vpopmail\0Z_^G]IIB\0vpopm"..., 35) = 35
read(3, "\3\0\0\2", 4)  = 4
read(3, "\0\0\0", 3)= 3
fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
read(3, 0x805b5f8, 8192)= -1 EAGAIN (Resource temporarily unavailable)
fcntl64(3, F_SETFL, O_RDWR) = 0
write(3, "\237\0\0\0\3select pw_name, pw_passwd, "..., 163) = 163
read(3, "\1\0\0\1", 4)  = 4
read(3, "\10", 1)   = 1
read(3, "\33\0\0\2", 4) = 4
read(3, "\10vpopmail\7pw_name\3 [EMAIL PROTECTED]", 27) = 27
brk(0x8061000)  = 0x8061000
read(3, "\35\0\0\3", 4) = 4
read(3, "\10vpopmail\tpw_passwd\3(\0\0\1\376\3\0\0\0", 29) = 29
read(3, "\32\0\0\4", 4) = 4
read(3, "\10vpopmail\6pw_uid\3\v\0\0\1\3\3\0\0\0", 26) = 26
read(3, "\32\0\0\5", 4) = 4
read(3, "\10vpopmail\6pw_gid\3\v\0\0\1\3\3\0\0\0", 26) = 26
read(3, "\34\0\0\6", 4) = 4
read(3, "\10vpopmail\10pw_gecos\0030\0\0\1\376\3\0\0\0", 28) = 28
read(3, "\32\0\0\7", 4) = 4
read(3, "\10vpopmail\6pw_dir\3\240\0\0\1\376\3\0\0\0", 26) = 26
read(3, "\34\0\0\10", 4)= 4
read(3, "\10vpopmail\10pw_shell\3\24\0\0\1\376\3\0\0\0", 28) = 28
read(3, "#\0\0\t", 4)   = 4
read(3, "\10vpopmail\17pw_clear_passwd\3\20\0\0\1\376\3"..., 35) = 35
read(3, "\1\0\0\n", 4)  = 4
read(3, "\376", 1)  = 1
brk(0x8063000)  = 0x8063000
read(3, "\1\0\0\v", 4)  = 4
read(3, "\376", 1)  = 1
getcwd("/tmp", 500) = 5
chdir("/home/vpopmail/domains/intranet.net") = 0
getcwd("/home/vpopmail/domains/intranet.net", 500) = 36
chdir("/home/vpopmail/domains/intranet.net") = 0
fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK)  = 0
read(3, 0x805b5f8, 8192)= -1 EAGAIN (Resource temporarily unavailable)
fcntl64(3, F_SETFL, O_RDWR) = 0
write(3, "\373\0\0\0\3select cur_users, level_cur"..., 255) = 255
read(3, "\1\0\0\1", 4)  = 4
read(3, "\20", 1)   = 1
read(3, " \0\0\2", 4)   = 4
read(3, "\vdir_control\tcur_users\3\v\0\0\1\3\3\0\0\0", 32) = 32
read(3, " \0\0\3", 4)   = 4
read(3, "\vdir_control\tlevel_cur\3\v\0\0\1\3\3\0\0\0", 32) = 32
read(3, " \0\0\4", 4)   = 4
read(3, "\vdir_control\tlevel_max\3\v\0\0\1\3\3\0\0\0", 32) = 32
read(3, "#\0\0\5", 4)   = 4
read(3, "\vdir_control\flevel_start0\3\v\0\0\1\3\3"..., 35) = 35
read(3, "#\0\0\6", 4)   = 4
read(3, "\vdir_control\flevel_start1\3\v\0\0\1\3\3"..., 35) = 35
read(3, "#\0\0\7", 4)   = 4
read(3, "\vdir_control\flevel_start2\3\v\0\0\1\3\3"..., 35) = 35
read(3, "!\0\0\10", 4)  = 4
read(3, "\vdir_control\nlevel_end0\3\v\0\0\1\3\3\0\0"..., 33) = 33
read(3, "!\0\0\t", 4)   = 4
read(3, "\vdir_control\nlevel_end1\3\v\0\0\1\3\3\0\0"..., 33) = 33
read(3, "!\0\0\n", 4)   = 4
read(3, "\vdir_control\nlevel_end2\3\v\0\0\1\3\3\0\0"..., 33) = 33
read(3, "!\0\0\v", 4)   = 4
read(3, "\vdir_control\nlevel_mod0\3\v\0\0\1\3\3\0\0"..., 33) = 33
read(3, "!\0\0\f", 4)   = 4
read(3, "\vdir_control\nlevel_mod1\3\v\0\0\1\3\3\0\0"..., 33) = 33
read(3, "!\0\0\r", 4)   = 4
read(3, "\vdir_control\nlevel_mod2\3\v\0\0\1\3\3\0\0"..., 33) = 33
read(3, "#\0\0\16", 4)  = 4
read(3, "\vdir_control\flevel_index0\3\v\0\0\1\3\3"..., 35) = 35
read(3, "#\0\0\17", 4)  = 4
read(3, "\vdir_control\flevel_index1\3\v\0\0\1\3\3"..., 35) = 35
read(3, "#\0\0\20", 4)  = 4
read(3, "\vdir_control\flevel_index2\3\v\0\0\1\3\3"..., 35) = 35

[vchkpw] Re: clearopensmtp not clearing?

2003-07-17 Thread Matias Lambert
Hi,
I think that clearopensmtp will delete IP's from the relay list every 3 
hours,without mattering you run it every minute.
You should recompile vpopmail with this option:
--enable-relay-clear-minutes=5 

Good luck, 

Matias Lambert
Osinet Telecomunicaciones
[EMAIL PROTECTED]
http://www.osinet.com.ar 

top writes: 

Hi, 

I think my clearopensmtp is not working
I have cronjob (clear every 5 minutes)
9-59/5 * * * /home/vpopmail/bin/clearopensmtp 2>&1 > /dev/null 

but content of
/home/vpopmail/etc/open-smtp 

remains the same, (i think it deletes entries after 3 hours as default for
vpopmail). 

Shouldn't open-smtp file be empty after clearopensmtp, or am I missing
something? 

I'm using vpopmail-5.3.20. 

Thanks 

 





[vchkpw] Merging Maildirs

2003-07-17 Thread Joe Howard
Title: Message



I have searched the 
mailing list archives but haven't been able to find anything on my 
subject.
 
I have two maildirs 
that both contain emails and folders and I want to merge all of the email into 
one maildir. I am hoping that someone has had to deal with this before and has 
already writen a script or program that will do it. I know that I could just 
'cp' the maildir to the other but that will overwrite the files. 'cp' also 
doesn't pick up the hidden folder dirs. I was thinking about writing a shell 
script with a 'for loop' to copy all the files and dirs but I just hope that 
someone has already done that work.
 
Thanks,
Joe 
H.


RE: [vchkpw] Merging Maildirs

2003-07-17 Thread Benjamin Tomhave
Title: Message



It 
doesn't have to overwrite files.  And why wouldn't it see "hidden" folders 
(by which, I'm assuming you mean folders starting with ".").  I've done 
this in the past and it seems to work fine.  Test it on the side, just to 
be safe and sure, but I believe you can just do "cp -R --reply=no user1/Maildir 
user2/".

  -Original Message-From: Joe Howard 
  [mailto:[EMAIL PROTECTED]Sent: Thursday, July 17, 2003 4:01 
  PMTo: [EMAIL PROTECTED]Subject: [vchkpw] Merging 
  Maildirs
  I have searched the mailing list archives but haven't been able to 
  find anything on my subject.
   
  I have two maildirs that both contain emails and folders and I want 
  to merge all of the email into one maildir. I am hoping that someone has had 
  to deal with this before and has already writen a script or program that will 
  do it. I know that I could just 'cp' the maildir to the other but that will 
  overwrite the files. 'cp' also doesn't pick up the hidden folder dirs. I was 
  thinking about writing a shell script with a 'for loop' to copy all the files 
  and dirs but I just hope that someone has already done that work.
   
  Thanks,
  Joe H.


RE: [vchkpw] Merging Maildirs

2003-07-17 Thread Benjamin Tomhave
Title: Message



Sorry, 
also might want to put in the --preserve flag to save yourself having to fix 
permissions and ownerships later on.  So, that would 
be:
cp -R 
--preserve --reply=no user1/Maildir user2/

  -Original Message-From: Benjamin Tomhave 
  [mailto:[EMAIL PROTECTED]Sent: Thursday, July 17, 2003 4:05 
  PMTo: Joe HowardCc: [EMAIL PROTECTED]Subject: 
  RE: [vchkpw] Merging Maildirs
  It doesn't have to overwrite files.  And why wouldn't it see 
  "hidden" folders (by which, I'm assuming you mean folders starting with 
  ".").  I've done this in the past and it seems to work fine.  Test 
  it on the side, just to be safe and sure, but I believe you can just do "cp -R 
  --reply=no user1/Maildir user2/".
  
-Original Message-From: Joe Howard 
[mailto:[EMAIL PROTECTED]Sent: Thursday, July 17, 2003 4:01 
PMTo: [EMAIL PROTECTED]Subject: [vchkpw] Merging 
Maildirs
I have searched the mailing list archives but haven't been able 
to find anything on my subject.
 
I have two maildirs that both contain emails and folders and I 
want to merge all of the email into one maildir. I am hoping that someone 
has had to deal with this before and has already writen a script or program 
that will do it. I know that I could just 'cp' the maildir to the other but 
that will overwrite the files. 'cp' also doesn't pick up the hidden folder 
dirs. I was thinking about writing a shell script with a 'for loop' to copy 
all the files and dirs but I just hope that someone has already done that 
work.
 
Thanks,
Joe H.