Re: [vchkpw] [vpopmail] handle 'postmaster' as non existing user (reject mails)

2006-05-10 Thread Ron Guerin
Ken Jones wrote:
> Lars Uhlmann wrote:
>> We only need this mailbox for »qmailadmin« to log in. Is it possible to
>> treat this account as non existing? I've tried a domain-global
>> '.qmail-postmaster' (... bounce-no-mailbox) and a '.qmail' (same content)
>> inside the folder 'postmaster' but nothing worked.
>>

> 
> Create a .qmail-postmaster file with the same permissions and ownership
> and in the same directory as the .qmail-default file.
> 
> Then put a single # character in the file. qmail-local treats a
> single # charater as "delete the email".
> 
> It is probably the most efficent way, since vdelivermail does
> not need to be envoked.
> 
> I've been thinking of setting up all new domains with this
> way. Nobody really reads postmaster email.

Well this is pretty horrifying considering the source.

I don't know where you hang out, but this sort of thing is frowned upon
by the community of mail server operators, and will get you blacklisted
both privately and publicly if discovered.

http://rfc-ignorant.org/rfcs/rfc2821.php

- Ron



Re: [vchkpw] [vpopmail] handle 'postmaster' as non existing user (reject mails)

2006-05-09 Thread Michael Krieger
Ken Jones <[EMAIL PROTECTED]> wrote:I've been thinking of setting up all new domains with thisway. Nobody really reads postmaster email.I do see the occasional person who does, but it's rare.  I like the 'set the bounce flag' idea suggested in this thread.  Postmaster should have the bounce message flag set, so that it's not even accepted by chkuser at the smtp level, as opposed to accepting the mail and then bouncing it.the code in chkuser is: if (user_passwd->pw_gid & BOUNCE_MAIL), so it seems to take it into account.Personally I wouldn't worry about running vdelivermail.  If it's set with a bounce_mail flag as in chkuser (which I'd guess most people use) then it'll never run vdelivermail anyway, and any locally inserted mail would have the extra vdelivermail execution- but
 that'll be rare if ever.-M

Re: [vchkpw] [vpopmail] handle 'postmaster' as non existing user (reject mails)

2006-05-09 Thread tonix (Antonio Nati)

At 16.47 09/05/2006, you wrote:
Easiest thing to do is add a .qmail file in the postmaster directory 
stating '|/bin/true delete' to scrap the message [just sets it as 
deleted by default].


Now I'd imagine the main frontline you'd want to investigate is 
chkuser.c if you use it.  By line 567, it's got a user and domain 
split.  Under case 10, it actually does the user check, so just have 
it test the user for 'postmaster' and return a failed 'user does not exist'.


It could be more easy to set the BOUNCE_FLAG on for each postmaster, 
and message will be rejected.


Tonino




Re: [vchkpw] [vpopmail] handle 'postmaster' as non existing user (reject mails)

2006-05-09 Thread Tom Collins

On May 9, 2006, at 7:56 AM, Ken Jones wrote:

Then put a single # character in the file. qmail-local treats a
single # charater as "delete the email".


If you want to bounce it, put this in instead:

|/var/qmail/bin/bouncesaying 'invalid account'

You can change the 'invalid account' message to anything you'd like.  
You could even put something like 'if you really need to contact 
someone, email usenet at lars-uhlmann.de'.


--
Tom Collins  -  [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/



Re: [vchkpw] [vpopmail] handle 'postmaster' as non existing user (reject mails)

2006-05-09 Thread Ken Jones

Lars Uhlmann wrote:

We only need this mailbox for »qmailadmin« to log in. Is it possible to
treat this account as non existing? I've tried a domain-global
'.qmail-postmaster' (... bounce-no-mailbox) and a '.qmail' (same content)
inside the folder 'postmaster' but nothing worked.

regards
   Lars



Create a .qmail-postmaster file with the same permissions and ownership
and in the same directory as the .qmail-default file.

Then put a single # character in the file. qmail-local treats a
single # charater as "delete the email".

It is probably the most efficent way, since vdelivermail does
not need to be envoked.

I've been thinking of setting up all new domains with this
way. Nobody really reads postmaster email.

Ken Jones


Re: [vchkpw] [vpopmail] handle 'postmaster' as non existing user (reject mails)

2006-05-09 Thread Michael Krieger
Easiest thing to do is add a .qmail file in the postmaster directory stating '|/bin/true delete' to scrap the message [just sets it as deleted by default].Now I'd imagine the main frontline you'd want to investigate is chkuser.c if you use it.  By line 567, it's got a user and domain split.  Under case 10, it actually does the user check, so just have it test the user for 'postmaster' and return a failed 'user does not exist'.I'd point you to the RFCs that state that the postmaster must exist and should accept mail, but since you're asking, you probably don't really mind.-MLars Uhlmann <[EMAIL PROTECTED]> wrote: We only need this mailbox for �qmailadmin� to log in. Is it possible totreat this account as non existing? I've tried a domain-global'.qmail-postmaster' (... bounce-no-mailbox)
 and a '.qmail' (same content)inside the folder 'postmaster' but nothing worked.regards   Lars

[vchkpw] [vpopmail] handle 'postmaster' as non existing user (reject mails)

2006-05-09 Thread Lars Uhlmann
We only need this mailbox for »qmailadmin« to log in. Is it possible to
treat this account as non existing? I've tried a domain-global
'.qmail-postmaster' (... bounce-no-mailbox) and a '.qmail' (same content)
inside the folder 'postmaster' but nothing worked.

regards
   Lars