• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1199
  • Last Modified:

Can't find confDOMAIN_NAME in sendmail.mc

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. user@galaxy.example.com). Normally we only want to use the domainname and not the hostname, this setting allows all outgoing emails to be "user@example.com", the preferred method.
-------



CODE:

define(`confDOMAIN_NAME', `example.com')dnl
FEATURE(`relay_entire_domain')dnl



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


0
T.J.
Asked:
T.J.
1 Solution
 
PsiCopCommented:
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 @yourdomain.com 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 sendmail.mc file, and then re-build the sendmail.cf. 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.
0
 
T.J.Author Commented:
I am using sendmail-8.13.1-2 and I am using dovecot-0.99.11-1.FC3.4

The document I read was:
http://brennan.id.au/12-Sendmail_Server.html

The reason it interested me was when I do get this thing to work and send mail I do not want it to send user@galaxy.example.com but user@example.com. 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?

0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Tackle projects and never again get stuck behind a technical roadblock.
Join Now