19 comment

    1. Many email providers will not accept incoming mail from SMTP, which is what your computer probably uses as the default for the “mail” command. Gmail will, however, accept 50 incoming SMTP messages per day.

      If you want to configure your mail program to use something other than SMTP, then you’ve got a lot of setup ahead of you…

  1. I used the mail command to send a message to my mailbox as a test and on the console it seems working but when i check my mailbox i see no incoming message.
    Should i configure something so the command works properly?
    Thanks in anticipation.
    Brahim.

  2. Hello. Shomeone could help me please, i tried to use the mail command but it does not work
    What must I do ?

    [email protected]‘s password:
    [[email protected] ~]$ mail -s ‘hi’ [email protected]
    .
    Cc:
    Null message body; hope that’s ok
    [[email protected] ~]$ can not chdir(/var/spool/clientmqueue/): Permission denied
    Program mode requires special privileges, e.g., root or TrustedUser.

  3. In case anyone needs to troubleshoot the interactive command line mail process you can use:
    mail -v -s “Hello Recipient”
    Here is my full message
    .
    Cc:

    The -v is verbose and it outputs the full details of the transaction between the sending and receiving servers.

    @Renato, it seems that your user doesn’t have the correct permissions to access the mail queue. Ask your sysadmin to add you to the group of users that is allowed to send email.

  4. i have used this mail option and its working

    i tries to reply to that from my mail box.. can some one assist me in replying the mail recieved from the linux box.

    Thanking you in advance
    Harish

  5. when i use mail command its not working,I have made canges in the sendmail.cf ,sendmail.mc,resolve.conf,and hosts file too and i have restarted the service.but its not sending mail if i logged into the user ex :[email protected] and if i give the mail command its not hittting the id.but its working fr SMTP protocol,connecting it with relay server.then mail from:[email protected] RCPT TO:id,it reaches the id.can anyone help me with this process of sending mail using mail command.OS is redhat 5.4

  6. Bonjour à tous!

    Je me suis essayé à envoyer un mail avec la commande “mail [email protected] -s test”
    j’ai bien rempli la ligne Cc: puis Subject:
    J’ai ensuite de l’espace pour écrire mon mail mais je n’arrive pas à l’envoyer. Je m’explique, la commande “.” ne me permet pas de retourner sur la console.
    Quelqu’un pourrait m’aider? Merci!

    Bardi

  7. How, or is it possible to send mail with the mail command to a group instead of a user? I have been looking it up and can’t find anything leading me to believe that there is no way :(

Leave a Comment