Вы находитесь на странице: 1из 14

17 1/1

This work is licensed under the Creative Commons Attribution-Noncommercial-No Derivative Works 3.0
License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/ or send a
letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.

Sendmail

Procmail

(c) 2007,

MUA

MSA

MTA

MDA

Fedora

MTA: Sendmail ( ), postfix, exim

MDA: procmail, postfix, ...

Anti-Spam: spamassassin

MUA: evolution, thunderbird, mutt, ...

(c) 2007,


(1)
$ telnet linux-training.ru 25
Trying 192.168.0.233...
Connected to linux-training.ru (192.168.0.233).
Escape character is '^]'.
220 mail.linux-training.ru ESMTP Sendmail 8.13.8/8.13.8; Sat, 26 May 2007 16:43:27 +04
HELO example.com
250 mail.linux-training.ru Hello [192.168.5.250], pleased to meet you
MAIL From: test@example.com
250 2.1.0 test@example.com... Sender ok

(c) 2007,


(2)
RCPT To: testmail@linux-training.ru
250 2.1.5 testmail@linux-training.ru... Recipient ok
DATA
354 Enter mail, end with "." on a line by itself
test mail

.
250 2.0.0 l4QChRJr023518 Message accepted for delivery
QUIT
221 2.0.0 mail.linux-training.ru closing connection
Connection closed by foreign host.
$
(c) 2007,

Sendmail

: sendmail, sendmail-cf, sendmail-doc

: SMTP(25)

/etc/rc.d/inet.d/sendmail

Fedora
tcp_wrappers
SELinux

(c) 2007,

(1)

/etc/mail/submit.cf

/etc/mail/sendmail.cf

/etc/mail/sendmail.mc

(c) 2007,

(2)

/etc/aliases

newaliases

/etc/mail/local-host-names

/etc/mail/virtusertable

a@doma.ru b@domb.ru
@doma.ru b@domb.ru
@doma.ru %1@domb.ru

/etc/mail/access

OK/REJECT/DISCARD/RELAY/ERROR:550 error
(c) 2007,

define(`MAIL_HUB',
`__')dnl
define(`SMART_HOST',
`__')dnl

MASQUERADE_AS(`linux-training.ru')dnl

EXPOSED_USER(`root')dnl

(c) 2007,

10

FEATURE(`blacklist_recipients')

/etc/mail/access

(c) 2007,

11

/var/log/maillog*

mail -v user_name

mailq

mailq -Ac

(c) 2007,

12

MDA Procmail

Sendmail

~/.procmailrc

spamassassin

(c) 2007,

13

sendmail

(c) 2007,

14

Вам также может понравиться