Sending mail in terminal's Local Mail System

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

  1. sawmaster macrumors regular

    #1
    Hi!

    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
    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?

    Thanks!
     
  2. sawmaster thread starter macrumors regular

  3. superwoman macrumors regular

    Joined:
    Apr 25, 2005
    Location:
    Monterey,CA
    #3
    instead of ctrl-c, use ctrl-z.

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

    BlueRevolution

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

    #5
    Thanks!

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

    does mailing yourself not work?

    thanks!
     
  6. tanawana macrumors newbie

    Joined:
    Feb 3, 2004
    Location:
    Youngstown, OH
  7. ChrisA macrumors G4

    Joined:
    Jan 5, 2006
    Location:
    Redondo Beach, California
    #7
    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

    Joined:
    Apr 25, 2005
    Location:
    Monterey,CA
    #8
    You are right. My bad.
    Alternatively, just type a "." at the start of a line.
     
  9. sawmaster thread starter macrumors regular

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

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

Share This Page