Earlier this afternoon, I had postfix working pretty well. After trying to make a few more changes, it stopped working again. Here's my /etc/postfix/main.cf
Code:
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
virtual_alias_maps = hash:/etc/postfix/virtual
mydomain = example.com
myorigin = $mydomain
mydestination = $mydomain
mynetworks = 127.0.0.0/8 192.168.0.0/24
relay_domains = $mydomain otherdomain.com
relay_recipient_maps = hash:/etc/postfix/relay_recipients
relayhost =
inet_interfaces = all
and /etc/hosts
Code:
#$HOSTNAME is firewall
128.61.105.132 mail.example.com example.com firewall
127.0.0.1 localhost
192.168.0.2 ftp
# The following lines are desirable for IPv6 capable hosts
#::1 ip6-localhost ip6-loopback
#fe00::0 ip6-localnet
#ff00::0 ip6-mcastprefix
#ff02::1 ip6-allnodes
#ff02::2 ip6-allrouters
#ff02::3 ip6-allhosts
/etc/postfix/relay_recipients has a list of addresses in the form
Code:
user1@domain.com OK
user2@domain.com OK
and /etc/aliases has
Code:
list: user1@domain.com, user2@domain.com
When it was working, I could mail
list@example.com and it would send the message to all the addresses set in /etc/aliases as long as they were listed in /etc/postfix/relay_recipient. Now, I can't send to anyone in relay_recipient, only to those whose domain is listed by relay_domains. It says relay access denied. Also, the alias rules have stopped working. If I type
it gives me
Code:
postmap: warning: /etc/aliases, line 2: record is in "key: value" format; is this an alias file?
for each entry. What went wrong?