[Карта]
[Начало]
[Sendmail-ссылки]
[Синтаксис]
[Типовые задачки]
[Задачки по маршрутизации]
[Задачки по макарадингу]
[SendmailACL]
[Spamooborona]
[VadeRetro]
[Regex]
[Тонкости]
[Недок.особен.]
[Несущ.юзеры]
[Прячемся!]
[RFC1893.Цитаты]
[ТП.Эмоции]
[Антиспам&Разум]
Летопись mailertable & virtusertable
1.Теория
2.Mailertable
3.Virtusertable
/etc/mail/mailertable:
mail.ru local:paradise
date|mail -sSendmail someone@mail.ru
Feb 8 15:56:17 apache sendmail[23099]: m18AuHnd023099: from=terrapin, size=282, class=0, nrcpts=1,
msgid=<47AC3551.mailHTM11J9RI@apache.anrb.ru>, relay=terrapin@localhost
Feb 8 15:56:17 apache sendmail[23100]: m18AuHh9023100: syslog:mail:1:@MATCH.-.1
Feb 8 15:56:17 apache sendmail[23100]: m18AuHh9023100: from=<terrapin@apache.anrb.ru>, size=460, class=0,
nrcpts=1, msgid=<47AC3551.mailHTM11J9RI@apache.anrb.ru>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Feb 8 15:56:17 apache sendmail[23099]: m18AuHnd023099: to=someone@mail.ru, ctladdr=terrapin (0/0), delay=00:00:00,
xdelay=00:00:00, mailer=relay, pri=30282, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m18AuHh9023100 Message
accepted for delivery)
Feb 8 15:56:17 apache sendmail[23101]: m18AuHh9023100: to=<someone@mail.ru>,
ctladdr=<terrapin@apache.anrb.ru> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30655,
relay=someone@mail.ru, dsn=2.0.0, stat=Sent
mail -f paradise
>U 1 terrapin@apache.anrb.r Fri Feb 8 15:56 21/729 Sendmail
====================
/etc/mail/mailertable:
mail.ru local:%1
date|mail -sSendmail paradise@mail.ru
Feb 8 15:59:35 apache sendmail[23345]: m18AxZvs023345: from=terrapin, size=279, class=0, nrcpts=1,
msgid=<47AC3617.mailI0G1B9ZNR@apache.anrb.ru>, relay=terrapin@localhost
Feb 8 15:59:35 apache sendmail[23346]: m18AxZ6e023346: syslog:mail:1:@MATCH.-.1
Feb 8 15:59:35 apache sendmail[23346]: m18AxZ6e023346: from=<terrapin@apache.anrb.ru>, size=454, class=0,
nrcpts=1, msgid=<47AC3617.mailI0G1B9ZNR@apache.anrb.ru>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Feb 8 15:59:35 apache sendmail[23345]: m18AxZvs023345: to=paradise@mail.ru, ctladdr=terrapin (0/0), delay=00:00:00,
xdelay=00:00:00, mailer=relay, pri=30279, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m18AxZ6e023346 Message
accepted for delivery)
Feb 8 15:59:35 apache sendmail[23347]: m18AxZ6e023346: to=<paradise@mail.ru>,
ctladdr=<terrapin@apache.anrb.ru> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30646,
relay=paradise@mail.ru, dsn=2.0.0, stat=Sent
mail -f paradise
>U 1 terrapin@apache.anrb.r Fri Feb 8 15:59 21/729 Sendmail
==============
/etc/mail/mailertable:
mail.ru local:
date|mail -sSendmail paradise@mail.ru
Feb 8 16:00:31 apache sendmail[23387]: m18B0UJn023387: from=terrapin, size=279, class=0, nrcpts=1,
msgid=<47AC364E.mailI1M1JZF8X@apache.anrb.ru>, relay=terrapin@localhost
Feb 8 16:00:31 apache sendmail[23388]: m18B0VRC023388: syslog:mail:1:@MATCH.-.1
Feb 8 16:00:31 apache sendmail[23388]: m18B0VRC023388: from=<terrapin@apache.anrb.ru>, size=454, class=0,
nrcpts=1, msgid=<47AC364E.mailI1M1JZF8X@apache.anrb.ru>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Feb 8 16:00:31 apache sendmail[23387]: m18B0UJn023387: to=paradise@mail.ru, ctladdr=terrapin (0/0), delay=00:00:01,
xdelay=00:00:00, mailer=relay, pri=30279, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m18B0VRC023388 Message
accepted for delivery)
Feb 8 16:00:31 apache sendmail[23389]: m18B0VRC023388: to=<paradise@mail.ru>,
ctladdr=<terrapin@apache.anrb.ru> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30646,
relay=paradise@mail.ru, dsn=2.0.0, stat=Sent
mail -f paradise
>U 1 terrapin@apache.anrb.r Fri Feb 8 16:00 21/729 Sendmail
===================
/etc/mail/mailertable:
mail.ru smtp:%1anrb.ru
date|mail -sSendmail paradise@mail.ru
Feb 8 16:01:24 apache sendmail[23426]: m18B1O9x023426: from=terrapin, size=279, class=0, nrcpts=1,
msgid=<47AC3684.mailI2P1D9UMZ@apache.anrb.ru>, relay=terrapin@localhost
Feb 8 16:01:24 apache sendmail[23427]: m18B1Obj023427: syslog:mail:1:@MATCH.-.1
Feb 8 16:01:24 apache sendmail[23427]: m18B1Obj023427: from=<terrapin@apache.anrb.ru>, size=454, class=0,
nrcpts=1, msgid=<47AC3684.mailI2P1D9UMZ@apache.anrb.ru>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Feb 8 16:01:24 apache sendmail[23426]: m18B1O9x023426: to=paradise@mail.ru, ctladdr=terrapin (0/0), delay=00:00:00,
xdelay=00:00:00, mailer=relay, pri=30279, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m18B1Obj023427 Message
accepted for delivery)
Feb 8 16:01:24 apache sendmail[23429]: m18B1Obj023427: to=<paradise@mail.ru>,
ctladdr=<terrapin@apache.anrb.ru> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=smtp, pri=120454,
relay=mail.anrb.ru. [212.193.134.2], dsn=2.0.0, stat=Sent (m18BOZvF008282 Message accepted for delivery)
Письмо уходит на почтовик anrb.ru, а оттуда - на mail.ru (потому что apache.anrb.ru имеет право релеить почту чере anrb.ru).
====================
/etc/mail/mailertable:
mail.ru smtp:anrb.ru
date|mail -sSendmail paradise@mail.ru
Feb 8 16:02:47 apache sendmail[23486]: m18B2l5q023486: from=terrapin, size=279, class=0, nrcpts=1,
msgid=<47AC36D7.mailI4D115O2Y@apache.anrb.ru>, relay=terrapin@localhost
Feb 8 16:02:47 apache sendmail[23487]: m18B2lY2023487: syslog:mail:1:@MATCH.-.1
Feb 8 16:02:47 apache sendmail[23487]: m18B2lY2023487: from=<terrapin@apache.anrb.ru>, size=454, class=0,
nrcpts=1, msgid=<47AC36D7.mailI4D115O2Y@apache.anrb.ru>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Feb 8 16:02:47 apache sendmail[23486]: m18B2l5q023486: to=paradise@mail.ru, ctladdr=terrapin (0/0), delay=00:00:00,
xdelay=00:00:00, mailer=relay, pri=30279, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m18B2lY2023487 Message
accepted for delivery)
Feb 8 16:02:47 apache sendmail[23489]: m18B2lY2023487: to=<paradise@mail.ru>,
ctladdr=<terrapin@apache.anrb.ru> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=smtp, pri=120454,
relay=mail.anrb.ru. [212.193.134.2], dsn=2.0.0, stat=Sent (m18BPw6b008878 Message accepted for delivery)
Письмо уходит на почтовик anrb.ru, а оттуда - на mail.ru (потому что apache.anrb.ru имеет право релеить почту чере anrb.ru).
======================
/etc/mail/mailertable:
mail.ru local:paradise
/etc/mail/aliases
paradise: paradise@mail.anrb.ru
date|mail -sSendmail deodar@mail.ru
Feb 8 13:31:45 apache sendmail[15126]: m188Vjjk015126: from=terrapin, size=282, class=0, nrcpts=1,
msgid=<47AC1371.mailBO511EIT8@apache.anrb.ru>, relay=terrapin@localhost
Feb 8 13:31:45 apache sendmail[15127]: m188VjYi015127: syslog:mail:1:@MATCH.-.1
Feb 8 13:31:45 apache sendmail[15127]: m188VjYi015127: from=<terrapin@apache.anrb.ru>, size=460, class=0,
nrcpts=1, msgid=<47AC1371.mailBO511EIT8@apache.anrb.ru>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Feb 8 13:31:45 apache sendmail[15126]: m188Vjjk015126: to=deodar@mail.ru, ctladdr=terrapin (0/0), delay=00:00:00,
xdelay=00:00:00, mailer=relay, pri=30282, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m188VjYi015127 Message
accepted for delivery)
Feb 8 13:31:46 apache sendmail[15128]: m188VjYi015127: to=paradise@mail.anrb.ru, ctladdr=<terrapin@apache.anrb.ru>
(0/0), delay=00:00:01, xdelay=00:00:00, mailer=esmtp, pri=30655, relay=mail.anrb.ru. [212.193.134.2], dsn=2.0.0, stat=Sent
(m188suV4021921 Message accepted for delivery)
Письмо уходит на почтовик anrb.ru получателю paradise
=======================
/etc/mail/virtusertable:
gatling consiglio
date|mail -sSendmail gatling
Feb 8 13:35:46 apache sendmail[15377]: m188ZkmW015377: from=root, size=273, class=0, nrcpts=1,
msgid=<47AC1462.mailBV411OQ86@apache.anrb.ru>, relay=root@localhost
Feb 8 13:35:46 apache sendmail[15378]: m188Zknc015378: syslog:mail:1:@MATCH.-.1
Feb 8 13:35:46 apache sendmail[15378]: m188Zknc015378: from=<root@apache.anrb.ru>, size=457, class=0,
nrcpts=1, msgid=<47AC1462.mailBV411OQ86@apache.anrb.ru>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Feb 8 13:35:46 apache sendmail[15377]: m188ZkmW015377: to=gatling, ctladdr=root (0/0), delay=00:00:00,
xdelay=00:00:00, mailer=relay, pri=30273, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m188Zknc015378 Message
accepted for delivery)
Feb 8 13:35:46 apache sendmail[15379]: m188Zknc015378: to=<gatling@apache.anrb.ru>,
ctladdr=<root@apache.anrb.ru> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30658, dsn=2.0.0, stat=Sent
mailx version nail 10.5 4/27/03. Type ? for help.
"/var/spool/mail/gatling": 1 message 1 new
>N 1 root@apache.anrb.r Fri Feb 8 13:35 20/722 Sendmail
Наличие домена в строке virtusertable обязательно, поэтому перенаправление не срабатывает, и письмо для gatling ему же и отправляется.
======================
/etc/mail/virtusertable:
gatling@apache.anrb.ru nbsp;consiglio
date|mail -sSendmail gatling
Feb 8 13:36:16 apache sendmail[15395]: m188aGx8015395: from=root, size=273, class=0, nrcpts=1,
msgid=<47AC1480.mailBVM1VA879@apache.anrb.ru>, relay=root@localhost
Feb 8 13:36:16 apache sendmail[15396]: m188aGNi015396: syslog:mail:1:@MATCH.-.1
Feb 8 13:36:16 apache sendmail[15396]: m188aGNi015396: from=<root@apache.anrb.ru>, size=457, class=0,
nrcpts=1, msgid=<47AC1480.mailBVM1VA879@apache.anrb.ru>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Feb 8 13:36:16 apache sendmail[15395]: m188aGx8015395: to=gatling, ctladdr=root (0/0), delay=00:00:00,
xdelay=00:00:00, mailer=relay, pri=30273, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m188aGNi015396 Message
accepted for delivery)
Feb 8 13:36:16 apache sendmail[15397]: m188aGNi015396: to=<gatling@apache.anrb.ru>,
ctladdr=<root@apache.anrb.ru> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30658, dsn=2.0.0, stat=Sent
mailx version nail 10.5 4/27/03. Type ? for help.
"/var/spool/mail/consiglio": 4 messages 4 new
N 3 root@apache.anrb.r Fri Feb 8 13:36 20/722 Sendmail
====================
/etc/mail/virtusertable:
gatling@apache.anrb.ru paradise@mail.anrb.ru
date|mail -sSendmail gatling
Feb 8 13:41:45 apache sendmail[15847]: m188fjnn015847: from=root, size=273, class=0, nrcpts=1,
msgid=<47AC15C9.mailC861FLIME@apache.anrb.ru>, relay=root@localhost
Feb 8 13:41:45 apache sendmail[15848]: m188fju1015848: syslog:mail:1:@MATCH.-.1
Feb 8 13:41:45 apache sendmail[15848]: m188fju1015848: from=<root@apache.anrb.ru>, size=457, class=0,
nrcpts=1, msgid=<47AC15C9.mailC861FLIME@apache.anrb.ru>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1]
Feb 8 13:41:45 apache sendmail[15847]: m188fjnn015847: to=gatling, ctladdr=root (0/0), delay=00:00:00,
xdelay=00:00:00, mailer=relay, pri=30273, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m188fju1015848 Message
accepted for delivery)
Feb 8 13:41:45 apache sendmail[15850]: m188fju1015848: to=<gatling@apache.anrb.ru>,
ctladdr=<root@apache.anrb.ru> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120457, relay=mail.anrb.ru.
[212.193.134.2], dsn=2.0.0, stat=Sent (m1894tTX028558 Message accepted for delivery)
Это письмо получит пользователь paradise@mail.anrb.ru
=====================
08.02.2008.