Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Qmail: users

mkvalidrcptto error

 

 

Qmail users RSS feed   Index | Next | Previous | View Threaded


cweimann at gmail

Jun 26, 2008, 1:03 PM

Post #1 of 12 (943 views)
Permalink
mkvalidrcptto error

After the recent discussion about about recipient checking I decided
to try to set it up. I can't seem to get mkvalidrcptto working. I
have reduced this problem to a very basic configuration.

jet# cat /var/qmail/control/virtualdomains
nowhere.mil:joe-foo
jet# cat /var/qmail/control/rcpthosts
nowhere.mil

That virtualdomains bit is straight out of the qmail-send man page.
Now when I run mkvalidrcptto I get...

jet# ./mkvalidrcptto
ERROR: virtual user "joe-foo" not found (for virtualdomain "nowhere.mil")

If I chage the virtualdomains to be nowhere.mil:joe rather than
nowhere.mil:joe-foo it works. I need the -foo form though because I
have a single user with multiple domains and the handling of the
billing user for the different domains needs to be different.


feh at fehcom

Jun 27, 2008, 2:05 AM

Post #2 of 12 (916 views)
Permalink
Re: mkvalidrcptto error [In reply to]

Hi,

try my RECIEPIENTS extension. It works fine with the address extensions.


http://www.fehcom.de/qmail.html

regards.
--eh.


On Thu, 26 Jun 2008 16:03:55 -0400, "Christopher
Weimann" <cweimann[at]gmail.com> wrote :

> After the recent discussion about about recipient checking I decided
> to try to set it up. I can't seem to get mkvalidrcptto working. I
> have reduced this problem to a very basic configuration.
>
> jet# cat /var/qmail/control/virtualdomains
> nowhere.mil:joe-foo
> jet# cat /var/qmail/control/rcpthosts
> nowhere.mil
>
> That virtualdomains bit is straight out of the qmail-send man page.
> Now when I run mkvalidrcptto I get...
>
> jet# ./mkvalidrcptto
> ERROR: virtual user "joe-foo" not found (for virtualdomain "nowhere.mil")
>
> If I chage the virtualdomains to be nowhere.mil:joe rather than
> nowhere.mil:joe-foo it works. I need the -foo form though because I
> have a single user with multiple domains and the handling of the
> billing user for the different domains needs to be different.
>
>
>

--
Dr. Erwin Hoffmann | FEHCom | http://www.fehcom.de/
Wiener Weg 8, 50858 Cologne | T: +49 221 484 4923 | F: ...24


cweimann at gmail

Jun 27, 2008, 10:13 AM

Post #3 of 12 (914 views)
Permalink
Re: mkvalidrcptto error [In reply to]

On Fri, Jun 27, 2008 at 5:05 AM, Erwin Hoffmann <feh[at]fehcom.de> wrote:
> Hi,
>
> try my RECIEPIENTS extension. It works fine with the address extensions.
>
>

I'm actually using your SpamControl patch but am looking for a script
to generate the appropriate recipients file and was hoping mkvalidrcptto
would do the trick. I see on the page for you recipients patch some
pointers to such scripts. Looking at create_recipients.py now. Since
its python rather than perl I'm sure I'll be able to coax it into doing
what I'm looking for.

Thanks!


jms1 at jms1

Jul 2, 2008, 9:13 PM

Post #4 of 12 (867 views)
Permalink
Re: mkvalidrcptto error [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2008-06-26, at 1603, Christopher Weimann wrote:
>
> After the recent discussion about about recipient checking I decided
> to try to set it up. I can't seem to get mkvalidrcptto working. I
> have reduced this problem to a very basic configuration.
>
> jet# cat /var/qmail/control/virtualdomains
> nowhere.mil:joe-foo
> jet# cat /var/qmail/control/rcpthosts
> nowhere.mil
>
> That virtualdomains bit is straight out of the qmail-send man page.
> Now when I run mkvalidrcptto I get...
>
> jet# ./mkvalidrcptto
> ERROR: virtual user "joe-foo" not found (for virtualdomain
> "nowhere.mil")
>
> If I chage the virtualdomains to be nowhere.mil:joe rather than
> nowhere.mil:joe-foo it works. I need the -foo form though because I
> have a single user with multiple domains and the handling of the
> billing user for the different domains needs to be different.


i've been on a vacation of sorts for the past week and a half, and
didn't see this message until about twenty minutes ago.

this is a bug in the "mkvalidrcptto" script- a case i didn't think of
when writing it. thank you for pointing it out.

please download this version and try it instead. if it works, this
will become the newest version.

URL: http://qmail.jms1.net/scripts/mkvalidrcptto.test
MD5: 4599b8778a3970f0a3d61fa41c26153a


- --------------------------------------------------------
| John M. Simpson -- KG4ZOW -- Programmer At Large |
| http://www.jms1.net/ <jms1[at]jms1.net> |
- --------------------------------------------------------
| Hope for America -- http://www.ronpaul2008.com/ |
- --------------------------------------------------------





-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkhsUfwACgkQEB9RczMG/PuAJQCgrYoLW494iychSxAvT+ovrO8S
uD8An3sulQ8PVTzyVwVI5dEdoCpaYpXc
=ILHd
-----END PGP SIGNATURE-----


cweimann at gmail

Jul 3, 2008, 9:07 AM

Post #5 of 12 (854 views)
Permalink
Re: mkvalidrcptto error [In reply to]

Closer...

jet# ./mkvalidrcptto.test | egrep "joe|nowhere.mil"
Virtual domain "nowhere.mil" will not reject mail to non-existent mailboxes.
joe[at]localhost
joe-foo-joe[at]localhost
@nowhere.mil
jet# ls /home/joe/.qmail*
/home/joe/.qmail-foo-joe
jet#

It seems to think I have a /home/joe/.qmail-foo-default file. I would
expect it to only accept mail for joe[at]nowhere.mil.

Thanks for looking at this.

On Thu, Jul 3, 2008 at 12:13 AM, John Simpson <jms1[at]jms1.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 2008-06-26, at 1603, Christopher Weimann wrote:
>>
>> After the recent discussion about about recipient checking I decided
>> to try to set it up. I can't seem to get mkvalidrcptto working. I
>> have reduced this problem to a very basic configuration.
>>
>> jet# cat /var/qmail/control/virtualdomains
>> nowhere.mil:joe-foo
>> jet# cat /var/qmail/control/rcpthosts
>> nowhere.mil
>>
>> That virtualdomains bit is straight out of the qmail-send man page.
>> Now when I run mkvalidrcptto I get...
>>
>> jet# ./mkvalidrcptto
>> ERROR: virtual user "joe-foo" not found (for virtualdomain "nowhere.mil")
>>
>> If I chage the virtualdomains to be nowhere.mil:joe rather than
>> nowhere.mil:joe-foo it works. I need the -foo form though because I
>> have a single user with multiple domains and the handling of the
>> billing user for the different domains needs to be different.
>
>
> i've been on a vacation of sorts for the past week and a half, and didn't
> see this message until about twenty minutes ago.
>
> this is a bug in the "mkvalidrcptto" script- a case i didn't think of when
> writing it. thank you for pointing it out.
>
> please download this version and try it instead. if it works, this will
> become the newest version.
>
> URL: http://qmail.jms1.net/scripts/mkvalidrcptto.test
> MD5: 4599b8778a3970f0a3d61fa41c26153a
>
>
> - --------------------------------------------------------
> | John M. Simpson -- KG4ZOW -- Programmer At Large |
> | http://www.jms1.net/ <jms1[at]jms1.net> |
> - --------------------------------------------------------
> | Hope for America -- http://www.ronpaul2008.com/ |
> - --------------------------------------------------------
>
>
>
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.8 (Darwin)
>
> iEYEARECAAYFAkhsUfwACgkQEB9RczMG/PuAJQCgrYoLW494iychSxAvT+ovrO8S
> uD8An3sulQ8PVTzyVwVI5dEdoCpaYpXc
> =ILHd
> -----END PGP SIGNATURE-----
>


jms1 at jms1

Jul 3, 2008, 11:51 AM

Post #6 of 12 (855 views)
Permalink
Re: mkvalidrcptto error [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2008-07-03, at 1207, Christopher Weimann wrote:
>
> Closer...
>
> jet# ./mkvalidrcptto.test | egrep "joe|nowhere.mil"
> Virtual domain "nowhere.mil" will not reject mail to non-existent
> mailboxes.
> joe[at]localhost
> joe-foo-joe[at]localhost
> @nowhere.mil
> jet# ls /home/joe/.qmail*
> /home/joe/.qmail-foo-joe
> jet#
>
> It seems to think I have a /home/joe/.qmail-foo-default file. I would
> expect it to only accept mail for joe[at]nowhere.mil.

it doesn't inspect the contents of the home directory at all. however,
after re-reading "man dot-qmail" (i don't normally use system users
for mailboxes at all, so this stuff isn't as fresh in my mind as it
should be) i can see that it needs to.

i've just updated it, please try again.

URL: http://qmail.jms1.net/scripts/mkvalidrcptto.test (same)
MD5: 8951fdafa0ffac3d01b165c53961fda2


> Thanks for looking at this.

again, thanks for letting me know... i'd much rather make the script
correctly handle all of these (as i think of them) "edge cases", than
have to tell people to look elsewhere simply because they don't do
things exactly the same way i do (i.e. with a zero-byte "locals" file,
and every domain, including the "me" domain, managed by vpopmail.)


- --------------------------------------------------------
| John M. Simpson -- KG4ZOW -- Programmer At Large |
| http://www.jms1.net/ <jms1[at]jms1.net> |
- --------------------------------------------------------
| Hope for America -- http://www.ronpaul2008.com/ |
- --------------------------------------------------------





-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkhtH6UACgkQEB9RczMG/PsLdACgo81f6nTgYhXqT7J4Oez2CmL5
V5MAoKa7JGrxtRzATNV4f5CL0aLnE2EI
=Yvi9
-----END PGP SIGNATURE-----


cweimann at gmail

Jul 3, 2008, 4:03 PM

Post #7 of 12 (852 views)
Permalink
Re: mkvalidrcptto error [In reply to]

Well, its different :)

On Thu, Jul 3, 2008 at 2:51 PM, John Simpson <jms1[at]jms1.net> wrote:
>>
>> jet# ./mkvalidrcptto.test | egrep "joe|nowhere.mil"
>> Virtual domain "nowhere.mil" will not reject mail to non-existent
>> mailboxes.
>> joe[at]localhost
>> joe-foo-joe[at]localhost
>> @nowhere.mil
>> jet# ls /home/joe/.qmail*
>> /home/joe/.qmail-foo-joe
>> jet#
>>
>> It seems to think I have a /home/joe/.qmail-foo-default file. I would
>> expect it to only accept mail for joe[at]nowhere.mil.
>
> it doesn't inspect the contents of the home directory at all. however, after
> re-reading "man dot-qmail" (i don't normally use system users for mailboxes
> at all, so this stuff isn't as fresh in my mind as it should be) i can see
> that it needs to.
>
> i've just updated it, please try again.
>

jet# ./mkvalidrcptto.test
ERROR: no appropriate .qmail file exists in "joe-foo" home directory,
for virtual domain "nowhere.mil"

> again, thanks for letting me know... i'd much rather make the script
> correctly handle all of these (as i think of them) "edge cases", than have
> to tell people to look elsewhere simply because they don't do things exactly
> the same way i do (i.e. with a zero-byte "locals" file, and every domain,
> including the "me" domain, managed by vpopmail.)
>

In my situation I have one customer might have multiple domains. They will have
different people responsible for the billing@ addresses for each
domain but they
only have one account on the mail server. Therefore the first domain
might have
/home/joe/.qmail-foo-billing and /home/joe/.qmail-bar-billing and
those two files
have different delivery instructions in them. Some clients have a
-default file
besides the -billing one but the sane ones do not. I'm pretty sure
one even has
a -default for one domain but not the others.

As far as this being an edge case I'm not really sure how else I would do it :)


jms1 at jms1

Jul 4, 2008, 1:30 PM

Post #8 of 12 (830 views)
Permalink
Re: mkvalidrcptto error [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2008-07-03, at 1903, Christopher Weimann wrote:
> On Thu, Jul 3, 2008 at 2:51 PM, John Simpson <jms1[at]jms1.net> wrote:
>>>
>>> jet# ./mkvalidrcptto.test | egrep "joe|nowhere.mil"
>>> Virtual domain "nowhere.mil" will not reject mail to non-existent
>>> mailboxes.
>>> joe[at]localhost
>>> joe-foo-joe[at]localhost
>>> @nowhere.mil
>>> jet# ls /home/joe/.qmail*
>>> /home/joe/.qmail-foo-joe
>>> jet#
>>>
>>> It seems to think I have a /home/joe/.qmail-foo-default file. I
>>> would
>>> expect it to only accept mail for joe[at]nowhere.mil.
>>
>> it doesn't inspect the contents of the home directory at all.
>> however, after
>> re-reading "man dot-qmail" (i don't normally use system users for
>> mailboxes
>> at all, so this stuff isn't as fresh in my mind as it should be) i
>> can see
>> that it needs to.
>>
>> i've just updated it, please try again.
>>
>
> jet# ./mkvalidrcptto.test
> ERROR: no appropriate .qmail file exists in "joe-foo" home directory,
> for virtual domain "nowhere.mil"
>
> Well, its different :)


i really need to do this stuff without samuel adams "helping" me, as
he was last night. i just did what i should have done at first- set up
a test user and created some dummy .qmail files, to make sure it did
what it was supposed to do. it seems to be working for me now- to the
point where it *is* /usr/local/bin/mkvalidrcptto on my own server.

let me know how this one works for you:

URL: http://qmail.jms1.net/scripts/mkvalidrcptto.test
MD5: 36b47e72286ab0bd8c0e3e984e5d853d

i'm pretty sure this one will do the trick, if so i plan to make it
the new "release" version on the web page.

- --------------------------------------------------------
| John M. Simpson -- KG4ZOW -- Programmer At Large |
| http://www.jms1.net/ <jms1[at]jms1.net> |
- --------------------------------------------------------
| Hope for America -- http://www.ronpaul2008.com/ |
- --------------------------------------------------------





-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkhuiFMACgkQEB9RczMG/Pvp4wCfbaEx5W4K083mrZhcDl82AaVt
bx4AmgKbbSNi+01VKxyCkyataw3aDBKU
=VdZ6
-----END PGP SIGNATURE-----


cweimann at gmail

Jul 7, 2008, 5:43 PM

Post #9 of 12 (797 views)
Permalink
Re: mkvalidrcptto error [In reply to]

It indeed works perfectly for that case now. Now that it has made it
past that point there are of course new errors. Fortunately I think
we are almost there :)

Here is the simplest case setup..

jet# cat /var/qmail/control/rcpthosts
nowhere.mil
example.com
localhost

jet# cat /var/qmail/control/virtualdomains
nowhere.mil:joe-foo
example.com:example

jet# ls -1 /var/qmail/alias/.qmail-example-*
/var/qmail/alias/.qmail-example-fred
/var/qmail/alias/.qmail-example-billing

And here are the results...

jet# ./mkvalidrcptto.test
ERROR: virtual user "example" not found (for virtualdomain "example.com")

qtraceaddr comes up with this.

jet# ./qtraceaddr fred[at]example.com
input: "fred[at]example.com"
after percenthack: "fred[at]example.com"
after virtualdomains: "example-fred"
no entry in users/cdb
matched default /etc/passwd entry for "alias"
delivering as USER="alias", UID="81", GID="81"
deliver according to "/var/qmail/alias/.qmail-example-fred"


jms1 at jms1

Jul 9, 2008, 3:49 PM

Post #10 of 12 (769 views)
Permalink
Re: mkvalidrcptto error [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2008-07-07, at 2043, Christopher Weimann wrote:
>
> qtraceaddr comes up with this.
>
> jet# ./qtraceaddr fred[at]example.com
> input: "fred[at]example.com"
> after percenthack: "fred[at]example.com"
> after virtualdomains: "example-fred"
> no entry in users/cdb
> matched default /etc/passwd entry for "alias"
> delivering as USER="alias", UID="81", GID="81"
> deliver according to "/var/qmail/alias/.qmail-example-fred"


i had never seen "qtraceaddr" before this. very nice.

one suggestion for "qtraceaddr"... instead of using the QMAIL,
QMAILBREAK, and QMAILALIAS variables, it can run "qmail-showctl" and
capture these data from the "qmail home directory:", "user-ext
delimiter:", and "user ids:" lines.

looking at "mkvalidrcptto" now...

- --------------------------------------------------------
| John M. Simpson -- KG4ZOW -- Programmer At Large |
| http://www.jms1.net/ <jms1[at]jms1.net> |
- --------------------------------------------------------
| Hope for America -- http://www.ronpaul2008.com/ |
- --------------------------------------------------------





-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkh1QIUACgkQEB9RczMG/PtAVQCg0ABpdyfhyRl584SdcHlpZfTh
gW4AoNvfHJ1qaLWBYOS1e1bUIXVHr5Po
=85Il
-----END PGP SIGNATURE-----


jms1 at jms1

Jul 9, 2008, 5:44 PM

Post #11 of 12 (768 views)
Permalink
Re: mkvalidrcptto error [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2008-07-07, at 2043, Christopher Weimann wrote:
>
> jet# cat /var/qmail/control/virtualdomains
> nowhere.mil:joe-foo
> example.com:example
>
> jet# ls -1 /var/qmail/alias/.qmail-example-*
> /var/qmail/alias/.qmail-example-fred
> /var/qmail/alias/.qmail-example-billing
>
> And here are the results...
>
> jet# ./mkvalidrcptto.test
> ERROR: virtual user "example" not found (for virtualdomain
> "example.com")
>
> qtraceaddr comes up with this.
>
> jet# ./qtraceaddr fred[at]example.com
> input: "fred[at]example.com"
> after percenthack: "fred[at]example.com"
> after virtualdomains: "example-fred"
> no entry in users/cdb
> matched default /etc/passwd entry for "alias"
> delivering as USER="alias", UID="81", GID="81"
> deliver according to "/var/qmail/alias/.qmail-example-fred"


okay, i forgot about the fallback to the "alias" user.

here's another version, it seems to work correctly for me, let me know
what you think:

URL: http://qmail.jms1.net/scripts/mkvalidrcptto.test
MD5: 3f4d8e667e2490bad2595ff755c02efe


- --------------------------------------------------------
| John M. Simpson -- KG4ZOW -- Programmer At Large |
| http://www.jms1.net/ <jms1[at]jms1.net> |
- --------------------------------------------------------
| Hope for America -- http://www.ronpaul2008.com/ |
- --------------------------------------------------------





-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkh1W1sACgkQEB9RczMG/PtIMgCfc890QVgOwPtdrGker2g85gj7
E6AAoLx9WvvS4Qmhhs7Fvhi28iiB3p/O
=4CbE
-----END PGP SIGNATURE-----


cweimann at gmail

Jul 11, 2008, 11:05 AM

Post #12 of 12 (735 views)
Permalink
Re: mkvalidrcptto error [In reply to]

On Wed, Jul 9, 2008 at 8:44 PM, John Simpson <jms1[at]jms1.net> wrote:
>
> okay, i forgot about the fallback to the "alias" user.
>
> here's another version, it seems to work correctly for me, let me know what
> you think:
>

Works on my test case and seems to work on the real server.

Excellent! Great support :)

Qmail users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.