LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-04-2011, 05:38 AM   #1
edderkop
LQ Newbie
 
Registered: Aug 2007
Location: Stuttgart, Germany
Distribution: Debian, Ubuntu, Darwin, FreeBSD
Posts: 18

Rep: Reputation: 0
Postfix 2.5.5 sending mail error: Domain not found (in reply to RCPT TO command)


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
 
Old 07-05-2011, 03:55 AM   #2
zordrak
Member
 
Registered: Feb 2008
Distribution: Slackware
Posts: 595

Rep: Reputation: 116Reputation: 116
As ridiculously simple as it sounds, have you confirmed the machine is able to resolve DNS? Domain not found would seem to suggest it simply couldn't resolve the domain.
 
Old 07-05-2011, 02:26 PM   #3
edderkop
LQ Newbie
 
Registered: Aug 2007
Location: Stuttgart, Germany
Distribution: Debian, Ubuntu, Darwin, FreeBSD
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by zordrak View Post
As ridiculously simple as it sounds, have you confirmed the machine is able to resolve DNS? Domain not found would seem to suggest it simply couldn't resolve the domain.
Yep, that's not the problem. Thanks for the tip though.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix not sending mail - Host MX records not found? kayasaman Linux - Server 8 01-20-2012 11:47 AM
[SOLVED] Postfix and fetchmail problem: sending mail as localhost instead the right domain allanwiese Linux - Server 1 03-10-2011 07:19 AM
550 Sender verify failed (in reply to RCPT TO command) Brandon.Wamboldt Linux - Server 3 05-31-2009 10:35 AM
Postfix - 554 Transaction failed (in reply to MAIL FROM command) FastFeet Linux - Networking 1 02-03-2004 10:55 PM
postfix : sending local mail without domain iainr Linux - Software 2 12-10-2003 03:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration