Sendmail: send-only when local system has no domain name?
Hello :)
Is it possible to configure sendmail to meet these requirements? The intention is that any locally generated mail will appear identifiably in my day-to-day inbox. Requirements
Attempt so far After several attempts this is the closest.
Result
|
Why not just change your /etc/hosts file to read
Code:
192.168.1.47 CW8.<yourdomain> Code:
192.168.1.47 CW8.localdomain Essentially, the real problem you will hit with any of this is an inability to reply to any mails from this box, unless it is listed locally or globally as an MX record in DNS. |
Quote:
Yes, it's the standard solution and I'm increasingly wondering why I don't just go for it! Perhaps my reluctance is more emotional than logical, something along the lines of keeping things "clean"; it's a good heuristic in programming or database work; never use a variable or field for something different because it happens to be available; "say what you mean and mean what you say'. Following this line of half-thought-through reasoning, CW8 has nothing to do with <my domain>; it is only my mail service provider's (reasonable) requirement that all mails are from a valid domain that requires this fudge; it is cleaner to limit the fudge to where it is actually necessary, that is sendmail and sendmail is immensely configurable -- that's why its config file is so complex we need m4 to write it! Quote:
|
Yup, you're on the right track now, and for error reporting your setup is perfect. I personally never knew that 'localdomain' was a variable to store local domain name! Is this coming from a netgroups setup by any chance? I've never used netgroups, but it sounds like one of the convenient things it provides....
|
Quote:
|
All times are GMT -5. The time now is 06:10 PM. |