[Techtalk] relaying my own mail through my own server
rasjidw at openminddev.net
Sun Feb 1 11:57:29 EST 2004
On Sunday 01 February 2004 06:54, Emma Jane Hogbin wrote:
> Hi everyone,
> I'm trying to figure out exactly what kind of work would be needed to
> allow myself to relay mail through my new server. Right now I'm
> portforwarding through another server using:
> ssh -L 8025:localhost:25 mail.domain.com
> and a minor fix locally to postfix to relay mail through
> The server is running Debian stable with postfix and SSH. I've tried
> looking through a number of other documents, but I'm just getting turned
> around. Out of the following, is there any one specific set up that is
> I think it's the concept of authentication that I'm getting confused by.
> If I'm SSHing into the box to do port forwarding (as above), what kind of
> authentication am I doing?
Unless you have explicitly set something else up, you are most likely doing IP
based authentication. Most likely (hopefully!) your mail server has been set
up to only relay from a local connection, or perhaps you local network. When
using ssh with port fowarding, to the mail server it appears that the
connection is coming from the local machine (more generally - from the
machine that you sshed into), and no user-level authentication is required.
It sounds like you are after authenticated SMTP. Based on my quick read, I
thought that the metaconsultancy link looked like the clearest. But if this
is a small setup, you probably don't want to use LDAP for the authentication.
You can just setup saslauthd to just authenticate against the shadow password
Hope this helps.
Canberra, Australia (UTC +11 hrs)
More information about the Techtalk