Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


Closed Thread
  Search this Thread
Old 12-20-2004, 01:37 PM   #1
LQ Newbie
Registered: Dec 2004
Posts: 17

Rep: Reputation: 0
Sending mail without sendmail

Hi guys:
I am running RedHat 2.1. I don't want to run sendmail on my system since my system won't be a mail server/relay. However, I would like to send mail from the server. I understand this can be done without running sendmail. Can you guys give any tips on how this can be done.

This is what I tried:
I disabled running sendmail at boot time/.
Stopped sendmail server
Crontab entry for sendmail with -q

After this i try sending mail by
# mail -v

I get the following error Connecting to [] via relay... Deferred: Connection refused by []

You tips would be greatly appreciated.

Old 12-21-2004, 02:26 AM   #2
Senior Member
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 65
With the default sendmail installation on Redhat Enterprise 2.1, sendmail is configured to only listen on localhost. So while sendmail can't receive incoming mail, it can send outbound mail (or send mail to users on the system itself) just fine. To do so, restart sendmail (use the netstat -pant) to make sure that sendmail is only listening on localhost/ and then just use the mail command. Note that some networks require hostname verification and will reject mail from NATed LAN hosts.
Old 12-21-2004, 02:32 AM   #3
Senior Member
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 65
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

Please direct replies to:

Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail - not sending mail movitto Linux - Software 9 09-19-2014 04:23 AM
sendmail not sending mail dtra Linux - Software 1 06-09-2005 08:47 PM
Sending mail without running Sendmail geomonap Linux - Software 5 12-22-2004 07:34 AM
Sending mail without running Sendmail geomonap Linux - General 1 12-20-2004 01:43 PM
sendmail not sending mail clinger Linux - Software 8 07-30-2004 03:29 AM

All times are GMT -5. The time now is 01:39 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration