Re: [vchkpw] how to do simple vpopmail delivery with filtering

2005-04-05 Thread danielcm
On Apr 5, 2005, at 9:28 AM, Kyle Wheeler wrote:

What you *want* is this:
| preline yourfilter | maildir $vpophome/$domain/$user/Maildir/
(maildir is from the safecat package)
However, vpopmail steadfastly refuses to set up the environment for 
it's
.qmail processing in a convenient way (or even a qmail-compatible way),
so what you can do is approximate it like this (all on one line):

| preline yourfilter | maildir /path/to/vpopdomains/`echo $USER | tr 
A-Z
a-z`/`echo $EXT | tr A-Z a-z`/Maildir/


I don't think it needs to be that complicated, all I have is:
| preline yourfilter | /usr/local/bin/maildir.sh  ./Maildir/
My maildir.sh file is:
exec /usr/bin/safecat "$1"/tmp "$1"/new
works for me since the .qmail file is in the users home directory.
~Kyle
--
Science is like sex: Sometimes something useful comes out, but that is 
not
the reason we are doing it.
-- Richard P. Feynman



Re: [vchkpw] how to do simple vpopmail delivery with filtering

2005-04-05 Thread Kurt Bigler
on 4/5/05 6:28 AM, Kyle Wheeler <[EMAIL PROTECTED]> wrote:

> On Tuesday, April  5 at 01:24 AM, quoth Kurt Bigler:
>> 
>> I have been able to prototype my filtering functionality in a .qmail-user
>> file in one of my domain directories as follows:
>> 
>> | myfilter | /var/vpopmail/bin/vdelivermail '' bounce-no-mailbox
>> 
>> I have been testing this for several days and this approach is working fine.
> 
> Yes, however, this approach will not work as the QmailAdmin
> spam-command. It will create a loop (i.e. vdelivermail sends it to your
> filter, which pipes it to vdelivermail, which sends it to...).

Right, that's why I can't use this .qmail-user approach in the user/.qmail
file.

> What you *want* is this:
> 
> | preline yourfilter | maildir $vpophome/$domain/$user/Maildir/
> 
> (maildir is from the safecat package)
>
> However, vpopmail steadfastly refuses to set up the environment for it's
> .qmail processing in a convenient way (or even a qmail-compatible way),
> so what you can do is approximate it like this (all on one line):
> 
> | preline yourfilter | maildir /path/to/vpopdomains/`echo $USER | tr A-Z
> a-z`/`echo $EXT | tr A-Z a-z`/Maildir/

Thanks, that's great.

>> My assumption is that what I am calling simple_vpopmail_final_delivery
>> is in fact the last stage of what vdelivermail does, and if so I'm
>> wondering if there is any architectural reason why this piece of
>> functionality could not be made available as a separate command,
>> perhaps even as vdelivermail with another command-line option to
>> suppress prelinining and other functionality associated with the
>> user/.qmail file.
> 
> It would HAVE to ignore the .qmail file,

Yes, that's exactly what I was suggesting.

> otherwise you passing mail to
> it from within the .qmail file would create a loop. That, or to prevent
> people from destroying their own mail servers, it would have to have
> it's own loop detection.

To be clear what I was saying, it appears vdelivermail has several stages of
processing.  It looks like vdelivermail gets you into the user directory,
applies the .qmail file stuff, and then does the simple delivery I was
referring to.  I was suggesting that this last phase of what vdelivermail
does could be isolated into a separate command, or else the earlier
vdelivermail phases could be suppressed via a command-line option.  There is
already an option to suppress prelining, I think (which you don't want to do
twice, either).

>> In the mean time, what is the best (simplest, most reliable) way to
>> achieve
>> this simplistic delivery functionality?
> 
> I think "maildir" (or "safecat") is what you want to use. If you think
> the environment manipulation is a bit much, I agree, but them's the
> breaks, at the moment.

Ok, but that's not too bad.  It just bugs me to have to install yet another
package, just to do what vpopmail already knows how to do.

But thanks, that's what I needed to know!

But I have a question to the vpopmail developers:

If I were to implement this, as a option to vdelivermail, say:

-d  Deliver only.  Do not preline and skip all .qmail processing

would you find this to be something worth integrating?  I'm not sure that
I'd have time now, but it seems worth asking the question.

-Kurt



Re: [vchkpw] Switching from Mysql to Postgresql

2005-04-05 Thread Joshua Coucke




Well, I did get it working finally.  I had to do a vconvert, with some
use of the command line utilities and manual db inserting. And it
worked so long as I did not try to send any mail out. :)  I could
recieve email just fine though.  

So I thought maybe removing everything in ~vpopmail and reseting things
to a default state, and then installing vpopmail would work.  Well,
every time I would try to add a domain in vqadmin it would tell me it
could not find the .qmailadmin-limits file.  Now I have a
vlimits.default file so if it cant find the .qmailadmin-limits file it
should default to the vlimits file.  It didn't though

Oh well, I had incoming mail working off of postgres for awhile.  It
turned out that to get the incoming mail working I just had to set
permissions on the sequences like Charlie mentioned.  I also had to
remove the bin, etc, lib, and include directories from vpopmails folder.

Josh 

Charles J. Boening wrote:

  
  
  
  Also, don't forget to check
permissions on sequences.  Had that bite me once.  :)
   
   
  Charlie
   
   
   
  
  

 From:
Joshua Coucke [mailto:[EMAIL PROTECTED]] 
Sent: Monday, April 04, 2005 6:35 AM
To: vchkpw@inter7.com
Subject: Re: [vchkpw] Switching from Mysql to Postgresql


Charles J. Boening wrote:

  Did you try using the postgres user for the database instead of the one
you made?
  

I believe I did, but I will try it again, just to make sure.

  One of the things that happens on login that wouldn't with vuserinfo
would be an insertion or update to the vlog table or lastauth table.

If you want, contact me off list and we can discuss the possibility of
me logging in to your system and checking things out.
  

I may take you up on that offer if I can't figure this out.

Joshua Coucke

  Charlie

 

  
  
-Original Message-
From: Joshua Coucke [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, March 31, 2005 1:26 PM
To: vchkpw@inter7.com
Subject: Re: [vchkpw] Switching from Mysql to Postgresql

Charles J. Boening wrote:



  Is there anything in the log files?  /var/log/mail/info or 
/var/log/mail/errors ... how about in /var/log/qmail/pop3d/current?
 

  

Nothing in the logs that I could see.



  If vuserinfo is working, then your database hooks in 
  

vpopmail are all 


  ok.  How about doing a make clean and make and make install again?  
Then restart qmail.
 

  

I have been doing make clean every time I recompile.



  How about if you telnet to the server on port 110 and try to auth by 
hand?  You sure it's not a Thunderbird issue?
 

  

Tried it and it failed just after I entered the password for 
the account.



  I had some issues at one point and I ended up deleting everything in 
~vpopmail/etc ~vpopmail/include ~vpopmail/bin and ~vpopmail/lib then 
rebuilt vpopmail and rebuilt authdaemon.  Then it all worked.
 

  

I tried deleting everything out of those directories and then 
rebuilding vpopmail and it still failed 

Joshua



  

	From: Joshua Coucke [mailto:[EMAIL PROTECTED]] 
	Sent: Thursday, March 31, 2005 11:53 AM
	To: vchkpw@inter7.com
	Subject: Re: [vchkpw] Switching from Mysql to Postgresql
	
	


	Charles J. Boening wrote: 

		I'm using vpopmail 5.4.10 successfully with PostgreSQL.
		
		How about permissions for your vpopmail sql 
  

user?  Did you GRANT that


  		user permissions to the database?
		  

	Yes, the user does have permissions. 

		How about running the commandline utilities?
		/home/vpopmail/bin/vuserinfo 
		  

	I was able to get userinfo on an email address.  And I 
  

was able to 


  verify that the info was coming from the postgres db.  (I 
  

changed some 


  info in the db and ran the command again, the output was updated.)
	
	name:   jdcoucke
	passwd: $1$39sHL0$r3PDZJzvwbTAKOxJD4HHq.
	clear passwd: **
	comment/gecos: Joshua Coucke
	uid:0
	gid:4096
	flags:  4096
	gecos: Joshua Coucke
	limits:
	has qmailadmin administrator access
	dir:   /home/vpopmail/domains/lebanon-tn.com/jdcoucke

	quota: 4194304S
	usage: 0%
	NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index 
"lastauth_pkey" for table "lastauth"
	last auth: Never logged in
	
	Thunderbird still returns an auth error.
	All of user info was imported from a mysql db using 
  

phpmyadmin and 


  imported using phppgadmin.  Would it make a difference if I used 
vconvert instead?
	
	Joshua.
	

			-Original Message-
			From: Joshua Coucke
[mailto:[EMAIL PROTECTED]] 
			Sent: Thursday, March 31, 2005 7:08 AM
			To: v

Re: [vchkpw] authentication problem for qmail-smtp-auth

2005-04-05 Thread Tom Collins
On Apr 5, 2005, at 10:49 AM, Bogdan Motoc - CRC wrote:
How can I test vchkpw to see if it is ok, or the problem resides 
elsewhere?
Take a look at checkpassword_debug in the contrib directory of vpopmail.
--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
You don't need a laptop to troubleshoot high-speed Internet: 
sniffter.com



Re: [vchkpw] vaddaliasdomain question

2005-04-05 Thread Tom Collins
On Apr 5, 2005, at 9:05 AM, Jason Wilkinson wrote:
The primary/secondary domain association is recorded in the
/var/qmail/users/assign file.
vdominfo can also report on the real domain for an alias domain (I 
think).

--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/
You don't need a laptop to troubleshoot high-speed Internet: 
sniffter.com



Re: [vchkpw] authentication problem for qmail-smtp-auth

2005-04-05 Thread Bogdan Motoc - CRC



Increased the softlimit to 4000. No 
luck.
 
How can I test vchkpw to see if it is ok, or the 
problem resides elsewhere? (maybe qmail-smtpd is not feeding vchkpw the 
username/password correctly, and thus, authentication failes)
On a second thought, the message is: 
vpopmail[]: vchkpw-smtp: vpopmail user not found [EMAIL PROTECTED]:ip.
Maybe, the ":ip" ending is not stripped from the 
username (email address), and it is trying to authenticate the whole [EMAIL PROTECTED]:ip which of course could cause this ***beep***-up.
 
But, as I mentioned before, Pop3 and IMAP 
authentication work flawlessly (courier-imap package)
 
 
 
 
- Original Message - 

From: "Tom Collins" <[EMAIL PROTECTED]>
To: 
Sent: Saturday, April 02, 2005 7:34 PM
Subject: Re: [vchkpw] authentication problem for 
qmail-smtp-auth
> On Apr 2, 2005, at 7:00 AM, Bogdan Motoc - CRC wrote:>> As 
you can see, OE6 tried AUTH LOGIN, which didn't work, then closed >> 
connection.>> Eudora tried first AUTH CRAM-MD5. After it failed, it 
tried to send >> the message without authentication, which of course 
failed. Still, MySQL logs show no attempts to read the 
username/password from >> the database. Instead the same error message 
I mentioned before, is >> entered in maillog and sql database.> 
> Try increasing the softlimit for qmail-smtpd and the pop server.  
It > may be running out of memory trying to run vchkpw.> > 
--> Tom Collins  -  [EMAIL PROTECTED]> QmailAdmin: 
http://qmailadmin.sf.net/  
Vpopmail: http://vpopmail.sf.net/> You 
don't need a laptop to troubleshoot high-speed Internet: > 
sniffter.com> >


RE: [vchkpw] vaddaliasdomain question

2005-04-05 Thread Jason Wilkinson
Andrej wrote:
> Hello List,
> 
> I'm using vpopmail-5.4.10 and netqmail-1.05 - thanks for the software
> :-) 
> 
> I have one question concerning the vaddaliasdomain command. Where can
> I find the assignment between the real and alias domain when I add an
> alias domain? By adding an alias domain, the alias domain is defined
> in /var/qmail/control/virtualdomains, but this looks not as an
> assignment to the real domain... I can't find how vpopmail know where
> to deliver an mail if the mail is sent to an alias domain...
> 
> The reason why I need to know this is that I have to migrate some
> domains to a new server.
> 
> Thanks in advice for your answers,
> 
> Andrej.

The primary/secondary domain association is recorded in the
/var/qmail/users/assign file.




[vchkpw] vaddaliasdomain question

2005-04-05 Thread Andrej
Hello List,
I'm using vpopmail-5.4.10 and netqmail-1.05 - thanks for the software :-)
I have one question concerning the vaddaliasdomain command. Where can I 
find the assignment between the real and alias domain when I add an 
alias domain? By adding an alias domain, the alias domain is defined in 
/var/qmail/control/virtualdomains, but this looks not as an assignment 
to the real domain... I can't find how vpopmail know where to deliver an 
mail if the mail is sent to an alias domain...

The reason why I need to know this is that I have to migrate some 
domains to a new server.

Thanks in advice for your answers,
Andrej.


RE: [vchkpw] compile "vpopmail" with -fPIC on x86_64

2005-04-05 Thread Nick Harring
> 
> this is a little off the main topic, but i was wondering ..
> 
> 
> what does the -fPIC do? what causes this "issue" ? good buddy of mine
> wrote & updates a QMAIL Install script ... does it all for you,
> including courier-IMAP or Bincc ... and he was wondering whether or
not
> he shoudl include the -fPIC command when his script compiles vpopmail
-
> whether this command will bomb & cause errors on 32bit systems.
> 
>From the gcc manpage:
-fPIC
If supported for the target machine, emit position-independent code,
suitable for dynamic linking and avoiding any limit on the size
of the global offset table.  This option makes a difference on the m68k,
m88k, and the SPARC.

Position-independent code requires special support, and therefore works
only on certain machines.

Essentially what this does is make libraries relocatable, the difference
between -fpic and -fPIC being the size of the global offset table (and
this difference is only on some archs). You may want to try with -fpic
instead, since you're not using one of the arches specifically
mentioned. 

Since vpopmail doesn't generate dynamic libraries this shouldn't really
be making any difference. Doing it on 32bit won't cause any problems, as
it has nothing to do with word size.

Also, you'll want to be on the latest stable gcc release you can get
your hands on, as the x86-64 target has been evolving fairly rapidly
from what I can see with a little quick googling. 

Hope that helps,
Nick 


Re: [vchkpw] how to do simple vpopmail delivery with filtering

2005-04-05 Thread Kyle Wheeler
On Tuesday, April  5 at 01:24 AM, quoth Kurt Bigler:
> > NOTE: This command must deliver the mail)
> 
> Particularly the last line is of interest.

Indeed.

> All I need is to satisfy that requirement that the command must 
> deliver the mail.  I want it delivered exactly as vdelivermail would 
> have delivered it, but I want to pipe it through my filter on the way 
> out.
> 
> I have been able to prototype my filtering functionality in a .qmail-user
> file in one of my domain directories as follows:
> 
> | myfilter | /var/vpopmail/bin/vdelivermail '' bounce-no-mailbox
> 
> I have been testing this for several days and this approach is working fine.

Yes, however, this approach will not work as the QmailAdmin 
spam-command. It will create a loop (i.e. vdelivermail sends it to your 
filter, which pipes it to vdelivermail, which sends it to...).

> However, it is a hack (and doesn't play well with qmailadmin), and what I
> really want to do is to be able to use something like this in the
> user/.qmail file instead:
> 
> | preline myfilter | simple_vpopmail_final_delivery

What you *want* is this:

| preline yourfilter | maildir $vpophome/$domain/$user/Maildir/

(maildir is from the safecat package)

However, vpopmail steadfastly refuses to set up the environment for it's 
.qmail processing in a convenient way (or even a qmail-compatible way), 
so what you can do is approximate it like this (all on one line):

| preline yourfilter | maildir /path/to/vpopdomains/`echo $USER | tr A-Z 
a-z`/`echo $EXT | tr A-Z a-z`/Maildir/

> My assumption is that what I am calling simple_vpopmail_final_delivery 
> is in fact the last stage of what vdelivermail does, and if so I'm 
> wondering if there is any architectural reason why this piece of 
> functionality could not be made available as a separate command, 
> perhaps even as vdelivermail with another command-line option to 
> suppress prelinining and other functionality associated with the 
> user/.qmail file.

It would HAVE to ignore the .qmail file, otherwise you passing mail to 
it from within the .qmail file would create a loop. That, or to prevent 
people from destroying their own mail servers, it would have to have 
it's own loop detection.

> In the mean time, what is the best (simplest, most reliable) way to 
> achieve
> this simplistic delivery functionality?

I think "maildir" (or "safecat") is what you want to use. If you think 
the environment manipulation is a bit much, I agree, but them's the 
breaks, at the moment.

~Kyle
-- 
Science is like sex: Sometimes something useful comes out, but that is not
the reason we are doing it.
-- Richard P. Feynman


signature.asc
Description: Digital signature


Re: [vchkpw] compile "vpopmail" with -fPIC on x86_64

2005-04-05 Thread Martin Kos
hi marco
i will most def. try that tonight. however i can only test on the 
production machine, as all my other test machines are 32bit Intels.

I will let you know most def. ... should be another 2 hours or so 
till i can take it down again.
the last time i tried to install courier-authlib and vpopmail on a amd64
was in january (the mail you've found in the archive). i've tried it
again some minutes ago on my production machine (as you can try more or
less without disturbing the normal users) and i've run again in the same
problems:
1. compiled vpopmail with -fPIC
2. compiled courier-authlib with -fPIC
the compilation of both of them worked just fine
3. started the installed authdaemon...
already at the beginning i get the following:
12:30:54 pluto authdaemond: Installing libauthvchkpw
12:30:54 pluto authdaemond:
/usr/local/libexec/courier-authlib/authdaemond: Symbol `read' causes
overflow in R_X86_64_PC32 relocation
12:30:54 pluto authdaemond:
/usr/local/libexec/courier-authlib/authdaemond: Symbol
`__errno_location' causes overflow in R_X86_64_PC32 relocation
12:30:54 pluto authdaemond:
/usr/local/libexec/courier-authlib/authdaemond: Symbol
`__errno_location' causes overflow in R_X86_64_PC32 relocation
12:30:54 pluto authdaemond: Installation complete: authvchkpw
if i try then to login with e.g. sqwebmail (5.0.1 compiled with -fPIC
too) the authdaemon segfaults:
12:30:54 pluto kernel: authdaemond[966]: segfault at 2aab004016b0
rip 2aab004016b0 rsp 7fffcde8 error 14
i have no idea if this would be a problem of authdaemon or of the
vpopmail libraries that the daemon uses? :-(
up to now i haven't heard of anybody that has had success with
courier-authlib & vpopmail on a amd64 architecture :-((
regards
 KoS


[vchkpw] how to do simple vpopmail delivery with filtering

2005-04-05 Thread Kurt Bigler
This is a vpopmail/qmailadmin question but I thought the emphasis was more
on vpopmail, so I'm asking here.

The qmailadmin INSTALL file has this to say about mail filtering:

> *MODIFY SPAM: If you want spam detection available to the end-user:
> --enable-modify-spam=Y
> (default spam command is
> "|preline /usr/local/bin/maildrop /etc/mailfilter"
> If you wnat something else, use
> --enable-spam-command="|spamcommand"
> NOTE: This command must deliver the mail)

Particularly the last line is of interest.

Apparently maildrop and procmail satisfy the requirement of delivering the
mail, and apparently these are the two options that most everyone uses.
However they both provide a lot of functionality I have no use for so I'd
like to avoid using them.  I do not need any kind of sorting of mail inter
multiple directories, for example.

All I need is to satisfy that requirement that the command must deliver the
mail.  I want it delivered exactly as vdelivermail would have delivered it,
but I want to pipe it through my filter on the way out.

I have been able to prototype my filtering functionality in a .qmail-user
file in one of my domain directories as follows:

| myfilter | /var/vpopmail/bin/vdelivermail '' bounce-no-mailbox

I have been testing this for several days and this approach is working fine.

However, it is a hack (and doesn't play well with qmailadmin), and what I
really want to do is to be able to use something like this in the
user/.qmail file instead:

| preline myfilter | simple_vpopmail_final_delivery

Or if simple_vpopmail_final_delivery already does the prelining, then even
better:

| myfilter | simple_vpopmail_final_delivery

My assumption is that what I am calling simple_vpopmail_final_delivery is in
fact the last stage of what vdelivermail does, and if so I'm wondering if
there is any architectural reason why this piece of functionality could not
be made available as a separate command, perhaps even as vdelivermail with
another command-line option to suppress prelinining and other functionality
associated with the user/.qmail file.

In the mean time, what is the best (simplest, most reliable) way to achieve
this simplistic delivery functionality?

Thanks in advance.

-Kurt Bigler



Re: [vchkpw] Re: compile "vpopmail" with -fPIC on x86_64

2005-04-05 Thread Marco Prechel
Pam,

i am working out of 

/downloads/qmailrocks/vpopmail-5.4.9/
 and i run a make clean before i re'configure. Unfortunatelly i ONLY have one 
64bit system, so i have to test on the production box at night time. never had 
this issue before, this is my first 64bit, and starting to regret the upgrade. 
:(

Let me know if you need any more info .. or want me to try something.


--marco



 
On Tuesday, April 05, 2005, at 02:48AM, Peter Palmreuther <[EMAIL PROTECTED]> 
wrote:

>Hello Marco,
>
>On Tuesday, April 5, 2005 at 5:17:53 AM Marco wrote:
>
>> I did compile vpopmail the way you suggested ... and now i'm
>> getting another error - different but same nature.
>
>Have you done a 'make distclean' in vpopmail source tree before you
>run the new configure?
>-- 
>Best regards
>Peter Palmreuther
>
>If God is Love, and Love is Blind, is Ray Charles God?
>
>
>