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

2006-05-09 Thread Lars Uhlmann
On Tue, 09 May 2006 10:47:30 -0400, Michael Krieger wrote:

 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.

You're right but I think RFC822 should be worked over. Problems with UBE
and SPAM were 1982 not even theoretically existing.

I'd like it better this way:
I have several domains with the same MX RR(s). The domain the MX host(s)
belong to has a case insensitiv 'postmaster' mailbox. It is filtered for
SPAM/Viruses (rejected with a meaningful message) and checked once a day.
Most if not all problems the appropriate clause in RFC822 is defined for
are technical by nature. For all other concerns this account can help too.

regards
  Lars



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

2006-05-09 Thread Lars Uhlmann
On Tue, 09 May 2006 17:18:15 +0200, tonix (Antonio Nati) wrote:

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.

That's it! Shame on me. ;)

$ vmoduser -v
,-
| version: 5.4.10
| vmoduser: usage: [options] email_addr or domain (for each user in domain)
| ...
| the following options are bit flags in the gid int field ...
| ...
|  -b ( bounce all mail )
| ...
`-

It was too easy to find out. ;)

regards
  Lars