Re: [vchkpw] processing .qmail files for all users

2005-05-25 Thread Flavio Curti
Hi Tom

On 5/25/05, Tom Collins [EMAIL PROTECTED] wrote:
 If you want the SAME string for all users in a domain, you can insert
 that at the top of the .qmail-default file for the domain.  Qmail-local
 will run the email through your script before passing it to
 vdelivermail for local delivery.

Isn't the problem that if you have a .qmail in the doman directory
(like .qmail-fcu) the mail is never seen by vpopmail or the script,
because qmail-local will do the delivery itself?

Hope that helps and regards

Flavio

-- 
http://no-way.org/~fcu/


Re: [vchkpw] Norwegian characters

2004-09-23 Thread Flavio Curti
Hi Andreas

(writing back to the list!)
On Wed, 22 Sep 2004 14:59:15 +0200, Andreas H [EMAIL PROTECTED] wrote:
 I hope you could just give me a clue on an another question regard this
 problem. I thought that you might had solved this problem too.
 After I added succefully a domain with punycode (xn--stpeskien-m8a.no)
 still I can't get messages to this domain through my qmail-server.
 I see from my qmail-send log starting delivery 3131: msg 133219 to
 remote [EMAIL PROTECTED] and next delivery 3131: failure:
 Sorry,_I_couldn't_find_any_host_named_st?peskien.no._(#5.1.2)/
As Tom pointed out, you should never see an address like this on the
qmail level. The MUA is responsible for converting the domain to
punycode before it tries to send it over smtp or whatever.
There may actually be a problem with qmail's sendmail/qmail-inject
(which imho qualifies as MUA) as it is not able to do this right now.

Hope that helped and regards

Flavio

-- 
http://no-way.org/~fcu/


Re: [vchkpw] Norwegian characters

2004-09-22 Thread Flavio Curti
Hi
On Tue, 21 Sep 2004 11:47:24 -0700, Tom Collins [EMAIL PROTECTED] wrote:
 I think I kept the original email on this, so I'll take another look at
 it.  Is there enough demand to have this added to vpopmail and
 QmailAdmin?  Is anyone using simple command-line programs to convert
 from unicode (or 8-bit) domain names to their punycode equivalents?
It would certainly make sense for the authentication code (in
libvpopmail?) as the end user could use their normal domain name then.
As for the ISP, we have to work with the punycode domain anyway
(domain register, dns entries, ...) , so it may not be needed...

Thank you and regards

Flavio

-- 
http://no-way.org/~fcu/


Re: [vchkpw] Norwegian characters

2004-09-21 Thread Flavio Curti
Hi
On Tue, 21 Sep 2004 07:41:20 -0700, Tom Collins [EMAIL PROTECTED] wrote:
 On Sep 21, 2004, at 12:41 AM, Andreas H wrote:
  I have problem with adding domains(or email-addresses) with the
  Norwegian
  character æ,ø,å . When I try to add a domain with one of this
  character I
  get a Invalid domain name in Vpopmail. Is there any solution to this
  problem? What should I change to make it verify my characters?
 This came up on the list about a year ago.  Basically, we (the
 developers) need to make significant changes to vpopmail and qmailadmin
 to support those extended characters.  It isn't an easy task, even with
 some of the code libraries out there for converting such domains.
I don't know about norway, but here in Switzerland we are using IDN
domainnames for special character domain-names. From the Mailserver
point of view, the domainname stays in the 7bit ascii-range, the
clients must make sure they convert everything accordingly. So for the
domain äöü.ch, I'd use vadddomain xn--4ca0bs.ch (punycode). This works
fine, it's only a hassle for the users.
Maybe it would be possible for vpopmail to do this conversion in
vpopmail if special characters are detected?

Hope that helps and regards

Flavio

-- 
http://no-way.org/~fcu/


Re: [vchkpw] vpopmail and many domains

2003-10-22 Thread Flavio Curti
Hi

On Wed, Oct 22, 2003 at 02:48:26PM +0200, Martin Spütz wrote:
 I have a mail server with many domains (~300). vpopmail creates new domains
 in
 domains/0/domainname. It works fine, but in the mail header, the field
 Delivered-To is incorrect.
