On-Demand Mail Relay

On-Demand Mail Relay

On-Demand Mail Relay (ODMR) is an SMTP extension standardized in RFC 2645 that allows e-mail to be relayed to the recipient after he has been authenticated. It uses the extended SMTP command ATRN, similar to the ETRN command but available for dynamically assigned IP addresses.

ODMR works in the following way: to check his inbound mail, the customer issues EHLO and AUTH commands to the ODMR service, followed by ATRN command (Authenticated TuRN); after a successful ATRN command the ODMR server begins to act as an SMTP client and starts to send all messages directed to a customer's domain (or domains) using SMTP protocol, via the same TCP connection. Since the connection is initiated by the customer, this protocol works well for machines having dynamically assigned IPs and/or are firewall protected (i.e. your ISP may block incoming connection on port 25 or may use NAT, as done by FASTWEB in Italy). Only the ODMR server, referred as the provider, must listen to SMTP connections on a fixed IP address.

Contents

External ODMR Support

The design of ODMR allows the protocol to be used with an SMTP server that doesn't support it natively. A separate application can be used to do the initial ODMR protocol negotiation (EHLO, AUTH and ATRN), then hand over the connection to the SMTP server once the protocol has reached the "reversed" state.

ODMR transport example

A typical example of getting emails with odmr.

For illustration purposes here (not part of protocol), the protocol exchanges are prefixed for the server (>) and the client (<).

>  220 EXAMPLE.NET on-demand mail relay server ready
<  EHLO example.org
>  250-EXAMPLE.NET
>  250-AUTH CRAM-MD5 EXTERNAL
>  250 ATRN
<  AUTH CRAM-MD5
>  334 <keysequenz>
>  235 now authenticated as example.org
<  ATRN example.org,example.com
>  250 OK now reversing the connection
<  220 example.org ready to receive email
>  EHLO EXAMPLE.NET
<  250-example.org
<  250 SIZE
>  MAIL FROM: <Lester.Tester@dot.foo.bar>
<  250 OK
>  RCPT TO: <l.eva.msg@example.com>
<  250 OK, recipient accepted
...
>  QUIT
<  221 example.org closing connection

ODMR clients

  • fetchmail (GPL) works with many protocols, including ODMR; win32 ports require Cygwin: looks like that doesn't support TLS data exchange (using STARTTLS)
  • xatrn (closed source), win32 only; doesn't support TLS data exchange (using STARTTLS)
  • xODMR (GPL), portable (pure Python), works fine with TLS.

ODMR servers

  • odmrd (GPL) Implementation of ODMR server written in Perl.

Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать реферат

Look at other dictionaries:

  • On-Demand Mail Relay — ODMR (On Demand Mail Relay) Familie: Internetprotokollfamilie Einsatzgebiet: Abholung von E Mail (Mail Transfer) Ports: 366/TCP 366/UDP ODMR im TCP/IP‑Protokollstapel: Anwendung ODMR …   Deutsch Wikipedia

  • Demand — ist der Familienname von Christian Demand (* 1960), deutscher Kunstkritiker und seit 2006 Professor für Kunstgeschichte an der Akademie der Bildenden Künste Nürnberg Heinrich Demand (1902–1974), deutscher Politiker (SPD), nordrhein westfälischer… …   Deutsch Wikipedia

  • Simple Mail Transfer Protocol — This article is about the Internet standard for electronic mail transmission. For the email delivery company, see SMTP (company). Internet protocol suite Application layer …   Wikipedia

  • SMTP-Relay-Server — Als SMTP Relay Server, Mail Relay Server oder Smarthost wird ein Mail Server (B) bezeichnet, der von einem Sender (A) E Mail annimmt und an beliebige Dritte (C) weiterleitet. A (Sender ) → B (Relay Server) → C (Empfänger) Ein korrekt… …   Deutsch Wikipedia

  • Simple Mail Transfer Protocol — SMTP (Simple Mail Transfer Protocol) Familie: Internetprotokollfamilie Einsatzgebiet: Einspeisung von E Mail (Mail Submission), Abholung von E Mails eventuell über mehrere Stationen (Mail Transfer) Ports: 25/TCP 465/TCP (Verschlüsselt) 587/TCP… …   Deutsch Wikipedia

  • Mail delivery by animal — Homing pigeons have been used to deliver small messages since the time of the Persians. Mail delivery by animals has been used in many countries throughout history. It used to be the only way to quickly transport large bundles of letters over… …   Wikipedia

  • Mail — For other uses, see Mail (disambiguation). For electronic mail, see Email This article is about Postal services. For other uses, see Postal service (disambiguation). A collection of British pillar boxes at the Inkpen Post Box Museum, near Taunton …   Wikipedia

  • E-mail spam — E mail spam, also known as bulk e mail or junk e mail, is a subset of spam that involves nearly identical messages sent to numerous recipients by e mail. A common synonym for spam is unsolicited bulk e mail (UBE). Definitions of spam usually… …   Wikipedia

  • Smarthost — Als SMTP Relay Server, Mail Relay Server oder Smarthost wird ein Mail Server (B) bezeichnet, der von einem Sender (A) E Mail annimmt und an beliebige Dritte (C) weiterleitet. A (Sender ) → B (Relay Server) → C (Empfänger) Ein korrekt… …   Deutsch Wikipedia

  • ESMTP — SMTP (Simple Mail Transfer Protocol) Familie: Internetprotokollfamilie Einsatzgebiet: Einspeisung von E Mail (Mail Submission), Abholung von E Mail eventuell über mehrere Stationen (Mail Transfer) Ports: 25/TCP 587/TCP (Alternative für Mail… …   Deutsch Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”