Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 09-13-2004, 06:58 AM   #1
Registered: Feb 2003
Distribution: Redhat
Posts: 58

Rep: Reputation: 15
local mail relay problem in Sendmail


I have a linux box. Sendmail is work fine in this box. The only problem I am facing is whenever I send mail using the mail command to the outside world or to root@localhost, I get this error – localhost denied from relaying

The command I used to send mail is -

Ls –l | mail –s “listing” root@localhost

The content of my /etc/mail/access –

Localhost RELAY
Localhost.localdomain RELAY
172.128.x RELAY

In my file if I change the ip address to 12.0.01 it works, but in this case my rest of the users are unable to send mail through this server to the outside world.

DAEMON_OPTIONS(`Port=smtp,Addr=, Name=MTA')dnl

Currently the ip address in the file is of my local network/lan.

Please let meknow what could be the problem and how to rectify this.

Old 09-13-2004, 07:41 AM   #2
Senior Member
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
You should have DAEMON_OPTIONS line for 127 as well.
Old 09-15-2004, 06:53 AM   #3
Registered: Feb 2003
Distribution: Redhat
Posts: 58

Original Poster
Rep: Reputation: 15
i had added the DAEMON_OPTIONS line for 127 also, it does solve my problem to some extent. But all the genuine mails as well as the deferred mails gets delivered to root's mailbox instead of actual receipent.

Please let me know any other option I should try?

Old 09-15-2004, 08:23 AM   #4
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
Sendmail is a complex MTA to configure.

Please post relevant logfile entires that support the problem you are describing. A copy of a DSN root is receiving would also help in locating the problem.


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 local no relay kcpant Red Hat 1 11-27-2004 10:56 AM
relay mail to sendmail relay server??? lemay_jeff Linux - Newbie 0 07-06-2004 05:54 PM
mail relay problem with sendmail ilovebytes Linux - Networking 5 11-16-2003 08:56 AM
Sendmail relay mail problem Swift&Smart Linux - Software 15 10-30-2003 10:14 PM
sendmail compile and config for local relay heathpitts Linux - Software 0 06-23-2003 03:01 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:11 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