postfix doesn't send email

Issues related to applications and software problems
Post Reply
hirobon
Posts: 3
Joined: 2013/02/01 03:39:32
Contact:

postfix doesn't send email

Post by hirobon » 2013/02/01 04:53:13

CentOS 6.3 / Apache 2.2.15 / Postfix 2.9

I'm a begginer of CentOS. And I'm not good at English.

Postfix doesn't send email. Still we can recieve email with Dovecot.
What should i do?

The spool of email remains in /var/spool/postfix/

The log file says,

Feb 1 13:44:19 ashiyanpo postfix/error[12147]: AFF4D3C0B: to=, relay=none, delay=11339, delays=11339/0.03/0/0.04, dsn=4.4.3, status=deferred (delivery temporarily suspended: Host or domain name not found. Name service error for name=smtp.vcsnow.ocn.ne.jp type=A: Host not found, try again)

/etc/postfix/main.cf

# The relayhost parameter specifies the default host to send mail to
# when no entry is matched in the optional transport(5) table. When
# no relayhost is given, mail is routed directly to the destination.
#
# On an intranet, specify the organizational domain name. If your
# internal DNS uses no MX records, specify the name of the intranet
# gateway host instead.
#
# In the case of SMTP, specify a domain, host, host:port, [host]:port,
# [address] or [address]:port; the form [host] turns off MX lookups.
#
# If you're connected via UUCP, see also the default_transport parameter.
#
#relayhost = $mydomain
#relayhost = [gateway.my.domain]
#relayhost = [mailserver.isp.tld]
#relayhost = uucphost
#relayhost = [an.ip.add.ress]
relayhost = [smtp.vcsnow.ocn.ne.jp]:587
#relayhost = [60.37.51.125]:587
#relayhost = [smtp.gmail.com]:587

moonpup
Posts: 118
Joined: 2008/11/20 20:38:18

postfix doesn't send email

Post by moonpup » 2013/02/01 20:11:44

Is your DNS resolution working correctly? The error says...

Host or domain name not found. Name service error for name=smtp.vcsnow.ocn.ne.jp type=A: Host not found, try again)

If I look it up, I get the below... do you?

Non-authoritative answer:
Name: smtp.vcsnow.ocn.ne.jp
Address: 60.37.51.125

hirobon
Posts: 3
Joined: 2013/02/01 03:39:32
Contact:

Re: postfix doesn't send email

Post by hirobon » 2013/02/01 21:07:03

>Is your DNS resolution working correctly?

I did not build DNS server on my PC server. Should i build it?
I will show you my resolv.conf.

# cat /etc/resolv.conf
# Generated by NetworkManager
search jp


# No nameservers found; try putting DNS servers into your
# ifcfg files in /etc/sysconfig/network-scripts like so:
#
# DNS1=xxx.xxx.xxx.xxx
# DNS2=xxx.xxx.xxx.xxx
# DOMAIN=lab.foo.com bar.foo.com

>If I look it up, I get the below... do you?
>Non-authoritative answer:
>Name: smtp.vcsnow.ocn.ne.jp
>Address: 60.37.51.125

Yes, I get the same result.

Thanks

hirobon
Posts: 3
Joined: 2013/02/01 03:39:32
Contact:

Re: postfix doesn't send email

Post by hirobon » 2013/02/02 06:11:58

I fixed this problem. I changed /etc/resolv.conf as below.

search com
nameserver 192.168.1.1

Thank you so much for your advise.

Regards.

Post Reply