Ok - so you have Postfix listening. There's a few different choices
available to have Postfix forward to ASSP. I would recommend using
Postfix's before-queue content filter method.
The entries you've setup in master.cf already are for mail that has been
processed by ASSP and now needs delivery. Again - before proceeding
further you need to verify things work - clients can connect and
authenticate and send via your existing ASSP/Postfix/Dovecot chain.
Now in master.cf:
465 inet n - n - 20 smtpd
-osmtpd_proxy_filter
<http://www.postfix.org/postconf.5.html#smtpd_proxy_filter>=127.0.0.1:10025
-osmtpd_client_connection_count_limit
<http://www.postfix.org/postconf.5.html#smtpd_client_connection_count_limit>=10
Note the above address/port are arbitrary - pick what you want though
the localhost address is appropriate given your setup. The
"smtpd_client_connection_count_limit" may be adjusted as needed. It is
also up to you whether or not to have additional validation checks in
this Postfix listener (you should - let Postfix block out whatever it
can before it touches ASSP otherwise there's not much point in this
approach).
The "smtpd_proxy_filter" tells Postfix to forward mail to another server
for processing prior to delivery. So ASSP needs to be listening for
that connection. You can use the primary listeners listenPort,
listenPort2, and listenPortSSL but probably a better choice is to
configure ASSP with:
relayPort=127.0.0.1:10025
That matches the setting in master.cf above - and that should do it. To
make it SSL - for the master.cf entry above for 465 add
-o smtpd_tls_wrappermode=yes
and in ASSP make it
relayPort=SSL:127.0.0.1:10025
Daniel
On 12/13/2018 7:13 PM, James Brown wrote:
On 13 Dec 2018, at 5:39 am, Daniel Miller <dmil...@amfes.com
<mailto:dmil...@amfes.com>> wrote:
The "lsof -i" is a lower-case i (just confirming if it got
auto-corrected by email spellcheck).
If "lsof" (or other tools) can't confirm an open port we've got other
problems. Need to get that part first. What is expected:
# lsof -i :126
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
master 1260 root 104u IPv4 33860 0t0 TCP
localhost.localdomain:126 (LISTEN)
Daniel
Yes, Daniel, it was auto-correct in my email.
The reason I got nothing returned is because I did not run in sudo
mode. Now I get:
$ sudo lsof -i :10026
Password:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
master 89692 root 85u IPv4 0x1117b83fdbb9d20b 0t0 TCP
localhost:10026 (LISTEN)
$ sudo lsof -i :126
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
perl 32559 root 25u IPv4 0x1117b83fd26de50b 0t0 TCP
localhost:49213->localhost:nxedit (CLOSE_WAIT)
master 89692 root 88u IPv4 0x1117b83fdbb9e50b 0t0 TCP
localhost:nxedit (LISTEN)
James.
_______________________________________________
Assp-test mailing list
Assp-test@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/assp-test