msmtp instead of postfix?

hpcraith

Renowned Member
Mar 8, 2013
82
0
71
Stuttgart Germany
www.hlrs.de
In our environment most server cannot send e-mails (in my case system mails) to admins.
Those mails have to be sent to sysmail@........ and are distributed from there to the appropriate
mail account. Our Proxmox Backup Server has no need to receive mails.
My question:
1. Can I uninstall postfix and use msmtp instead?
2. I asume that sendmail is used for sending. Where can I find the place to alter the command for sending.
Rgds
Dieter
 
In our environment most server cannot send e-mails (in my case system mails) to admins.

Why? Any error message?

A quick guess - please install:

> apt install bsd-mailx

... and try again.
 
Error message:
This is the mail system at host vwbackupsrv.hlrs.de.
.....
The mail system

<raith@hlrs.de>: host mail.hlrs.de[141.58.2.50] said: 554 5.7.1
<raith@hlrs.de>: Sender address rejected: Access denied (in reply to RCPT
TO command)

The mail rejected is from
MAILER-DAEMON@vwbackupsrv.hlrs.de

In unserem Mailhost ist vwbackupsrv.hlrs.de nicht bekannt. Die Systemmails müssen über
einen Mail Client an eine spezielle Addresse
user sysmail@local.hlrs.de
pass ...........................
geschickt werden. Von dort werden sie dann weiterverteilt.
Postfix ist also nicht notwendig
 
I installed msmtp.

created /etc/msmtprc
#######################
host mail.hlrs.de
aliases /etc/aliases
auto_from on
maildomain vwbackupsrv.hlrs.de
port 587
tls on
auth on
user sysmail@local.hlrs.de
password access-password
########################

Then I used the following command in a shell:
echo "Hello this is sending email using msmtp" | msmtp raith@hlrs.de

I got this mail in my mailbox from: root@vwbackupsrv.hlrs.de

So my question is:
How can I feed the system mails of PBS to use this channel.

Rgds
Dieter
 
Unfortunately nobody answered to my question. Tom sugested in a previous reply to install
bsd-mailx. To my knowledge this is equvalent to msmtp.
My question is:
How and where are the system messages created and how are they sent.
I asume that postfix is addressed as a mail server and sends it to the destination.

What I need is:
cat system_message | msmtp raith@hlrs.de

I would have no problem to use bsd-mailx if there is a solution.
Can any of the designers help me.

Rgds
Dieter
 
Da ich auf meinen letzten Post keine Antwort bekommen habe, habe ich heute einen weiteren Versuch gestartet
und den Postfix gepurged (apt purge postfix).
Effekt : Der WEB-GUI (https://vwbackupsrv.xxx.de:8007/ verweigert den Zugriff,
wahrscheinlich funktioniert auch anderes nicht mehr.
Den Output habe ich angehängt. Die nachfolgenden Zeilen verwundern mich ganz besonders.

The following packages were automatically installed and are no longer required:
proxmox-offline-mirror-docs proxmox-offline-mirror-helper
.....
Purging configuration files for proxmox-backup-server (2.2.7-1) ...
Purging configuration files for proxmox-backup (2.2-1)

Was hat das bitte mit dem postfix zu tun.
Kann ich das vorige System wiederherstellen oder muß ich neu installieren?
Ich dachte, der Proxmox Backup Server wäre eine Lösung das bisherige Backup System
RHEL mit LTFS (Linux Tape File System) für unsere Proxmox PVE Systeme. Das scheint
aber nicht so wie erwünscht zu sein. LTFS brauchen wir auch noch, sowie Samba und NFS.
Wir haben eine wirklich fette Hardware dafür vorgesehen.

Vielleicht gibt es dieses Mal eine Antwort auch von einem Staff Member.
Beste Grüße
Dieter
 

Attachments

  • ProxmoxBackupServer.txt
    1.2 KB · Views: 0
Vielleicht gibt es dieses Mal eine Antwort auch von einem Staff Member.
bei postfix bleiben. wir testen hier mit postfix und das funktioniert auch.

wenn nicht, bitte bugreport. wenn irgendwelche tools installiert werden, ist man schnell alleine...
 

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!