Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

System generates automatically system alert emails to root or username1 bla bla. How can i completely disable such email alerts without stopping MTA (postfix etc).

EDIT:

Step 1:

$ cat /etc/postfix/main.cf
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
append_dot_mydomain = no
readme_directory = no
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
# using PCname else it generates email to valid email address

myhostname = PCNAMAE_______________________PCNAME
alias_maps = hash:/etc/aliases

alias_database = hash:/etc/aliases
mydestination = sun-, localhost.localdomain, , localhost
relayhost = 1x.x.x.x
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all

Step 2: This is where to say auto mails where to send

$ cat /etc/aliases
root:   nul

Step 3: Aliases file when change requires to load them using the command

$ newaliases
$ service postfix restart

Step 4: TEST

$ echo "PDF" | mutt -a "/var/tmp/data.zip" -s "PDF" -c a@b.com -e 'my_hdr From:c@d.com' -- e@f.com
share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.