LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   'mail' command -- can't send mail (https://www.linuxquestions.org/questions/linux-newbie-8/mail-command-cant-send-mail-618040/)

sefaklc 02-01-2008 05:52 PM

'mail' command -- can't send mail
 
hello all

i am trying to send mail from command line

i write sth. like that

Code:

mail sefakilic@gmail.com
but my mail doesn't go.Because my outgoing address is 'sefa@sefa~laptop' (user and computer name)
how can i change outgoing address and other useful setups

Thanks alot!

cjcox 02-01-2008 06:17 PM

The answer is that you usually configure these things through the SMTP you are using for outbound mail. If you are using an ISP to get to the internet, you'll want to do a man on mailx and look for how to setup how to attach to your ISP's smtp via options you can set in your .mailrc file.

Alternatively, a local smtp can be configured to do this. But that varies from distribution to distribution. The most popular one (I think) is postfix. But Debian likes to use exim and Red Hat sometimes prefers old fashioned sendmail (ewww!). So... which one do you have?


All times are GMT -5. The time now is 09:46 PM.