Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My setup is that my central mail server, CM forward to an anti-spam server, cacti which acts as an SMTP server. On of the email addresses on CM has been getting 40 emails generated apparently as a bounce notification from Cacti, as shown below:

The mail system *<>: mail for loops back to myself

Final-Recipient: rfc822;
Original-Recipient: rfc822;
Action: failed
Status: 5.4.6
Diagnostic-Code: X-Postfix; mail for loops back to myself*

He gets these emails even without sending anything. Incidentally he started receiving them on a day I had been spammed on the Cacti server. The spam source was located and dealt with but this client keeps getting these failure delivery emails.

I have checked the and the line mydestination = $myhostname, localhost.localdomain, localhost is there. This is affecting only one email address on a server with about 12000 mailboxes so it may not be a global issue.

root@cacti:~# postconf -n
2bounce_notice_recipient =
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
bounce_notice_recipient =
bounce_template_file = /etc/postfix/
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
debug_peer_level = 6
debug_peer_list =
delay_notice_recipient =
error_notice_recipient =
header_checks = regexp:/etc/postfix/header_checks
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
message_size_limit = 15000000
mydestination =,, localhost
mynetworks = [::ffff:]/104 [::1]/128 196.x.x.0/24 196.x.x.0/24 196.x.x.0/26
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_recipient_restrictions = 
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = 
smtpd_sasl_security_options = noanonymous
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
share|improve this question
up vote 1 down vote accepted

To fix this error either add system FQDN to mydestination or relay_domains. Postfix accepts mail for domain listed in virtual_mailbox_domains, virtual_alias_domains, and domains that resolve to IP addresses listed in inet_interfaces and proxy_interfaces. Update mydestination using postconf or by editing file:

  mydestination = localhost.$mydomain, localhost,

  service postfix reload
share|improve this answer
From my out put there is the line mydestination =,, localhost. What else do I have to change. – Paddington Feb 26 '13 at 13:51
Add Any domain must be in this list, that you want to get email to. – Kazimieras Aliulis Feb 26 '13 at 14:02
@Paddington is missing something .......... – Michael Hampton Feb 26 '13 at 20:28

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.