Re: Invalid Global DNS name and sendmail

2007-04-24 Thread Andrew Fremantle

Thanks to everyone who replied, the solution is detailed below

Copy /usr/share/sendmail/cf/domain/generic.m4 -> /etc/mail/custom-domain.m4
softlink /etc/mail/custom-domain.m4 -> 
/usr/share/sendmail/cf/domain/custom-domain.m4

Edit /etc/mail/custom-domain.m4 and remove the EXPOSED_USERS('root') line
Edit .m4 and change the DOMAIN(generic) line to 
DOMAIN(custom-domain)


Somehow this broke Make, so I ended up having to manually nuke 
.cf and .submit.cf to force it to rebuild them.


Then a simple "make install" followed by "make stop; make start" and the 
mail began to flow.


That allowed my previous masquerading configuration to work correctly, 
and I'm now getting my periodic emails.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Invalid Global DNS name and sendmail

2007-04-23 Thread Chuck Swiger

On Apr 23, 2007, at 4:48 PM, Andrew Fremantle wrote:
Are you aware of any way of doing this stuff in the .mc file?  
Should the .cf ever be remade, these changes would be blown away


Right-- seems to be for the .mc file (from /usr/share/sendmail/cf/ 
README):



There are always users that need to be "exposed" -- that is, their
internal site name should be displayed instead of the masquerade name.
Root is an example (which has been "exposed" by default prior to  
8.10).

You can add users to this list using

EXPOSED_USER(`usernames')


...and to change hostname use:

define(`confDOMAIN_NAME', `hostname.example.com')

--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Invalid Global DNS name and sendmail

2007-04-23 Thread Chuck Swiger

On Apr 23, 2007, at 12:19 PM, Andrew Fremantle wrote:
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.


The reason emails from root are being exposed using the real hostname  
is because of this:


  # class E: names that should be exposed as from this host, even if  
we masquerade
  # class L: names that should be delivered locally, even if we have  
a relay

  # class M: domains that should be converted to $M
  # class N: domains that should not be converted to $M
  #CL root
  C{E}root

...in sendmail.cf.  Remove root from this C{E} line and you should be  
all set.


However, if you want to explicitly set your hostname in sendmail,  
change this:


  # my official domain name
  # ... define this only if sendmail cannot automatically determine  
your domain

  #Dj$w.Foo.CO

...to:

  Djmyhost.example.com

...or whatever you like.

--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Invalid Global DNS name and sendmail

2007-04-23 Thread Derek Ragona

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]"


Invalid Global DNS name and sendmail

2007-04-23 Thread Andrew Fremantle

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?


- Andrew

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"