Re: [vchkpw] Corrupted Delivered-To header?

2003-06-25 Thread Tom Collins
On Wednesday, June 25, 2003, at 06:41  PM, Doug Clements wrote:
Greetings,
   We're getting a report of a bogus Delivered-To header from one of 
our customers. Apparently, Exchange relies on this in some way.

You can see it here.. The real domain is linear-systems.com, but the 
delivered-to header doesn't complete the domain in the first part of 
the line and it ends up being systems.com. Has anyone seen this 
before, and know of a fix?

>Received: from exchange-pop3-connector.com (LSPROXY [192.168.0.2]) by
>lsproxy.linkline.com with SMTP (Microsoft Exchange Internet Mail 
Service
>Version 5.5.2653.13)
> id 205XX740; Wed, 18 Jun 2003 15:13:04 -0700
>Received: (qmail 94044 invoked by uid 1009); 18 Jun 2003 22:11:20 
-
>Delivered-To: [EMAIL PROTECTED]
>Received: (qmail 94025 invoked by uid 0); 18 Jun 2003 22:11:20 -
This is a bug in vdelivermail.c, in the section of code after the 
following comment:

/* use the DTLINE variable, but skip past the dash in
 * [EMAIL PROTECTED]
 */
Basically, it assumes the first dash separates the domain name from the 
email address.  The solution might be to find the '@' in DTLINE, 
determine the length of the domain name (@ to trailing NULL) and skip 
that many bytes from the beginning of the address.

Maybe it's better to use other environment variables (USER, HOST, 
LOCAL, RECIPIENT?) to build the delivered-to header.

--
Tom Collins
[EMAIL PROTECTED]



Re: [vchkpw] Corrupted Delivered-To header?

2003-06-25 Thread Robin Szemeti
On Thursday 26 June 2003 02:41, Doug Clements wrote:
> Greetings,
> We're getting a report of a bogus Delivered-To header from one of
> our customers. Apparently, Exchange relies on this in some way.

it shouldn't.

The header lines are not normally used in mail routing.  exchange *should* be 
using the smtp envelope (ie the "RCPT [EMAIL PROTECTED]" that is 
passed in the SMTP exchange) to route the message, rather than information in 
a message header, which is purely for post-event audit purposes.

I had this (or at least a similar issue) with a Exchange mail administrator 
who was unable to route mail from a mailing list to his user because the 'To: 
...' line in the headers didn't match any user in his domain ... I pointed 
out (to no avail) that the To: header had nothing to do with routing the 
message ... :(

> You can see it here.. The real domain is linear-systems.com, but the
> delivered-to header doesn't complete the domain in the first part of the
> line and it ends up being systems.com. Has anyone seen this before, and
> know of a fix?

sadly I don't know of a 'fix' ... but there may be one ...  I suspect this is 
a qmail issue rather than a vchkpw issue,( although really, all its doing is 
recording one step in the internal qmail routing, so its arbitary what is 
written there, Exchange shouldn;t even be reading it.)  (this line is the 
routing to the alias in /var/qmail/users/assign, it is defined in 
/var/qmail/control/rcpthosts) .. its just an record of one part of the 
routing within the server, I don't really see why Exchange should be worried 
by it in anyway.

I have however, as I said, had similar problems with exchange, but for that 
part, there is only one cure ;)

>  >Received: from exchange-pop3-connector.com (LSPROXY [192.168.0.2]) by
>  >lsproxy.linkline.com with SMTP (Microsoft Exchange Internet Mail Service
>  >Version 5.5.2653.13)
>  > id 205XX740; Wed, 18 Jun 2003 15:13:04 -0700
>  >Received: (qmail 94044 invoked by uid 1009); 18 Jun 2003 22:11:20 -
>  >Delivered-To: [EMAIL PROTECTED]
>  >Received: (qmail 94025 invoked by uid 0); 18 Jun 2003 22:11:20 -
>
> Thanks!
>
> --Doug

-- 
Robin Szemeti

