You are receiving this message because you are a member of the Linux-Nepal
group. This is a monthly reminder mail providing instructions and guidelines for
the list.
You are a member of linux-nepal@yahoogroups.com, Linux-Nepal Group, where you
can discuss topics pertaining to Linux/Unix and other Free/Public Domain
computer topics.
The archives of the list are at
http://groups.yahoo.com/group/linux-nepal/messages
PLEASE NOTE:
THIS LIST IS NOT INTENDED TO BE A COMMERCIAL OFFERINGS LIST. THE SUBJECTS HERE
ARE STRICTLY LIMITED TO THE TOPICS MENTIONED ABOVE.
Do not try to post commercial advertisements (SPAM) mails. Any such users will
be banned.
Job openings can be sent provided they are specific to *nix technologies and are
detailed and tagged with the word [COMMERCIAL] in the subject line.
This list is not moderated: this means that you can post at any time you feel to
discuss or seek help.
Make sure that you provide plenty of details while posting your idea/problem -
posts that in essence only say "help me" or "how do i do someting" will not be
effective enough and will end up residing in the Trash folder.
Do have a look at the following links on guidelines of posting to a mailing
list.
http://rfc.net/rfc1855.html
Do not use email signatures mentioning to destroy the email if delivered to
unintended people. The messages posted to this list are also archived.
You are receiving this message because you are a member of the Linux-Nepal
group. This is a monthly reminder mail providing instructions and guidelines for
the list.
You are a member of linux-nepal@yahoogroups.com, Linux-Nepal Group, where you
can discuss topics pertaining to Linux/Unix and other Free/Public Domain
computer topics.
The archives of the list are at
http://groups.yahoo.com/group/linux-nepal/messages
PLEASE NOTE:
THIS LIST IS NOT INTENDED TO BE A COMMERCIAL OFFERINGS LIST. THE SUBJECTS HERE
ARE STRICTLY LIMITED TO THE TOPICS MENTIONED ABOVE.
Do not try to post commercial advertisements (SPAM) mails. Any such users will
be banned.
Job openings can be sent provided they are specific to *nix technologies and are
detailed and tagged with the word [COMMERCIAL] in the subject line.
This list is not moderated: this means that you can post at any time you feel to
discuss or seek help.
Make sure that you provide plenty of details while posting your idea/problem -
posts that in essence only say "help me" or "how do i do someting" will not be
effective enough and will end up residing in the Trash folder.
Do have a look at the following links on guidelines of posting to a mailing
list.
http://rfc.net/rfc1855.html
Do not use email signatures mentioning to destroy the email if delivered to
unintended people. The messages posted to this list are also archived.
HI everyone,
I need help regarding the implementation of backup plan for Tower of
Hanoi progression
any help would be appreciated.
here is the question.
The following backup scheme is based on the Tower of Hanoi
progression:
----------------------------------------------------------------
Sun Mon Tues Wed Thu Fri Sat
----------------------------------------------------------------
0 3 2 5 4 7 6
----------------------------------------------------------------
For each day list the backups that would be required to completely
restore the machine on that day.
If a file was changed on Monday which backups would have a copy of
that file? Repeat for the other days of the week.
waiting for the replies....
cheers
mano
You are receiving this message because you are a member of the Linux-Nepal
group. This is a monthly reminder mail providing instructions and guidelines for
the list.
You are a member of linux-nepal@yahoogroups.com, Linux-Nepal Group, where you
can discuss topics pertaining to Linux/Unix and other Free/Public Domain
computer topics.
The archives of the list are at
http://groups.yahoo.com/group/linux-nepal/messages
PLEASE NOTE:
THIS LIST IS NOT INTENDED TO BE A COMMERCIAL OFFERINGS LIST. THE SUBJECTS HERE
ARE STRICTLY LIMITED TO THE TOPICS MENTIONED ABOVE.
Do not try to post commercial advertisements (SPAM) mails. Any such users will
be banned.
Job openings can be sent provided they are specific to *nix technologies and are
detailed and tagged with the word [COMMERCIAL] in the subject line.
This list is not moderated: this means that you can post at any time you feel to
discuss or seek help.
Make sure that you provide plenty of details while posting your idea/problem -
posts that in essence only say "help me" or "how do i do someting" will not be
effective enough and will end up residing in the Trash folder.
Do have a look at the following links on guidelines of posting to a mailing
list.
http://rfc.net/rfc1855.html
Do not use email signatures mentioning to destroy the email if delivered to
unintended people. The messages posted to this list are also archived.
You are receiving this message because you are a member of the Linux-Nepal
group. This is a monthly reminder mail providing instructions and guidelines for
the list.
You are a member of linux-nepal@yahoogroups.com, Linux-Nepal Group, where you
can discuss topics pertaining to Linux/Unix and other Free/Public Domain
computer topics.
The archives of the list are at
http://groups.yahoo.com/group/linux-nepal/messages
PLEASE NOTE:
THIS LIST IS NOT INTENDED TO BE A COMMERCIAL OFFERINGS LIST. THE SUBJECTS HERE
ARE STRICTLY LIMITED TO THE TOPICS MENTIONED ABOVE.
Do not try to post commercial advertisements (SPAM) mails. Any such users will
be banned.
Job openings can be sent provided they are specific to *nix technologies and are
detailed and tagged with the word [COMMERCIAL] in the subject line.
This list is not moderated: this means that you can post at any time you feel to
discuss or seek help.
Make sure that you provide plenty of details while posting your idea/problem -
posts that in essence only say "help me" or "how do i do someting" will not be
effective enough and will end up residing in the Trash folder.
Do have a look at the following links on guidelines of posting to a mailing
list.
http://rfc.net/rfc1855.html
Do not use email signatures mentioning to destroy the email if delivered to
unintended people. The messages posted to this list are also archived.
You are receiving this message because you are a member of the Linux-Nepal
group. This is a monthly reminder mail providing instructions and guidelines for
the list.
You are a member of linux-nepal@yahoogroups.com, Linux-Nepal Group, where you
can discuss topics pertaining to Linux/Unix and other Free/Public Domain
computer topics.
The archives of the list are at
http://groups.yahoo.com/group/linux-nepal/messages
PLEASE NOTE:
THIS LIST IS NOT INTENDED TO BE A COMMERCIAL OFFERINGS LIST. THE SUBJECTS HERE
ARE STRICTLY LIMITED TO THE TOPICS MENTIONED ABOVE.
Do not try to post commercial advertisements (SPAM) mails. Any such users will
be banned.
Job openings can be sent provided they are specific to *nix technologies and are
detailed and tagged with the word [COMMERCIAL] in the subject line.
This list is not moderated: this means that you can post at any time you feel to
discuss or seek help.
Make sure that you provide plenty of details while posting your idea/problem -
posts that in essence only say "help me" or "how do i do someting" will not be
effective enough and will end up residing in the Trash folder.
Do have a look at the following links on guidelines of posting to a mailing
list.
http://rfc.net/rfc1855.html
Do not use email signatures mentioning to destroy the email if delivered to
unintended people. The messages posted to this list are also archived.
You are receiving this message because you are a member of the Linux-Nepal
group. This is a monthly reminder mail providing instructions and guidelines for
the list.
You are a member of linux-nepal@yahoogroups.com, Linux-Nepal Group, where you
can discuss topics pertaining to Linux/Unix and other Free/Public Domain
computer topics.
The archives of the list are at
http://groups.yahoo.com/group/linux-nepal/messages
PLEASE NOTE:
THIS LIST IS NOT INTENDED TO BE A COMMERCIAL OFFERINGS LIST. THE SUBJECTS HERE
ARE STRICTLY LIMITED TO THE TOPICS MENTIONED ABOVE.
Do not try to post commercial advertisements (SPAM) mails. Any such users will
be banned.
Job openings can be sent provided they are specific to *nix technologies and are
detailed and tagged with the word [COMMERCIAL] in the subject line.
This list is not moderated: this means that you can post at any time you feel to
discuss or seek help.
Make sure that you provide plenty of details while posting your idea/problem -
posts that in essence only say "help me" or "how do i do someting" will not be
effective enough and will end up residing in the Trash folder.
Do have a look at the following links on guidelines of posting to a mailing
list.
http://rfc.net/rfc1855.html
Do not use email signatures mentioning to destroy the email if delivered to
unintended people. The messages posted to this list are also archived.
Hi,
After quite some time, I'm happy to announce a new release of pypt-offline.
Some of the quick features are:
* Offline Bug Report support - Users can now also have information about what
packages contain bug reports. [Debian Only]
* Colored Output - Full colored output. [ Support on Windows is through
WConio]
* Better support for threads
* Many new options added
I've now started using Mercurial along with SF's SVN which can be viewed at
[1] and [2]
I've also put up a video at [3] explaining how pypt-offline works.
What is pypt-offline?
pypt-offline is an Offline Package Manager for distributions based on Debian.
It can allow a user using a Debian distribution with no internet connection
to be able to update/upgrade his box with the help of another box running
Windows/Linux/Mac
A recent article from Ars [4] was informative enough to show how many
countries still don't have [or is very expensive] a proper internet
connection.
I hope pypt-offline will be helpful to people who are willing to enjoy the
powerful features of Debian but aren't yet able to do so because of internet
connectivity.
Feedback welcome.
[1] http://pypt-offline.sf.net/hg/pypt-offline
[2] http://www.researchut.com/hg/pypt-offline
[3] http://pypt-offline.sourceforge.net/pypt-offline-video.html
[4]
http://arstechnica.com/news.ars/post/20070727-the-internet-in-kazakhstan-welcome\
-to-the-land-of-3355-per-month-dsl.html
Ritesh
--
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."
You are receiving this message because you are a member of the Linux-Nepal
group. This is a monthly reminder mail providing instructions and guidelines for
the list.
You are a member of linux-nepal@yahoogroups.com, Linux-Nepal Group, where you
can discuss topics pertaining to Linux/Unix and other Free/Public Domain
computer topics.
The archives of the list are at
http://groups.yahoo.com/group/linux-nepal/messages
PLEASE NOTE:
THIS LIST IS NOT INTENDED TO BE A COMMERCIAL OFFERINGS LIST. THE SUBJECTS HERE
ARE STRICTLY LIMITED TO THE TOPICS MENTIONED ABOVE.
Do not try to post commercial advertisements (SPAM) mails. Any such users will
be banned.
Job openings can be sent provided they are specific to *nix technologies and are
detailed and tagged with the word [COMMERCIAL] in the subject line.
This list is not moderated: this means that you can post at any time you feel to
discuss or seek help.
Make sure that you provide plenty of details while posting your idea/problem -
posts that in essence only say "help me" or "how do i do someting" will not be
effective enough and will end up residing in the Trash folder.
Do have a look at the following links on guidelines of posting to a mailing
list.
http://rfc.net/rfc1855.html
Do not use email signatures mentioning to destroy the email if delivered to
unintended people. The messages posted to this list are also archived.
You are receiving this message because you are a member of the Linux-Nepal
group. This is a monthly reminder mail providing instructions and guidelines for
the list.
You are a member of linux-nepal@yahoogroups.com, Linux-Nepal Group, where you
can discuss topics pertaining to Linux/Unix and other Free/Public Domain
computer topics.
The archives of the list are at
http://groups.yahoo.com/group/linux-nepal/messages
PLEASE NOTE:
THIS LIST IS NOT INTENDED TO BE A COMMERCIAL OFFERINGS LIST. THE SUBJECTS HERE
ARE STRICTLY LIMITED TO THE TOPICS MENTIONED ABOVE.
Do not try to post commercial advertisements (SPAM) mails. Any such users will
be banned.
Job openings can be sent provided they are specific to *nix technologies and are
detailed and tagged with the word [COMMERCIAL] in the subject line.
This list is not moderated: this means that you can post at any time you feel to
discuss or seek help.
Make sure that you provide plenty of details while posting your idea/problem -
posts that in essence only say "help me" or "how do i do someting" will not be
effective enough and will end up residing in the Trash folder.
Do have a look at the following links on guidelines of posting to a mailing
list.
http://rfc.net/rfc1855.html
Do not use email signatures mentioning to destroy the email if delivered to
unintended people. The messages posted to this list are also archived.
--- In linux-nepal@yahoogroups.com, "bikrish" <bi_chrish@...> wrote:
>
>
> Hello
>
> I am using postfix and Suse linux. I want to forward all incoming and
> outgoing mail to a one particular user. How can i do that in postfix?
> Any help would be appreciated
>
> Regards
>
> Bikrish
>
For incoming mails, you could use .forward and specify the email
address there.
Ritesh
Hello
I am using postfix and Suse linux. I want to forward all incoming and
outgoing mail to a one particular user. How can i do that in postfix?
Any help would be appreciated
Regards
Bikrish
You are receiving this message because you are a member of the Linux-Nepal
group. This is a monthly reminder mail providing instructions and guidelines for
the list.
You are a member of linux-nepal@yahoogroups.com, Linux-Nepal Group, where you
can discuss topics pertaining to Linux/Unix and other Free/Public Domain
computer topics.
The archives of the list are at
http://groups.yahoo.com/group/linux-nepal/messages
PLEASE NOTE:
THIS LIST IS NOT INTENDED TO BE A COMMERCIAL OFFERINGS LIST. THE SUBJECTS HERE
ARE STRICTLY LIMITED TO THE TOPICS MENTIONED ABOVE.
Do not try to post commercial advertisements (SPAM) mails. Any such users will
be banned.
Job openings can be sent provided they are specific to *nix technologies and are
detailed and tagged with the word [COMMERCIAL] in the subject line.
This list is not moderated: this means that you can post at any time you feel to
discuss or seek help.
Make sure that you provide plenty of details while posting your idea/problem -
posts that in essence only say "help me" or "how do i do someting" will not be
effective enough and will end up residing in the Trash folder.
Do have a look at the following links on guidelines of posting to a mailing
list.
http://rfc.net/rfc1855.html
Do not use email signatures mentioning to destroy the email if delivered to
unintended people. The messages posted to this list are also archived.
Hi,
I need a little help in understanding how Namespaces and scoping works with
Classes/Functions in Python.
Here's my code:
class FetchData:
def __init__(self, dataTypes=["foo", "bar", "spam"], archive=False):
self.List = []
self.Types = dataTypes
if archive:
self.Archiver = Archiver(True)
def FetchData(self, PackageName, Filename=None):
try:
import my_module
except ImportError:
return False
if Filename != None:
try:
file_handle = open(Filename, 'a')
except IOError:
sys.exit(1)
(amnt, header, self.List) = my_module.get_data(PackageName)
This is the only way this code will work.
As per my understanding, the bad part is that on every call of the method
FetchData(), an import would be done.
To not let that happen, I can put the import into __init__(). But when I put
in there, I get a NameError saying that my_module is not available even
though it got imported.
All I noticed is that the import has to be part of the method else I end up
getting a NameError. But always importing my_module is also not good.
What is the correct way of doing this ?
IMO, ideally it should be part of __init__() and be imported only when the
class is instantiated.
Thanks,
Ritesh
--
If possible, Please CC me when replying. I'm not subscribed to the list.
You are receiving this message because you are a member of the Linux-Nepal
group. This is a monthly reminder mail providing instructions and guidelines for
the list.
You are a member of linux-nepal@yahoogroups.com, Linux-Nepal Group, where you
can discuss topics pertaining to Linux/Unix and other Free/Public Domain
computer topics.
The archives of the list are at
http://groups.yahoo.com/group/linux-nepal/messages
PLEASE NOTE:
THIS LIST IS NOT INTENDED TO BE A COMMERCIAL OFFERINGS LIST. THE SUBJECTS HERE
ARE STRICTLY LIMITED TO THE TOPICS MENTIONED ABOVE.
Do not try to post commercial advertisements (SPAM) mails. Any such users will
be banned.
Job openings can be sent provided they are specific to *nix technologies and are
detailed and tagged with the word [COMMERCIAL] in the subject line.
This list is not moderated: this means that you can post at any time you feel to
discuss or seek help.
Make sure that you provide plenty of details while posting your idea/problem -
posts that in essence only say "help me" or "how do i do someting" will not be
effective enough and will end up residing in the Trash folder.
Do have a look at the following links on guidelines of posting to a mailing
list.
http://rfc.net/rfc1855.html
Do not use email signatures mentioning to destroy the email if delivered to
unintended people. The messages posted to this list are also archived.
You are receiving this message because you are a member of the Linux-Nepal
group. This is a monthly reminder mail providing instructions and guidelines for
the list.
You are a member of linux-nepal@yahoogroups.com, Linux-Nepal Group, where you
can discuss topics pertaining to Linux/Unix and other Free/Public Domain
computer topics.
The archives of the list are at
http://groups.yahoo.com/group/linux-nepal/messages
PLEASE NOTE:
THIS LIST IS NOT INTENDED TO BE A COMMERCIAL OFFERINGS LIST. THE SUBJECTS HERE
ARE STRICTLY LIMITED TO THE TOPICS MENTIONED ABOVE.
Do not try to post commercial advertisements (SPAM) mails. Any such users will
be banned.
Job openings can be sent provided they are specific to *nix technologies and are
detailed and tagged with the word [COMMERCIAL] in the subject line.
This list is not moderated: this means that you can post at any time you feel to
discuss or seek help.
Make sure that you provide plenty of details while posting your idea/problem -
posts that in essence only say "help me" or "how do i do someting" will not be
effective enough and will end up residing in the Trash folder.
Do have a look at the following links on guidelines of posting to a mailing
list.
http://rfc.net/rfc1855.html
Do not use email signatures mentioning to destroy the email if delivered to
unintended people. The messages posted to this list are also archived.
http://code.google.com/summerofcode.html
Google Summer of Code
Google Summer of Code 2007 is on! We are now accepting student
applications. We've also published some additional web app
documentation for mentors and organization administrators.
All the information for participants in Google Summer of Code 2007,
including student abstracts and other information provided by them, is
available by visiting the individual mentoring organization pages
below.
Mentoring Organizations Participating in Google Summer of Code 2007
AbiSource (ideas)
Adium (ideas)
Aqsis Team (ideas)
Ardour (ideas)
ArgoUML (ideas)
Audacious Media Player (ideas)
Bazaar (ideas)
BBC Research (ideas)
Beagle (ideas)
Blender Foundation (ideas)
Boost C++ (ideas)
BZFlag (ideas)
Casetta (ideas)
Center for the Study of Complex Systems (CSCS), University of Michigan (ideas)
CLAM ( at the Universitat Pompeu Fabra) (ideas)
Computer Professionals for Social Responsibility (ideas)
Coppermine Photo Gallery (ideas)
coresystems GmbH (ideas)
Creative Commons (ideas)
Crystal Space (ideas)
Debian (ideas)
Detached Solutions (ideas)
Dojo Foundation (ideas)
Drupal (ideas)
DSpace (ideas)
Eclipse (ideas)
Etherboot Project (ideas)
eXist (ideas)
FANN - The Fast Artificial Neural Network Library (ideas)
FFmpeg (ideas)
Fityk (ideas)
FreeBSD (ideas)
Freenet Project Inc (ideas)
Freevo (ideas)
Gaim (ideas)
Gallery (ideas)
GCC (ideas)
Geeklog (ideas)
GenMAPP (ideas)
Gentoo Foundation (ideas)
Git Development Community (ideas)
GNOME (ideas)
GNU Project (ideas)
GnuCash (ideas)
GNUstep (ideas)
Google (ideas)
Haiku (ideas)
Handhelds.org (ideas)
Haskell.org (ideas)
hugin / panotools (ideas)
IEM - Institute of Electronic Music and Acoustics, Graz (ideas)
ikiwiki (ideas)
Inkscape (ideas)
Internet2 (ideas)
Jikes RVM (ideas)
Joomla! (ideas)
K-3D (ideas)
KDE (ideas)
Lanka Software Foundation (ideas)
Liblime (ideas)
LispNYC.org (ideas)
LLVM Compiler Infrastructure (ideas)
MacPorts (ideas)
maemo (ideas)
MetaBrainz Foundation (ideas)
Mixxx (ideas)
MoinMoin Wiki Project (ideas)
Mono Project (ideas)
Moodle (ideas)
Mozilla Foundation (ideas)
MySQL AB (ideas)
National Evolutionary Synthesis Center (NESCent), Phyloinformatics Group (ideas)
Nmap Security Scanner (ideas)
OGRE (ideas)
Open Security Foundation (OSVDB) (ideas)
Open Source Applications Foundation (ideas)
OpenICC (ideas)
OpenMoko (ideas)
OpenMRS (ideas)
OpenOffice.org (ideas)
OpenSolaris (ideas)
Oregon State University Open Source Lab (OSU OSL) (ideas)
OSCAR (ideas)
OSGeo (ideas)
PHP (ideas)
Plan 9 from Bell Labs (ideas)
PlanetMath (ideas)
Plone Foundation (ideas)
Portland State University (ideas)
PostgreSQL project (ideas)
Python Software Foundation (ideas)
Robert H. Lurie Comprehensive Cancer Center of Northwestern University (ideas)
Rockbox (ideas)
Ruby Central, Inc. (ideas)
Samba (ideas)
SCons Foundation: Next-Generation Build Tool (ideas)
Scribus Development Team (ideas)
ScummVM (ideas)
SilverStripe Limited (ideas)
SIP Communicator (ideas)
Sparse (ideas)
Squeak (ideas)
SquirrelMail (ideas)
Subversion (ideas)
Swarm Development Group (ideas)
Swathanthra Malayalam Computing (ideas)
Taste (ideas)
The Apache Software Foundation (ideas)
The Codehaus (ideas)
The Electronic Frontier Foundation (ideas)
The Fedora Project (ideas)
The Free Software Initiative of Japan (ideas)
The gEDA Project (ideas)
The GGI Project (ideas)
The NetBSD Project (ideas)
The Space Telescope Science Institute (ideas)
Thousand Parsec (ideas)
Ubuntu (ideas)
Umit Project (ideas)
VideoLAN (ideas)
Vim (ideas)
Wikimedia Foundation (ideas)
WinLibre (ideas)
WordPress (ideas)
wxPython (ideas)
wxWidgets (ideas)
X.Org (ideas)
Xiph.org Foundation (ideas)
XMMS2 (ideas)
XMPP Standards Foundation (ideas)
XWiki (ideas)
Zope Foundation, Inc (ideas)
We are no longer accepting applications from open source organizations.
If you're feeling nostalgic, you can still access the Google Summer of
Code 2005 and Google Summer of Code 2006 pages. We've also created a
map (requires Google Earth) of all 2006 mentors and student
participants for your perusal.
Questions?
Please peruse our FAQ and Terms of Service for more information about
the program. If you still have questions, email us for support
--
FN M: 0091 9822122436 P: +91-832-240-9490 (after 1300IST please)
http://fn.goa-india.orghttp://fredericknoronha.wordpress.com
What bloggers are saying about Goa: http://planet.goa-india.org/
bikrish wrote:
> Hi guys
>
>
> I have a mail server hosted by some mail hosting company and my
> domain is indusclothing.com. There are about 100 users created in
> server. These 100 users are located different location. so they use
> outlook express to send and receive mails. Now 50 of those users are
> in delhi branch of our company. So have configured a MTA for
> indusclothing.com for this branch. This MTA downloads the mail from
> the mail server hosted in that company and then distributes them
> locally. These 50 users can send there mail to each other and to
You mention that an MTA is configured at the Delhi branch. So this MTA is going
to be the primary MTA for your domain, your smtp server.
Where as you mention that your domain's MX record points to your ISP, from where
you download the mails. That is fine till here.
> other domain like yahoo.com , gmail.com etc. The problem is they
> cann't send mail to users other than those 50, which are at the mail
> server hosted by the mail hosting company. Lets say
> abc@... and
> zyx@... is in delhi branch and
> mno@... is at the main mail server. When
> abc@... tries to send mail to
> mno@... , the MTA looks for the
> users mno in its database. But since the user is not created locally in this
> server , the MTA bounce with error message , user not found or something like
> that. so how can i tell MTA for some users to send mail directly to main mail
> server and stop looking locally in its database. I am using postfix. Anykind
> of help will be appreciated
>
> Thanking you
>
Now there's a problem here.
To receive the mails, the other 50 users (which aren't in Delhi office) can
directly download the mails from the ISP. But to send emails they need a smtp
server. Now well, they might be able to use any smtp server but then most other
MTAs of other domains will reject your emails because the Reverse DNS
resolution won't match. People use these techniques to cut out spam.
The good solution to you problem, that I see is, that you ask all your users to
use your MTA (Delhi MTA) as your smtp server. That way every users email will
be filtered as genuine.
If you don't do that, and even though you get another workaround smtp server,
you'll get into the trouble of your emails being tagged/blocked as spam
messages.
Use smtp auth on your Delhi MTA and ask all users to use it for smtp.
Ritesh
--
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."
"Stealing logic from one person is plagiarism, stealing from many is research."
"The great are those who achieve the impossible, the petty are those who
cannot - rrs"
Hi guys
I have a mail server hosted by some mail hosting company and my
domain is indusclothing.com. There are about 100 users created in
server. These 100 users are located different location. so they use
outlook express to send and receive mails. Now 50 of those users are
in delhi branch of our company. So have configured a MTA for
indusclothing.com for this branch. This MTA downloads the mail from
the mail server hosted in that company and then distributes them
locally. These 50 users can send there mail to each other and to
other domain like yahoo.com , gmail.com etc. The problem is they
cann't send mail to users other than those 50, which are at the mail
server hosted by the mail hosting company. Lets say
abc@... and zyx@... is in delhi branch
and mno@... is at the main mail server. When
abc@... tries to send mail to mno@... ,
the MTA looks for the users mno in its database. But since the user
is not created locally in this server , the MTA bounce with error
message , user not found or something like that. so how can i tell
MTA for some users to send mail directly to main mail server and
stop looking locally in its database. I am using postfix. Anykind of
help will be appreciated
Thanking you
Ritesh Raj Sarraf wrote:
> os.environ['__kabc_ldap'] = temp_file_name
This statement was the culprit.
Mea culpa.
Environment variables aren't a candidate to be leveraged by threads. The threads
were sharing the common variable and thus overwriting it.
Ritesh
--
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."
"Stealing logic from one person is plagiarism, stealing from many is research."
"The great are those who achieve the impossible, the petty are those who
cannot - rrs"
Bipin Gautam wrote:
>>
>> Bipin Gautam wrote:
>>
>> > -Block the users computers based on IP to access those domain.
>> >
>>
>> IPs can change.
>
> Its office and assuming the person asking question as the admin. of
> the office... he should have control over that. Its a controlled
> environment. If someone break rules, he will be questioned! Or is he
> running a hack-feast?
I don't understand. But if I'm correct you meant to block IPs of domains you
want to deny. My answer was in that regard.
It _won't_ help to filter with IPs. And that's not the correct thing to do too.
IPs can change. My domain was for a year on xxx.xxx.xxx.xxx and now it has moved
to xxx.xxx.xxx.yyy
Now I cannot keep adding/removing IPs from my database because the domains (that
I want to block) are changing IPs.
>>
>> > -Filtering the content based on email address alone will pose some
>> technical > difficulty you may NOT normally want to deal with.
>> >
>>
>> Bikrish,
>> It's been long since I lost touch from Sys Admin stuff. But I can assure you
>> that this can be done because I had done an exactly same setup, but in
>> Sendmail. I'm not sure but maybe have a Virtual Domain setup for each client
>> and restrict relaying on a need basis for each of them.
>>
>
> the original question says,
> ---
> I am using postfix. My domain is hattron.cc. I want to block some of
> the users of my company from sending mail to outside domain(i.e
> gmail.com or yahoo.com... ) How can i do this ?
> ---
> maybe DNS blacklist, IP filter, could help. It seems like he  don't
> want to block Internet access. Just blocking sending of email during
> office hours to outside domains.
>
How with IP filter ?
Ritesh
--
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."
"Stealing logic from one person is plagiarism, stealing from many is research."
"The great are those who achieve the impossible, the petty are those who
cannot - rrs"
On 3/17/07, Ritesh Raj Sarraf <rrs@...> wrote:
>
> Bipin Gautam wrote:
>
> > -Block the users computers based on IP to access those domain.
> >
>
> IPs can change.
Its office and assuming the person asking question as the admin. of
the office... he should have control over that. Its a controlled
environment. If someone break rules, he will be questioned! Or is he
running a hack-feast?
>
> > -Filtering the content based on email address alone will pose some
technical
> > difficulty you may NOT normally want to deal with.
> >
>
> Bikrish,
> It's been long since I lost touch from Sys Admin stuff. But I can assure you
> that this can be done because I had done an exactly same setup, but in
> Sendmail. I'm not sure but maybe have a Virtual Domain setup for each client
> and restrict relaying on a need basis for each of them.
>
the original question says,
---
I am using postfix. My domain is hattron.cc. I want to block some of
the users of my company from sending mail to outside domain(i.e
gmail.com or yahoo.com... ) How can i do this ?
---
maybe DNS blacklist, IP filter, could help. It seems like he don't
want to block Internet access. Just blocking sending of email during
office hours to outside domains.
> > - Download microsofts network monitor (packet capturing tool) and see if
> > they are sending email from their email address ( grep for their name/email
> > in the packet capturing tool )
> >
>
> I really don't understand this one. And really how would this help ?
>
Implementing technical solutions will wont always be full proof. You
can tell me 100 ways to fix this problem, i can tell you 101 different
ways how to get around it.
Therefore, after telling users/staff (writing policies) about what
they can and cant do. Next step is monitoring and seeing everyone
respects the companies policy and stay below this DO-NOT-CROSS line.
But if someone dishonours the policy ignoring moral obligations
enforce STRICT POLICY NUMBER 2. General users cant win arm wrestling
with the admins so they will back off.
Packet capturing tool will help you keep track of, whether users are
really respecting the rules or not. It will send them message, hey I'm
keeping n eye on you... if they try get around that!
Sending messages like, "I'm monitoring your every click and know what
you do online, respect the rules or I'll continue monitoring you" is
enough motivation for users NOT TO CROSS the line.
thanks,
-bipin
Bipin Gautam wrote:
> -Block the users computers based on IP to access those domain.
>
IPs can change.
> -Filtering the content based on email address alone will pose some technical
> difficulty you may NOT normally want to deal with.
>
Bikrish,
It's been long since I lost touch from Sys Admin stuff. But I can assure you
that this can be done because I had done an exactly same setup, but in
Sendmail. I'm not sure but maybe have a Virtual Domain setup for each client
and restrict relaying on a need basis for each of them.
> - Download microsofts network monitor (packet capturing tool) and see if
> they are sending email from their email address ( grep for their name/email
> in the packet capturing tool )
>
I really don't understand this one. And really how would this help ?
Ritesh
--
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."
"Stealing logic from one person is plagiarism, stealing from many is research."
"The great are those who achieve the impossible, the petty are those who
cannot - rrs"
-Block the users computers based on IP to access those domain.
-Filtering the content based on email address alone will pose some technical difficulty you may NOT normally want to deal with.
-
Download microsofts network monitor (packet capturing tool) and see if they are sending email from their email address ( grep for their name/email in the packet capturing tool )
final words of advice: Strict policy!!! Strict policy!!! Strict policy!!!
I am using postfix. My domain is hattron.cc. I want to block some of
the users of my company from sending mail to outside domain(i.e gmail.com or yahoo.com... ) How can i do this ?
Any help would be appreciated?
Ritesh Raj Sarraf wrote:
> Hi,
>
> I think there is some lock problem.
> Let me show the code first
And here is the code for the non-threaded version which works perfect. Now I
really am not able to see that where am I making the mistake.
#!/usr/bin/env python
import os
import sys
import string
import tempfile
from time import sleep
_hostname = None
_username = None
_password = None
_ldapPreCommand = 'ldapsearch -LLL -z 0 "(Sn='
_ldapPostCommand = '*)" -h ' + _hostname + ' -x -D "' + _username + '" -b
Cn=users,DC=hq,DC=domain,DC=com' + " -w " + _password
_ldapDataFile = '/tmp/kabc_ldap_record.txt'
NumberOfThreads = 5
#char = 's'
#ldapCommand = _ldapPreCommand + char + _ldapPostCommand
#x = os.system(ldapCommand)
#if x == 1024:
# print "I'm in the exception"
#print x
#sys.exit(1)
ldap_attributes =
['dn:', 'cn:', 'sn:', 'l:', 'st:', 'title:', 'description:', 'postalCode:',
'telephoneNumber:', 'facsimileTelephoneNumber:',
'givenName:', 'mail:', 'homePhone:', 'mobile:', 'pager:']
writeFile = open(_ldapDataFile, 'w')
(temp_file_fd, temp_file_name) = tempfile.mkstemp()
os.environ['__kabc_ldap'] = temp_file_name
print "Writing data to %s\n" % (temp_file_name)
def RecordFetchher(char):
sleep(5) #Let's not thrash the exchange server ;-)
ldapCommand = _ldapPreCommand + char + _ldapPostCommand
if os.system(ldapCommand + "> $__kabc_ldap") != 0:
sys.stderr.write("Couldn't execute the command %s\n" %
(ldapCommand) )
sys.exit(1)
#temp_file_name = "/tmp/tmpnhYrps"
readFile = open(temp_file_name, 'r')
for record in readFile.readlines():
if record.startswith(' '): # Remove the junk
pass
record = string.rstrip(record, "\n")
for attrib in ldap_attributes:
if record.startswith(attrib):
if ldap_attributes[0] == attrib: #This attribute is
common/mandatory in all records
writeFile.write("\n")
writeFile.write(record)
writeFile.write("\n")
break
writeFile.flush()
readFile.close()
writeFile.write("\n")
for char in string.lowercase:
# I know this is ugly. Too many cycles
# But ldapsearch or exchange is restricting, the query max result limit is
1000
for subChar in string.lowercase:
RecordFetchher(char+subChar)
print "Data writted to file %s\n" % (temp_file_name)
writeFile.close()
--
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."
"Stealing logic from one person is plagiarism, stealing from many is research."
"The great are those who achieve the impossible, the petty are those who
cannot - rrs"
Hi
I am using postfix. My domain is hattron.cc. I want to block some of
the users of my company from sending mail to outside domain(i.e
gmail.com or yahoo.com... ) How can i do this ?
Any help would be appreciated?
Thanks
Hi,
I think there is some lock problem.
Let me show the code first
import os
import sys
import string
import tempfile
import threading
import Queue
from time import sleep
_hostname = None
_username = None
_password = None
_ldapDataFile = None
if _hostname is None or _username is None or _password is None or _ldapDataFile
is None:
  sys.stderr.write("Please first set the credentials properly.\n")
  sys.exit(1)
_ldapPreCommand = 'ldapsearch -LLL -z 0 "(Sn='
_ldapPostCommand = '*)" -h ' + _hostname + ' -x -D "' Â + _username + '" -b
Cn=users,DC=hq,DC=domain,DC=com' + " -w " + _password
NumberOfThreads = 5
#char = 's'
#ldapCommand = _ldapPreCommand + char + _ldapPostCommand
#x = os.system(ldapCommand)
#if x == 1024:
# Â Â print "I'm in the exception"
#print x
#sys.exit(1)
ldap_attributes =
['dn:', 'cn:', 'sn:', 'l:', 'st:', 'title:', 'description:', 'postalCode:',
'telephoneNumber:', 'facsimileTelephoneNumber:',
          'givenName:', 'mail:', 'homePhone:', 'mobile:',
'pager:']
try:
  writeFile = open(_ldapDataFile, 'w')
except IOError:
  sys.stderr.write("Couldn't open file %s to write.\n" % (writeFile) )
  sys.exit(1)
#print "Writing data to %s\n" % (temp_file_name)
def RecordFetcher(char):
    (temp_file_fd, temp_file_name) = tempfile.mkstemp()
    os.environ['__kabc_ldap'] = temp_file_name
    sleep(5) #Let's not thrash the exchange server ;-)
    ldapCommand = _ldapPreCommand + char + _ldapPostCommand
    if os.system(ldapCommand + "> $__kabc_ldap") != 0:
      sys.stderr.write("Couldn't execute the command %s\n" %
(ldapCommand) )
      sys.exit(1)
    #temp_file_name = "/tmp/tmpnhYrps"
    try:
      readFile = open(temp_file_name, 'r')
    except IOError:
      sys.stderr.write("Couldn't open file %s to read.\n" %
(readFile) )
      sys.exit(1)
     Â
    for record in readFile.readlines():
      if record.startswith(' '): # Remove the junk
        pass
      record = string.rstrip(record, "\n")
      for attrib in ldap_attributes:
        if record.startswith(attrib):
          try:
            FileLock.acquire(True)
           Â
            if ldap_attributes[0] == attrib: #This
attribute is
common/mandatory in all records, so we can rely on it
              writeFile.write("\n")
             Â
            writeFile.write(record)
            writeFile.write("\n")
           Â
          finally:
            writeFile.flush()
            FileLock.release()
          break
    readFile.close()
    os.remove(temp_file_name)
    #writeFile.write("\n")
 Â
 Â
def run(request, response, func=RecordFetcher):
  while 1:
    item = request.get()
    if item is None:
      break
    (char, subChar) = item
   Â
    response.put(func(char+subChar) )
# Start from here
requestQueue = Queue.Queue()
responseQueue = Queue.Queue()
FileLock = threading.Lock()
thread_pool = [
        threading.Thread(
                target=run,
                args=(requestQueue,
responseQueue)
                )
        for i in range(NumberOfThreads)
        ]
for t in thread_pool: t.start()
for char in string.lowercase:
  # I know this is ugly. Too many cycles
  # But ldapsearch or exchange is restricting, the query max result limit is
1000
  for subChar in string.lowercase:
    requestQueue.put( (char, subChar) )
for t in thread_pool: requestQueue.put(None)
for t in thread_pool: t.join()
writeFile.close()
=====
Now as per the above code, "aa" is the first string which will be executed in
Thread-1. In my query to the ldap server, I am getting a record which matches
the "aa" string. I've verified it by putting a breakpoint and checking the
value.
The problem is that when I run the program manually, I don't get the data from
the first thread i.e. of the string "aa".
I'm not sure if there's something wrong in the code mentioned above or is it
really a lock problem.
Can somebody please help about where I'm doing any mistake ?
Thanks,
Ritesh
--
Ritesh Raj Sarraf
RESEARCHUT - http://www.researchut.com
"Necessity is the mother of invention."
"Stealing logic from one person is plagiarism, stealing from many is research."
"The great are those who achieve the impossible, the petty are those who
cannot - rrs"
You are receiving this message because you are a member of the Linux-Nepal
group. This is a monthly reminder mail providing instructions and guidelines for
the list.
You are a member of linux-nepal@yahoogroups.com, Linux-Nepal Group, where you
can discuss topics pertaining to Linux/Unix and other Free/Public Domain
computer topics.
The archives of the list are at
http://groups.yahoo.com/group/linux-nepal/messages
PLEASE NOTE:
THIS LIST IS NOT INTENDED TO BE A COMMERCIAL OFFERINGS LIST. THE SUBJECTS HERE
ARE STRICTLY LIMITED TO THE TOPICS MENTIONED ABOVE.
Do not try to post commercial advertisements (SPAM) mails. Any such users will
be banned.
Job openings can be sent provided they are specific to *nix technologies and are
detailed and tagged with the word [COMMERCIAL] in the subject line.
This list is not moderated: this means that you can post at any time you feel to
discuss or seek help.
Make sure that you provide plenty of details while posting your idea/problem -
posts that in essence only say "help me" or "how do i do someting" will not be
effective enough and will end up residing in the Trash folder.
Do have a look at the following links on guidelines of posting to a mailing
list.
http://rfc.net/rfc1855.html
Do not use email signatures mentioning to destroy the email if delivered to
unintended people. The messages posted to this list are also archived.