Hoi,
Ik heb Debian draaien op een machine en daar draait een software raid met MDADM met 2 schijven in RAID 1.
Nu heb ik MSMTP ingesteld om system mails te versturen via Office365 naar mijn eigen email adres. Test mails komen aan maar als ik een schijf down grade simuleer dan wordt de mail naar root verzonden maar root heb ik in Aliasses gekoppeld aan mijn eigen adres. Het resolven lijkt daarin niet goed te gaan. Iemand een idee waar ik de mist in ga?
Syslog:
Ik heb hierna newaliases gerund
mdadm.conf:
etc/msmtprc:
Ik heb Debian draaien op een machine en daar draait een software raid met MDADM met 2 schijven in RAID 1.
Nu heb ik MSMTP ingesteld om system mails te versturen via Office365 naar mijn eigen email adres. Test mails komen aan maar als ik een schijf down grade simuleer dan wordt de mail naar root verzonden maar root heb ik in Aliasses gekoppeld aan mijn eigen adres. Het resolven lijkt daarin niet goed te gaan. Iemand een idee waar ik de mist in ga?
Syslog:
code:
1
2
3
4
5
6
| Feb 9 17:29:37 orion dhclient[447]: bound to 10.13.13.13 -- renewal in 300 seconds. Feb 9 17:31:26 orion kernel: [67915.141541] md/raid1:md0: Disk failure on sdc, disabling device. Feb 9 17:31:26 orion kernel: [67915.141541] md/raid1:md0: Operation continuing on 1 devices. Feb 9 17:31:26 orion mdadm[15206]: sendmail: the server did not accept the mail Feb 9 17:31:26 orion mdadm[15206]: sendmail: server message: 554 5.2.0 STOREDRV.Submission.Exception:InvalidRecipientsException; Failed to process message due to a permanent exception with message Recipient 'root' is not resolved. All recipients must be resolved before a message can be submitted. InvalidRecipientsException: Recipient 'root' is not resolved. All recipients must be resolved before a message can be submitted. [Hostname=AM9P193MB0824.EURP193.PROD.OUTLOOK.COM] Feb 9 17:31:26 orion mdadm[15206]: sendmail: could not send mail (account default from / |
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| root@orion:/# cat /etc/aliases default: mijn@emailadres.nl mailer-daemon: postmaster postmaster: root nobody: root hostmaster: root usenet: root news: root webmaster: root www: root ftp: root abuse: root noc: root security: root root: mijn@emailadres.nl root@orion:/# |
Ik heb hierna newaliases gerund
mdadm.conf:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
| root@orion:/# cat /etc/mdadm/mdadm.conf # mdadm.conf # # !NB! Run update-initramfs -u after updating this file. # !NB! This will ensure that initramfs has an uptodate copy. # # Please refer to mdadm.conf(5) for information about this file. # # by default (built-in), scan all partitions (/proc/partitions) and all # containers for MD superblocks. alternatively, specify devices to scan, using # wildcards if desired. #DEVICE partitions containers # automatically tag new arrays as belonging to the local system HOMEHOST <system> # instruct the monitoring daemon where to send mail alerts MAILADDR mijn@emailadres.nl MAILFROM mijn@emailadres.nl # definitions of existing MD arrays # This configuration was auto-generated on Tue, 08 Feb 2022 22:08:59 +0100 by mkconf root@orion:/# |
etc/msmtprc:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
| root@orion:/# cat /etc/msmtprc # Set default values for all following accounts. defaults aliases /etc/aliases auth on tls on tls_trust_file /etc/ssl/certs/ca-certificates.crt logfile ~/.msmtp.log # Office365 account Office365 host smtp.office365.com port 587 from mijn@emailadres.nl user mijn@emailadres.nl password GrootGeheim # Set a default account account default : Office365 root@orion:/# |