Redpoint Consulting Limited
Real Solutions For A Virtual World



[vchkpw] Corrupted Delivered-To header?

2003-06-25 Thread Doug Clements
Greetings,
   We're getting a report of a bogus Delivered-To header from one of 
our customers. Apparently, Exchange relies on this in some way.

You can see it here.. The real domain is linear-systems.com, but the 
delivered-to header doesn't complete the domain in the first part of the 
line and it ends up being systems.com. Has anyone seen this before, and 
know of a fix?

>Received: from exchange-pop3-connector.com (LSPROXY [192.168.0.2]) by
>lsproxy.linkline.com with SMTP (Microsoft Exchange Internet Mail Service
>Version 5.5.2653.13)
> id 205XX740; Wed, 18 Jun 2003 15:13:04 -0700
>Received: (qmail 94044 invoked by uid 1009); 18 Jun 2003 22:11:20 -
>Delivered-To: [EMAIL PROTECTED]
>Received: (qmail 94025 invoked by uid 0); 18 Jun 2003 22:11:20 -
Thanks!

--Doug




Re: [vchkpw] vchkpw and swebmail's /etc/userdb?

2003-06-25 Thread Robin Szemeti
On Wednesday 25 June 2003 22:43, Ajai Khattri wrote:
> Robin Szemeti wrote:
> > err  ... because we aren't using courier-imap or courier-pop?
> >
> > we are using tcpserver and qmail-pop3d, authenticating against vchkpw. as
> > described in the vpopmail INSTALL file.
> >
> > if courier-pop will do it for us, (authenticating system users agaisnt
> > /etc/userdb and virtual domains against vchkpw ) then thats what we'll do
> > ...
> >
> > I thought courier-pop used a cdb database thing,  /etc/userdb is a gd
> > database ... shrug .. I'll go and check out this 'courier-pop' thing
> > then.
>
> Courier-imap, which does IMAP and POP3, authenticates using a variety of
> methods. It can use your vchkpw or it can use userdb - you build and
> configure it for whatever auth module you need.

yes, thanks .. Im just trying to bulid it now (current snapshot fails to 
build, "undefined refernce to 'ERR_error_string_n' tcpd/libcouriertls.c 252" 
... working back to a version that does)

-- 
Robin Szemeti

Redpoint Consulting Limited
Real Solutions For A Virtual World



Re: [vchkpw] vchkpw and swebmail's /etc/userdb?

2003-06-25 Thread Ajai Khattri
Robin Szemeti wrote:

err  ... because we aren't using courier-imap or courier-pop?

we are using tcpserver and qmail-pop3d, authenticating against vchkpw. as 
described in the vpopmail INSTALL file.

if courier-pop will do it for us, (authenticating system users agaisnt 
/etc/userdb and virtual domains against vchkpw ) then thats what we'll do ... 

I thought courier-pop used a cdb database thing,  /etc/userdb is a gd 
database ... shrug .. I'll go and check out this 'courier-pop' thing then.
Courier-imap, which does IMAP and POP3, authenticates using a variety of 
methods. It can use your vchkpw or it can use userdb - you build and 
configure it for whatever auth module you need.

--
Aj.
Systems Administrator / Developer



Re: [vchkpw] vchkpw and swebmail's /etc/userdb?

2003-06-25 Thread Robin Szemeti
On Wednesday 25 June 2003 21:32, Rick Macdougall wrote:
> Hi,
>
> Maybe I'm missing something, but why can't you continue to use userdb
> for system users?
>
> qmail - will still work like it used to

yup. qmail isnt involved at this point.

> courier-imap will work with it
> courier-pop will work with it.

err  ... because we aren't using courier-imap or courier-pop?

we are using tcpserver and qmail-pop3d, authenticating against vchkpw. as 
described in the vpopmail INSTALL file.

if courier-pop will do it for us, (authenticating system users agaisnt 
/etc/userdb and virtual domains against vchkpw ) then thats what we'll do ... 

