LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-07-2006, 10:26 AM   #1
turbo_acura
Member
 
Registered: Sep 2004
Location: London, UK
Posts: 95

Rep: Reputation: 15
sendmail FQDN


How can I change the FQDN in sendmail? Currently, emails get sent as 'server1.tnt.global' (example of course). How do I have it change emails being sent from the server itself using the basic 'mail' command as 'root@server1.tntexpress.com' (example of course). Thanks.
 
Old 08-12-2006, 11:52 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668Reputation: 1668
Have a look at "masquerading". Haven't done it myself but was just reading some info on it yesterday for something I am planning.

See /etc/mail/sendmail.cf (on most systems). Found this text in one of my HP-UX systems:
Quote:
# Masquerade as (DM): #
# #
# If you wish to have mail appear to be from some host or location #
# other than the loacl host, set macro M to the name you wish to #
# masquerade as. This is also know as site hiding and was set using #
# the DY macro in previous releases of hp-ux. This might be used to #
# make mail appear as from a site rather than an individual host or #
# from a central mail hub. Note, however, that just making mail #
# appear to be from a different location does not mean that the #
# receipient will be able to reply to the email. If you use this feature #
# you will also need to be sure that you can reply to the email.
Of course what you're really supposed to do is change the macro in your sendmail.mc then recreate the sendmail.cf by running "make -C /etc/mail". Doing a vi of /etc/mail/sendmail.cf on one of my RedHat systems I did see info about the masquerade stuff. Have a look at your server to see same.
 
  


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
Dnat+fqdn roopunix Linux - Networking 5 07-28-2005 08:13 AM
ip as my fqdn? sortia Linux - Networking 6 04-27-2005 09:46 AM
Fqdn ziox Linux - Networking 0 10-06-2004 05:46 PM
FQDN - not darb Linux - General 1 10-04-2004 03:57 PM
Fetchmail, Sendmail, at home without FQDN KevinJ Linux - Software 4 12-19-2002 11:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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