Skip to content
Matt Simerson edited this page Dec 15, 2015 · 12 revisions

create jail 'monitoring'

. mail-toaster.sh && sh provision monitor

Send emails with swaks

jexec monitor swaks -to postmaster@$TOASTER_MAIL_DOMAIN -server $(get_jail_ip haraka)
=== Trying 172.16.15.9:25...
=== Connected to 172.16.15.9.
<-  220 haraka ESMTP Haraka 2.7.0 ready
 -> EHLO monitor
<-  250-haraka Hello monitor [172.16.15.11], Haraka is at your service.
<-  250-PIPELINING
<-  250-8BITMIME
<-  250-SIZE 26214400
<-  250 STARTTLS
 -> MAIL FROM:<root@monitor>
<-  250 sender <root@monitor> OK
 -> RCPT TO:<[email protected]>
<-  250 recipient <[email protected]> OK
 -> DATA
<-  354 go ahead, make my day
 -> Date: Mon, 14 Dec 2015 20:45:18 -0800
 -> To: [email protected]
 -> From: root@monitor
 -> Subject: test Mon, 14 Dec 2015 20:45:18 -0800
 -> X-Mailer: swaks v20130209.0 jetmore.org/john/code/swaks/
 -> 
 -> This is a test mailing
 -> 
 -> .
<-  250 ok 1450154720 qp 21123 (E0CD6466-E60A-42A2-8612-2F7FF334D884.1)
 -> QUIT
<-  221 haraka closing connection. Have a jolly good day.
=== Connection closed with remote host.

Voila, Haraka accepted the message. Let's see what happened to it:

Check emails with POP3 & IMAP

If the webmail tests worked, then IMAP logins are working. Continue by testing by configuring a MUA such as Apple Mail, Thunderbird, or Outlook to retrieve messages using both POP3 and IMAP connections.

Check emails with webmail

Point a web browser at your servers public IP and you should be treated to a HTML 5 index page with links to the web interfaces of installed applications.

Clone this wiki locally