Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

If I understand email correctly, I need to setup the smtp configuration before my client can send email to outside domain? If that is the case, where do I set this up in linux's mail/mailx command?

share|improve this question

2 Answers 2

mail/mailx expects to be able to send mail via a sendmail command (which is traditionally the way to send mail on Unix).

The convention is that there is a command sendmail that accepts a mail on stdin.

While this convention originated with the "sendmail" mailserver (duh), most other mail servers provide such a sendmail command. So you need to setup a locally running mail server, at least for sending mail.

There are many to choose from, most Linux distros set one up for you, usually postfix or Exim. Check your distro's docs for details.

share|improve this answer

If you are on Fedora/Redhat/Centos either Postfix or sendmail is available. Postfix is probably the easier to configure. You will also need an MAA such as Dovecot to retrieve your incoming mail.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.