-1

I am trying to use postfix to send emails from linux host to my email address which is hosted on Microsoft Exchange Server. Linux host is on the same network. I do not understand all the detailed instructions. I want is to use a simple command line to send email from linux host to my email address.

Something like:

sendmail abc@company.com < mail.file

How can I do that ?

Ankur Agarwal
  • 457
  • 1
  • 6
  • 15

2 Answers2

2

Postfix is a full blown SMTP suite, you don't need that to send simple emails.

For that, there's many command line tools: mailx (aka mail) pine, mutt.

I'm a mailx fan myself:

mail -s 'subject' user@email.com < file

Mutt is more comprehensive and allows attachments.

thinice
  • 4,716
  • 21
  • 38
1

You can use SendEmail as well

User4283
  • 781
  • 3
  • 10
  • 27