Problems with backup email notifications

paolone

New Member
May 6, 2024
27
1
3
Hello

I'm on a PVE 8.3 last community version and I've set a backup to PBS install inside the same node.
I want to receive an email for every backup.
This is my cfg:
  • In Datacenter set the destination email into the root user
  • In options set the sender email
  • In notification set a new smtp (with my valid smtp) and test works well
  • In Backup
    • notification mode to auto
    • send email to added the destination email
    • send email always
I run the job but I can't receive the email.
When I'm going into the notifications panel I've 2 target:
  • mail to root
  • smtp that I've configured
When I click on test only the smtp row send the email.
Mail to root send email ok but I never receive.

Can you help me to solve this problem?

My best regards
 
In nano /etc/postfix/main.cf


Code:
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = $myhostname, localhost.$mydomain, localhost
relayhost =
mynetworks = 127.0.0.0/8
inet_interfaces = loopback-only
recipient_delimiter = +

compatibility_level = 2

Is it normal that I can't find relayhost ?
 
This is my cfg:
  • In Datacenter set the destination email into the root user
  • In options set the sender email
  • In notification set a new smtp (with my valid smtp) and test works well
  • In Backup
    • notification mode to auto
    • send email to added the destination email
    • send email always
I run the job but I can't receive the email.
When I'm going into the notifications panel I've 2 target:
  • mail to root
  • smtp that I've configured
When I click on test only the smtp row send the email.
Mail to root send email ok but I never receive.

Can you help me to solve this problem?

In the backup job, set the "Notification Mode" to "Notification system", see [1]
In the notification settings, make sure that there is a matcher with the settings that you'd like that uses the SMTP notification target.

Hope this helps!

[1] https://pve.proxmox.com/pve-docs/pve-admin-guide.html#notification_mode
 
Hello Lukas thanks for your answer.

Set the notification system in notification mode field.
In the Matcher selected mail-to-root and the new smtp too.

If I see the log I read the "from" field is root@pve.domain.lan" but in the datacenter options I've specified another sender address (real).
I've an error in the "to" "delivery temporarily suspended: Host or domain name not found. Name service error for name=domainrecipient.com type=MX: Host not found, try again"

If I telnet my smtp 25 I've the connection.

I've set many other PVE without problem.

Thanks for your support