Solved

need to configure sendmail to send without hostname

Posted on 2010-08-25
5
711 Views
Last Modified: 2013-12-18

I have a problem where I need to change how sendmail sends mail.  Currently, some external domains are rejecting mail because messages are sent from user@host.domain.com where it should be user@domain.com.

I found one site where someone posted changing Dj$w.hostname.com to Djhostname.com.  I did that and it didn't work.  When I sent mail to my account @acme.com it actually put the message in /var/spool/mail even though I don't have a local account.  I then sent mail to my hotmail account and it still showed user@host.domain.com (yes i did restart sendmail).

Anyone know how to remove the hostname so it gets sent as just @domain.com?
0
Comment
Question by:Seth Simmons
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 6

Expert Comment

by:Kailash Aghera
ID: 33528415
The following thread will help you to change from address on sendmail:

http://www.linuxquestions.org/questions/aix-43/changing-sendmail-source-address-338032/

- Kailash
0
 
LVL 35

Author Comment

by:Seth Simmons
ID: 33528459
It says "I added the following options to the *.mc file I used to create the sendmail.cf file."

Is that assuming it was created from source instead of rpm package?
0
 
LVL 6

Expert Comment

by:Kailash Aghera
ID: 33528657
0
 
LVL 35

Author Comment

by:Seth Simmons
ID: 33535948
My previous question was based on post 5.

I created a test.mc file and put those 2 lines in there.  When I use it with m4 it fails.

$ m4 /usr/share/sendmail-cf/m4/cf.m4 ./test.mc  > /tmp/sendmail.cf
NONE:0: m4: ERROR: end of file in string
0
 
LVL 35

Accepted Solution

by:
Seth Simmons earned 0 total points
ID: 33536849
Those instructions failed on the m4.

I did find another page that was slightly different and got it working.
At first it still showed the hostname.domain.com but then near the bottom it stated it has no affect for root.  I used a normal account and the mail was sent using just domain.com

http://forums.whirlpool.net.au/archive/1122017
0

Featured Post

Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Utilizing an array to gracefully append to a list of EmailAddresses
The new Gmail Phishing Scam going around is surprising even the savviest of users with its sophisticated techniques.
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…

624 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question