2008年9月24日 星期三

sendmail mail pool?

/var/spool/clientmqueue

sendmail mail pool?


The following message is copied from forum

> Hi, all
> I found there is a directory named /var/spool/clientmqueue and many
> many file below this directory, what's use of this directory and the
> files under it?
> thanks.

When submitting mail by using sendmail as a mail submission program,
sendmail copies all messages to /var/spool/clientmqueue first. sendmail is
a setgid smmsp program and thus gives the any user the permission to do so
(/var/spool/clientmqueue belongs to user and group smmsp).

Later, another sendmail process, the sendmail localhost-only (FreeBSD
default config) mail transfer agent (MTA) copies the messages from
/var/spool/clientmqueue to /var/spool/mqueue and sends them to their
destination.

When files accumulate in /var/spool/clientmqueue, you probably don't run
the sendmail localhost MTA, and thus the mails don't get send.

2008年9月1日 星期一

Linux Command - cvs, get specified date source from cvs server

we can use the following date format to retrieve the specified source date version
# cvs -q up -D 2008-08-13 00:00
# cvs st -v ./Makefile
===================================================================
File: Makefile Status: Up-to-date

Working revision: 1.18
Repository revision: 1.18 [omit]/Makefile,v
Sticky Tag: (none)
Sticky Date: 2008.08.12.16.00.00
Sticky Options: (none)


# cvs -q up -D "2010-01-18 18:00:00 +0800" //Because the Taipei time minutes was +08:00
or
# cvs -q up -D "2010-01-18 10:00:00 UTC"
# cvs st -v ./File.c
File: BufferManager.c Status: Up-to-date

Working revision: 1.2
Repository revision: 1.2 [omit]/File.c,v
Sticky Tag: (none)
Sticky Date: 2010.01.18.10.00.00
Sticky Options: (none)



# checkout a specified date/time version of project code in the UTC (Coordinated Universal Time). This command was worked for me.
# cvs checkout -D "2009-05-04 14:48:00 UTC" modulename

# The following format is not yet correct executed in my environment yet, but it was suggested by the net
cvs checkout -D "2009-05-04 14:48:00 +0800" modulename >> "+0800" means that the CVS UTC time will minus the "0800" and the real checkout time (UTC/GMT time) will be "2009-05-04 06:48:00"
or cvs update -D "2009-05-04 14:48:00 +0800" modulename

Note:
Greenwich Mean Time (GMT) can be considered equivalent to UTC time

// cvs command format
cvs [Global options] cvs_command [Common options] [cvs_command_individual_options]

//
# cvs -q up -r TSA_V1272_PS -D "2010-01-17 04:00:00 -0800"

File: Tunnel_TCP.c Status: Needs Patch

Working revision: 1.182.2.1.2.3
Repository revision: 1.182.2.1.2.4 /home/cvs/tunnelcode/TunnelSystem/TunnelSystem/Tunnel_TCP.c,v
Sticky Tag: TSA_V1272_PS (branch: 1.182.2.1.2)
Sticky Date: (none)
Sticky Options: (none)