As it says in the subject line, I get that error message trying to send an email. Here's the complete line from the mail.log:
Code:
Jul 4 12:07:50 intranet-server1 postfix/smtp[24741]: 1DF3757088B: to=<admin@company.com>, orig_to=<root>, relay=mail.mailhoster.com[212.238.218.142]:25, delay=279745, delays=279745/0.17/0.08/0.03, dsn=4.1.8, status=deferred (host mail.mailhoster.com[212.238.218.142] said: 450 4.1.8 <root@intranet-server1.company>: Sender address rejected: Domain not found (in reply to RCPT TO command))
I've already been searching for a solution and I've found some threads on other boards that deal with the same problem but none of these solutions has worked out for me.
Let me give you some more configuration details:
Code:
# 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
inet_protocols = all
mailbox_command =
mailbox_size_limit = 0
mydestination = localhost, intranet-server1, intranet-server1.company, vmhost1, vmhost1.company
myhostname = company.com
mynetworks = 127.0.0.0/8 192.168.87.0/24 [::1]/128 [fe80::%eth0]/64 [fe80::%vmbr0]/64 [fe80::%veth102.0]/64 [fe80::%tap111i0d0]/64 [fe80::%tap118i0d0]/64 [fe80::%veth101.0]/64 [fe80::%tap110i0d0]/64
myorigin = $mydomain
recipient_delimiter = +
relay_domains = company.com, intranet-server1.company, vmhost1.company
relayhost = mail.mailhoster.com
smtp_generic_maps = hash:/etc/postfix/generic
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
# cat /etc/mailname
intranet-server1.company
I don't want to post the addresses used in our company on a public board so I changed the domain names and IP addresses. That's our setup:
company.com - the domain name of our company
mailhoster.com - the domain name of our mail hoster
mail.mailhoster.com - the address of our mail hoster's mail server
intranet-server1.company - the server in our intranet where I want to send email from (from cronjob scripts and such)
The funny thing is that we have another server in our intranet with the exact same setup as the one above (except for the relayhost line - that's something I tried while troubleshooting). This server can send mails without any problems. Let's call that (working) server intranet-server2.company. Here's its configuration:
Code:
# 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
inet_protocols = all
mailbox_command =
mailbox_size_limit = 0
mydestination = localhost, intranet-server2, intranet-server2.company, vmhost2, vmhost2.company
myhostname = company.com
mynetworks = 127.0.0.0/8 192.168.87.0/24 [::1]/128 [fe80::%eth0]/64 [fe80::%vmbr0]/64 [fe80::%veth102.0]/64 [fe80::%tap111i0d0]/64 [fe80::%tap118i0d0]/64 [fe80::%veth101.0]/64 [fe80::%tap110i0d0]/64
myorigin = /etc/mailname
recipient_delimiter = +
relay_domains = company.com, intranet-server2.company, vmhost2.company
relayhost =
smtp_generic_maps = hash:/etc/postfix/generic
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
# cat /etc/mailname
intranet-server2.company
Again - this configuration is working even though it's the exact same as the one on server1. How can this be? I've been searching high and low for a solution but seem to be unable to figure this out on my own. Any help will be greatly appreciated!
TIA
edderkop