Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Dec 2003 00:45:48 -0800
From:      Nelson Headley <Nelson.keith.Headley@mci.com>
To:        questions@FreeBSD.org
Subject:   My SENDMAIL is not working
Message-ID:  <003401c3b979$da83fbd0$0aa626a6@wcomnet.com>

next in thread | raw e-mail | index | archive | help

I have a FreeBSD system running as a server for a demo network.  It is not
connected to any ISP network.
The system has domain voiprs.com and the hostname set to server.voiprs.com.
The IP addresses are localhost 127.0.0.1, server.voiprs.com 192.168.2.100.

I have the following applications running:
Apache Web Server running OK.
PHP version 4 running OK.
MySQL running OK.
SER (VOIP SIP Server) 0.8.10 running OK.
SENDMAIL is running
NAMED is running

When I try to send mail locally, I get a "localhost.voiprs.com timed out"
failure.
I'm typing
mail -v sipserver@voiprs.com (a username on the system, and a valid mailbox)
Subject: test
test
<control-d>
The system tries to relay the message once it can connect to
local.voiprs.com, but times out after 5 mintues.


If I try to connect via TELNET (voiprs.com port 25) from a PC running
Windows 98 on the network,
I can connect (HELO) voiprs.com, MAIL From: keith@voiprs.com, RCPT To:
root@voiprs.com,
DATA, type in a test message, and it sends it.
The server.voiprs.com reports a relay error and the message is discarded.


I believe I have the DNS set up OK.

NAMED.CONF

// $FreeBSD$
//
options {
        directory "/etc/namedb";

/*
        forwarders {
                127.0.0.1;
        };
*/

/*
host { any; } {
        topology {
                127.0.0.0/8;
        };
};
*/


zone "voiprs.com" {
      type master;
      file "voiprs.com";
};

zone "2.168.192.IN-ADDR.ARPA" {
        type master;
        file "voiprs.com.rev";
};

zone "." {
        type hint;
        file "named.root";
};

zone "0.0.127.IN-ADDR.ARPA" {
        type master;
        file "localhost.rev";
};

zone
"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.INT" {
        type master;
        file "localhost.rev";
};

/*
zone "example.com" {
        type slave;
        file "s/example.com.bak";
        masters {
                192.168.1.1;
        };
};

zone "0.168.192.in-addr.arpa" {
        type slave;
        file "s/0.168.192.in-addr.arpa.bak";
        masters {
                192.168.1.1;
        };
};
*/



ZONE FILE (voiprs.com)
$TTL 3600

voiprs.com. IN SOA server.voiprs.com. root.voiprs.org. (
                        5               ; Serial
                        10800           ; Refresh
                        3600            ; Retry
                        604800          ; Expire
                        86400 )         ; Minimum TTL

; DNS Servers
@       IN NS           server.voiprs.com.

; Machine Names
localhost       IN A    127.0.0.1
server          IN A    192.168.2.100
mail            IN A    192.168.2.100
@               IN A    192.168.2.100

; Aliases
www             IN CNAME        @

; MX Record
@               IN MX   10      mail.voiprs.com.


ZONE FILE for ARPA (voiprs.com.rev)
$TTL 3600

2.168.192.in-addr.arpa. IN SOA server.voiprs.com. root.voiprs.com, (
                        5               ; Serial
                        10800           ; Refresh
                        3600            ; Retry
                        604800          ; Expire
                        3600 )          ; Minimum

@       IN NS   server.voiprs.com.

100     IN PTR  server.voiprs.com



RESOLV.conf
search voiprs.com
nameserver  127.0.0.1
nameserver  192.168.2.100


I set up the SENDMAIL program per the instructions on the FreeBSD web site.
I did the following:
rc.conf has sendmail_enable="YES"
make cf (no changes to FreeBSD.mc)
make install
editted access to allow 192.168 relay and did make maps
make aliases (no changes)
made file /etc/mail/local-host-names and added voiprs.com and
mail.voiprs.com
did make restart



Nelson Headley
DMG/DMI/DOH Operations
INET 723-1931
(310) 894-1931




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003401c3b979$da83fbd0$0aa626a6>