[Proxmox 6.2-3] Receiving 554 5.7.1 Relay Access Denied

JReich2609

New Member
Oct 30, 2020
6
0
1
33
I am attempting to set up Proxmox for the first time feed external emails via SMTP 25 into Proxmox and relay the data to an exchange environment. For the sake of arguments my external email address is mail.default.com.

Relaying:
mail.default.com
25
SMTP
No
None

Relay Domains:
mail.default.com

External SMTP Port:
25

Transports:
mail.default.com
10.0.0.30 (host for exchange environment)
SMTP
25
No
External Mailserver

What am I missing? Why do I continue to get relay access denied error message?

Thanks!
 
Are you trying to send from external to internal mail server, or the other way around?
If you're trying to send from the internal to an external one, you have to use the internal port of the PMG (26 by default).
 
I am attempting to receive an email from an external port 25, and pass it to the mail server that is internal after receipt from Proxmox. So it is my understanding that Port 25 would carry it all the way to the exchange box? I am unconcerned with external email traffic at this point.

If my assumption is incorrect, please let me know.
 
Please provide the logs from such an attempt. You can find the relevant info in /var/log/syslog.
Just to be safe, please provide ~5 minutes before the attempt until 5 minutes after the attempt, so 10minutes in total, of the syslog.
 
This is an example of failures happening when Port 25 is switched to Proxmox. I switch back to exchange directly when not testing.

