how do i send mail from command line with postfix?


Results 1 to 7 of 7

Thread: how do i send mail from command line with postfix?

  1. #1
    forrest Guest

    how do i send mail from command line with postfix?

    for instance... with sendmail....

    mail -s blahblah me@mydomain.org

    i'm just trying to have portsentry let me know.

  2. #2
    klamath Guest
    'mail' should work fine. Postfix supports the sendmail commandline interface, so you can even use that if you want.

    ------------------
    - Klamath
    Get my GnuPG Key Here

  3. #3
    Darth Tminos Guest
    For me it is /usr/sbin/sendmail here. I made a symlink in /usr/bin to /usr/sbin/ though.

    klamath: thanks for sugguesting Postfix

  4. #4
    forrest Guest
    hmmmm.... cause i tried that, and it hung there for about 1/2 an hour for before i came back, and nothing had happened.

    it's on a default mandrake install if that helps.

  5. #5
    maxl stylee Guest
    i'm using Mandrake 7.1

    i just use

    "mail alex-stylee@home.com"

    and then it asks for the subject....then the body...then Ctrl + D

    and that always works.

    Alex

  6. #6
    forrest Guest
    mail forrestina@geekjuice.com

    works. and then it asks me for the subject, and the body, and then cc.

    however....

    mail -s mysubjecthere forrestina@geekjuice.com

    just sits there for a reeeeeeealy long time. and never sends any mail. whats up with that?

  7. #7
    Join Date
    May 2010
    Posts
    1

    Hi, in case you haven't figured it out yet

    when you type the below command in CLI
    nothing is happening because you need to enter the body of the message
    then send the message

    mail -s mysubjecthere forrestina@geekjuice.com


    so, mail -s mysubjecthere forrestina@geekjuice.com

    would become

    %mail -s mysubjecthere forrestina@geekjuice.com
    your message goes here
    .


    the DOT is the EOT it tells sendmail you're done with the message

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •