HOWTO Setup Nullmailer: Difference between revisions

From Research
Jump to navigation Jump to search
No edit summary
Line 27: Line 27:
== Testing ==
== Testing ==
Send a message to root, then wait a while for it to be picked up and sent onwards.
Send a message to root, then wait a while for it to be picked up and sent onwards.
  <font color=red>hostname</font> <font color=blue>~ #</font> '''mail -s "this is a nullmailer test from tirpitz" root''
  <font color=red>hostname</font> <font color=blue>~ #</font> '''mail -s "this is a nullmailer test from tirpitz" root'''
  Type your message, complete it with a '''ctrl-D + Enter'''
  Type your message, complete it with a '''ctrl-D + Enter'''

Revision as of 22:48, 1 December 2006

From the authour's web-site: Nullmailer is a mail transport agent designed to only relay all its messages through a fixed set of "upstream" hosts. It is also designed to be secure.

Install Nullmailer

# emerge nullmailer -va

Configuration

Edit the following files to configure the machine to send mail to our mailing server (Bismarck).

/etc/nullmailer/adminaddr

admin@siat.sfu.ca

/etc/nullmailer/defaultdomain

iat.sfu.ca

/etc/nullmailer/me

$hostname.iat.sfu.ca

/etc/nullmailer/remotes

bismarck.iat.sfu.ca smtp

Status

hostname ~ # mailq

Testing

Send a message to root, then wait a while for it to be picked up and sent onwards.

hostname ~ # mail -s "this is a nullmailer test from tirpitz" root
Type your message, complete it with a ctrl-D + Enter