LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



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

Rep: Reputation: 15
local mail relay problem in Sendmail


Hi,

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 –

127.0.0.1 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 sendmail.mc 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=172.128.64.10, Name=MTA')dnl

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

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

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

Rep: Reputation: 47
You should have DAEMON_OPTIONS line for 127 as well.
 
Old 09-15-2004, 06:53 AM   #3
RajaRC
Member
 
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?

regards,
 
Old 09-15-2004, 08:23 AM   #4
scowles
Member
 
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.
 
  


Reply


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


All times are GMT -5. The time now is 05:33 AM.

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