Re: sendmail hangs with errors after setting hostname

2006-02-22 Thread Derek Ragona
I would suggest setting the hostname as a different address from 
localhost.  There are multiple instances of sendmail that run, as your 
rc.conf file has them enabled.  You can use a private non-routable IP for 
the hostname.


Hope this helps.

-Derek

At 04:10 PM 2/22/2006, Rob wrote:

Hi,

OK, I think that I now have my hostname set properly in rc.conf and /etc/hosts

In rc.conf is the line hostname="xenon"

In /etc/hosts there is one line:  127.0.0.1  localhost  xenon

Upon bootup I get the following error:

"xenon sm-mta [1556]: My unqualified host name (localhost) unknown;
sleeping for retry"

Then after it sleeps a bit I get more errors.  Finally, I just hig 
 to kill it

and the boot process continues.

I looked in the handbook in the Sendmail section and it referred to a file 
in /etc/mail
called "local-host-names" and I put that file in with the line: "xenon" in 
there, but with

the same results, so I am really not certain exactly what to do now.

I put the Sendmail config part of rc.conf below.  I just want localhost 
based Sendmail.


Thanks,

Rob.


part of rc.conf:

##
###  Mail Transfer Agent (MTA) options  ##
##

mta_start_script="/etc/rc.sendmail"
# Script to start your chosen MTA, called by /etc/rc.
# Settings for /etc/rc.sendmail and /etc/rc.d/sendmail:
sendmail_enable="NO"# Run the sendmail inbound daemon (YES/NO).
sendmail_pidfile="/var/run/sendmail.pid"# sendmail pid file
sendmail_procname="/usr/sbin/sendmail"  # sendmail process name
sendmail_flags="-L sm-mta -bd -q30m" # Flags to sendmail (as a server)
sendmail_submit_enable="YES"# Start a localhost-only MTA for mail 
submission

sendmail_submit_flags="-L sm-mta -bd -q30m -ODaemonPortOptions=Addr=localhost"
# Flags for localhost-only MTA
sendmail_outbound_enable="YES"  # Dequeue stuck mail (YES/NO).
sendmail_outbound_flags="-L sm-queue -q30m" # Flags to sendmail (outbound 
only)

sendmail_msp_queue_enable="YES" # Dequeue stuck clientmqueue mail (YES/NO).
sendmail_msp_queue_flags="-L sm-msp-queue -Ac -q30m"
# Flags for sendmail_msp_queue daemon.


--

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

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


sendmail hangs with errors after setting hostname

2006-02-22 Thread Rob
Hi,

OK, I think that I now have my hostname set properly in rc.conf and /etc/hosts

In rc.conf is the line hostname="xenon"

In /etc/hosts there is one line:  127.0.0.1  localhost  xenon

Upon bootup I get the following error:

"xenon sm-mta [1556]: My unqualified host name (localhost) unknown;
sleeping for retry"

Then after it sleeps a bit I get more errors.  Finally, I just hig  to 
kill it
and the boot process continues.

I looked in the handbook in the Sendmail section and it referred to a file in 
/etc/mail
called "local-host-names" and I put that file in with the line: "xenon" in 
there, but with 
the same results, so I am really not certain exactly what to do now.

I put the Sendmail config part of rc.conf below.  I just want localhost based 
Sendmail.

Thanks,

Rob.


part of rc.conf:

##
###  Mail Transfer Agent (MTA) options  ##
##

mta_start_script="/etc/rc.sendmail"
# Script to start your chosen MTA, called by /etc/rc.
# Settings for /etc/rc.sendmail and /etc/rc.d/sendmail:
sendmail_enable="NO"# Run the sendmail inbound daemon (YES/NO).
sendmail_pidfile="/var/run/sendmail.pid"# sendmail pid file
sendmail_procname="/usr/sbin/sendmail"  # sendmail process name
sendmail_flags="-L sm-mta -bd -q30m" # Flags to sendmail (as a server)
sendmail_submit_enable="YES"# Start a localhost-only MTA for mail submission
sendmail_submit_flags="-L sm-mta -bd -q30m -ODaemonPortOptions=Addr=localhost"
# Flags for localhost-only MTA
sendmail_outbound_enable="YES"  # Dequeue stuck mail (YES/NO).
sendmail_outbound_flags="-L sm-queue -q30m" # Flags to sendmail (outbound only)
sendmail_msp_queue_enable="YES" # Dequeue stuck clientmqueue mail (YES/NO).
sendmail_msp_queue_flags="-L sm-msp-queue -Ac -q30m"
# Flags for sendmail_msp_queue daemon.


-- 

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


Re: Setting hostname - fake and real

2005-03-10 Thread Ben Paley
On Thursday 10 March 2005 10:03, Chris Hodgins wrote:

> You can simply use 127.0.0.1 in there.
>
> 127.0.0.1 localhost my-xp-machine.org

