Running Home-based mail server, but ISP blocks port 25?
John Abreau
jabr at abreau.net
Tue Dec 17 02:13:03 EST 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Content-Type: text/plain; charset=us-ascii
What are we trying to accomplish here? Is this to run a mail server just
for one household's personal mail, or are we talking about operating a
full-blown service to provide mail accounts and/or mailing lists for
a significant community?
If it's just for personal use, it may be easier to do what I'm doing.
I have an external mail server that I can ssh to, and I configured
my mail client to use a different delivery program in place of sendmail.
Instead of passing outgoing messages to /usr/sbin/sendmail, it passes
them to /home/jabr/bin/mysendmail, where mysendmail is a one-liner:
#! /bin/bash
ssh asgard '/usr/bin/nc localhost 25'
This assumes I can ssh to asgard without a password; I use ssh-agent
to enable that. The script connects to asgard and runs netcat to pass
the outgoing message to the smtp port via asgard's loopback interface,
which means I don't have to open up relaying to all customers of
whatever ISP-of-the-month I happen to be using.
For incoming mail I use fetchmail tunneled over ssh, which again is
fairly straightforward:
# .fetchmailrc
poll asgard with proto IMAP auth ssh
plugin 'ssh %h /usr/sbin/imapd'
All this needs is an external shell account you can ssh to on a machine
you can send and receive mail from.
- --
John Abreau / Executive Director, Boston Linux & Unix
Email jabr at blu.org / WWW http://www.abreau.net / PGP-Key-ID 0xD5C7B5D9
PGP-Key-Fingerprint 72 FB 39 4F 3C 3B D6 5B E0 C8 5A 6E F1 2C BE 99
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Exmh version 2.5 07/13/2001
iQCVAwUBPf7OflV9A5rVx7XZAQJHxwP/Z5Rw8zYOYm9EFCwgJuhvY2xHx26Yq0WN
3xnS78FIdQq+GnufFDqHOTKwLl+bc8M5LvGBHrFgvthruCQpc8/CkqfWClNYDdHS
4eQ/P+zwwGoLMc2Q0jdvg1SmG1yNLd+qzPY3Fmyq6L6J0R3bpJEPgNy0sKnUVb0V
6vl9Vk8ePCg=
=o6Md
-----END PGP SIGNATURE-----
More information about the gnhlug-discuss
mailing list