Page 1 of 1

ASSP postfix relayPort Connection refused

PostPosted: Tue Mar 03, 2009 8:35 pm
by stephen
My email is not leaving the server if I direct it out via the ASSP relayPort.
This is the error I receive.
Mar 3 01:57:58 server postfix/error[40591]: 7E35FC0C4: to=<pg.user@remote.it>, relay=none, delay=422726, delays=413828/8898/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connnect to 127.0.0.1[127.0.0.1]:225: Connection refused)

I am using ASSP 1.5.1(RC 0.10.05) on a FreeBSD server

I have set up ASSP using SSL and POSTFIX as the MTA
I could not get the SMTP Authentication working without using stunnel to pass the incoming SSL through to postfix which does the authentication

I am using stunnel to handle the SSL
my stunnel.conf accepts the smtps and directs it to port 587 in assp ASSP takes port 587 and passes to to postfix using port 1465 which has been set up to handle the authentication this part works, postfix then sends outgoing email to outgoing port 225 but ASSP relayport 225 is no accepting the connection.

;sjk direct to port 587 in assp listenport2
[smtps]
accept = 465
connect = 123.124.125.126:587


These are my assp.cfg
I am using the external ip address 123.124.125.126 shown here is not my real ip address.

listenPort 123.124.125.126:25
smtpDestination 127.0.0.1:25
SSLCertFile /etc/ssl/certs/www.myserver.com.au.cert
SSLKeyFile /etc/ssl/private/www.myserver.com.au.nopassword.key
listenPort2 123.124.125.126:587
smtpAuthServer 127.0.0.1:1465
EnforceAuth
relayHost
relayPort 127.0.0.1:225

in my postfix master.cf I listen on localhost:smtp and localhost:1465

127.0.0.1:smtp inet n - n - - smtpd
-o smtpd_sasl_auth_enable=yes
-o smtpd_reject_unlisted_sender=yes
-o smtpd_recipient_restrictions=permit_sasl_authenticated,reject
-o broken_sasl_auth_clients=yes

127.0.0.1:1465 inet n - n - - smtpd
-o smtpd_sasl_auth_enable=yes
-o smtpd_sasl_auth_enable=yes
-o smtpd_reject_unlisted_sender=yes
-o smtpd_recipient_restrictions=permit_sasl_authenticated,reject
-o broken_sasl_auth_clients=yes

in my postfix main.cf I have defined a relayhost pointing to port 225 which is the relayPort in assp
relayhost = [127.0.0.1]:225

My problem is that the /var/log/maillog shows this error
Mar 3 01:57:58 server postfix/error[40591]: 7E35FC0C4: to=<pg.palermo@giustizia.it>, relay=none, delay=422726, delays=413828/8898/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connnect to 127.0.0.1[127.0.0.1]:225: Connection refused)