I'll give that a go next!

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


Re: Setting hostname - fake and real

2005-03-10 Thread Chris Hodgins
Ben Paley wrote:
-Original Message-

From: Mark <[EMAIL PROTECTED]>
Subject: RE: Setting hostname - fake and real
To: "'FreeBSD-Questions Questions'" 
 

On Wednesday 09 March 2005 08:20, Luke Kearney wrote:

Hello Ben
Sounds like you might need some DNS magic here. I am not 
entirely sure I
understand why you would want to use fake dns names.
I don't especially want to use a fake name, I just don't have 
a real one to use... the machine I'm talking about is my home
machine with dynamic IP
Why not simply add an entry to /etc/hosts? Like I do to get a
pretty name for logins from my XP machine:
192.168.0.6my-xp-machine.org
- Mark

Ok, what IP do I put? My dynamic IP in the real world (which is pretty static 
in practice), or something else? The address you've used in your example 
looks like my vmnet addresses.

Cheers,
Ben
You can simply use 127.0.0.1 in there.
127.0.0.1 localhost my-xp-machine.org
Chris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Setting hostname - fake and real

2005-03-10 Thread Ben Paley
> -Original Message-

>From: Mark <[EMAIL PROTECTED]>
>Subject: RE: Setting hostname - fake and real
>To: "'FreeBSD-Questions Questions'" 
 
>> On Wednesday 09 March 2005 08:20, Luke Kearney wrote:
>> 
>> > Hello Ben
>> > Sounds like you might need some DNS magic here. I am not 
>> entirely sure I
>> > understand why you would want to use fake dns names.
>> 
>> I don't especially want to use a fake name, I just don't have 
>> a real one to use... the machine I'm talking about is my home
>> machine with dynamic IP
>
>Why not simply add an entry to /etc/hosts? Like I do to get a
>pretty name for logins from my XP machine:
>
>192.168.0.6my-xp-machine.org
>
>- Mark

Ok, what IP do I put? My dynamic IP in the real world (which is pretty static 
in practice), or something else? The address you've used in your example 
looks like my vmnet addresses.

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


RE: Setting hostname - fake and real

2005-03-09 Thread Mark

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Ben Paley
> Sent: woensdag 9 maart 2005 9:41
> To: Luke Kearney
> Cc: FreeBSD Questions
> Subject: Re: Setting hostname - fake and real
> 
> 
> On Wednesday 09 March 2005 08:20, Luke Kearney wrote:
> 
> > Hello Ben
> > Sounds like you might need some DNS magic here. I am not 
> entirely sure I
> > understand why you would want to use fake dns names.
> 
> I don't especially want to use a fake name, I just don't have 
> a real one to use... the machine I'm talking about is my home
> machine with dynamic IP

Why not simply add an entry to /etc/hosts? Like I do to get a
pretty name for logins from my XP machine:

192.168.0.6my-xp-machine.org

- Mark

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


Re: Setting hostname - fake and real

2005-03-09 Thread Ben Paley
On Wednesday 09 March 2005 08:20, Luke Kearney wrote:

> Hello Ben
> Sounds like you might need some DNS magic here. I am not entirely sure I
> understand why you would want to use fake dns names.

I don't especially want to use a fake name, I just don't have a real one to 
use... the machine I'm talking about is my home machine with dynamic IP - I 
know there are ways round this, but it hardly seems worth registering a 
domain for this machine when it's off more than half the time anyway!

> It won't really 
> work properly and if testing scripts that send mail is the goal then a
> FQDN is probably a good idea. Do you control the DNS for your 'real'
> domain?

It's hosted commercially. In practice I might be able to get the tech people 
there to do me a favour, but then again I've got this dynamic IP

> If so add your host potato and if possible get a reverse DNS 
> entry to match.
>
> For apache and X edit /etc/hosts and put the real information there and
> your problems should go away.

Thanks a lot, I'll give this a go. /etc/hosts, of course, what a fool 
I am! If it doesn't work then maybe I'll find myself going down the 
route of registering another domain!

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


Re: Setting hostname - fake and real

2005-03-09 Thread Luke Kearney

On Wed, 9 Mar 2005 08:09:19 +
Ben Paley <[EMAIL PROTECTED]> spake thus:

> Hello,
> 
> Is there an easy way to set a fake hostname in rc.conf which will let 
> sendmail 
> send mail to external domains?
> 
> For ages I've had the line in rc.conf
> 
> hostname="potato.fake_domain.net"
> 
> (not exactly, but you see what I mean...) and I've had no problems with it at 
> all. Recently I've tried to set up sendmail, only so I can test php or perl 
> scripts that send emails!
> 
> Sending to localhost works fine, but mail to an external address is returned 
> by the remote domain because it couldn't verify my domain. Very sensible, I 
> could be a spammer. So I edited rc.conf to say
> 
> hostname="potato.real_domain.net"
> 
> that is, I used the name of a real domain which is registered to me. The 
> domain is hosted on the net, but AFAIK they don't have a machine called 
> "potato". Now apache won't start and I get weird errors in other things, like 
> shutting down X even!
> 
> Can anyone help?
> 
> Thanks very much,
> Ben


