Difference between revisions of "NBSMTP"

From ArchWiki
Jump to: navigation, search
(creation)
 
m (rm gap)
(11 intermediate revisions by 7 users not shown)
Line 1: Line 1:
[[Category:Internet and Email (English)]] [[Category:HOWTOs (English)]]
+
[[Category:Email Client]]
 +
[[Category:Mail Server]]
 +
==Introduction==
  
 
+
From nbSMTP manpage: nbSMTP  is a lightweight SMTP client. It simply takes a message from STDIN and sends it to a relayhost. A relayhost is meant to be a full SMTP server and it will really send the message.
From nbsmtp manpage: nbSMTP  is a lightweight SMTP client. It simply takes a message from STDIN and sends it to a relayhost. A relayhost is meant to be a full SMTP server and it will really send the message.
+
  
 
==Installation==
 
==Installation==
Line 9: Line 10:
  
 
==Forward to a Gmail Mail Server==
 
==Forward to a Gmail Mail Server==
To configure nbSMTP, you will have to edit its configuration file ({{Filename|~/.nbsmtprc}}) and enter your account settings:
+
To configure nbSMTP, you will have to edit its configuration file ({{ic|~/.nbsmtprc}}) and enter your account settings:
  
 
<pre>
 
<pre>
Line 23: Line 24:
 
  chmod 600 ~/.nbsmtprc
 
  chmod 600 ~/.nbsmtprc
  
To test the configuration, create a file ({{Filename|testemail}}):
+
To test the configuration, create a file ({{ic|testemail}}):
  
 
<pre>
 
<pre>
Line 37: Line 38:
  
 
Enjoy
 
Enjoy
 
==References==
 
*[http://nbsmtp.ferdyx.org/ nbSMTP homepage]
 

Revision as of 10:00, 13 October 2012

Introduction

From nbSMTP manpage: nbSMTP is a lightweight SMTP client. It simply takes a message from STDIN and sends it to a relayhost. A relayhost is meant to be a full SMTP server and it will really send the message.

Installation

To install nbSMTP:

pacman -S nbsmtp

Forward to a Gmail Mail Server

To configure nbSMTP, you will have to edit its configuration file (~/.nbsmtprc) and enter your account settings:

relayhost=smtp.gmail.com
port=587
use_starttls=True
fromaddr=myusername@gmail.com
auth_user=myusername@gmail.com
auth_pass=myultrasecretpassword

Be careful with permissions on this file, it is recommendable to run this:

chmod 600 ~/.nbsmtprc

To test the configuration, create a file (testemail):

To: myusername@gmail.com
From: myusername@gmail.com
Subject: nbsmtp test
hello email world

and then run:

/usr/bin/nbsmtp < testemail

Enjoy