Proxmox Mail Gateway Rejects Outgoing Request

egelhaus

New Member
May 31, 2024
2
0
1
Hey, I have installed Proxmox Mail Gateway recently on my Server. I have everything configured. I am working with HMailServer on my Windows Server. But every time I want to send an from my Mail Server, I get an Error Message (Down below). But when an Internet Server like Outlook or Gmail, send an Email to my Server, it works perfectly fine.



Error:

[CODE]2024-05-31T20:16:50.771263+02:00 pmg postfix/smtpd[14418]: connect from DESKTOP-HQ29V9F.fritz.box[192.168.178.24]
2024-05-31T20:16:50.780669+02:00 pmg postfix/smtpd[14418]: NOQUEUE: reject: RCPT from DESKTOP-HQ29V9F.fritz.box[192.168.178.24]: 454 4.7.1 <internet@server.com>: Relay access denied; from=<My@server.com> to=<internet@server.com> proto=ESMTP helo=<[192.168.178.24]>
2024-05-31T20:16:50.791850+02:00 pmg postfix/smtpd[14418]: lost connection after RCPT from DESKTOP-HQ29V9F.fritz.box[192.168.178.24]
2024-05-31T20:16:50.791965+02:00 pmg postfix/smtpd[14418]: disconnect from DESKTOP-HQ29V9F.fritz.box[192.168.178.24] ehlo=1 mail=1 rcpt=0/1 commands=2/3[/CODE]
 
Hi, I fixed it. I have added a few domain endings like .com, .de, .org under Relayed Domains. But when I try to send a message now, I get a Error Message:
Code:
This is the mail system at host myserver.com .

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                   The mail system

[EMAIL='ennogelhaus@gmail.com']<internet@server.com>[/EMAIL]: mail for [myserver.com]:25 loops back to myself

Code:
Reporting-MTA: dns; myserver.com
X-Proxmox-Queue-ID: 2D3DE41276
X-Proxmox-Sender: rfc822; Me[EMAIL='egelhaus@mail.ennogelhaus.de']@myserver.com[/EMAIL]
Arrival-Date: Sat,  1 Jun 2024 18:34:58 +0200 (CEST)

Final-Recipient: rfc822; [EMAIL='ennogelhaus@gmail.com']internet@server.com[/EMAIL]
Original-Recipient: [EMAIL='rfc822;ennogelhaus@gmail.com']rfc822;[/EMAIL][EMAIL='ennogelhaus@gmail.com']internet@server.com[/EMAIL]
Action: failed
Status: 5.4.6
Diagnostic-Code: X-Proxmox; mail for [[EMAIL='egelhaus@mail.ennogelhaus.de']myserver.com[/EMAIL]]:25 loops back to
    myself
 
If you want to send mails from your domains to the internet - you need to send them to the internal port -
Do not add the whole internet as relay-domains!!

please check the reference documentation:
https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#chapter_deployment

(specifically this chapter - but the information there in general should help you get started)
 

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!