Change Port from 8006 to 443

You can change the Quarantine Port. Useful if you have a reverse proxy or port forwarding for the web interface. Only used for the generated Spam report.

The Admin interface is on 8006.
 
The Hostname ist the same one - which is the direct URL for the qurantaine and which for the admin Interface?
 
Hi,

I will respond to myself: pmgsh set /config/spamquar --port 443

done that, but it didn't open a port 443:

root@mailgate:~# pmgsh set /config/spamquar -port 443
200 OK
root@mailgate:~# pmgsh get /config/spamquar
200 OK
{
"digest" : "9c747e12b7c558cf754bac13dc9ac1d981b12537",
"port" : 443,
"viewimages" : 0
}
root@mailgate:~# netstat -an | grep 443
root@mailgate:~# netstat -an | egrep '443|8006'
tcp 0 0 0.0.0.0:8006 0.0.0.0:* LISTEN

Any ideas?

Regards,

Matze
 
I suppose this is just for the url in the spam report, does not reconfigure any service (mostly: pmgproxy) to bind on port 443.
In order to open the port you could:

1) reverse proxy with apache/nginx
2) use a iptables redirect rule.

I choose the latter:

/sbin/iptables -F
/sbin/iptables -t nat -F
/sbin/iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-ports 8006
 
Last edited:
@proxmoxStaff: I'm also interessted in using the quarantine interface on port 443. Can you please provide a how-to for this configuration. Thx
 
@proxmoxStaff: I'm also interessted in using the quarantine interface on port 443. Can you please provide a how-to for this configuration. Thx
You already have all the steps required in this thread.
Basically :
1) pmgsh command
2) iptables
 
Hi,

when i type in the pmgsh command i get the following:

pmgsh set /config/spamquar -port 443
Unknown option: port
400 unable to parse option
set config/spamquar [OPTIONS]

Any hints on that?

Thank you.
 
Hi,

when i type in the pmgsh command i get the following:

pmgsh set /config/spamquar -port 443
Unknown option: port
400 unable to parse option
set config/spamquar [OPTIONS]

Any hints on that?

Thank you.

Seems you do not run latest version.

=> update and try again.
 
unfortunately that did not do the trick. Any other hints. After updating the system i get the same error. "Unknown option: port"

dpkg -l | grep pmg
ii pmg-api 5.0-53
ii pmg-docs 5.0-11
ii pmg-gui 1.0-30
ii pmg-i18n 1.0-3
ii pmg-log-tracker 1.0-1
 
the newest pmg-api package on no-subscription is 5.0-76, so you are still not on the newest version
 
Check your version with:

Code:
root@pmg-6-40:~# pmgversion -v
proxmox-mailgateway: 5.0-9 (API: 5.0-71/a0907ff5, running kernel: 4.13.16-3-pve)
pmg-api: 5.0-71
pmg-gui: 1.0-38
proxmox-spamassassin: 3.4.1-55
proxmox-widget-toolkit: 1.0-18
pve-kernel-4.13.16-3-pve: 4.13.16-49
pve-kernel-4.13: 5.1-45
pve-kernel-4.13.13-5-pve: 4.13.13-38
libpve-http-server-perl: 2.0-9
lvm2: 2.02.168-2
pve-firmware: 2.0-4
libpve-common-perl: 5.0-32
pmg-docs: 5.0-14
pve-xtermjs: 1.0-5
libarchive-perl: 3.2.1-1
libxdgmime-perl: 0.01-3
zfsutils-linux: 0.7.9-pve1~bpo9
libpve-apiclient-perl: 2.0-2
 
Now, for some reason

Seems you missed to upload a subscription key or you missed to configure the update repository (pmg-no-subscription).

=> Read documentation for details.
 
I suppose this is just for the url in the spam report, does not reconfigure any service (mostly: pmgproxy) to bind on port 443.
In order to open the port you could:

1) reverse proxy with apache/nginx
2) use a iptables redirect rule.

I choose the latter:

/sbin/iptables -F
/sbin/iptables -t nat -F
/sbin/iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-ports 8006


Using this option make available all PMG Admin Dashboard.

Would be great to find a solution to just show the spam quarantine portal to users.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!