This is an old bug. Nobody cared to fix it :( Search the Archives for a
patch.

Greetz  Hope it helps

Flavio

--
http://no-way.org/~fcu/

Mach mit bei der Community-Bibliothek
  - In Zuerich/CH http://zurich.communitybooks.org/



Re: [vchkpw] Matt Simersons tcpserver-mysql patch how-to??

2003-09-25 Thread Flavio Curti
Hi Jonathan

On Thu, Sep 25, 2003 at 12:24:22PM +1200, Jonathan Viney wrote:
 Hi,
 
  I just checked Matt's patch, and he indeed added that code. So it will
  work. You cannot set ENV-vars though!
 It must set RELAYCLIENT though I would have thought just had a quick
 look at the code and yes:
you are right. what i actually meant was: you cannot set env-vars on a
per-entry base which are different than relayclient.

 So if you wanted any other ENV variables set you could just add them
 there under env(RELAYCLIENT,); . right?
yes, that is correct. but it would affect all the ips then!

hope it helps  thank you

Flavio

--
http://no-way.org/~fcu/



Re: [vchkpw] mysql relay table frustrations

2003-09-25 Thread Flavio Curti
Hello

On Thu, Sep 25, 2003 at 03:55:45PM +1000, Michael Bowe wrote:
 If you are using Matt Simerson's tcpserver patch, then I would imagine that
 you wouldn't use the -x /path/tcp.smtp.cdb switch in the tcpserver run
 script (because this information is stored in MySQL by the -S switch)
You can use both! There may even be circumstances where you have to use
both. So you can have a static config from tcp.smtp. and a dynamic one
from the database.

hope it helps

Flavio

--
http://no-way.org/~fcu/



Re: [vchkpw] Matt Simersons tcpserver-mysql patch how-to??

2003-09-24 Thread Flavio Curti
Hi Jonathan

On Thu, Sep 25, 2003 at 01:27:21AM +1200, Jonathan Viney wrote:
  Add the -S switch to your qmail-smtpd script and restart the servers.
  
  You should now be running off the relay table in your database.
  
  cheers
  
  Shane
  
 Is it possible to use this patch in place of /etc/tcp.smtp.cdb for
 permanently allowed hosts? I had a look a while back and noticed it
 seemed to run on a timeout basis.
AFAIK yes, i submitted a patch for that, which i think Matt has added to
his patch. it works by having records in the database with NULL as
Timestamp, they will not get removed.

 Also, does anyone have an example of the sql table structure needed?
#
# Table structure for table `relay`
#

CREATE TABLE relay (
ip_addr char(40) NOT NULL default '',
timestamp char(12) default NULL,
PRIMARY KEY  (ip_addr)
) TYPE=MyISAM;


Hope it helps  greetz

Flavio

--
http://no-way.org/~fcu/



Re: [vchkpw] Matt Simersons tcpserver-mysql patch how-to??

2003-09-24 Thread Flavio Curti
Me again

On Wed, Sep 24, 2003 at 03:48:57PM +0200, Flavio Curti wrote:
 On Thu, Sep 25, 2003 at 01:27:21AM +1200, Jonathan Viney wrote:
  Is it possible to use this patch in place of /etc/tcp.smtp.cdb for
  permanently allowed hosts? I had a look a while back and noticed it
  seemed to run on a timeout basis.
 AFAIK yes, i submitted a patch for that, which i think Matt has added to
 his patch. it works by having records in the database with NULL as
 Timestamp, they will not get removed.
I just checked Matt's patch, and he indeed added that code. So it will
work. You cannot set ENV-vars though!

Hope it helps

Flavio

--
http://no-way.org/~fcu/



Re: [vchkpw] question about autoresponder change

2003-09-18 Thread Flavio Curti
Hi Jeremy

On Tue, Sep 16, 2003 at 06:08:39PM -0500, Jeremy Kitchen wrote:
 AUTORESPOND: I can't handle a message with a Mailing-List header.
sadly this is not the only time autorespond uses the wrong exit code:
AUTORESPOND: too many received from [EMAIL PROTECTED]
(this gets triggered when a user sends more than defined mails in a
period) i don't think the mail should bounce then! instead, autorespond
should simply not send a vacation to the sender, but allow further
deliveries. i just searched an replaced all exits, because in my opinion
no failures of autorespond are fatal enough to stop the mail from ending
up in the users mailbox!

thank you  hope it helps

Flavio

--
http://no-way.org/~fcu/



[vchkpw] resetting dir-control

2003-09-11 Thread Flavio Curti
Hi

I use vpopmail 5.2.1, with activated directory hashing. Now after
several vadddomain's and vdeldomain's i ended up adding new domains to the 
domains/X/ directory. I would like to start it over again (ie, add the
new domains to domains/A/ again). Is there a way to do this? Any
pointers appreciated.

Thank you  greetz

Flavio

--
http://no-way.org/~fcu/



Re: [vchkpw] resetting dir-control

2003-09-11 Thread Flavio Curti
Hi
On Thu, Sep 11, 2003 at 07:56:55AM -0500, Ken Jones wrote:
 On Thursday 11 September 2003 1:05 am, Flavio Curti wrote:
  domains/X/ directory. I would like to start it over again (ie, add the
  new domains to domains/A/ again). Is there a way to do this? Any
 Just delete the .dir-control file (or the dir_control table in mysql).
 The it will start adding the domains to /domains/ again.
Is it necessary to delete the whole table? It seems to hold informations
about the domains aswell. I modified the dom_600 entry to say 0 users
and 'a' is the next letter. Was this safe to do?

Thank you  Greetz

Flavio Curti

--
http://no-way.org/~fcu/



[vchkpw] vdelivermail and Delivered-To

2003-03-05 Thread Flavio Curti
hi

i'm using vpopmail 5.2.1, it was configured as following:
./configure  --prefix=/opt/vpopmail-5.2 --sysconfdir=/etc/vpopmail
--localstatedir=var/vpopmail --enable-mysql=y --enable-roaming-users=y
--enable-valias=y --enable-md5-passwords=n
--enable-default-domain=cyberlink.ch --enable-clear-passwd=n
--enable-relay-clear-minutes=180 --enable-logging=p
--enable-tcprules-prog=/opt/bin/tcprules --enable-libdir=/usr/lib
--enable-auth-logging=y

this makes --enable-many-domains=y (it's the default).

now i noticed that vdelivermail seems to corrupt the Delivered-To:
header lines when a domain is in a hashed dir:

[EMAIL PROTECTED]:/home/vpop/domains/9/testdomain.ch# cat .qmail-default 
| /home/vpop/bin/vdelivermail '' [EMAIL PROTECTED]
[EMAIL PROTECTED]:/home/vpop/domains/9/testdomain.ch# head -2
./test/Maildir/new/1046863343.4676.igel,S\=175814 
Return-Path: [EMAIL PROTECTED]
Delivered-To: [EMAIL PROTECTED]

so vpopmail looses the domain part of the email address and replaces it
with the hash number?!?

does anybody have an idea or a pointer ?

thank you  greetz

flavio 

--
http://no-way.org/~fcu/



Re: [vchkpw] vdelivermail and Delivered-To

2003-03-05 Thread Flavio Curti
hi

On Wed, Mar 05, 2003 at 07:32:01PM +0100, Claudio Nieder wrote:
 when I noticed, and looked up the mailing list archive for a solution I
 found only messages saying, that it has to be this way. Not beeing

   well, i'm no-way convinced by this as well. imho this breaks a lot of
stuff. (Serialmail for example, which relies on the Delivered-To: for
the redelivery of the mail).
imho according to envelopes(5):

   When a message is delivered by qmail to a single local
recipient, qmail-local records the recipient in Delivered-To
and the envelope sender in Return-Path.  It uses Delivered-To to
detect mail forwarding loops.

   so, [EMAIL PROTECTED] clearly is not the reciepient. (maildirsmtp will issue a 
RCPT TO: [EMAIL PROTECTED] in the SMTP conversation, which will lead to a 
Relaying Denied error)


 convinced myself I modified vdelivermail for me. This should be the
 needed patch against vpopmail 5.2.1:

   thank you for the patch, will this patch make it into the vpopmail
release?? 

thank you  greetz

flavio

--
http://no-way.org/~fcu/



Re: Urgent Help, please! How to use vpopmail functions in PHP!

2001-09-21 Thread Flavio Curti

hi

well, judging from the source code you should try the following
functions:
vpopmail_add_user()

also read the file in ext/vpopmail in the php4 source tree...

greetz  hope it helps

Flavio


On Fri, Sep 21, 2001 at 10:53:54AM +0200, The Guyver wrote:
 Sorry for bothering you guys again, but I've recompiled PHP/Apache with
 vpopmail support in
 (I checked with phpinfo() and I got this:
 vpopmail
 vpopmail support enabled
 vpopmail version 4.10.30
 vpopmail uid/gid php uid/gid/euid/egid 89/89 99/99/99/99
 vpopmail dir /home/vpopmail
 vpopmail vadddomain /home/vpopmail/bin/vadddomain
 vpopmail vdeldomain /home/vpopmail/bin/vdeldomain
 vpopmail vaddaliasdomain /home/vpopmail/bin/vaddaliasdomain
 
 so I guess everything should be working)
 
 BUT when I call the vpopmail functions (like vadduser() ) I get this error:
 
 Fatal error: Call to undefined function: vadduser() in
 /home/www/test/scripts/mail_add.php on line 9
 
 Am I missing something? I though once compiled in those functions were
 already present, how do I define them.
 Please help me out, I feel very close to the solution but still cannot reach
 it.
 Thanks again to anyone answering!
 
 Guyver
 
 - Original Message -
 From: The Guyver [EMAIL PROTECTED]
 To: Sean C Truman [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Friday, September 21, 2001 9:51 AM
 Subject: Re: Urgent Help, please!
 
 
  Don't worry I wasn't going to ask you to code my script :)
 
  I'll try to recompile PHP and see what happens, hope it really works out!
  Thanks anyway for your precious help and I wish to thank all the people
  that answered my message, even though I tried suid the scripts and didn't
  work out.
 
  I'll let you know if this PHP recompile will do.
 
  Best regards,
  Guyver
 
  - Original Message -
  From: Sean C Truman [EMAIL PROTECTED]
  To: guyver [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Sent: Friday, September 21, 2001 12:36 AM
  Subject: Re: Urgent Help, please!
 
 
   Guyver,
  
   I am sorry I can't write the script for you.. Just configure PHP
   with --with-vpopmail (Should find the directory automatically) compile
 PHP
   and Apache Again.. and Look at the vpopmail.h and vauth.h for the
 callable
   functions and there parameters.
  
   Sean
   - Original Message -
   From: guyver [EMAIL PROTECTED]
   To: Sean C Truman [EMAIL PROTECTED]
   Cc: [EMAIL PROTECTED]
   Sent: Thursday, September 20, 2001 4:38 PM
   Subject: Re: Urgent Help, please!
  
  
Sean C Truman writes:
   
 Brandon,

   If you configure PHP --with-vpopmail=/home/vpopmail  you can
  call
   the
 vadduser() function from within your PHP script. This is one of the
   reason
 Ken created the API for vpopmail.

 Sean
   
Wow, that sounds very interesting, could you please be more specific
about it? I absolutely have to finish the script by tomorrow... :(
   
So basically I should recompile my PHP simply adding
 --with-vpopmail=/home/vpopmail ??
   
I've checked the Inter7 website but there's nothing about it (or at
  least
nothing that I could find) except on the Admin Guide I found a piece
 of
   text
regarding vpopmail API but I thought it was only for C programs... am
 I
wrong? It says there is a library at ~vpopmail/lib/libvpopmail.a that
 is
linkable with C programs how do I link it to PHP?
   
Thanks again for your patience.
   
Best regards,
Guyver
   
   
  
  
 
 
 

-- 
http://no-way.org/~fcu/



Re: Urgent Help, please! How to use vpopmail functions in PHP!

2001-09-21 Thread Flavio Curti

i think they write something about that in the README file of the
vpopmail extension

greetz  hope it helps

Flavio

On Fri, Sep 21, 2001 at 12:01:21PM +0200, The Guyver wrote:
 Yes, you're right! But then when using the correct function I had the
 UID/GID problem.
 I'm working on that right now.
 Regards,
 Guyver
 

-- 
http://no-way.org/~fcu/



Re: /etc/smtp.etc

2001-07-03 Thread Flavio Curti

you need to compile this file into a cdb file first before this
statement affects anything. you do that calling tcprules:
tcprules /etc/smtp.cdb /etc/smtp.cdb.tmp  /etc/tcp.smtp
then the ip should be able to relay if you use your tcp.cdb file with
tcpserver using the -x parameter...

greetz  hope it helps

Flavio

On Tue, Jul 03, 2001 at 04:51:01PM -0400, Mick wrote:
 /etc/smtp.etc
 
 Why would to following entry fail
 
 216.82.228.75:allow,RELAYCLIENT=
 
 And how does this file update rcpthosts file
 
 
 
 Thanks
 
 Mick
 
 
 
 
 
 
 

-- 
http://no-way.org/~fcu/



Re: readable logs?

2000-08-01 Thread Flavio Curti

hi

you can pipe it through tai64nlocal to get local dates.

greetz  hope it helps Flavio

On Tue, 1 Aug 2000 11:02:00 -0700 (PDT), Val Luck said:

 
  Hello,
  
  I am using accustamp  cyclog, and the log files it leaves in
  /var/log/qmail have the weird accustamp time on it: 
  
 965152081.734000 status: local 0/10 remote 0/20
 965152081.734005 end msg 540881
  
  I know that the number is the number of seconds since 1969 TAI (whatever
  that is) but for casual log browsing, it is useless.  I would much prefer
  dates in normal readable format, such as 
  
 Jul 31 10:18:57 io vpopmail[8028]: vchkpw: No user found test@:127.0.0.1
  
  so I can eyeball it and know when the last message sent was, or if a
  certain user wants to know if their email was delivered, etc, I can start
  looking at a certain time.  
  
  Should I use another "accustamp" type program, or can accustamp be
  configured to use normal dates, or should I go back to syslog?   (is it
  cyclog that is doing it?)
  
  Anyway, any help would be most appreciated.  Thanks!!
  
  Val
  [EMAIL PROTECTED]
  
  
  

-- 
-=: http://no-way.org :=-