Proxmox Mail Gateway as out going SMTP

AlphaOmega

Member
Sep 2, 2020
6
1
8
33
Hello,

I try to set up Proxmox Mail Gateway for out going SMTP, with smart house configuration on Relaying.

1706090806788.png

My question and confusion while using Proxmox Mail Gateway is Relay Domains, what value should I enter in Relay Domains so that all out going transactions can be sent.

The value i entered in Relay Domains is 'Domains'

1706091448960.png


but i still can't send email to domains like yahoo.com, for example the log is as below:

2024-01-24T16:59:55.445164+07:00 smtp-blast postfix/smtpd[2594]: connect from unknown[202.169.xxx.xxx] 2024-01-24T16:59:55.524673+07:00 smtp-blast postfix/smtpd[2594]: Anonymous TLS connection established from unknown[202.169.xxx.xxx]: TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 2024-01-24T16:59:55.600719+07:00 smtp-blast postfix/smtpd[2594]: NOQUEUE: reject: RCPT from unknown[202.169.xxx.xxx]: 554 5.7.1 <xxx@yahoo.com>: Relay access denied; from=<xxx@biznetnetworks.com> to=<xxx@yahoo.com> proto=ESMTP helo=<[192.168.xxx.xxx]> 2024-01-24T16:59:55.600947+07:00 smtp-blast postfix/smtpd[2594]: using backwards-compatible default setting smtpd_relay_before_recipient_restrictions=no to reject recipient "xxx@yahoo.com" from client "unknown[202.169.xxx.xxx]" 2024-01-24T17:00:03.389024+07:00 smtp-blast postfix/smtpd[2594]: lost connection after RCPT from unknown[202.169.xxx.xxx] 2024-01-24T17:00:03.389579+07:00 smtp-blast postfix/smtpd[2594]: disconnect from unknown[202.169.xxx.xxx] ehlo=2 starttls=1 mail=1 rcpt=0/1 commands=4/5

I have tried using port 25 or port 26 but the result is still the same. I understand if we enter a domain extension such as .com, .co.id, .org etc in Relay Domains then we can send transactions, but there are how many domain extensions I have to enter in Relay Domains and I think it is very inefficient.

Please advise
 
Relaying is your own email server for incoming. Relay Domains are your domains you like to be served by the PMG.
Sending email is on port 26 but you need to know what you are doing, otherwise your emails will be rejected everywhere.
 
Last edited:
Relaying is your own email server for incoming. Relay Domains are your domains you like to be served by the PMG.
Sending email is on port 26 but you need to know what you are doing, otherwise your emails will be rejected everywhere.

Yes, I am aware of these configuration options if PMG is meant for an MX server.

The question is how can a PMG host be used as SMTP, especially in the Relay Domains configuration, why do I have to enter a domain extension before I can send, as example here is my production PMG that designed for SMTP

1706152832226.png

PS: You don't have to worry what I'm gonna do, I'm just confused by the context of what I'm saying in this thread.
 
I'm just confused by the context of what I'm saying in this thread.
Your doing it all wrong, in every step because you are confusing things.

Again, for sending, the only thing you need is using port 26...
Relaying and Relay Domains is only for what you call being a mx.
Reset everything to defaults and start over... if you want this to work.
 
Your doing it all wrong, in every step because you are confusing things.

Again, for sending, the only thing you need is using port 26...
Relaying and Relay Domains is only for what you call being a mx.
Reset everything to defaults and start over... if you want this to work.

Before I did everything you said wrong, I tried using port 26 for out going SMTP but it still doesn't work.

The one below is an example that I took from another PMG host that is still freshly installed, I didn't add anything except the IP network and domain that was entered into the Whitelist

2024-01-25T17:10:08.199762+07:00 smtp-billing postfix/smtpd[13637]: connect from unknown[202.169.xxx.xxx] 2024-01-25T17:10:08.300255+07:00 smtp-billing postfix/smtpd[13637]: Anonymous TLS connection established from unknown[202.169.xxx.xxx]: TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 2024-01-25T17:10:08.390814+07:00 smtp-billing postfix/smtpd[13637]: NOQUEUE: reject: RCPT from unknown[202.169.xxx.xxx]: 554 5.7.1 <xxx.xxx@yahoo.com>: Relay access denied; from=<xxx.xxx@xxxxxx.com> to=<xxx.xxx@yahoo.com> proto=ESMTP helo=<[192.168.xxx.xxx]> 2024-01-25T17:10:08.391018+07:00 smtp-billing postfix/smtpd[13637]: using backwards-compatible default setting smtpd_relay_before_recipient_restrictions=no to reject recipient "xxx.xxx@yahoo.com" from client "unknown[202.169.xxx.xxx]"

Telnet to port 26 from client network, status is also ok

1706177375119.png
 
Last edited:

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!