[BlueOnyx:20538] Re: Smart Host *** fixed ***

Michael Aronoff maronoff at gmail.com
Tue Jan 17 14:08:46 -05 2017


> is it possible to add an option to relay through a different port?

I used to use a portfwd program to expose SMTP on port 999 for client whose
ISP did blocking.

Now it is much easier to do this with a change to xinetd as follows:

Create a file smtp_forward as below, change the ip to your IP address. (use
whatever editor you like)
nano -w /etc/xinetd.d/smtp_forward

Add the following: (change IP address as needed)
service smtp_forward
{
        disable         = no
        type            = UNLISTED
        socket_type     = stream
        protocol        = tcp
        user            = nobody
        wait            = no
        redirect        = xxx.xxx.xxx.xxx 25
        port            = 999 
}

Then restart xinetd
service xinetd reload
or for 5209 use
systemctl reload xinetd.service

______________________________
M Aronoff Out 





More information about the Blueonyx mailing list