Configuring PMG to receive mail only

Captd

New Member
Jul 20, 2020
4
0
1
38
Hi!

I want to configure PMG only to receive incoming letters, outgoing letters will be sent by the mail server itself, is such an implementation possible?
 
I want to configure PMG only to receive incoming letters, outgoing letters will be sent by the mail server itself, is such an implementation possible?
Yes - just don't configure your mail server to relay mail via (the internal port of PMG)

for inbound mail configure your MX to point to PMG - and configure PMG to relay mail for your domains to your mailserver

checkout the admin guide for a general overview:
https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html

I hope this helps!
 
Thanks for the answer!

Configured PMG to receive mail and send it to the mail server. Outgoing emails are sent through the mail server. Everything is working.

The following question arose:

DNS records (MX, A, PTR, DKIM, SPF records) are configured for the current mail server (mail.test.com)

FQDN name of PMG (pmg.test.com), how to correctly configure DNS settings now so that there are no problems with getting into black lists of other servers?

Can the PMG be configured to use the parameters of the current mail server? So that the name in requests does not appear on pmg.test.com but on mail.test.com?
 
FQDN name of PMG (pmg.test.com), how to correctly configure DNS settings now so that there are no problems with getting into black lists of other servers?
The same as with any other mail server:
* make sure that pmg.test.com points to your public IP
* make sure that the PTR record of your public IP points to pmg.test.com
* include the public ip or network in the SPF TXT records of all of your (sub) domains
* point the MX records of your domains to pmg.test.com
* if you're using DKIM - make sure that the records are correct (if you switch to PMG doing the DKIM signing add the publickey to your domain

I hope this helps!

Can the PMG be configured to use the parameters of the current mail server? So that the name in requests does not appear on pmg.test.com but on mail.test.com?
I'm not sure I understand that question completely - but yes you can switch the ip of your current server to pmg and also change its hostname to mail.test.com
 
Got it, for PMG I need to create similar entries only for pmg.test.com as for the mail server.

Last question:

I have only one static IP address issued by my ISP for it, the PTR record is already specified on my mail.test.com mail server, can I additionally bind pmg.test.com to it?
 
theoretically you can enter more than one PTR for the same IP - see [0] - however I am not sure (haven't tried it) how different mailservers will react to multiple answers for one IP - it could happen that they reject mail - you could try and keep an eye on the logs

[0] https://en.wikipedia.org/wiki/Reverse_DNS_lookup
 

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!