[SOLVED] SMTPD Banner Mail Gateway Cluster / Promox VE LXC Container PMG 6.0

OliverB

Active Member
Apr 22, 2016
105
3
38
25
Hello Everyone,

I have now two Proxmox Mail Gateways in a Cluster. Now I would like to have two different SMTPD Banners, one for each machine. (PMG Mailin01 and PMG Mailin02). If i change it on one machine the second machine have the same SMTPD Banner. If I edit main.cf changes will override by cluster sync. Any ideas what i can do? Some other questions I would like to have letsencrypt certs for both hosts. Because they have different hostnames, any idea how to do this?

Is there any information if Proxmox Mail Gateway 6.0 will be available on Proxmox VE LXC Container? I have a Proxmox Server but have only Proxmox Mail Gateway 5.

Regards
 

Stoiko Ivanov

Proxmox Staff Member
Staff member
May 2, 2018
5,997
833
148
I have now two Proxmox Mail Gateways in a Cluster. Now I would like to have two different SMTPD Banners, one for each machine. (PMG Mailin01 and PMG Mailin02). If i change it on one machine the second machine have the same SMTPD Banner. If I edit main.cf changes will override by cluster sync.
You can use the templating system to override all settings in 'main.cf' - see the reference documentation - https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#_service_configuration_templates
and note that `pmgconfig dump` shows you which variables are available.
If this does not work directly you can create conditionals based on the hostname variable and set the banner accordingly - see http://www.template-toolkit.org/

Some other questions I would like to have letsencrypt certs for both hosts.
You could setup letsencrypt on both hosts individually (if you use the http-challenge) - or create a cert with both names as SAN (if you use the DNS-challenge)

Is there any information if Proxmox Mail Gateway 6.0 will be available on Proxmox VE LXC Container? I have a Proxmox Server but have only Proxmox Mail Gateway 5.
PMG 6.0 is currently in its beta-phase - https://forum.proxmox.com/threads/proxmox-mail-gateway-6-0-beta-released.57111/
(Testing would be appreciated :)
We'll create an updated template after the final release.
In the meantime you can install PMG 6.0-beta on top of a debian buster container

I hope this helps!
 
  • Like
Reactions: OliverB

OliverB

Active Member
Apr 22, 2016
105
3
38
25
You can use the templating system to override all settings in 'main.cf' - see the reference documentation - https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#_service_configuration_templates
and note that `pmgconfig dump` shows you which variables are available.
If this does not work directly you can create conditionals based on the hostname variable and set the banner accordingly - see http://www.template-toolkit.org/


You could setup letsencrypt on both hosts individually (if you use the http-challenge) - or create a cert with both names as SAN (if you use the DNS-challenge)


PMG 6.0 is currently in its beta-phase - https://forum.proxmox.com/threads/proxmox-mail-gateway-6-0-beta-released.57111/
(Testing would be appreciated :)
We'll create an updated template after the final release.
In the meantime you can install PMG 6.0-beta on top of a debian buster container

I hope this helps!

Thanks for the fast reply, I have tested templating system (https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#_service_configuration_templates), but after "pmgconfig sync --restart 1" every change is lost on the second host. and both hosts have the same SMTPD Banner. What can I do?
 

OliverB

Active Member
Apr 22, 2016
105
3
38
25
Have you any idea about my problem. If I edit the copy of the file and start the sync command, changes are lost on both hosts. I would like to have the following config:

smtpd_banner = mail01.domain.de - Some Text here in1

smtpd_banner = mail02.domain.de - Some Text here in2

But always config will be lost after "pmgconfig sync --restart 1".

And is it possible to get some settings from my postfix config with proxmox mail gateway? Behind my Proxmox Mail Gateway Cluster I have a Postfix Mailserver (current the main mail server). This Server will receive E-Mails from PMG Cluster.

https://forum.proxmox.com/threads/s...luster-promox-ve-lxc-container-pmg-6-0.57322/
 

Stoiko Ivanov

Proxmox Staff Member
Staff member
May 2, 2018
5,997
833
148
  • Like
Reactions: OliverB

Stoiko Ivanov

Proxmox Staff Member
Staff member
May 2, 2018
5,997
833
148
Glad you solved your problem! :)
Please mark the thread as 'SOLVED' so that others know what to expect.

Thanks!
 

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 your own in 60 seconds.

Buy now!