LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-14-2008, 12:50 PM   #1
Fabian10
LQ Newbie
 
Registered: Nov 2007
Location: Calgary, AB, Canada
Posts: 7

Rep: Reputation: 0
Smile Basic sendmail question


Hi all,

Where do I define my 'reply to' address in sendmail configuration?

Whenever I send mail out (using 'mail' or 'sendmail') from my Linux box, it will be received as sent by 'root@xxx.local'
Where can I define something different, like my real email address?

Thanks!

Fabian
 
Old 08-14-2008, 01:15 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
It's usually defined by the official domain name configuration, default configurations will usually use the FQHN.
 
Old 08-14-2008, 01:36 PM   #3
Fabian10
LQ Newbie
 
Registered: Nov 2007
Location: Calgary, AB, Canada
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks trickykid

Either I didn't ask properly, or I was misunderstood...

I'd like to know where do I define my 'real' or 'valid' email address to show as 'from' or 'reply to' whenever I send a mail out from my Linux box using mail or sendmail command line.

There should be a configuration file for sendmail where you can define things like this. I need to know what this file is so I can edit it and change the default 'root' mail address to whatever I need it to be.

Thanks!

Fabian
 
Old 08-14-2008, 01:49 PM   #4
cmnorton
Member
 
Registered: Feb 2005
Distribution: Ubuntu, CentOS
Posts: 585

Rep: Reputation: 35
sendmail.mc

Edit 1:
-------
I do not know which field to touch offhand. These are instructions for compiling and restarting sendmail. sendmail.mc has some documentation in it.
End Edit 1:
------------

Usually, sendmail.mc is found in /etc/mail.

As root in /etc/mail

# cp sendmail.mc sendmail.mc.working
# cp sendmail.cf sendmail.cf.working

<edit sendmail.mc>

# m4 sendmail.mc > sendmail.cf

# /etc/init.d/sendmail restart (Debian)
# /etc/rc.d/init.d/sendmail restart (Red Hat)

You'll need some good online documentation for this or "the bat" book, that huge book of O'Reilly's.

Edit 2:
-------

I use

MASQUERADE_AS(`node1.node2.') dnl

to provide our full email domain name when sendmail is sent off our Linux servers. However, this does not cover your original question. Sorry.

Last edited by cmnorton; 08-14-2008 at 01:56 PM. Reason: Add info; add some more info
 
  


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
Basic setup of Sendmail matsgl Linux - Software 1 02-06-2005 09:15 PM
Need help with basic sendmail configuration aznluvsmc Linux - Networking 1 12-03-2004 11:55 AM
Basic Question insyte Linux - Wireless Networking 4 09-16-2004 12:57 PM
basic sendmail question weezle Linux - Software 13 10-20-2003 02:30 PM
Very basic question rajanr Linux - Newbie 2 07-23-2003 04:13 AM


All times are GMT -5. The time now is 02:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration