postfix

nt7561

New Member
May 3, 2023
3
0
1
Hi everyone.
My name is Nick and I need your help.
I'm running a proxmox server with the specs of the screenshot.
Till a couple of days everything was running great till I decided to configure the postfix iot get email notifications.
Somehow I have messed up /etc/postfix/main.cf and from that day my server freezes for some seconds causing my vms to freeze also.
Here is my /etc/postfix/main.cf
# See /usr/share/postfix/main.cf.dist for a commented, more complete version

myhostname=proxmox.amd.local

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
#mydestination = $myhostname, localhost.$mydomain, localhost
relayhost = [smtp.gmail.com]:587
smtp_use_tls = yes
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt
smtp_tls_session_cache_database = btree:/var/lib/postfix/smtp_tls_session_cache
smtp_tls_session_cache_timeout = 3600s
smtp_tls_wrappermode = yes
smtp_tls_security_level = encrypt

mynetworks = 127.0.0.0/8
inet_interfaces = loopback-only
recipient_delimiter = +

Can you pls tell me how to set it again to defaults?
Many thanks in advance
Screenshot 2023-05-03 175708.png
 
it's quite odd that it would be freezing after you set those Postfix settings.
Either way, the default settings for Postfix don't do anything until you have your relay set up, so consider service postfix stop

Also, on that note, as someone who's setup Postfix multiple times now, your main.cf looks solid, is it functioning outside of that weird issue?
 

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!