Trouble setting up a SMTP Virtual Machine.  SMTP Denied from all but local host

Posted on 2007-09-28
Last Modified: 2013-12-18
I am trying to set up a Demo for something and I need a Linux SMTP server.  I have a server running 64 bit Windows 2003.  On that server I have installed VMWare Server and created a CentOS 5 Appliance.

I have POP3 working but Sendmail will not accept connections from IP's other then the localhost ip>

When I try to connect to sendmail from the localhost IP everthing works great:
[root@smtp mail]# telnet localhost 25
Connected to localhost.localdomain (
Escape character is '^]'.
220 localhost.localdomain ESMTP Sendmail 8.13.8/8.13.8; Tue, 25 Sep 2007 10:25:12 -0400
250 2.1.0 Sender ok
rcpt to:clerk
250 2.1.5 clerk... Recipient ok
354 Enter mail, end with "." on a line by itself
Subject:  Test

250 2.0.0 l8PEPCHY002718 Message accepted for delivery

However if I try from another computer via telnet or outlook express it fails:

Connecting To not open a connection to host: Connect fa

I have edited my /etc/mail/access file to include the IP addresses:'
Connect:localhost.localdomain           RELAY
Connect:localhost                       RELAY
Connect:                       RELAY
Connect:                RELAY #ip address of the remote computer

I tried it with out the Connect:  IOW I just put in

I also ran /etc/mail/make after editing the access file everyime and even restarted sendmail.

Made sure the firewall was off:
[root@smtp mail]# /etc/rc.d/init.d/iptables status
Firewall is stopped.

I just don't know what else to try!!!
Question by:brittonv
    LVL 14

    Accepted Solution

    Sendmail in RHEL5/CentOS5 is configured to only listen on port 25 on your loopback adapter, - to prevent accidentally opening up spam.  You can tell by typing "netstat -nlp" and noticing that only has a :25, if it was listening on everything it would be

    You just need to edit /etc/mail/ and get rid of the Addr in the following line
    O DaemonPortOptions=Port=smtp,Addr=, Name=MTA
    Change it to:
    O DaemonPortOptions=Port=smtp, Name=MTA
    LVL 8

    Author Comment

    It is really strage that they duplicate this limitation in the access file and  

    For the record I edited the file then ran make to write the new, and restarted Sendmail.  I am correct that you need to restart sendmail for it to see changes in, right?
    LVL 14

    Expert Comment

    Correct, you have to restart sendmail to get it to re-read the file.

    Featured Post

    Want to promote your upcoming event?

    Are you going to an event? Are you going to be exhibiting at a tradeshow? Talking at a conference? Using a promotional banner in your email signature ensures that your organization’s most important contacts stay in the know and can potentially spread the word about the event.

    Join & Write a Comment

    Easy CSR creation in Exchange 2007,2010 and 2013
    When we have a dead host and we lose all connections to the ESXi, and we need to find a way to move all VMs from that dead ESXi host.
    Teach the user how to install and configure the vCenter Orchestrator virtual appliance Open vSphere Web Client: Deploy vCenter Orchestrator virtual appliance OVA file: Verify vCenter Orchestrator virtual appliance boots successfully: Connect to the …
    Teach the user how to install log collectors and how to configure ESXi 5.5 for remote logging Open console session and mount vCenter Server installer: Install vSphere Core Dump Collector: Install vSphere Syslog Collector: Open vSphere Client: Config…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now