I thought courier-pop used a cdb database thing,  /etc/userdb is a gd 
database ... shrug .. I'll go and check out this 'courier-pop' thing then.

thanks ...

> Regards,
>
> Rick
>
> Robin Szemeti wrote:
> > Hi,
> >
> > We have been running qmail with sqwebmail for web-mail, we have been
> > using /etc/userdb for sqwebmail authentication, as this is allows us to
> > have seperate mail passwords to ssh/login passwords on system accounts
> > ...
> >
> > we've recently upgraded to vpopmail and vchkpw and would really like to
> > continue with the 'seperate password' scenario, but as far as I can see
> > the only option is to authenticate system accounts agaisnt /etc/passwd
> >
> > My only thoughts so far are to set up a virtual domain for localhost, add
> > users to the domain and then symlink
> > /var/vpopmail/domains/localhost/ to /home/ 
> >
> > this must be an already-solved oroblem, and I'm just not seeing it ...
> > any clues?

-- 
Robin Szemeti

Redpoint Consulting Limited
Real Solutions For A Virtual World



Re: [vchkpw] vchkpw and swebmail's /etc/userdb?

2003-06-25 Thread Rick Macdougall
Hi,

Maybe I'm missing something, but why can't you continue to use userdb 
for system users?

qmail - will still work like it used to
courier-imap will work with it
courier-pop will work with it.
I don't use sqwebmail, but I assume it uses the same auth mech as 
courier-imap does, so it would still work as well.

Regards,

Rick

Robin Szemeti wrote:

Hi,

We have been running qmail with sqwebmail for web-mail, we have been using 
/etc/userdb for sqwebmail authentication, as this is allows us to have 
seperate mail passwords to ssh/login passwords on system accounts ... 

we've recently upgraded to vpopmail and vchkpw and would really like to 
continue with the 'seperate password' scenario, but as far as I can see the 
only option is to authenticate system accounts agaisnt /etc/passwd

My only thoughts so far are to set up a virtual domain for localhost, add 
users to the domain and then symlink  
/var/vpopmail/domains/localhost/ to /home/  

this must be an already-solved oroblem, and I'm just not seeing it ... any 
clues?





[vchkpw] vchkpw and swebmail's /etc/userdb?

2003-06-25 Thread Robin Szemeti

Hi,

We have been running qmail with sqwebmail for web-mail, we have been using 
/etc/userdb for sqwebmail authentication, as this is allows us to have 
seperate mail passwords to ssh/login passwords on system accounts ... 

we've recently upgraded to vpopmail and vchkpw and would really like to 
continue with the 'seperate password' scenario, but as far as I can see the 
only option is to authenticate system accounts agaisnt /etc/passwd

My only thoughts so far are to set up a virtual domain for localhost, add 
users to the domain and then symlink  
/var/vpopmail/domains/localhost/ to /home/  

this must be an already-solved oroblem, and I'm just not seeing it ... any 
clues?

-- 
Robin Szemeti

Redpoint Consulting Limited
Real Solutions For A Virtual World



RE: [vchkpw] getting local mails via pop3

2003-06-25 Thread Benjamin Tomhave
I'm a little confused here...why would you be continuing to use local
accounts if you've installed vpopmail?  I'm not an authority and not certain
about this, but it seems to me that it has to be one or the other, not both.

