← Back to team overview

sslug-teknik team mailing list archive

Re: Sende mail fra et bash script

 

Kristian Vilmann wrote:
Frank Vestergaard Pedersen wrote:
echo "test mail" | mail -s "dette er dit subject" hcstudt@xxxxxxxxxxxxxx
og se hvad der sker.... :-)

Ja. Og husk at kigge i loggen:
tail -f /var/log/maillog
samtidig.

/var/log/maillog
----------------------------
Nov  4 21:29:38 tux1700 sendmail[22696]:
 My unqualified host name (tux1700) unknown; sleeping for retry

Nov  4 21:30:38 tux1700 sendmail[22696]:
 unable to qualify my own domain name (tux1700) -- using short name

Nov  4 21:30:39 tux1700 sendmail[22696]:
 gA4KUc6T022696: from=hcs, size=68, class=0, nrcpts=1,
 msgid=<200211042030.gA4KUc6T022696@tux1700>, relay=hcs@localhost

Nov  4 21:30:42 tux1700 sendmail[28380]:
 gA4KUeSi028380: from=<hcs@tux1700>, size=340, class=0, nrcpts=1,
 msgid=<200211042030.gA4KUc6T022696@tux1700>, proto=ESMTP, daemon=MTA,
 relay=localhost.localdomain [127.0.0.1]

Nov  4 21:30:42 tux1700 sendmail[22696]:
 gA4KUc6T022696: to=hcstudt@xxxxxxxxxxxxxx, ctlad dr=hcs (500/500),
 delay=00:00:04, xdelay=00:00:02, mailer=relay, pri=30058,
 relay=localhost.localdomain. [127.0.0.1], dsn=2.0.0, stat=Sent
(gA4KUeSi028380 Message accepted for de livery)

Nov  4 21:30:44 tux1700 sendmail[28627]:
 gA4KUeSi028380: to=<hcstudt@xxxxxxxxxxxxxx>, ctl
 addr=<hcs@tux1700> (500/500), delay=00:00:03, xdelay=00:00:02,
 mailer=esmtp, pri=30330, relay=smtp-in.mail.dk. [195.41.46.144],
 dsn=5.6.0, stat=Data format error

Nov  4 21:30:44 tux1700 sendmail[28627]:
 gA4KUeSi028380: forward /home/hcs/.forward.tux1700: World writable
 directory

Nov  4 21:30:44 tux1700 sendmail[28627]:
 gA4KUeSi028380: forward /home/hcs/.forward: World writable directory

Nov  4 21:30:44 tux1700 sendmail[28627]:
 gA4KUeSi028380: gA4KUiSi028627: DSN: Data format error

Nov  4 21:30:44 tux1700 sendmail[28627]:
 gA4KUiSi028627: to=<hcs@tux1700>, delay=00:00:00, xdelay=00:00:00,
 mailer=local, pri=31364, dsn=2.0.0, stat=Sent

--
Hans Christian Studt  : http://hc.studt.dk  mailto:hc@xxxxxxxx
.dk og W3C standarder : http://w3c.studt.dk



Follow ups

References