My linux world » srv-mail

srv-mail


Contents

Prerequiste

I assume that you have a Centos installation.

SMTP

You can copy/paste this script and use it to configure automatically your server.

  1. 404: Not Found

Testing email

Inside the server

First, we create our email file ’email.txt’:

Subject: my subject
my message

Then, send it:

sendmail -v example@gmail.com < email.txt

Outside the server

$> telnet srv-mail 25
$> 
helo srv-mail
mail from:<noreply@gmail.com>
rcpt to:<my-email@gmail.com>
data
From: noreply@gmail.com
Subject: test mail from command line
 
this is my tiny message
sent from linux
.

IMAP / POP

You can copy/paste this script and use it to configure automatically your server.

  1. 404: Not Found

Copyright © 2026 My linux world - by Marc RABAHI
Design by Marc RABAHI and encelades.