I’m having a bit of trouble with getting email to run after I did an upgrade to Debian Jessie. On all my virtual servers my mail is bouncing with the error:
The error that the other server returned was:
550 5.1.1 example@example.nl: Recipient address rejected: User unknown in virtual alias table
with my main.cf looking like this:
[code]# See /usr/share/postfix/main.cf.dist for a commented, more complete version
Debian specific: Specifying a file name will cause the first
line of that file to be used as the name. The Debian default
is /etc/mailname.
#myorigin = /etc/mailname
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
appending .domain is the MUA’s job.
append_dot_mydomain = no
Uncomment the next line to generate “delayed mail” warnings
550 5.1.1 Recipient address rejected: User unknown in virtual alias table;
This is the bounce back message that is received by the sender from our server if the destination email address does not exist.
The same error message is received if the recipient has a mail loop. That is, if the recipient has set a forward to another email address and that email address is forwarded back to the original one. In this case, you need to remove the loop in order to receive the emails.
If there is a forward set for an account, and an email is sent to that account, if for some reason the forwarded email is not sent, the original sender may get the above error.
For example, abc@domain.com if forwarded to abc@dom.com, if a third user xyz@dom2.com emails to abc@domain.com, he may get the above error if the forwarded email is bounced.
Try to add: mydestination = $myhostname, localhost.$mydomain, localhost, your.hostname.com
Can you delete one email and create (same) new one, or just make new email (later you can delete this email account). Once done see if you can receive the emails.
I’m still getting the same bounce message unfortunately:
Host or domain name not found. Name service error for name=nl type=AAAA: Host found but no data record of requested type
When I check the DNS records, I do have ipv4 and ipv6 set for that domain by the way
Type=AAAA means there is a problem with IPv6. If you have valid IPv4 try to insert new line “inet_protocols = ipv4”. Oh and dont forget to restart postfix after every change.