daily Status Report

emper0r

New Member
Dec 16, 2022
19
0
1
Hi again

I set GUI - Configuration - Option the email for notification, but when PMG send the email not exist the FROM address, so the email is bounced. here is the log

Code:
Jan 17 00:01:10 pmg postfix/smtpd[938413]: connect from localhost.localdomain[127.0.0.1]
Jan 17 00:01:10 pmg postfix/smtpd[938413]: 1F6D03A00AE: client=localhost.localdomain[127.0.0.1]
Jan 17 00:01:10 pmg postfix/cleanup[938407]: 1F6D03A00AE: message-id=<20230116230110.1F6D03A00AE@pmg.mydomain.local>
Jan 17 00:01:10 pmg postfix/smtpd[938413]: disconnect from localhost.localdomain[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 commands=4
Jan 17 00:01:10 pmg postfix/qmgr[775679]: 1F6D03A00AE: from=<>, size=3285, nrcpt=1 (queue active)
Jan 17 00:01:10 pmg postfix/smtp[938418]: Trusted TLS connection established to smtp-relay.gmail.com[108.177.15.28]:25: TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256)
Jan 17 00:01:10 pmg postfix/smtp[938418]: 1F6D03A00AE: to=<alerts.pmg@mydomain.tld>, relay=smtp-relay.gmail.com[108.177.15.28]:25, delay=0.29, delays=0.05/0/0.17/0.07, dsn=5.7.0, status=bounced (host smtp-relay.gmail.com[108.177.15.28] said: 550-5.7.0 Mail relay denied [93.62.144.68]. Invalid credentials for relay for 550-5.7.0 one of the domains in: (as obtained from HELO and MAIL FROM). 550-5.7.0 Email is being sent from a domain or IP address which isn't registered 550-5.7.0 in your G Suite account. Please login to your G Suite account and 550-5.7.0 verify that your sending device IP address has been registered within 550-5.7.0 the G Suite SMTP Relay Settings. For more information, please visit 550 5.7.0 https://support.google.com/a/answer/6140680#maildenied p14-20020a1709065dce00b0084c401e2221sm586303ejv.293 - gsmtp (in reply to RCPT TO command))
Jan 17 00:01:10 pmg postfix/qmgr[775679]: 1F6D03A00AE: removed

where can i set this FROM ??
 
I set GUI - Configuration - Option the email for notification, but when PMG send the email not exist the FROM address, so the email is bounced. here is the log
The reports are always sent as bounces (with an empty envelope from) to not generate NDRs for the reports:
https://git.proxmox.com/?p=pmg-api....0c74bd27c3a4bd751561032e1a04ef52177db53#l1264

I think you need to allow your PMG's ip in your gsuite settings - as described in the link from your logs:
https://support.google.com/a/answer...il-relay-denied,invalid-credentials-for-relay

I hope this helps!
 
our pmg out using NAT from firewall and the IP address pubblic is authorized to receive emails, in fact is our pmg using this nat address to send to our gsuite domain in google.
my question is from=<> ..... how can i change this to set for example root@mydomain.tld (registered on gsuite) ?
 
Last edited:
my question is from=<> ..... how can i change this to set for example root@mydomain.tld (registered on gsuite) ?
as said - this is hardcoded to not generate NDRs - however I'd assume that google will have a way to configure that you are ok with receiving bounces (mails with empty envelope address) from a particular IP...
(mail does rely on sending out mails with empty from address for its operation (e.g. to notify you that a mail could not be delivered))
 
sorry but i don't sitll understand, how can i get the report daily then ?
* either pick a different e-mail for your admin e-mail
or
* ask google support how to configure your settings to allow these e-mails
 
Yes - but this would get replaced again on every update ...
as said I think you need to configure your receiving server (gmail) to accept those mails with empty envelope from
 
don't worry, I take note about any modification did it on pmg to after update set again....
 

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!