plugins icon indicating copy to clipboard operation
plugins copied to clipboard

mail/postfix: add support for different smtp listening port

Open metzgerd opened this issue 8 years ago • 4 comments

Hello,

is it possible to add a field for postfix in the gui for a new listening port? Actually I need to change the port in the shell each time the configuration in the gui is changed.

root@OPNsense:/usr/local/etc/postfix # cat master.cf | grep smtpd #smtp inet n - n - - smtpd 2525 inet n - n - - smtpd

Many thanks Dirk

metzgerd avatar Sep 03 '18 10:09 metzgerd

Whats the reason behind this? Do you have another daemon running on port 25?

mimugmail avatar Sep 03 '18 10:09 mimugmail

My main postfix server is running at home behind the DSL providers dynamic IP range which is on the blacklist. I've a small virtual server with a fixed IP in the cloud.

I use haproxy on the virtual server to catch all incoming mails, imap, outgoing client mails, ... and proxy to my home postfix. I use postfix on the virtual server to proxy all outgoing mails from my home postfix via the virtual server.

The main issue I've with the outgoing client mails. I could also change all clients to use another port ...

metzgerd avatar Sep 03 '18 10:09 metzgerd

Why don't you use portforward 2525 to 25?

mimugmail avatar Sep 03 '18 11:09 mimugmail

haproxy is listening on port 25 on the virtual server. postfix can not listen on 25 too.

It's ok. I can stay with the option changing the config in the shell. It's not that often that I'll do config changes / software updates.

metzgerd avatar Sep 03 '18 11:09 metzgerd