About RIPE | Contact  | Search | Sitemap    
Homepage RIPE  
RIPE Community Mail Archives
search  
     
RIPE Navigation Ends
About RIPE Maillists
Maillists Archive
Global Lists
Non Active Lists
RIPE NCC Navigation Ends
Next Section

Re: [db-wg] Changes for abuse

  • To: "Marco d'Itri" <
    >
  • From: Shane Kerr <
    >
  • Date: Fri, 29 Apr 2005 10:05:56 +0200

Marco d'Itri wrote:
On Apr 29, Niall O'Reilly <niall.oreilly@localhost wrote:

  
Yet, I get the following in response to my update request.

	abuse-mailbox:  Contact for SPAM abuse@localhost
	***Error: Syntax error in "Contact for SPAM abuse@localhost"
	abuse-mailbox:  Contact for other abuse security@localhost
	***Error: Syntax error in "Contact for other abuse security@localhost"
    

I suppose that the parser only accepts an addr-spec and not complete
addresses with comments. I really really hope that this will not be
changed, because the purpose of abuse-mailbox is to help stupid people
who write simple-minded autocomplaints scripts, and asking them to
implement a full RFC 2822 parser is a recipe for troubles.

  
That is exactly right. It is possible to use comments to indicate which mailboxes are for which type of abuse, by using the "remarks:" attribute:

remarks:         Contact for SPAM
abuse-mailbox:   abuse@localhost
remarks:         Contact for other abuse
abuse-mailbox:   security@localhost

Alternately, using the end-of-line comments:

abuse-mailbox:   abuse@localhost     # contact for SPAM reports
abuse-mailbox:   security@localhost  # contact for other abuse


As a side issue, we don't really implement a full RFC 2822 parser. E-mail can look like:

some.&#$%~.?+mess@localhost
"pretty much anything except chr(34) or chr(64)"@ripe.net

We require two names in the part after the '@localhost, because AFAIK there are no TLD's that accept e-mail.

The actual rules allow only up to 80 characters, and match this regular expression:

^((([A-Z0-9~#$%&'*+=?^_`{|}~/-]+\.)*[A-Z0-9~#$%&'*+=?^_`{|}~/-]+)|("[^"@\\]+"))@([A-Z0-9-]+(\.[A-Z0-9-]+)+)$

--
Shane

 

Next Section
     About RIPE | Site Map | LIR Portal | About the RIPE NCC | Contact | Copyright Statement
RIPE.NET Homepage LIR Portal RIPE Community