test/familiarise sendmail via HelloWorld-model?

Discussion in 'Linux Networking' started by no.top.post, Oct 7, 2012.

  1. no.top.post

    no.top.post Guest

    I want to use incremental refinement, starting from a minimal demo.

    So, that would be sendmail between users: root <--> sndml

    From years ago I've got a script that worked on THAT old installation:--
    cat HlthWME | sendmail -t -f

    and where `cat HlthWME` =========
    From FC1-script July 2007
    To:
    From: mulMail <>
    Cc:
    Subject: tst-FC1-MinimumMail1 4 eas
    Date: july 2007
    X-Mailer:
    Status: RO

    GET http://groups.google.com/group/soc.culture.zimbabwe/browse_thread/\
    thread/8fb2b

    GET http://groups.google.com/group/soc.culture.zimbabwe/browse_thread/\
    thread/baaa1
    =========================

    I'm wondering why there's 2 "From:" fields; but the old file has that.

    BTW:
    -> which sendmail == /usr/sbin/sendmail
    -> ls -l /usr/sbin/sendmail ==
    -r-xr-sr-x 1 root smmsp 704020 2009-06-26 21:51 /usr/sbin/sendmail

    NOW, using:-
    -> cat ./SampleMail | sendmail -t -f sndml == No Output Observed

    where:-
    -> cat SampleMail ==
    To: sndml
    From: root
    Subject: root2sndml: tst-MinimumMail 4 eas
    Date: 6 Oct 2012
    X-Mailer:
    Status: RO

    GET http://groups.google.com/group/soc.culture.zimbabwe/browse_thread/\
    thread/8fb2b

    GET http://groups.google.com/group/soc.culture.zimbabwe/browse_thread/\
    thread/baaa1

    =============== and I removed the extra "From:" field.

    Now, I'm asking:
    where is a trace that/what `sendmail` did?
    what data files can be expected to be altered?


    => show me the files in /var which changed in last 60 minutes:-
    -> find /var -mmin -60 >> Last60minOldFls ==

    => File: /var/log/maillog == ...
    Oct 7 17:24:06 darkstar sendmail[11837]: q97FO6SD011837:
    from=sndml, size=274, class=0, nrcpts=1,
    msgid=<>,
    [email protected]
    Oct 7 17:24:06 darkstar sendmail[11837]: q97FO6SD011837:
    to=sndml, ctladdr=sndml (1000/100), delay=00:00:00, xdelay=00:00:00,
    mailer=relay, pri=30274, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0,
    stat=Deferred: Connection refused by [127.0.0.1]

    OK!! That looks interesting.

    -> ls -l HlthWME ==
    -rw-r--r-- 1 root root 520 2007-07-13 11:30 HlthWME
    ==> NOT: size=274

    -> find ./ -ctime -2 -exec grep -l "zimbabwe" {} \;
    ../spool/clientmqueue/dfq97ElKMB011724 <-- Yes !!
    ../spool/clientmqueue/dfq97ElKop011726 <--yes
    ../spool/clientmqueue/dfq97EwdjD011767 <-- see below !
    ../spool/clientmqueue/dfq97Ewdfm011769
    ../spool/clientmqueue/dfq97FO6SD011837
    ../lib/slocate/slocate.db

    => File: qfq97EwdjD011767 ==...
    MDeferred: Connection refused by [127.0.0.1] <---- *! <--*!?
    C:sndml
    rRFC822;
    RPFD:sndml
    H?P?Return-Path: <.g>
    H??Received: (from [email protected])
    by darkstar.example.net (8.14.3/8.14.3/Submit) id q97EwdjD011767;
    Sun, 7 Oct 2012 16:58:39 +0200
    H?M?Message-Id: <>
    H??To: sndml
    H??From: root
    H??Subject: root2sndml: tst-MinimumMail 4 eas
    H??Date: 6 Oct 2012
    H??X-Mailer:
    H??Status: RO
    ================== end of File: qfq97EwdjD011767

    Is the <loopback> BAD ?

    HOW2 fix ?

    HOW2 <smtp> my gmail account which only knows http ?

    == TIA
     
    no.top.post, Oct 7, 2012
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.