Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    how to send mail on command with attachment

    Hi all,

    I'm following;
    Postfix Virtual MailBox Clam Smtp Howto

    building a mail server.

    Coming to;
    Test ClamSMTP for outgoing mail
    Send this file as an attachment to
    (it is a virus .zip file)

    $ uuencode | mail
    It was hanging there for prolonged time. I have to cancel it manually.

    $ mutt -s "Test mail" -a < /tmp/mailmessage.txt
    Can't stat No such file or directory unable to attach file.
    Any clue? TIA


  2. #2
    Just Joined!
    Join Date
    Nov 2007
    San Diego
    Have you tried without an attachment first?
    mail -s "test"
    where is your real domain name,and info is a real user.

    The command is mail -s, not mutt -s.

  3. #3
    Linux Engineer
    Join Date
    Apr 2012
    Virginia, USA
    mutt is a terminal email program.
    The syntax looks fine for mutt. As the previous user suggested, try sending without attachment. You may be having network issues / dns issues as well.

  4. $spacer_open

Posting Permissions

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