Sendmail logovi – tumačenje

Uobičajeni log za Sendmail pod Linux-om je u /var/log/maillog.
Svaka linija u logu ima sledeće elemente : timestamp, ime mašine koja je generisala log, reč “sendmail”:, i poruku. Većina poruka je tipa ime = vrednost.

Obično se loguju dve linije kako se poruka obrađuje. Prva linija loguje prijem poruke, i postoji samo jedna za svaku poruku. Neka polja koja su ovde navedena ne moraju postojati…

from – The envelope sender address.
size – The size of the message in bytes.
class – The class (i.e., numeric precedence) of the message.
pri – The initial message priority (used for queue sorting).
nrcpts – The number of envelope recipients for this message (after aliasing and forwarding).
msgid – The message id of the message (from the header).
proto – The protocol used to receive this message (e.g., ESMTP or UUCP)
daemon – The daemon name from the DaemonPortOptions setting.
relay – The machine from which it was received.

Takođe se pri svakom pokušaju isporuke mail-a loguje po jedna linija (može ih biti dakle i više, ako se poruka ne isporuči u prvom pokušaju). Polja su :

to – A comma-separated list of the recipients to this mailer.
ctladdr – The “controlling user”, that is, the name of the user whose credentials we use for delivery.
delay – The total delay between the time this message was received and the current delivery attempt.
xdelay – The amount of time needed in this delivery attempt (normally indicative of the speed of the connection).
mailer – The name of the mailer used to deliver to this recipient.
relay – The name of the host that actually accepted (or rejected) this recipient.
dsn – The enhanced error code (RFC2034) if available.
stat – The delivery status.

Nisu sva polja uvek prisutna. Na primer polje relay se obično ne daje za lokalnu isporuku.

1 thought on “Sendmail logovi – tumačenje

Comments are closed.