You are not logged in.
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
You are probably chrooting the smtp process (see master.cf) but don't have /etc/resolv.conf in the chroot?
Offline
Yes, I'm chrooting. I think you could be right but how can I put the resolv.conf file in the chrooted environment?
Offline
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
Really thanks that worked perfectly.
Offline
You probably want /etc/localtime there too, for proper timestamps in logs.
Offline