Sending mail in terminal's Local Mail System

Discussion in 'Mac Basics and Help' started by sawmaster, Jan 29, 2009.

  1. sawmaster macrumors regular


    I know that macs have a local mail system in terminal.

    I know how to send mail (kind of) and i got the idea.

    So i tried sending a mail to myself and to my ibook.

    Notice: My macbook's local bonjour name is bb.local and the ibook's is bb-the-ben.local

    Sending a mail to myself (bb.local)

    bb:~ sawmaster$ mail bb.local
    Subject: lol

    Now i got this far, now i cannot end the message.

    I tried just closing the window and terminating, but it didn't send

    I tried (command)c and i got (Interrupt -- one more to kill letter)
    So i repeated that
    and nothing.

    Any ideas?

  2. sawmaster thread starter macrumors regular

  3. superwoman macrumors regular

    Apr 25, 2005
    instead of ctrl-c, use ctrl-z.

    In any case, man mail, man sendmail, man postfix.
  4. BlueRevolution macrumors 603


    Jul 26, 2004
    Montreal, QC
    And man patience. Might want to read up on that a bit.
  5. sawmaster thread starter macrumors regular


    I mailed myself and did control z but it stopped and i didn't get any mail.

    does mailing yourself not work?

  6. tanawana macrumors newbie

    Feb 3, 2004
    Youngstown, OH
  7. ChrisA macrumors G4

    Jan 5, 2006
    Redondo Beach, California
    Control z puts the current process (mail) in the background. It did not actually stop. The purpose is to let you use the terminal for other commands while mail waits. the "fg" command will "foreground" the background process.

    What you want is to send the "end of file" character "cntl-d".

    There is no special "terminal" mail system. You should be able to send outbound mail via port 25 using "mail".

    If you want to learn even more use a program that hides even less of the mail protocol from you. try "telnet" to port 25. I've done this many times but mostly while debugging mail server setups. basically you just type the SMTP protocol at the server.
  8. superwoman macrumors regular

    Apr 25, 2005
    You are right. My bad.
    Alternatively, just type a "." at the start of a line.
  9. sawmaster thread starter macrumors regular

    Thanks guys! I got a mail saying "Undelivered Mail Retu".

    I don't mind it though, thanks again anyway guys! :D

Share This Page