Solved

need to configure sendmail to send without hostname

Posted on 2010-08-25
5
701 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
  • 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 34

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 34

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 34

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

MS outlook is a premier email client that enable you to send and receive the e-mails with various file formats of attachments such as document files, media file, and many others formats. There is some scenario occurs when a receiver of an e-mail mes…
Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
In this video we show how to create a Distribution Group 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 Recipients >>…
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…

914 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now