You are not logged in.

#1 2012-03-19 14:56:13

ineff
Member
Registered: 2011-11-30
Posts: 11

Postfix doesn't resolve domain names [solved]

Hi everyone.
I've tryed to configure postfix to use a relay server for sending mail but I fall into the following problem: postfix seems unable to connect to the relay server because it cannot resolve the domain name.
I'm sure it's a problem related to domain resolution because configuring postfix to use the ip address of the relay it sends mails to the said server, by the way I cannot figure way it cannot resolve domain names.
Does anyone have any possible suggestion about how to solve this problem?

Last edited by ineff (2012-03-20 14:15:24)

Offline

#2 2012-03-19 20:05:22

ghen
Member
From: Belgium
Registered: 2010-08-31
Posts: 121

Re: Postfix doesn't resolve domain names [solved]

You are probably chrooting the smtp process (see master.cf) but don't have /etc/resolv.conf in the chroot?

Offline

#3 2012-03-20 10:47:45

ineff
Member
Registered: 2011-11-30
Posts: 11

Re: Postfix doesn't resolve domain names [solved]

Yes, I'm chrooting. I think you could be right but how can I put the resolv.conf file in the chrooted environment?

Offline

#4 2012-03-20 11:13:00

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: Postfix doesn't resolve domain names [solved]

It'll depend where you're chrooting postfix. The default is /var/spool/postfix iirc (you can define this in your master.cf).

Only thing you would need to do in that case is copy your /etc/resolv.conf to /var/spool/etc/resolv.conf


Burninate!

Offline

#5 2012-03-20 14:15:10

ineff
Member
Registered: 2011-11-30
Posts: 11

Re: Postfix doesn't resolve domain names [solved]

Really thanks that worked perfectly.

Offline

#6 2012-03-21 18:22:50

ghen
Member
From: Belgium
Registered: 2010-08-31
Posts: 121

Re: Postfix doesn't resolve domain names [solved]

You probably want /etc/localtime there too, for proper timestamps in logs.

Offline

Board footer

Powered by FluxBB