Results 1 to 2 of 2
I am trying to setup Postfix on a Fedora Core 4 box and am having some problems. All local mail delivery tests seem to work fine but the box is ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-05-2006 #1Just Joined!
- Join Date
- Mar 2006
- Posts
- 4
Postfix/DNS Help
I am trying to setup Postfix on a Fedora Core 4 box and am having some problems. All local mail delivery tests seem to work fine but the box is not responding when I telnet on port 25 to mail.example.com (domain name changed)
However, if I telnet to server1.example.com (same machine) it works. I suspect that something is wrong with my BIND config. These telnet tests were run from the local machine.
[root@server1 ]# telnet mail.example.com 25
Trying 167.22.3.4...
telnet: connect to address 167.22.3.4: Connection refused
[root@server1 named]# telnet server1.example.com 25
Trying 167.22.3.4...
Connected to server1.example.com.
Escape character is '^]'.
220 server1.example.com ESMTP Postfix
^]
telnet> q
[root@server1 named]# netstat -l
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 server1.example.com:smtp *:* LISTEN
Here is what I have for the BIND config. Any assistance or pointers would be greatly appreciated.
$ORIGIN example.com.
$TTL 86400
@ IN SOA ns1.example.com. admin.example.com. (
2006030205 ;Serial
10800 ;Refresh after 3 hours
3600 ;Retry after 1 hour
604800 ;Expire after 1 week
86400 ) ;Minimum TTL of 1 day
;
; Name Servers
;
IN NS ns1.example.com.
IN NS ns2.example.com.
;
; Mail Servers
;
IN MX 10 mail.example.com.
IN A 167.22.3.4
;
; Addresses for canonical names
;
localhost IN A 127.0.0.1
server1 IN A 167.22.3.4
ns1 IN A 167.22.3.4
ns2 IN A 167.22.3.4
mail IN A 167.22.3.4
ftp IN CNAME server1
- 03-06-2006 #2
You can use a CNAME for 'mail', e.g.:
mail IN CNAME mail.example.com.
Your bind config does point to this config file for the right domains, doesn't it? Does the machine that you're trying to telnet from look to this DNS server? It can resolve the name 'mail.example.com' cant it? (try with nslookup or dig mail.example.com).Linux user #126863 - see http://linuxcounter.net/


Reply With Quote
