port 25 management (Gerência de Porta 25)

term

ISP & telecomsecurity

Kept in this browser · My desk

The Brazilian name for separating mail submission from mail transport in residential networks: e-mail providers take users' messages on an authenticated submission port such as 587, and connectivity providers block outbound traffic to Transmission Control Protocol (TCP) port 25 from home connections. Recommended by the Brazilian Internet Steering Committee (CGI.br) in 2009 and agreed with Anatel and the operators in 2011, it was scheduled for implementation by the operators during 2012.

Port 25 is where mail servers deliver to each other with the Simple Mail Transfer Protocol (SMTP); port 587 is where a user's program submits mail to its own provider, under Request for Comments (RFC) 6409. Spam sent by infected home computers went straight to recipients' servers on 25, so blocking that one destination port at the edge of residential networks stops direct delivery while leaving legitimate users, who submit on 587 or use webmail, untouched. Brazil made it a programme: Resolution CGI.br/RES/2009/002/P of 24 April 2009, a cooperation agreement among the Brazilian Internet Steering Committee (CGI.br), its Núcleo de Informação e Coordenação do Ponto BR (NIC.br), Anatel, the operators and access-provider associations in 2011, and implementation by the operators scheduled for 2012, later checked from users' homes by NIC.br's SIMET probes. It is a lesson in what a port number is: a convention about which service to expect, turned into policy precisely because the two kinds of traffic use different ports.

What it is. Antispam.br, the anti-spam site of NIC.br (Núcleo de Informação e Coordenação do Ponto BR), defines Gerência de Porta 25, port 25 management, as the set of policies and technologies deployed in end-user or residential networks that seeks to separate message submission, a user's program handing mail to its provider, from message transport between servers. The separation is a standard one. Request for Comments (RFC) 6409 (November 2011, Internet Standard 72, by R. Gellens and J. Klensin), which obsoleted RFC 4409, reserves port 587 for message submission and says that messages received on that port are defined to be submissions, while server-to-server transport with the Simple Mail Transfer Protocol (SMTP) stays on port 25. Once providers accept authenticated submission on 587, connectivity providers can block outbound traffic to Transmission Control Protocol (TCP) port 25 from residential connections without affecting legitimate users, and malware on a home computer loses the ability to deliver directly to recipients' servers.

The problem it answered. In a presentation to the Brazilian Internet Steering Committee (Comitê Gestor da Internet no Brasil, CGI.br) in Manaus on 11 September 2012, Cristine Hoepers of CERT.br (Centro de Estudos, Resposta e Tratamento de Incidentes de Segurança no Brasil) summarized a CGI.br study with sensors in five cable and digital subscriber line (DSL) operators: more than 90% of the observed traffic was attempts to connect directly to the recipient's mail server, about 99.9% of the spam that tried to pass through the sensors came from outside Brazil, and more than 90% was destined for networks outside the country. International spammers were using Brazilian home networks; Brazilian address blocks were landing on blocklists, so legitimate mail servers in those blocks could not send; and each spam consumed international bandwidth twice, coming into Brazil and going back out.

The record. The primary documents give the steps. Resolution CGI.br/RES/2009/002/P of 24 April 2009 recommends that e-mail providers offer submission mechanisms with authentication and that companies providing connectivity to end users in residential networks with dynamic addressing restrict direct delivery to port 25. At a meeting of CGI.br's Anti-Spam Working Group (Comissão de Trabalho Anti-Spam) on 13 August 2009, the minutes record UOL announcing that from 11 January 2010 its whole user base would have to submit on 587 or use webmail, and the expectation that the provider Internet Sul would finish blocking port 25 by October. CERT.br's 2012 presentation lists 14 working meetings with the parties from 2008 to 2011, the agreement's text drafted in July 2010, its approval by the National Telecommunications Agency (Agência Nacional de Telecomunicações, Anatel) in April 2011, its endorsement by the Ministry of Justice's consumer protection department (DPDC) in October 2011, its signature on 11 November 2011 and implementation during 2012; in September 2012 the connectivity providers were, in the presentation's words, in the final phase of planning the block. The agreement itself, published by Antispam.br, is signed for CGI.br by its coordinator Virgílio Almeida, for NIC.br by Demi Getschko and for Anatel by its president Ronaldo Mota Sardenberg, together with the operators' association SindiTelebrasil and associations of access providers, and its text is dated São Paulo, 15 July 2011; the two primary documents therefore disagree on the date of signature, July or November 2011. Antispam.br's definition page also cites the resolution as 2009/001, while CGI.br's own register numbers it 2009/002 and gives 2009/001 to a code on e-mail marketing.

What the agreement says about ports. Item 2.1.1 says the restriction must be implemented by blocking outbound traffic to TCP port 25. Item 2.2 says that, apart from that block, the providers must neither interfere with nor block outbound traffic to the ports of message submission protocols. Item 2.3 makes the block gradual and conditional: it starts only when at least 90% of the user base of all the e-mail providers indicated by the operators has migrated to submission, to webmail or to any other service that does not submit through port 25. NIC.br took on working groups, technical support, tutorials and training for the consumer-service supervisors of Anatel and of the consumer protection bodies. Antispam.br records that the measure had been discussed in Brazil since 2005 and was a formal recommendation of the Organisation for Economic Co-operation and Development (OECD), the United States Federal Trade Commission (FTC) and the Messaging Anti-Abuse Working Group (MAAWG), whose advice for residential networks it summarizes: require authentication for submission, configure clients for port 587, block outbound port 25 from all machines that are not mail transfer agents or explicitly authorized, and do not interfere with 587.

Port 465. Antispam.br's definition page, written before 2018, says that port 465 for submission over the Secure Sockets Layer (SSL), recommended by Netscape in the first draft of SSL version 3.0, never became a standard and was considered deprecated, while the registry assigned the number to another service. RFC 8314 (January 2018, K. Moore and C. Newman) changed that: it registered the submissions service, message submission over Transport Layer Security (TLS) with TLS starting immediately, on TCP port 465 as an alternate assignment beside the existing one, describing it as a one-time procedural exception to the registry's rules, and recalls that 465 had briefly been registered as smtps. The Internet Assigned Numbers Authority (IANA) registry now lists both names on 465. A port 25 block therefore leaves both submission ports, 587 and 465, open.

In practice. NIC.br measured the result from the users' side: its SIMET measurement system, in a presentation at IX Fórum on 17 May 2018, describes a SIMETBox test in which the box tries to send an e-mail to a server in NIC.br's network on port 25, over IPv4 and IPv6. For an engineer, the visible effects are a home connection on which a mail client configured for port 25 fails while 587 works, and a mail server that should never accept unauthenticated submission from residential address space.

What it does not do, and neighbours. Antispam.br's own explanation anticipates the next step: spammers would adapt to stealing users' credentials and authenticating to their submission servers, but abusive messages then become traceable to the provider, which can apply rate controls and identify infected machines. Port 25 management works only because the two kinds of mail traffic use different port numbers; the port entry explains why a number is a convention rather than a guarantee, SMTP and the mail transfer agent are the protocol and the server on 25, STARTTLS and TLS protect submission, and the Sender Policy Framework (SPF) and DomainKeys Identified Mail (DKIM) authenticate senders on the transport side.

Also known as: gerência de porta 25, gerencia de porta 25, gerência da porta 25, port 25 blocking, outbound port 25 blocking, bloqueio da porta 25, managing port 25

Sources

← Back to P Back to the glossary