Project

General

Profile

Download (1.74 KB) Statistics
| Branch: | Tag: | Revision:
1
# SMTP - Simple Mail Transfer Protocol - RFC 2821 (See also RFC 1869)
2
# Pattern attributes: great notsofast fast
3
# Protocol groups: mail ietf_internet_standard
4
# Wiki: http://www.protocolinfo.org/wiki/SMTP
5
# Copyright (C) 2008 Matthew Strait, Ethan Sommer; See ../LICENSE
6
#
7
# usually runs on port 25
8
# 
9
# This pattern has been tested and is believed to work well.
10

    
11
# As usual, no text is required after "220", but all known servers have some
12
# there.  It (almost?) always has string "smtp" in it.  The RFC examples
13
# does not, so we match those too, just in case anyone has copied them 
14
# literally.
15
#
16
# Some examples:
17
# 220 mail.stalker.com ESMTP CommuniGate Pro 4.1.3
18
# 220 mail.vieodata.com ESMTP Merak 6.1.0; Mon, 15 Sep 2003 13:48:11 -0400
19
# 220 mail.ut.caldera.com ESMTP
20
# 220 persephone.pmail.gen.nz ESMTP server ready.
21
# 220 smtp1.superb.net ESMTP
22
# 220 mail.kerio.com Kerio MailServer 5.6.7 ESMTP ready
23
# 220-mail.deerfield.com ESMTP VisNetic.MailServer.v6.0.9.0; Mon, 15 Sep 2003 13:4
24
# 220 altn.com ESMTP MDaemon 6.8.5; Mon, 15 Sep 2003 12:46:42 -0500
25
# 220 X1 NT-ESMTP Server ipsmin0165atl2.interland.net (IMail 6.06 73062-3)
26
# 220 mail.icewarp.com ESMTP Merak 6.1.1; Mon, 15 Sep 2003 19:43:23 +0200
27
# 220-mail.email-scan.com ESMTP
28
# 220 smaug.dreamhost.com ESMTP
29
# 220 kona.carleton.edu -- Server ESMTP (PMDF V6.2#30648)
30
# 220 letra.reed.edu ESMTP Sendmail 8.12.9/8.12.9; Mon, 15 Sep 2003 10:35:57 -0700 (PDT)
31
# 220-swan.mail.pas.earthlink.net ESMTP Exim 3.33 #1 Mon, 15 Sep 2003 10:32:15 -0700
32
# 
33
# RFC examples:
34
# 220 xyz.com Simple Mail Transfer Service Ready (RFC example)
35
# 220 dbc.mtview.ca.us SMTP service ready
36

    
37
smtp
38
^220[\x09-\x0d -~]* (e?smtp|simple mail)
39
userspace pattern=^220[\x09-\x0d -~]* (E?SMTP|[Ss]imple [Mm]ail)
40
userspace flags=REG_NOSUB REG_EXTENDED
(113-113/149)