Hello Ben
Sounds like you might need some DNS magic here. I am not entirely sure I
understand why you would want to use fake dns names. It won't really
work properly and if testing scripts that send mail is the goal then a
FQDN is probably a good idea. Do you control the DNS for your 'real'
domain? If so add your host potato and if possible get a reverse DNS
entry to match.

For apache and X edit /etc/hosts and put the real information there and
your problems should go away.

HTH

LukeK
-- 
 <>

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


Setting hostname - fake and real

2005-03-09 Thread Ben Paley
Hello,

Is there an easy way to set a fake hostname in rc.conf which will let sendmail 
send mail to external domains?

For ages I've had the line in rc.conf

hostname="potato.fake_domain.net"

(not exactly, but you see what I mean...) and I've had no problems with it at 
all. Recently I've tried to set up sendmail, only so I can test php or perl 
scripts that send emails!

Sending to localhost works fine, but mail to an external address is returned 
by the remote domain because it couldn't verify my domain. Very sensible, I 
could be a spammer. So I edited rc.conf to say

hostname="potato.real_domain.net"

that is, I used the name of a real domain which is registered to me. The 
domain is hosted on the net, but AFAIK they don't have a machine called 
"potato". Now apache won't start and I get weird errors in other things, like 
shutting down X even!

Can anyone help?

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


Re: setting hostname...

2003-06-14 Thread Jez Hancock
On Sat, Jun 14, 2003 at 12:34:50PM +0200, Fredrik Carl?n wrote:
> When X starts, though, it complains that -  and I quote -  
> "Can't get own host name. Your system is severely misconfigured". 
Where exactly does it complain out of interest?

>  
> Now where does this little gem stem from? I've even used profanity, 
> but nothing seems to work... 
:)

> # hostname 
> al-khwarizmi.intra.arrhythmetic.net 
>  
> # echo $HOSTNAME 
> al-khwarizmi.intra.arrhythmetic.net 
>  
> # uname -a 
> FreeBSD al-khwarizmi.intra.arrhythmetic.net 5.0-RELEASE FreeBSD 
> 5.0-RELEASE #0: Thu Jan 16 22:16:53 GMT 2003 
> [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386 
Does sound like an issue with X after the above.

One minor thing and probably irrelevant if you've rebooted, but have you
tried flushing your DNS cache (if you're running one)?
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: setting hostname...

2003-06-14 Thread Volker Kindermann
> Now to my question (and the reason I feel stupid): I named my computer
> "al-djabr" first, but decided to change to "al-khwarizmi", in honour 
> of the late, great arabic mathematician. My domain is 
> "intra.arrhythmetic.net", so the hostname would be 
> "al-khwarizmi.intra.arrhythmetic.net"...I put this in /etc/rc.conf, of
> course, and sure enough, the system seems to think it's named 
> according to my rc.conf-wishes... 
>  
> When X starts, though, it complains that -  and I quote -  
> "Can't get own host name. Your system is severely misconfigured". 

is the old name still in /etc/hosts?

 -volker

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


setting hostname...

2003-06-14 Thread Fredrik Carlén
I am about as stupid as they come...I haven't used FreeBSD for a  
couple of years, but I'm glad to say that I'm back, and that  
FreeBSD5.0 is an improvement (I used 3.2...)  
  
Now to my question (and the reason I feel stupid): I named my computer 
"al-djabr" first, but decided to change to "al-khwarizmi", in honour 
of the late, great arabic mathematician. My domain is 
"intra.arrhythmetic.net", so the hostname would be 
"al-khwarizmi.intra.arrhythmetic.net"...I put this in /etc/rc.conf, of 
course, and sure enough, the system seems to think it's named 
according to my rc.conf-wishes... 
 
When X starts, though, it complains that -  and I quote -  
"Can't get own host name. Your system is severely misconfigured". 
 
Now where does this little gem stem from? I've even used profanity, 
but nothing seems to work... 
 
Sorry to have to bother you all with these trivialities.  
 
== 
additional redundant(?) info: 
 
# hostname 
al-khwarizmi.intra.arrhythmetic.net 
 
# echo $HOSTNAME 
al-khwarizmi.intra.arrhythmetic.net 
 
# uname -a 
FreeBSD al-khwarizmi.intra.arrhythmetic.net 5.0-RELEASE FreeBSD 
5.0-RELEASE #0: Thu Jan 16 22:16:53 GMT 2003 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386 
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"