I'm on Ubuntu 11.04 64bit.

I'm trying to set up Postfix on my VPS, which has been configured but when I send an email to an alias e.g. webmaster@domain.com it will send it to myemail@hotmail.co.uk. Now when I sent the email from my GMail account, I got this returned:

Delivery to the following recipient failed permanently:


Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 550 550 #5.1.0 Address rejected webmaster@domain.com (state 14).

----- Original message -----

DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
       d=gmail.com; s=20120113;
MIME-Version: 1.0
Received: by with SMTP id f5mr783908ani.86.1334247306547; Thu, 12
 Apr 2012 09:15:06 -0700 (PDT)
Received: by with HTTP; Thu, 12 Apr 2012 09:15:06 -0700 (PDT)
Date: Thu, 12 Apr 2012 17:15:06 +0100
Message-ID: <CAN+9S2aB=xjiDxVZx3qYZoBMFD4XuadUyR_3OYWaxw1ecrZmOQ@mail.gmail.com>
Subject: Test Email
From: My Name <myemail@gmail.com>
To: webmaster@domain.com
Content-Type: multipart/alternative; boundary=001636c597eabfd21504bd7da8fd

Now that I don't understand why it isn't working, my aliases are set up correctly - I see no error messages being produced in /var/log/mail.log or any other mail logs, which makes it harder for me to debug.

This is my postfix configuration (postconf -n):

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
inet_interfaces = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = $mydomain, $myhostname, localhost, localhost.localdomain, localhost
mydomain = domain.com
myhostname = localhost
mynetworks =
readme_directory = no
recipient_delimiter = +
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
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

Does anyone know how to solve this specific issue?


I found this in my mail log (/var/log/mail.log):

Apr 13 21:56:03 giTzor postfix/smtp[22260]: 12E761796006: to=<myemail@hotmail.co.uk>, orig_to=<developer@mydomain.com>, relay=mx2.hotmail.com[]:25, delay=1.5, delays=0/0.01/0.64/0.8, dsn=2.0.0, status=sent (250  <4f875bf3cd801@mydomain.com> Queued mail for delivery)
Apr 13 21:56:03 giTzor postfix/qmgr[1773]: 12E761796006: removed


This is the MX records at GoDaddy:

enter image description here


I've edited my A records and MX records:

enter image description here

enter image description here

I can send emails to my aliases with Google Mail, but I can't seem to receive emails from other sites such as Facebook, Yahoo, etc - even Hotmail accounts.

  • 1
    Is mydomain = domain.com the actual config, or did you mask the domain name?
    – Kyle Smith
    Apr 12 '12 at 17:08
  • I replaced my real domain with domain.com because I do not want to show it on SF.
    – MacMac
    Apr 12 '12 at 17:42
  • Sure, just making sure you did change it from the default. Otherwise that would be part of the issue :-)
    – Kyle Smith
    Apr 12 '12 at 18:19
  • Well? Could you help anything further?
    – MacMac
    Apr 13 '12 at 0:06
  • 1
    Can you double check the mx dns records for your domain, and that they point to your VPS? Apr 13 '12 at 19:01

Did you run newaliases ?

  • Yup. Even reloaded and restarted postfix - nothing changed.
    – MacMac
    Apr 12 '12 at 18:19
  • Well? Could you help anything further?
    – MacMac
    Apr 13 '12 at 0:06
  • No, because you are not providing the actual domains facing the problem. It seems that the problem is hidden in some detail which we cannot guess unless we have the actual data to help you.
    – adamo
    Apr 14 '12 at 8:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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