So I had a lot of files change and the snapraid diff job was not able to send the report mail because it was too large:
Code
postdrop: warning: uid=0: File too large
send-mail: fatal: root(0): message file too big
Can't send mail: sendmail process failed with error code 75
So I tried to change /etc/postfix/main.cf by creating the file /srv/salt/omv/deploy/postfix/99custom.sls :
Code
custom_postfix_size_nolimit:
file.keyvalue:
- name: /etc/postfix/main.cf
- key_values:
mailbox_size_limit: 0
message_size_limit: 0
- separator: ' = '
- uncomment: '# '
- append_if_not_found: True
Running omv-salt deploy run postfix returns:
Code
ID: custom_postfix_size_nolimit
Function: file.keyvalue
Name: /etc/postfix/main.cf
Result: False
Comment: file.keyvalue key and value not supplied and key_values empty
Started: 19:57:21.263072
Duration: 0.36 ms
Changes:
I am pretty sure the formatting on the key_values dictionary is correct (reference).
Any ideas on what I did wrong or how I can appropriately adjust the size limit for postfix?