Solved

need to configure sendmail to send without hostname

Posted on 2010-08-25
5
707 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to Standardise Exchange Webmail email link? 6 77
Exchange 2007 Single Mailbox Data Restore Help Needed 5 65
mail server backup 10 34
Exchange 2010 Send Connector 6 37
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Import PST to Exchange using Power Shell new-mailboximportrequest command, you can simply import the PST file into Exchange mailbox or archived. To know How to import PST into Exchange  2013 read the complete article.
In this video we show how to create an Address List 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 Organization >> Ad…
In this video we show how to create an Accepted Domain 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 Mail Flow >> Ac…

821 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