At 02:19 PM 4/23/2007, Andrew Fremantle wrote:
Hello,
I've got a machine on the local network, with a local DNS name (which is
not a valid name in the global DNS).
My problem is that I cannot kludge sendmail into behaving nicely and allow
the periodic(8) mailings to get through.
The machine is named psyche.local
domain1.com is a domain that we own, but this machine has nothing to do
with it. I want the emails delivered to [EMAIL PROTECTED] This is not an
email server in any way - All I care about it getting my periodic output.
Here are the settings I'm trying :
/etc/mail/psyche.local.mc
define(`SMART_HOST', `mail.telus.net')
define(`MAIL_HUB',`mail.telus.net')
define(`confDOMAIN_NAME',`domain1.com')
MASQUERADE_AS(domain1.com)
MASQUERADE_DOMAIN(psyche.local psyche)
FEATURE(`allmasquerade')
FEATURE(`masquerade_envelope')
/etc/mail/genericsdomain
psyche.local
/etc/mail/genericstable
root [EMAIL PROTECTED]
andrew [EMAIL PROTECTED]
/etc/mail/aliases
root : [EMAIL PROTECTED]
/etc/hosts
192.168.2.10 psyche psyche.local
With all the configurations I've tried, emails are rejected by my
smarthost with an error like "sender address [EMAIL PROTECTED] invalid;
domain does not exist".
What I'd like to do is find a way to alter sendmail's perception of my
hostname. Ideally, this would only affect sendmail and nothing else.
I can't possibly be the only person running such a configuration. How have
other people in the list worked past this?
You don't need to go to such efforts. The stock sendmail mc file should do
fine with just a couple modifications. The details are here:
http://www.sendmail.org/faq/section3.html#3.22
Check your name resolution order in /etc/nsswitch.conf that you check files
first.
modify /etc/hosts
192.168.2.10 psyche psyche.local.
so it is a fully qualified domain name.
You can forward all mail in /etc/mail/virtualusertable
with a line such as:
@psyche.local [EMAIL PROTECTED]
Be sure to recompile your virtualusertable.db
-Derek
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"