> -Original Message-
> From: Gonzo [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 25, 2003 10:40 AM
> To: [EMAIL PROTECTED]
> Subject: [vchkpw] getting local mails via pop3
>
>
> Hello.
>
> I have qmail and vpopmail installed.
> Getting mails for virtual domains works well, but not for local users.
> pop3d runs as root (so it has access to /etc/passwd), but I don't know
> why this error occurs when I wan't to get my local mail via POP3:
>
> The client gets:
>
> -ERR authorization failed
>
> Syslog prints:
>
> Jun 25 18:39:41 base vpopmail[24197]: vchkpw: vpopmail user not found
> phi@:10.200.10.1
>
> I'm running the client from the internal machine 10.200.10.1, thats
> why the IP is in the logs.
> phi definitly exists in /etc/passwd.
>
> Any ideas?
>
> Gonzo
>
>




[vchkpw] getting local mails via pop3

2003-06-25 Thread Gonzo
Hello.

I have qmail and vpopmail installed.
Getting mails for virtual domains works well, but not for local users.
pop3d runs as root (so it has access to /etc/passwd), but I don't know
why this error occurs when I wan't to get my local mail via POP3:

The client gets:

-ERR authorization failed

Syslog prints:

Jun 25 18:39:41 base vpopmail[24197]: vchkpw: vpopmail user not found
phi@:10.200.10.1

I'm running the client from the internal machine 10.200.10.1, thats
why the IP is in the logs.
phi definitly exists in /etc/passwd.

Any ideas?

Gonzo




Re: [vchkpw] Custom bounce messages

2003-06-25 Thread Tom Collins
On Wednesday, June 25, 2003, at 01:49  AM, Marcus Williams wrote:
I've set up a custom bounce message using the .no-user.msg file, but
the message created gets extra slash characters added to the front of
the second and subsequent lines of the message.
Is this to be expected?
There's a good chance that .no-user.msg can only be one line.  I'm 
guessing that something in the qmail delivery mechanism (and not 
vpopmail) is adding the backslashes.

--
Tom Collins
[EMAIL PROTECTED]



[vchkpw] error "make" courier-imap

2003-06-25 Thread Nicolas Quilliet
hi,

I've got this error during the "make" of courier-imap : 

authvchkpw.c: In function `auth_vchkpw_changepass':
authvchkpw.c:142: warning: assignment from incompatible pointer type
authvchkpw.c:151: dereferencing pointer to incomplete type
authvchkpw.c:151: dereferencing pointer to incomplete type
make[1]: *** [authvchkpw.o] Error 1


Why ?
Anyone can help me please?
thx.

Nico




Re: [vchkpw] Problem with sharing domains dir via NFS

2003-06-25 Thread Davide Giunchi
>
> We have to mail servers running qmail + vpopmail 5.3.9
> The second server should get the vpopmail/domains dir via NFS from the
> first one. It seems that just the first 100 domains are working. All
> domans inside domains/0/ or domains/1/ are not recognized by the second
> server. I guess this has something to do with domains/.dir-control?
>

No, you must syncronize 
/var/qmail/control/rcpthosts
/var/qmail/control/morercpthosts
/var/qmail/control/virtualdomains
/var/qmail/users/assign

From the first server to the second server (better with rsync), then execute

/var/qmail/bin/qmail-newu
/var/qmail/bin/qmail-newu
/var/qmail/bin/qmail-newmrh
killall -HUP qmail-send

on the second server, to make it syncronize without restart qmail.

Regards.

-- 
Davide Giunchi



[vchkpw] Problem with sharing domains dir via NFS

2003-06-25 Thread Bernhard Fuerst
Hi,

hopefully someone could help me with this problem:

We have to mail servers running qmail + vpopmail 5.3.9
The second server should get the vpopmail/domains dir via NFS from the 
first one. It seems that just the first 100 domains are working. All 
domans inside domains/0/ or domains/1/ are not recognized by the second 
server. I guess this has something to do with domains/.dir-control?

Any chance to get the second server recognizing the 100+ domains?

Thanks,
Bernhard



[vchkpw] Custom bounce messages

2003-06-25 Thread Marcus Williams
Hi -

I've set up a custom bounce message using the .no-user.msg file, but
the message created gets extra slash characters added to the front of
the second and subsequent lines of the message.

So my bounce file says:

No such user at this domain
Please contact XYZ on 0123456789
Web: http://www.onq2.com

but the bounced message says:

No such user at this domain
/Please contact XYZ on 0123456789
/Web: http://www.onq2.com


Is this to be expected?

Cheers

Marcus

PS if it matters I'm using vpopmail 5.3.16


-- 
Marcus Williams - http://www.onq2.com
Quintic Ltd, 39 Newnham Road, Cambridge, UK