[vchkpw] Segfaulting in vadddomain
Hello there, I'm having a problem with the vadddomain tool; it's segfaulting. enrai domains # ls -l total 0 drwx-- 3 vpopmail vpopmail 112 May 26 15:54 arlman.com drwx-- 2 vpopmail vpopmail 80 Jun 14 11:19 enrai.xavamedia.nl drwx-- 3 vpopmail vpopmail 112 May 29 13:12 leden.hebe.nl drwx-- 3 vpopmail vpopmail 112 Jun 9 09:34 manuzhai.nl drwx-- 3 vpopmail vpopmail 112 May 29 16:53 xavamedia.nl enrai domains # vadddomain ochtman.nl test Segmentation fault enrai domains # ls -l total 0 drwx-- 3 vpopmail vpopmail 112 May 26 15:54 arlman.com drwx-- 2 vpopmail vpopmail 80 Jun 14 11:19 enrai.xavamedia.nl drwx-- 3 vpopmail vpopmail 112 May 29 13:12 leden.hebe.nl drwx-- 3 vpopmail vpopmail 112 Jun 9 09:34 manuzhai.nl drwx-- 2 vpopmail vpopmail 80 Jun 14 12:32 ochtman.nl drwx-- 3 vpopmail vpopmail 112 May 29 16:53 xavamedia.nl enrai domains # So the directory gets created, but it doesn't put anything in MySQL. I'm using vpopmail 5.4.16 with MySQL 4.1.20 on a Gentoo Linux system. Any ideas on what I can do to fix this? Regards, Manuzhai
Re: [vchkpw] Segfaulting in vadddomain
- Original Message - From: Manuzhai [EMAIL PROTECTED] I'm having a problem with the vadddomain tool; it's segfaulting. enrai domains # vadddomain ochtman.nl test Segmentation fault I'm using vpopmail 5.4.16 with MySQL 4.1.20 on a Gentoo Linux system. Any ideas on what I can do to fix this? try strace vadddomain ochtman.nl test and let us know what output you get Michael.
Re: [vchkpw] cannt relay
Cristi Tauber wrote: hello there, i installed qmail + vpopmail + mysql on debian . i configured vpopmail to allow roaming users (pop before smtp). if i get messages my ip goes to relay table in vpopmail mysql database , but i cannot relay. i mean : the ip is written in the table but when i send mail it says : relaying denied any clues ? Verify that your tcp.smtp.cdb file is updated when the ip gets inserted into the mysql table. Verify that your smtp server is using that tcp.smtp.cdb. It might be use a different one in a different directory. It you can, it is better to use SMTP authentication. Ken Jones
RE: [vchkpw] vpopmaild patch
Let me be the first to say WTF? Is it just me or is this English so bad it makes no sense to you either? -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Dmitriy MiksIr Sent: Saturday, 10 June 2006 4:08 a.m. To: vchkpw@inter7.com Subject: [vchkpw] vpopmaild patch Hi! VpopmailD - is very useful for many function. May be in future mail will be delivered via this daemon too =)) I write check_user patch for vpopmaild (as source of ideas was used chkuser of Antonio Nati). Also i rewrite a little access levels systems, for centralized access control... and help command for show only available for current access level commands. This batch seems work, but not tested very careful - any suggestions will be welcome. After weekends i will try to add command for check quotas.
Re: [vchkpw] vpopmaild patch
VeNoMouS wrote: Let me be the first to say WTF? Is it just me or is this English so bad it makes no sense to you either? -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Dmitriy MiksIr Sent: Saturday, 10 June 2006 4:08 a.m. To: vchkpw@inter7.com Subject: [vchkpw] vpopmaild patch Hi! VpopmailD - is very useful for many function. May be in future mail will be delivered via this daemon too =)) I write check_user patch for vpopmaild (as source of ideas was used chkuser of Antonio Nati). Also i rewrite a little access levels systems, for centralized access control... and help command for show only available for current access level commands. This batch seems work, but not tested very careful - any suggestions will be welcome. After weekends i will try to add command for check quotas. In his defense, his English is better than my Russian. Thinking about that, his English is better than many journalists. I have read articles more than twice and still not been able to understand what was intended. ;^) DAve -- Three years now I've asked Google why they don't have a logo change for Memorial Day. Why do they choose to do logos for other non-international holidays, but nothing for Veterans? Maybe they forgot who made that choice possible.
Re: [vchkpw] cannt relay
Ken Jones wrote: Cristi Tauber wrote: hello there, i installed qmail + vpopmail + mysql on debian . i configured vpopmail to allow roaming users (pop before smtp). if i get messages my ip goes to relay table in vpopmail mysql database , but i cannot relay. i mean : the ip is written in the table but when i send mail it says : relaying denied any clues ? Verify that your tcp.smtp.cdb file is updated when the ip gets inserted into the mysql table. Verify that your smtp server is using that tcp.smtp.cdb. It might be use a different one in a different directory. It you can, it is better to use SMTP authentication. Ken Jones stupid me ... after hours of knocking my head against the table, I figured out. in debian mysql listen only on 127.0.0.1 which in /etc/hosts is localhost.localdomain instead of just localhost and this is why vpopmail user can't login . i use tcp.smtp for static IPs . ken : what else is there for road warriors ? (besides smtp-auth which is not the case here) thanks cristi --- This message and its contents have been scanned and certified for transmission as being free from malicious code by eTrust Antivirus. This message may contain confidential, privileged or other legally protected information. It is intended for the addressee(s) only. If you are not the addressee, or someone the addressee authorized to receive this message, you are prohibited from copying, distributing or otherwise using it. Please notify the sender and return it.Thank you.
Re: [vchkpw] cannt relay
Cristi Tauber wrote: Ken Jones wrote: Cristi Tauber wrote: hello there, i installed qmail + vpopmail + mysql on debian . i configured vpopmail to allow roaming users (pop before smtp). if i get messages my ip goes to relay table in vpopmail mysql database , but i cannot relay. i mean : the ip is written in the table but when i send mail it says : relaying denied any clues ? Verify that your tcp.smtp.cdb file is updated when the ip gets inserted into the mysql table. Verify that your smtp server is using that tcp.smtp.cdb. It might be use a different one in a different directory. It you can, it is better to use SMTP authentication. Ken Jones stupid me ... after hours of knocking my head against the table, I figured out. in debian mysql listen only on 127.0.0.1 which in /etc/hosts is localhost.localdomain instead of just localhost and this is why vpopmail user can't login . i use tcp.smtp for static IPs . ken : what else is there for road warriors ? (besides smtp-auth which is not the case here) thanks cristi I would suggest running an SSL smtp server on the smtps port 465. You can use sslserver instead of tcpserver. Many places, like hotels, block outbound port 25 (smtp) but they do not block outbound port 465 (smtps) s as in SSL encrypted. You can also run a pop3s server (pop3 with SSL) on port 995. Ken
[vchkpw] Re: Segfaulting in vadddomain
try strace vadddomain ochtman.nl test and let us know what output you get Right; sorry, I'm not so well versed in C development. Since the output is quite big, I put it online: http://manuzhai.nl/strace-vadddomain.txt Hope this helps figuring out the problem! Regards, Manuzhai
[vchkpw] Re: vpopmaild patch
=) Yes, my english so bad, but you can look at patch for understand me =) Ok, try again. At first, patch add new command to vpopmaild: check_user [EMAIL PROTECTED]. This command return +OK if [EMAIL PROTECTED] - valid user (or alias, or maillist etc.) and -ERR if no user found in vpopmail backend. This part of patch based on chkuser patch for qmail by Antonio Nati. At second, my patch add centralized permission control - access levels stored in commands table. As result of this, i could modify help command for return custom answers, based on user's rights (for example, for anonymous user help return only login, check_user, help, quit commands). Next steps for me: add check_size command to vpopmaild for checks users/domain quota and create patch for qmail for check rcpt to via vpopmaild. Hope, all this can be interesting for someone's except me. Is this my English a little bit better? =( Sorry, if not =) DAve пишет: VeNoMouS wrote: Let me be the first to say WTF? Is it just me or is this English so bad it makes no sense to you either? -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Dmitriy MiksIr Sent: Saturday, 10 June 2006 4:08 a.m. To: vchkpw@inter7.com Subject: [vchkpw] vpopmaild patch Hi! VpopmailD - is very useful for many function. May be in future mail will be delivered via this daemon too =)) I write check_user patch for vpopmaild (as source of ideas was used chkuser of Antonio Nati). Also i rewrite a little access levels systems, for centralized access control... and help command for show only available for current access level commands. This batch seems work, but not tested very careful - any suggestions will be welcome. After weekends i will try to add command for check quotas. In his defense, his English is better than my Russian. Thinking about that, his English is better than many journalists. I have read articles more than twice and still not been able to understand what was intended. ;^) DAve
Re: [vchkpw] Re: Segfaulting in vadddomain
On Wednesday 14 June 2006 12:44, Manuzhai wrote: try strace vadddomain ochtman.nl test and let us know what output you get Right; sorry, I'm not so well versed in C development. strace is useful for a lot more than just C development ;) Since the output is quite big, I put it online: I love this guy! I'm not sure what the issue is, but I did notice a few things that might need to be addressed: open(/var/qmail/users/assign.14726, O_RDWR|O_CREAT|O_TRUNC, 0666) = 6 it's opening the new file with mode 666? Hopefully nobody guesses the filename, which appears to be based on the pid. This could allow local users to steal mail from arbitrary local domains/users. open(/var/qmail/users/assign, O_RDWR) = 7 it's opening users/assign as read-write? IMO, this should be read only, to protect the users/assign file in case something happens to the vadddomain process. Unless there's some reason I don't know about for opening it read-write, in which case, please beat me over the head with it :) -Jeremy -- Jeremy Kitchen ++ [EMAIL PROTECTED] http://www.pirate-party.us/ -- defend your rights pgpXRb5GeThDq.pgp Description: PGP signature
Re: [vchkpw] Re: Segfaulting in vadddomain
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Manuzhai wrote: http://manuzhai.nl/strace-vadddomain.txt Can't say for sure from the strace output, as it only shows system calls, but it fails after reading from the assign file, and vpopmail is not very good at handling syntax errors in files. I would assume your assign file has some sort of syntax error in it. - -- /* Matt Brookings [EMAIL PROTECTED] GnuPG Key B7B54216 Software developer Systems technician Inter7 Internet Technologies, Inc. (815)776-9465 */ -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFEkKfLhzYRRre1QhYRAuEMAJoCzKeu6o/aTv/A2GiKNXDIcDrNgACfTa5X /+ZXOS1d3u/rnSlIIkgBQCM= =Fa4m -END PGP SIGNATURE-
Re: [vchkpw] Re: Segfaulting in vadddomain
Jeremy Kitchen wrote: open(/var/qmail/users/assign, O_RDWR) = 7 it's opening users/assign as read-write? IMO, this should be read only, to protect the users/assign file in case something happens to the vadddomain process. Unless there's some reason I don't know about for opening it read-write, in which case, please beat me over the head with it :) Might need the write permissions to write the new domain to the assign file, but yah know, I could be wrong about that :) Rick
Re: [vchkpw] Re: Segfaulting in vadddomain
On Wednesday 14 June 2006 17:37, Rick Macdougall wrote: Jeremy Kitchen wrote: open(/var/qmail/users/assign, O_RDWR) = 7 it's opening users/assign as read-write? IMO, this should be read only, to protect the users/assign file in case something happens to the vadddomain process. Unless there's some reason I don't know about for opening it read-write, in which case, please beat me over the head with it :) Might need the write permissions to write the new domain to the assign file, but yah know, I could be wrong about that :) that's what the tmp file is for... ;) -Jeremy -- Jeremy Kitchen ++ [EMAIL PROTECTED] http://www.pirate-party.us/ -- defend your rights pgpiTUISu8PhL.pgp Description: PGP signature
Re: [vchkpw] Re: Segfaulting in vadddomain
I believe I've seen this happen when the vpopmail/vchkpw user/group ids are incorrect - that is, they don't match the value specified in the assign file. Paul -- Paul Oehler NEXCESS.NET Internet Solutions http://nexcess.net 304 1/2 S. State St. Ann Arbor, MI 48104 1.866.NEXCESS
Re: [vchkpw] Blocking Fake Froms?
On Jun 13, 2006, at 3:50 AM, Mustafa Şimşek wrote: 2. this spammer use fake ip addresses so i can't detect real user. is it possible to detect real user from logs? If you check the Received headers, you can see what SMTP AUTH address he used. -- Tom Collins - [EMAIL PROTECTED] Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/ QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/
[vchkpw] Re: Segfaulting in vadddomain
Matt Brookings wrote: Can't say for sure from the strace output, as it only shows system calls, but it fails after reading from the assign file, and vpopmail is not very good at handling syntax errors in files. I would assume your assign file has some sort of syntax error in it. Here is what it looks like: enrai users # cat assign +localhost-:localhost:89:89:/var/vpopmail/domains/localhost:-:: +arlman.com-:arlman.com:89:89:/var/vpopmail/domains/arlman.com:-:: +leden.hebe.nl-:leden.hebe.nl:89:89:/var/vpopmail/domains/leden.hebe.nl:-:: +manuzhai.nl-:manuzhai.nl:89:89:/var/vpopmail/domains/manuzhai.nl:-:: +xavamedia.nl-:xavamedia.nl:89:89:/var/vpopmail/domains/xavamedia.nl:-:: . I've never touched it, so if it has a syntax error, that would be vpopmail's (or maybe qmailadmin's?) fault... Regards, Manuzhai