Receiving emails but not sending

Feb 28, 2023
6
0
1
Hi Guys,

I've been trying to migrate my mail gateway to proxmox in order to convince the board to buy the subscription, but I'm failing to put it to work.

I need help, I must be missing something I have setup proxmox for my exchange 2019 environment, I have set the connector to point to proxmox which is my smart host on port 26, I have done all whitelisting for trusted emails and domains and setup my relay as well. but I can receive emails only I cannot send. what I send does not get to the receiver. When i check the queues the sent emails seem to be rejected.

  1. On the exchange I've created a send connector to send with port 26 to proxmox.
  2. Im getting the following error while sending an email " Your message wasn't delivered due to a permission or security issue. It may have been rejected by a moderator, the address may only accept email from certain senders, or another restriction may be preventing delivery.


    The following organization rejected your message: hPMG.x.x.x





    Diagnostic information for administrators:
    Generating server: EXCH.x.x.x
    keew323@x.x.x
    hPMG.x.x.x
    Remote Server returned '554 5.7.1 <keew323@x.x.x>: Relay access denied "
  3. I've added the mailhost on the trusted networks;
  4. 1677679670557.png
  5. Mar 01 16:25:42 pmg01 pmg-smtp-filter[985]: starting database maintenance
    Mar 01 16:25:42 pmg01 pmg-smtp-filter[985]: end database maintenance (12 ms)
    Mar 01 16:25:43 pmg01 postfix/postscreen[6405]: CONNECT from [30.30.30.5]:6230 to [30.30.40.5]:26
    Mar 01 16:25:43 pmg01 postfix/postscreen[6405]: WHITELISTED [30.30.30.5]:6230
    Mar 01 16:25:43 pmg01 postfix/smtpd[6406]: connect from exch-2019[30.30.30.5]
    Mar 01 16:25:43 pmg01 postfix/smtpd[6406]: Anonymous TLS connection established from exch-2019[30.30.30.5]: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
    Mar 01 16:25:44 pmg01 postfix/smtpd[6406]: NOQUEUE: reject: RCPT from exch-2019[30.30.30.5]: 554 5.7.1 <tomas@txn.com>: Relay access denied; from=<support@xyx.vom> to=<tomas@txn.com> proto=ESMTP helo=<mail.xyx.com>
    Mar 01 16:25:44 pmg01 postfix/smtpd[6406]: disconnect from exch-2019[30.30.30.5] ehlo=2 starttls=1 mail=1 rcpt=0/1 quit=1 commands=5/6
    Mar 01 16:26:03 pmg01 pmgpolicy[970]: starting policy database maintenance (greylist, rbl)
    Mar 01 16:26:03 pmg01 pmgpolicy[970]: end policy database maintenance (21 ms, 3 ms)
  6. 1677681146522.png


Please help.
 

Attachments

  • 1677679409551.png
    1677679409551.png
    3.5 KB · Views: 5
On the exchange I've created a send connector to send with port 26 to proxmox.
then port 26 should be your Internal Port (and port 25 should be your external port)
* internal port = port where your mail-server has to send mails to and they then get sent on to the internet by PMG (after scanning) (only trusted Networks are allowed)
* external port = port where the internet sends mails to (only mails _to_ your relay domains are allowed)

I hope this explains it!
 
Now that I've switched, im getting the following error:

" This is the mail system at host PMG.

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

<tomas@txn.com>: host 30.30.30.5[30.30.30.5] said: 550
5.7.54 SMTP; Unable to relay recipient in non-accepted domain (in reply to
RCPT TO command). "


But I I've the relay/relay domain correct.
 
In mailproxy

Relay Domains - add your domain
Transports - add a mailserver hostname, port, disable use mx
Networks - add mailserver external send ip with /32 CIDR
 
Did all that, but still not working.

Relay Domains - domain.com
Transports - add a mailserver hostname, port, disable use mx - domain.com + mailserver + smtp + 25
Networks - add mailserver external send ip with /32 CIDR - mailserver/32
 
Hi,

While tshooting I found out that the ports were changed wrongly, so I had to roll back because the mails were not inbounding, now the mails are inbounding and yet not outbounding .

the outbound flow is:

MX ==> PMG ==> FW ==> INTERNET

Can we have a call? So you could see whats happening and they I could post the procedure so we could help others in the same situation.
 

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!