Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

I'm trying to send a notification email from Asterisk through Postfix to let users know they have voicemail messages, but the following is showing up in the postfix logs:

Feb 15 15:21:02 myserver postfix/local[12751]: BF8E9A18887: to=<>, relay=local, delay=0.07, delays=0.05/0.01/0/0.02, dsn=5.1.1, status=bounced (unknown user: "alfred")

I am using my ISP's SMTP servers as a relay, and I have tested and been able to send messages to the user through their SMTP servers using telnet.

What else can I check to see where this bounce is coming from? It seems to be postfix, but I don't know what to do next.

queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
myhostname =

inet_interfaces = localhost
mydestination = $myhostname, localhost.$mydomain, localhost
unknown_local_recipient_reject_code = 550
relayhost = []
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
debug_peer_level = 2
debugger_command =
     xxgdb $daemon_directory/$process_name $process_id & sleep 5

sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.3.3/samples
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES

#smtp_sasl_password_maps = hash:/etc/postfix/saslpasswd
#broken_sasl_auth_clients = yes
#smtpd_sasl_auth_enable = no
#smtp_always_send_ehlo = yes
#smtp_sasl_auth_enable = yes
share|improve this question
up vote 0 down vote accepted

The postfix logs you posted indicates that your mail server is not relaying your message to the relayhost for the simple reason that the domain of the recipient matches to the mydestination parameter. If the domain is part of the mydestination, then the message is delivered through the local program, it is not relayed, as you can see in relay=local from the logs. If you want every email sent to be relayed, then leave the mydestination field empty.

share|improve this answer

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.