Hello!
I'd like to configure postfiy to send emails from proxmox and i'm looking for some help. I'd like to use posteo as smtp server if it is possible...
Here is what i did to make it work:
1. Installed libsasl2-modules
2. Specified account details:
[posteo.de]:587 my_username@posteo.de:mypassword
3. Created hash:
4. Linmited the access of the file contains my account details:
5. Configured postfix configuration file
- changed relay host:
- added these lines to the end of the config file:
6. Reloading postfix service
7. Test if mail is sent:
Unfotunately the mail hasn't arrived, this is what the logs says:
Am i correct that the sender wants to be root@pve.local.lan? If yes, where could i change it? When i installed proxmox i gave an email address (posteo), and if i checked in the GUI under users the root user has the address i gave it at install.
Does anyone have maybe some suggestion?
And is there any way to use SSL instead starttls?
Thanks any help!
I'd like to configure postfiy to send emails from proxmox and i'm looking for some help. I'd like to use posteo as smtp server if it is possible...
Here is what i did to make it work:
1. Installed libsasl2-modules
apt-get install
libsasl2-modules
2. Specified account details:
nano /etc/postfix/sasl_passwd
[posteo.de]:587 my_username@posteo.de:mypassword
3. Created hash:
postmap hash:/etc/postfix/sasl_passwd
4. Linmited the access of the file contains my account details:
chmod 600 /etc/postfix/sasl_passwd
5. Configured postfix configuration file
nano /etc/postfix/main.cf
- changed relay host:
relayhost = [posteo.de]:587
- added these lines to the end of the config file:
smtp_use_tls=yes
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =
6. Reloading postfix service
postfix reload
7. Test if mail is sent:
echo "test mail from proxmox" | mail -s test my_alias@posteo.de
Unfotunately the mail hasn't arrived, this is what the logs says:
Code:
tail -f /var/log/syslog
Apr 21 16:06:46 pve postfix/qmgr[52904]: 8380718132: removed
Apr 21 16:06:46 pve pvemailforward[53005]: forward mail to <my_username@posteo.de>
Apr 21 16:06:46 pve postfix/pickup[52903]: 57ECE185B9: uid=65534 from=<root>
Apr 21 16:06:46 pve postfix/cleanup[52999]: 57ECE185B9: message-id=<20210421140646.24DC9185B8@pve.local.lan>
Apr 21 16:06:46 pve postfix/qmgr[52904]: 57ECE185B9: from=<root@pve.local.lan>, size=2614, nrcpt=1 (queue active)
Apr 21 16:06:46 pve postfix/local[53004]: 24DC9185B8: to=<root@pve.local.lan>, relay=local, delay=0.21, delays=0/0.01/0/0.21, dsn=2.0.0, status=sent (delivered to command: /usr/bin/pvemailforward)
Apr 21 16:06:46 pve postfix/qmgr[52904]: 24DC9185B8: removed
Apr 21 16:06:46 pve postfix/smtp[53001]: 57ECE185B9: to=<my_username@posteo.de>, relay=posteo.de[185.67.36.145]:587, delay=0.41, delays=0/0/0.36/0.05, dsn=5.1.8, status=bounced (host posteo.de[185.67.36.145] said: 554 5.1.8 <root@pve.local.lan>: Sender address rejected: Domain not found (in reply to RCPT TO command))
Apr 21 16:06:46 pve postfix/cleanup[52999]: C6073185BA: message-id=<20210421140646.C6073185BA@pve.local.lan>
Apr 21 16:06:46 pve postfix/qmgr[52904]: 57ECE185B9: removed
Apr 21 16:07:00 pve systemd[1]: Starting Proxmox VE replication runner...
Apr 21 16:07:00 pve systemd[1]: pvesr.service: Succeeded.
Apr 21 16:07:00 pve systemd[1]: Started Proxmox VE replication runner
Am i correct that the sender wants to be root@pve.local.lan? If yes, where could i change it? When i installed proxmox i gave an email address (posteo), and if i checked in the GUI under users the root user has the address i gave it at install.
Does anyone have maybe some suggestion?
And is there any way to use SSL instead starttls?
Thanks any help!
Last edited: