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).


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_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 = [::ffff:]/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

Your Answer


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

Browse other questions tagged or ask your own question.