PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Logiciels d'hébergement > comp.mail.sendmail > Setting Time on Mail Servers
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.mail.sendmail Configuring and using the BSD sendmail agent.

Setting Time on Mail Servers

Réponse
 
LinkBack Outils de la discussion
Vieux 27/10/2006, 12h09   #1
flaifel
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Setting Time on Mail Servers

Hello All,

Whats the best scenario to set the time on mail servers so emails have
the right time when being sent??

i have in my /etc/TIMEZONE file "GMT-2 "
when i issue the command date i get the following

#date
Fri Oct 27 13:06:54 GMT 2006

The time is correct but what is this GMT in the date???

regards,
Flaifel

  Réponse avec citation
Vieux 27/10/2006, 19h22   #2
J.O. Aho
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Setting Time on Mail Servers

flaifel wrote:
> Hello All,
>
> Whats the best scenario to set the time on mail servers so emails have
> the right time when being sent??
>
> i have in my /etc/TIMEZONE file "GMT-2 "
> when i issue the command date i get the following
>
> #date
> Fri Oct 27 13:06:54 GMT 2006
>
> The time is correct but what is this GMT in the date???



GMT = Greenwich Mean Time
This is the timezone where you find UK.

The timezone for GMT-2/UTC-2 is AT, a zone where DST isn't used.


//Aho
  Réponse avec citation
Vieux 27/10/2006, 21h53   #3
Per Hedeland
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Setting Time on Mail Servers

In article <1161947379.021879.26710@i42g2000cwa.googlegroups. com>
"flaifel" <flaifel@gmail.com> writes:
>
>Whats the best scenario to set the time on mail servers so emails have
>the right time when being sent??


This is rather off-topic here - setting the time zone correctly is a
question about your OS, not specifically related to mail, even less
specifically related to the program called "sendmail" - but anyway...

>i have in my /etc/TIMEZONE file "GMT-2 "
>when i issue the command date i get the following
>
>#date
>Fri Oct 27 13:06:54 GMT 2006
>
>The time is correct but what is this GMT in the date???