Code:
Oct 30 08:00:23 proxmox systemd[1]: Started Hourly Proxmox Mail Gateway activities.
Oct 30 08:01:19 proxmox pmg-smtp-filter[18578]: starting database maintainance
Oct 30 08:01:19 proxmox pmg-smtp-filter[18578]: end database maintainance (11 ms)
Oct 30 08:02:32 proxmox pmgpolicy[872]: starting policy database maintainance (greylist, rbl)
Oct 30 08:02:32 proxmox pmgpolicy[872]: end policy database maintainance (14 ms, 4 ms)
Oct 30 08:02:38 proxmox postfix/postscreen[19734]: CONNECT from [141.98.10.143]:52506 to [10.0.0.26]:25
Oct 30 08:02:38 proxmox postfix/postscreen[19734]: PREGREET 11 after 0.17 from [141.98.10.143]:52506: EHLO User\r\n
Oct 30 08:02:38 proxmox postfix/postscreen[19734]: DISCONNECT [141.98.10.143]:52506
Oct 30 08:02:55 proxmox postfix/postscreen[19734]: CONNECT from [216.245.221.88]:47686 to [10.0.0.26]:25
Oct 30 08:02:55 proxmox postfix/postscreen[19734]: HANGUP after 0 from [216.245.221.88]:47686 in tests before SMTP handshake
Oct 30 08:02:55 proxmox postfix/postscreen[19734]: DISCONNECT [216.245.221.88]:47686
Oct 30 08:02:55 proxmox postfix/anvil[19686]: statistics: max connection rate 1/60s for (smtpd:209.85.214.176) at Oct 30 07:59:35
Oct 30 08:02:55 proxmox postfix/anvil[19686]: statistics: max connection count 1 for (smtpd:209.85.214.176) at Oct 30 07:59:35
Oct 30 08:02:55 proxmox postfix/anvil[19686]: statistics: max cache size 1 at Oct 30 07:59:35
Oct 30 08:03:19 proxmox pmg-smtp-filter[18578]: starting database maintainance
Oct 30 08:03:19 proxmox pmg-smtp-filter[18578]: end database maintainance (11 ms)
Oct 30 08:03:31 proxmox postfix/postscreen[19734]: CONNECT from [162.246.17.83]:50173 to [10.0.0.26]:25
Oct 30 08:03:37 proxmox postfix/postscreen[19734]: PASS NEW [162.246.17.83]:50173
Oct 30 08:03:38 proxmox postfix/smtpd[19739]: connect from thanhlongpcb.com[162.246.17.83]
Oct 30 08:03:38 proxmox postfix/smtpd[19739]: NOQUEUE: reject: RCPT from thanhlongpcb.com[162.246.17.83]: 554 5.7.1 <kovit@reichnetwork.com>: Relay access denied; from=<donotreply@godaddy.com> to=<kovit@reichnetwork.com> proto=ESMTP hel$
Oct 30 08:03:38 proxmox postfix/smtpd[19739]: disconnect from thanhlongpcb.com[162.246.17.83] ehlo=1 mail=1 rcpt=0/1 quit=1 commands=3/4
Oct 30 08:04:42 proxmox pmgpolicy[872]: starting policy database maintainance (greylist, rbl)
Oct 30 08:04:42 proxmox pmgpolicy[872]: end policy database maintainance (37 ms, 2 ms)
Oct 30 08:05:20 proxmox pmg-smtp-filter[18578]: starting database maintainance
Oct 30 08:05:20 proxmox pmg-smtp-filter[18578]: end database maintainance (11 ms)
Oct 30 08:05:40 proxmox postfix/postscreen[19750]: CONNECT from [13.111.113.66]:44329 to [10.0.0.26]:25
Oct 30 08:05:46 proxmox postfix/postscreen[19750]: PASS NEW [13.111.113.66]:44329
Oct 30 08:05:46 proxmox postfix/smtpd[19753]: connect from mta.email.bookfinity.com[13.111.113.66]
Oct 30 08:05:47 proxmox postfix/smtpd[19753]: NOQUEUE: reject: RCPT from mta.email.bookfinity.com[13.111.113.66]: 554 5.7.1 <carly@watertightwriting.com>: Relay access denied; from=<bounce-2896_HTML-86113113-299876-100019317-223@bounce.$
Oct 30 08:05:47 proxmox postfix/smtpd[19753]: disconnect from mta.email.bookfinity.com[13.111.113.66] ehlo=1 mail=1 rcpt=0/1 data=0/1 quit=1 commands=3/5
Oct 30 08:06:52 proxmox pmgpolicy[872]: starting policy database maintainance (greylist, rbl)
Oct 30 08:06:52 proxmox pmgpolicy[872]: end policy database maintainance (13 ms, 2 ms)
Oct 30 08:07:20 proxmox pmg-smtp-filter[18578]: starting database maintainance
Oct 30 08:07:20 proxmox pmg-smtp-filter[18578]: end database maintainance (11 ms)
Oct 30 08:08:02 proxmox postfix/postscreen[19763]: CONNECT from [216.245.221.88]:59402 to [10.0.0.26]:25
Oct 30 08:08:02 proxmox postfix/postscreen[19763]: HANGUP after 0 from [216.245.221.88]:59402 in tests before SMTP handshake
Oct 30 08:08:02 proxmox postfix/postscreen[19763]: DISCONNECT [216.245.221.88]:59402
Oct 30 08:08:53 proxmox pmgpolicy[872]: starting policy database maintainance (greylist, rbl)
Oct 30 08:08:53 proxmox pmgpolicy[872]: end policy database maintainance (15 ms, 3 ms)
Oct 30 08:09:07 proxmox postfix/anvil[19741]: statistics: max connection rate 1/60s for (smtpd:162.246.17.83) at Oct 30 08:03:38
Oct 30 08:09:07 proxmox postfix/anvil[19741]: statistics: max connection count 1 for (smtpd:162.246.17.83) at Oct 30 08:03:38
Oct 30 08:09:07 proxmox postfix/anvil[19741]: statistics: max cache size 1 at Oct 30 08:03:38
Oct 30 08:09:20 proxmox pmg-smtp-filter[18578]: starting database maintainance
Oct 30 08:09:20 proxmox pmg-smtp-filter[18578]: end database maintainance (11 ms)
 
Last edited:
Is the domain in 'Relay Domains' correct? (reichnetwork.com according to the logs)
Please post your 'Relay Domains' and 'Transports' configuration.
 
You have to add the right relay domain (reichnetwork.com, as seen here: kovit@reichnetwork.com) if you want to relay mails for that domain.
 

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!