sendmail ignoruje aliasy

Miroslav Lachman 000.fbsd at quip.cz
Sat Jul 8 20:23:44 CEST 2006


Peter Rosa wrote:
[...]
> Sorry, posledny riadok ma byt
> # (echo "skuska\n\d" > mail -s skuska root at tvoj.server) &&
>    tail -f /var/log/maillog (vsetko na 1 riadku)
[...]
No spis tam nema byt > ale | :)

Jul  8 20:09:14 roxy sm-mta[465]: restarting /usr/sbin/sendmail due to 
signal
Jul  8 20:09:14 roxy sm-msp-queue[469]: restarting /usr/sbin/sendmail 
due to signal
Jul  8 20:09:14 roxy sm-msp-queue[22181]: starting daemon (8.13.6): 
queueing at 00:30:00
Jul  8 20:09:14 roxy sm-mta[22180]: starting daemon (8.13.6): 
SMTP+queueing at 00:30:00

# test poslani na root at roxy.example.org

Jul  8 20:11:24 roxy sendmail[22205]: k68IBODx022205: from=quip, 
size=53, class=0, nrcpts=1, 
msgid=<200607081811.k68IBODx022205 at roxy.example.org>, relay=root at localhost
Jul  8 20:11:25 roxy sm-mta[22206]: k68IBOeN022206: 
from=<quip at roxy.example.org>, size=369, class=0, nrcpts=1, 
msgid=<200607081811.k68IBODx022205 at roxy.example.org>, proto=ESMTP, 
daemon=Daemon0, relay=localhost.example.org [127.0.0.1]
Jul  8 20:11:25 roxy sendmail[22205]: k68IBODx022205: 
to=root at roxy.example.org, ctladdr=quip (1001/0), delay=00:00:01, 
xdelay=00:00:01, mailer=relay, pri=30053, relay=[127.0.0.1] [127.0.0.1], 
dsn=2.0.0, stat=Sent (k68IBOeN022206 Message accepted for delivery)
Jul  8 20:11:25 roxy sm-mta[22208]: STARTTLS=client, 
relay=mail.example.org., version=TLSv1/SSLv3, verify=FAIL, 
cipher=AES256-SHA, bits=256/256
Jul  8 20:11:25 roxy sm-mta[22208]: k68IBOeN022206: 
to=<root at example.org>, delay=00:00:01, xdelay=00:00:00, mailer=esmtp, 
pri=30369, relay=mail.example.org. [12.34.56.78], dsn=2.0.0, stat=Sent 
(OK id=1FzHH3-0007o3-3M)

# test poslani na root (bez zavinace a domeny)

Jul  8 20:15:10 roxy sendmail[22213]: k68IFAGB022213: from=quip, 
size=69, class=0, nrcpts=1, 
msgid=<200607081815.k68IFAGB022213 at roxy.example.org>, relay=root at localhost
Jul  8 20:15:10 roxy sm-mta[22215]: k68IFALa022215: 
from=<quip at roxy.example.org>, size=390, class=0, nrcpts=1, 
msgid=<200607081815.k68IFAGB022213 at roxy.example.org>, proto=ESMTP, 
daemon=Daemon0, relay=localhost.example.org [127.0.0.1]
Jul  8 20:15:11 roxy sendmail[22213]: k68IFAGB022213: to=root, 
ctladdr=quip (1001/0), delay=00:00:01, xdelay=00:00:01, mailer=relay, 
pri=30069, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent 
(k68IFALa022215 Message accepted for delivery)
Jul  8 20:15:11 roxy sm-mta[22217]: STARTTLS=client, 
relay=mail.example.org., version=TLSv1/SSLv3, verify=FAIL, 
cipher=AES256-SHA, bits=256/256
Jul  8 20:15:11 roxy sm-mta[22217]: k68IFALa022215: 
to=<root at roxy.example.org>, delay=00:00:01, xdelay=00:00:00, 
mailer=esmtp, pri=30390, relay=mail.example.org. [12.34.56.78], 
dsn=2.0.0, stat=Sent (OK id=1FzHKh-00083K-1N)


Opet jsem ve vypisu pouze zmenil skutecnou domenu za example.org a IP 
adresu za 12.34.56.78

Zajimave je take to, ze jednou to posila na root at example.org (nadrazena 
domena) a podruhe na root at roxy.example.org (hostname stroje)

Neexistuje (verim ze ano) nejaky prikaz, ktery by mi ukazal, kam smeruje 
jaky alias bez toho, aby to opravdu poslalo e-mail? Majitel domeny asi 
nebude mit radost, az si v pondeli prohlidne mailbox plny nesmyslnych testu.

Miroslav Lachman



More information about the Users-l mailing list