It's what you asked for.:-) A TZ/timezone setting of
<string>(+|-)<number> means "Local time has an offset of <number> hours
from GMT/UTC (often in the opposite direction of what you expect:-),
doesn't use DST, and uses <string> as the name for the time zone". The
"GMT(+|-)<number>" settings are probably not correct anywhere in the
world, and are generally a misunderstanding introduced by the "pseudo-
settings" available in the Olson time zone package for specifying fixed
offsets from GMT/UTC (which per se may be valid in places that don't use
DST - but their time zone name isn't likely to be "GMT").

At a guess, you'll have better luck with a setting of "Asia/Amman" - if
the guess is wrong, use whatever geographical specification that is
available and appropriate. Your OS should have some way to let you
choose between them, or you can try to find a directory tree under
something like /usr/share/zoneinfo where <subdirectory>/<file>
represents valid settings ('locate Asia/Amman' might ). This way
you'll automatically get a "reasonable" time zone name, and more
importantly the right DST parameters for your location, possibly even
for future years...

--Per Hedeland
per@hedeland.org
  Réponse avec citation
Vieux 29/10/2006, 01h47   #4
Bill Cole
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Setting Time on Mail Servers

In article <1161947379.021879.26710@i42g2000cwa.googlegroups. com>,
"flaifel" <flaifel@gmail.com> wrote:

> Hello All,
>
> Whats the best scenario to set the time on mail servers so emails have
> the right time when being sent??


That depends on the operating system and mail client software where the
message is created. Different systems use different mechanisms to set
the time zone. Generally speaking, it is the mail user agent (e.g. pine,
mailx, Outlook, Eudora, etc.) that creates the Date header. A mail
server program, such as sendmail, won't change an existing Date header
on mail unless specially configured to do so.

> i have in my /etc/TIMEZONE file "GMT-2 "
> when i issue the command date i get the following
>
> #date
> Fri Oct 27 13:06:54 GMT 2006
>
> The time is correct but what is this GMT in the date???


For some reason, the 'date' program you are using thinks you are in GMT.
Some implementations of 'date' will look for $TZ in your environment,
and if it is defined but null will use GMT.

Without knowing exactly what OS you are running and which implementation
of 'date' you're using, explaining exactly what is going on would be a
guessing game.

--
Now where did I hide that website...
  Réponse avec citation
Vieux 29/10/2006, 08h00   #5
flaifel
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Setting Time on Mail Servers

Hello All,

This is exactly what i was looking for Bill.
Am using Solaris 9 as an OS, date is the normal date command on solaris
"/usr/bin/date".

What do you think??

regards,
Flaifel

Bill Cole wrote:
> In article <1161947379.021879.26710@i42g2000cwa.googlegroups. com>,
> "flaifel" <flaifel@gmail.com> wrote:
>
> > Hello All,
> >
> > Whats the best scenario to set the time on mail servers so emails have
> > the right time when being sent??

>
> That depends on the operating system and mail client software where the
> message is created. Different systems use different mechanisms to set
> the time zone. Generally speaking, it is the mail user agent (e.g. pine,
> mailx, Outlook, Eudora, etc.) that creates the Date header. A mail
> server program, such as sendmail, won't change an existing Date header
> on mail unless specially configured to do so.
>
> > i have in my /etc/TIMEZONE file "GMT-2 "
> > when i issue the command date i get the following
> >
> > #date
> > Fri Oct 27 13:06:54 GMT 2006
> >
> > The time is correct but what is this GMT in the date???

>
> For some reason, the 'date' program you are using thinks you are in GMT.
> Some implementations of 'date' will look for $TZ in your environment,
> and if it is defined but null will use GMT.
>
> Without knowing exactly what OS you are running and which implementation
> of 'date' you're using, explaining exactly what is going on would be a
> guessing game.
>
> --
> Now where did I hide that website...


  Réponse avec citation
Vieux 29/10/2006, 17h42   #6
Bill Cole
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Setting Time on Mail Servers

In article <1162108803.319859.159890@k70g2000cwa.googlegroups .com>,
"flaifel" <flaifel@gmail.com> wrote:

> Hello All,
>
> This is exactly what i was looking for Bill.
> Am using Solaris 9 as an OS, date is the normal date command on solaris
> "/usr/bin/date".
>
> What do you think??


I think you don't understand what /etc/TIMEZONE is, at least for
Solaris.

Read the man page (man TIMEZONE) carefully and completely, particularly
if you are on a x86 system, which has one extra issue not seen on
Solaris/SPARC.

Note that /etc/TIMEZONE and /etc/timezone may both exist and are
completely different things.




> regards,
> Flaifel
>
> Bill Cole wrote:
> > In article <1161947379.021879.26710@i42g2000cwa.googlegroups. com>,
> > "flaifel" <flaifel@gmail.com> wrote:
> >
> > > Hello All,
> > >
> > > Whats the best scenario to set the time on mail servers so emails have
> > > the right time when being sent??

> >
> > That depends on the operating system and mail client software where the
> > message is created. Different systems use different mechanisms to set
> > the time zone. Generally speaking, it is the mail user agent (e.g. pine,
> > mailx, Outlook, Eudora, etc.) that creates the Date header. A mail
> > server program, such as sendmail, won't change an existing Date header
> > on mail unless specially configured to do so.
> >
> > > i have in my /etc/TIMEZONE file "GMT-2 "
> > > when i issue the command date i get the following
> > >
> > > #date
> > > Fri Oct 27 13:06:54 GMT 2006
> > >
> > > The time is correct but what is this GMT in the date???

> >
> > For some reason, the 'date' program you are using thinks you are in GMT.
> > Some implementations of 'date' will look for $TZ in your environment,
> > and if it is defined but null will use GMT.
> >
> > Without knowing exactly what OS you are running and which implementation
> > of 'date' you're using, explaining exactly what is going on would be a
> > guessing game.
> >
> > --
> > Now where did I hide that website...


--
Now where did I hide that website...
  Réponse avec citation
Vieux 30/10/2006, 15h57   #7
Thomas Schulz
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Setting Time on Mail Servers

In article <bill-15E1FA.12424629102006@news.det.sbcglobal.net>,
Bill Cole <bill@scconsult.com> wrote:
>In article <1162108803.319859.159890@k70g2000cwa.googlegroups .com>,
> "flaifel" <flaifel@gmail.com> wrote:
>
>> Hello All,
>>
>> This is exactly what i was looking for Bill.
>> Am using Solaris 9 as an OS, date is the normal date command on solaris
>> "/usr/bin/date".
>>
>> What do you think??

>
>I think you don't understand what /etc/TIMEZONE is, at least for
>Solaris.
>
>Read the man page (man TIMEZONE) carefully and completely, particularly
>if you are on a x86 system, which has one extra issue not seen on
>Solaris/SPARC.
>
>Note that /etc/TIMEZONE and /etc/timezone may both exist and are
>completely different things.


Note that the man page for TIMEZONE refers you to the man page for environ
which has the information that I think you need. Try 'man -s5 environ'
and read the section on the TZ variable.


>
>
>> regards,
>> Flaifel
>>
>> Bill Cole wrote:
>> > In article <1161947379.021879.26710@i42g2000cwa.googlegroups. com>,
>> > "flaifel" <flaifel@gmail.com> wrote:
>> >
>> > > Hello All,
>> > >
>> > > Whats the best scenario to set the time on mail servers so emails have
>> > > the right time when being sent??
>> >
>> > That depends on the operating system and mail client software where the
>> > message is created. Different systems use different mechanisms to set
>> > the time zone. Generally speaking, it is the mail user agent (e.g. pine,
>> > mailx, Outlook, Eudora, etc.) that creates the Date header. A mail
>> > server program, such as sendmail, won't change an existing Date header
>> > on mail unless specially configured to do so.
>> >
>> > > i have in my /etc/TIMEZONE file "GMT-2 "
>> > > when i issue the command date i get the following
>> > >
>> > > #date
>> > > Fri Oct 27 13:06:54 GMT 2006
>> > >
>> > > The time is correct but what is this GMT in the date???
>> >
>> > For some reason, the 'date' program you are using thinks you are in GMT.
>> > Some implementations of 'date' will look for $TZ in your environment,
>> > and if it is defined but null will use GMT.
>> >
>> > Without knowing exactly what OS you are running and which implementation
>> > of 'date' you're using, explaining exactly what is going on would be a
>> > guessing game.
>> >
>> > --
>> > Now where did I hide that website...

>
>--
>Now where did I hide that website...



--
Tom Schulz
schulz@adi.com
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 12h28.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,22179 seconds with 15 queries