|
|
|
|
||||||
| comp.mail.sendmail Configuring and using the BSD sendmail agent. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
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... |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
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... |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
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... |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
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 |
|
![]() |
| Outils de la discussion | |
|
|