Can't find confDOMAIN_NAME in

Posted on 2005-04-06
Last Modified: 2013-12-17
I working on setting up sendmail for the first time. I plan on using dovecut with sendmail. Reading through this document it says:

When sendmail dispatches your email, it places the servers hostname behind your username, which becomes the "from address" in the email (ie. Normally we only want to use the domainname and not the hostname, this setting allows all outgoing emails to be "", the preferred method.


define(`confDOMAIN_NAME', `')dnl

After searching the file though, I CAN NOT FIND IT! Is it something I need to just add myself?

Question by:T.J.
    LVL 34

    Accepted Solution

    What document is that, and how old is it? That's not really good advice in the *modern* sendmail environment. What VERSION of sendmail do you have?

    "relay_entire_domain" is generally a Bad Idea (tm), as it makes your server much easier for spammers to exploit. All they have to do is forge the envelope header to show an address and they can freely relay thru you, unless you take other steps to block that.

    In the documentation you quote, the process (of adding the server hostname behind the user name) is known as "canonification". Generally, mail relays should not be bothered with that - it should be the responsibility of the MUA (Mail User Agent - whatever tool you use to compose E-Mail) to provide the fully-qualified E-Mail address.

    Yes, you would need to add those statements to the file, and then re-build the But frankly, I question the wisdom of those settings in the modern environment. Which is why I asked about the version of sendmail you're running, and the age of that documentation you're quoting.

    Author Comment

    I am using sendmail-8.13.1-2 and I am using dovecot-0.99.11-1.FC3.4

    The document I read was:

    The reason it interested me was when I do get this thing to work and send mail I do not want it to send but Yes I understand and it makes sense to me, your statement on the email client doing the display of the correct email address.

    Maybe his point was for sending right from the linux box at the CLI?


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    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.

    The Microsoft Exchange server database may become damaged or corrupted due to many reasons, such as system failure. When this happens, it is usually urgent to restore the system to a stable and working state. There are different symptoms and causes …
    Email signatures have numerous marketing benefits. Here are 8 top reasons to turn your email signature into a marketing channel.
    In this video we show how to create an email address policy 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…
    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…

    760 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

    13 Experts available now in Live!

    Get 1:1 Help Now