I'm running Mac OS X 10.4.6 Server and Postfix is my MTA. I have my
webmail hosted at mydomain.com. I'd like to have Bugzilla send email
notifications from localhost. I turned on the Mail service in Server
Admin, in Settings enabled SMTP and set Domain Name to mydomain.com and
Host name to localhost.
The problem is that if Bugzilla sends a mail or I send a mail using the
command line mail utility, the mail never gets delivered. It sits in the
mail queue:
localhostroot# hostname
localhost.local
localhost root# mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
4744C9548D 315 Tue Apr 4 13:39:14 ac...@localhost.mydomain.com
(Name service error for name=hotmail.com type=MX: Malformed name server
reply)
ac...@hotmail.com
(Host or domain name not found. Name service error for name=mydomain.com
type=MX: Host not found, try again)
ac...@mydomain.com
I found the following corresponding messages in /etc/var/log/mail.log:
Apr 4 13:39:14 localhost postfix/pickup[55]: 4744C9548D: uid=501
from=<LadyJ> Apr 4 13:39:14 localhost postfix/cleanup[364]: 4744C9548D:
message-id=<20060404193914.4744C9548D@localhost>
Apr 4 13:39:14 localhost postfix/qmgr[56]: 4744C9548D:
from=<La...@localhost.mydomain.com>, size=315, nrcpt=2 (queue active)
Apr 4 13:39:19 localhost postfix/smtp[366]: warning: valid_hostname:
empty hostname
Apr 4 13:39:19 localhost postfix/smtp[366]: warning: malformed domain
name in resource data of MX record for hotmail.com:
Apr 4 13:39:19 localhost postfix/smtp[366]: 4744C9548D:
to=<ac...@hotmail.com>, relay=none, delay=5, status=deferred (Name service
error for name=hotmail.com type=MX: Malformed name server reply)
Apr 4 13:40:29 localhost postfix/smtp[367]: 4744C9548D:
to=<ac...@mydomain.com>, relay=none, delay=75, status=deferred (Host or
domain name not found. Name service error for name=mydomain.com type=MX:
Host not found, try again)
I got the same result when I sent the mail as root and normal user.
I googled up the error message(s), checked various lists, but did not find
a solution. The Apple Mail application works just fine for both sending
and receiving emails.
Anybody has an idea what is wrong and how to fix this problem?
Thanks,
Chris
Are you using the DNS server in your router? If so, use a better
DNS server.
Wietse
We have a Comcast cable modem and a Linksys router, which acts as the DNS
server if I get it correctly (same IP address).
> If so, use a better DNS server.
Any recommendation?
Thanks,
Chris
Ideally, you want a FQDN for a mail server.
Oskar
> > Are you using the DNS server in your router?
>
> We have a Comcast cable modem and a Linksys router, which acts as the
> DNS server if I get it correctly (same IP address).
Don't do that. It obviously returns crappy data.
> > If so, use a better DNS server.
>
> Any recommendation?
Use your ISP's DNS server or install BIND, djbdns, or whatever locally.
--
Magnus Bäck
mag...@dsek.lth.se
> We have a Comcast cable modem and a Linksys router, which acts as the DNS
> server if I get it correctly (same IP address).
Uhhh. Nothing but trouble with that crap until I installed OpenWRT on
the router - after that everything worked as it should.
You could also run your own resolver on the box:
http://cr.yp.to/djbdns.html
--
Ralf Hildebrandt (Ralf.Hil...@charite.de) spam...@charite.de
Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155
http://www.postfix-buch.com
Why is Linux so stable?
Because Penguins can't fly.
Still, my DNS configuration is flaky at best. I am not able to send email
outside of mydomain.com and the mail I send to different users at
mydomain.com often shows up as:
localhost root# mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
A0F9C9A2C0 598 Wed Apr 5 18:21:26 ac...@rppl.com
(Name service error for name=mydomain.com type=MX: Malformed name
server reply)
ac...@mydomain.com
after a while the mail gets delivered to the correct address. postqueue -f
expedites the delivery.
Any idea what is configured incorrectly? Below I describe what I did and
also attached the postconf -n output.
Chris
1. Enabled DNS (BIND 9.2.2) and added nameserver 127.0.0.1 to
/etc/resolv.conf. Nothing happened.
2. At http://www.dnsstuff.com I looked up my domain and added nameserver
69.9.175.186 and nameserver 69.9.175.186 to /etc/resolv.conf.
3. In /etc/postfix/main.cf I set myorigin = mydomain.com
After this I was able to send mail with the problems described above.
4. I played with mydomain and myhostname variables in main.cf. No change.
5. localhost root# postconf -n
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
enable_server_options = yes
html_directory = no
inet_interfaces = localhost
mail_owner = postfix
mailbox_size_limit = 0
mailbox_transport = cyrus
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
mydomain_fallback = localhost
myhostname = mylocahost.local
mynetworks_style = host
myorigin = mydomain.com
newaliases_path = /usr/bin/newaliases
queue_directory = /private/var/spool/postfix
readme_directory = /usr/share/doc/postfix
sample_directory = /usr/share/doc/postfix/examples
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd_pw_server_security_options = plain
smtpd_recipient_restrictions =
permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination,permit
smtpd_sasl_auth_enable = yes
smtpd_tls_key_file =
smtpd_use_pw_server = yes
unknown_local_recipient_reject_code = 550
> Still, my DNS configuration is flaky at best. I am not able to send
> email outside of mydomain.com and the mail I send to different users
> at mydomain.com often shows up as:
>
> localhost root# mailq
> -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
> A0F9C9A2C0 598 Wed Apr 5 18:21:26 ac...@rppl.com
> (Name service error for name=mydomain.com type=MX: Malformed name
> server reply)
> ac...@mydomain.com
What is the output of:
dig -t mx [yourdomain]
Matt
> What is the output of:
> dig -t mx [yourdomain]
I tried dig -t mx mydomain.com. Sometimes it worked, sometimes it did
not. When it worked, dig used the local DNS server, 127.0.0.1, otherwise
dig used the Linksys router that cannot do MX lookups as DNS server. So my
local DNS server (bind 9.2.2) works, just it needed some time to
initialize. I set 127.0.0.1 as my first DNS server. Since then both mail
and web browsing work.
Thank you for all who helped,
Chris