Hello folks, I've been pulling my hair out trying to figure this one out. I'm fairly new to postfix and I thought I had it all set up correctly, but I can't get it working completely.
Basically, if I email
user@domain.com (substituted with a real domain name that I have set up) I get the following message:
Quote:
This is the Postfix program at host mithras.
I'm sorry to have to inform you that your message could not be be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to <postmaster>
If you do so, please include this problem report. You can delete your own text from the attached returned message.
The Postfix program
<user@domain.com>: User unknown in virtual alias table
So I know the postfix program is up and running, but for some reason it isn't accepting my message.
Here's my main.cf file:
Quote:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
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
#delay_warning_time = 4h
mailbox_command = procmail -a "$EXTENSION"
myhostname = mithras
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = mithras, localhost, localhost.localdomain
virtual_alias_domains = domain.com, domain2.com
relayhost =
#mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
virtual_alias_maps = hash:/etc/postfix/virtual_mailbox.txt
mynetworks_style = host
#relay_domains = $mydestination
unknown_local_recipient_reject_code = 450
In the /etc/postfix/virtual_mailbox.txt file, I have entries such as the following, and the permissions of the file are owned by root and are set with -rwxr--r--. The contents of the file is:
Quote:
# domain.com
@domain.com unixuser
# domain2.com
@domain2.com unixuser
Elsewhere I saw that the output of postfix -n is more useful, so here is the output from that command:
Quote:
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 = mithras, localhost, localhost.localdomain
myhostname = mithras
mynetworks_style = host
myorigin = /etc/mailname
recipient_delimiter = +
relayhost =
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
unknown_local_recipient_reject_code = 450
virtual_alias_domains = domain.com, domain2.com
virtual_alias_maps = hash:/etc/postfix/virtual_mailbox.txt
I am running Debian Sarge and the latest version of postfix.
If anyone can help me get my virtual mailboxes working I would greatly appreciate it.
Thanks,
Shawn