LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-05-2012, 07:41 AM   #1
vahab
Member
 
Registered: Jun 2011
Posts: 58

Rep: Reputation: Disabled
sendmail relay for local addresses


Hi,

I have some problems regarding sendmail relay configuration.

I have a redhat server named server1.mydomain.com
It this server, sendmail is installed with default configuration.
I only added the following line to my sendmail.mc :

define(`SMART_HOST', `smtp.mydomain.com')dnl


So when I use the following command :
echo "Test" | mail myemailaddress@yahoo.com

It works fine and sends email to my yahoo account.

The problem is when I am working as a normal user for example "john" and run the following command :

echo "Test" | mail john

It still tries to use smart relay for mail delivery , so an email to john@server1.mydomain.com will be stuck in our company mail server (smtp.mydomain.com)

What I need to know is to find a way to prevent my SendMail to send these email to SmartHost and just store them in local mailbox of user john.

Thanks in advance.

Last edited by vahab; 02-05-2012 at 07:44 AM.
 
Old 02-06-2012, 04:47 AM   #2
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
use this command to send mail and show me the output

Code:
#sendmail -v user1@server1.mydomain.com

and show me the message logs

Code:
#cat /var/log/messages
 
  


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 and relay delivery for domain isak Linux - Server 3 12-02-2009 02:23 PM
Configure Sendmail relay local domain. rroman81 Linux - Server 0 02-08-2009 02:12 AM
Sendmail: how to relay mails from specific addresses zWaR Linux - Server 1 07-17-2007 05:48 AM
sendmail local no relay kcpant Red Hat 1 11-27-2004 09:56 AM
sendmail configure relay for specific e-mail addresses LeovanBussel Linux - Newbie 1 07-29-2003 03:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:44 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
Open Source Consulting | Domain Registration