[NTLUG:Discuss] Postfix SMTP AUTH relay host

Daniel Hauck daniel at yacg.com
Tue Nov 6 16:38:41 CST 2007


My brain is tired and I'm not making the right progress.

I followed the instructions from here:

http://www.postfix.org/SASL_README.html

And I now have a test SMTP authentication session that seems to be 
working.  But now I'm lost as to how to get the mail host to relay 
outwardly.  Here's a sample session:

--------------------
[user at host ~]$ telnet 192.168.3.17 25
Trying 192.168.3.17...
Connected to 192.168.3.17.
Escape character is '^]'.
220 mailer.domain.com ESMTP Postfix
helo domain.com
250 mailer.domain.com
AUTH PLAIN AHNtdHAtdXNlcgBaYXExMndzeA==
235 2.0.0 Authentication successful
MAIL FROM: user at domain.com
250 2.1.0 Ok
RCPT TO: user at domain.com
550 5.1.1 <user at domain.com>: Recipient address rejected: User unknown in 
local recipient table
--------------------

I did another test as follows:

--------------------
[user at host ~]$ telnet 192.168.3.17 25
Trying 192.168.3.17...
Connected to 192.168.3.17.
Escape character is '^]'.
220 mailer.domain.com ESMTP Postfix
helo domain.com
250 mailer.domain.com
AUTH PLAIN AHNtdHAtdXNlcgBaYXExMndzeA==
235 2.0.0 Authentication successful
MAIL FROM: user at domain.com
250 2.1.0 Ok
RCPT TO: smtp-user at domain.com
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
subject: testing
this is a test
just a test
only a test
.
250 2.0.0 Ok: queued as 54A4FF05C1
quit
221 2.0.0 Bye
--------------------

The difference is that "smtp-user" exists on the local machine.  What 
I'd like this configuration to do is relay for authenticated users only 
to anywhere.

How do I do that?



More information about the Discuss mailing list