Re: [expert] Internal mail

2003-07-19 Thread Anne Wilson
On Saturday 19 Jul 2003 12:29 am, Bill Mullen wrote:
 On Friday 18 July 2003 04:38 pm, Anne Wilson wrote:

 I'll try to help, with two caveats: I'm not a regular Kmail user
 (actually, I just set it up to see what you may see ... it's not
 half bad these days g), and also I'm running 9.0 w/ KDE 3.05a, so
 what you see may differ somewhat from what I describe anyway. But
 throwing caution to the wind, and taking the whole procedure as if
 it were being done from scratch (for clarity's sake), here goes
 nothing ... ;)

snip
 HTH!

It certainly does.  In fact there was very little difference in my 
settings and the ones you describe, so I'm confident now that they 
were fine.  I think you are right, however, about the cause of the 
problem being new threads which are created as the local user 
account.  I'll keep an eye on it for a day or two to see if it's 
sorted now.

I've taken your advice about marking the separate identities with 
'special transport' to ensure the right ones are used.  I know that, 
having set certain folders to use certain identities I can force 
that, so it seems to me that I should avoid starting a new mail when 
in Inbox, ensuring that I am actually in a folder that uses the 
default account if that's what I want.  It shouldn't take too long to 
get used to that g

Thanks again for a very clear explanation.

Anne


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Internal mail

2003-07-18 Thread Anne Wilson
On Wednesday 16 Jul 2003 1:39 pm, Anne Wilson wrote:
 Root is sending me messages that end up in /var/spool/mail/anne.  I
 would like to set up KMail to bring these messages into a new
 folder, but don't know how to set up internal mail accounts.  Is it
 possible without using extra services?  What do I need to do?  What
 should I read?  If I can sort this out I would like to extend to
 internal mail across our mixed lan.

 Anne

The project to get mail running across the lan has had to be postponed 
for a few days, but I'll get to it.  Meanwhile, I am having a 
problem.

I have some folders set up to use specific accounts, but my default 
'From' is this one.  For some strange reason I keep finding that mail 
fails to go out because it has used the local account instead of this 
one.  I have checked the settings and the default settings haven't 
been changed.  Anyone have any ideas what's happening?  External mail 
just doesn't go out when it just comes from 'anne' g

Anne

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Internal mail

2003-07-18 Thread Bill Mullen
On Friday 18 July 2003 04:38 pm, Anne Wilson wrote:

 I have some folders set up to use specific accounts, but my default
 'From' is this one.  For some strange reason I keep finding that mail
 fails to go out because it has used the local account instead of this
 one.  I have checked the settings and the default settings haven't
 been changed.  Anyone have any ideas what's happening?  External mail
 just doesn't go out when it just comes from 'anne' g

I'll try to help, with two caveats: I'm not a regular Kmail user (actually, I 
just set it up to see what you may see ... it's not half bad these days g), 
and also I'm running 9.0 w/ KDE 3.05a, so what you see may differ somewhat 
from what I describe anyway. But throwing caution to the wind, and taking the 
whole procedure as if it were being done from scratch (for clarity's sake), 
here goes nothing ... ;)

With this incarnation of Kmail, at least, what you want to do is to first 
create a second Sending account (Settings - Configure Kmail - Network - 
Sending - Add); make it of type SMTP, give it a name like LocalSMTP, and 
make the host localhost. OK your way out, and ensure that the 
previously-existing Sending account - the one which points to your ISP's SMTP 
server - is still marked as (Default); if not, move it up until it is.

Next, you want to create a new and separate identity (Settings - Configure 
Kmail - Identity - New) by duplicating the settings from your Default 
identity, then changing the email address (General tab) to [EMAIL PROTECTED] 
(or to anne@ the FQDN, whichever). You then move over to the Advanced tab, 
check the Special Transport box, and select LocalSMTP from the two 
choices now appearing there . This new identity can have any name you like, 
but pick something other than LocalSMTP, to avoid any confusion later on 
(just Local is fine here; we'll postulate that for now).

Henceforth, any messages you send using the Default identity should use the 
SMTP server defined as the (Default) under Network - Sending (your ISP's), 
and any messages sent under the Local identity will use the LocalSMTP 
setting (your local Postfix server).

To be absolutely sure that there is no mix-up in this regard, you can go to 
the Identity section of the settings window, Default identity, Advanced 
tab, and explicitly set the Special transport for /that/ identity to the 
name of the one that points to your ISP's server. Then there should be no 
mistake as to which mail goes out via which server in the future.

You then associate individual folders with the identity you wish to use when 
posting from them, by right=clicking on each name in the folder list and 
selecting Properties, then setting that folder's preferred identity from 
the drop-down list.

From my few minutes of experimentation, it appears that when starting a new 
message, it will default to using whichever identity is set for the folder 
you currently have open. This bears watching, because if you are in a folder 
which is set to use the Local identity, and wish to create a wholly new 
message (say, a post to this list), it will try to use the Local identity 
due to where you're sitting when you start the process, when you'd really 
rather it use the Default one this time. You'll need to switch identities 
(above the To: box) before sending that mail.

Perhaps this last bit is at the root of the current crop of misdirected mails. 

Postfix can be told to send these out via your ISP's SMTP server, but you 
probably don't want that, as the From: address on them may be wrong. Best 
to just resend those, by going into your sent-mail folder, right-clicking 
on each, choosing Redirect, and adjusting the identity on them to the one 
you want to use before hitting Send. Postfix will give up trying to send 
the copies that it got after five days (and will tell you so when it does).

To see just which messages Postfix is trying and failing to send, type mailq 
at a prompt; it should show you enough to determine which ones they are.

HTH!

-- 
Bill Mullen   [EMAIL PROTECTED]   MA, USA   RLU #270075   MDK 8.1  9.0
In the beginning the Universe was created. This has made a lot of people
very angry and been widely regarded as a bad move. - Douglas Adams


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Internal mail

2003-07-17 Thread Anne Wilson
On Thursday 17 Jul 2003 1:03 am, bascule wrote:
 i set up a receiving account in settingsconfigure kmailnetwork
 thse are my details:
 name:bascule-local
 location:/var/spool/mail/bascule
 locking method:none
 destination folder:system

 obviously i made the 'system' folder!

 i didn't alter anything about sending mail
 is this useful?

Very.  It was the locking method that I had got wrong - I had left it 
on the default 'Procmail lockfile'.  I changed that, and in came all 
the messages from the last 2 months!  Definitely easier than having 
to read it from the spool directory.

You say you didn't change anything about sending, so does this mean 
that you use the same smtp that you use for your internet mail?

Now the monitoring mail is sorted I need to get to grips with mail 
across the lan.

Anne

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


[expert] Internal mail

2003-07-16 Thread Anne Wilson
Root is sending me messages that end up in /var/spool/mail/anne.  I 
would like to set up KMail to bring these messages into a new folder, 
but don't know how to set up internal mail accounts.  Is it possible 
without using extra services?  What do I need to do?  What should I 
read?  If I can sort this out I would like to extend to internal mail 
across our mixed lan.

Anne

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Internal mail

2003-07-16 Thread Thomas K. Gamble
On Wednesday 16 July 2003 06:39 am, Anne Wilson wrote:
 Root is sending me messages that end up in /var/spool/mail/anne.  I
 would like to set up KMail to bring these messages into a new folder,
 but don't know how to set up internal mail accounts.  Is it possible
 without using extra services?  What do I need to do?  What should I
 read?  If I can sort this out I would like to extend to internal mail
 across our mixed lan.

Are these messages that are sent to root and forwarded to you, like 
system notifications?  If so, you could create a folder in kmail and 
filter on the from address ( eg. [EMAIL PROTECTED]) to sort them into that 
folder.


 Anne

-- 
Thomas K. Gamble
Los Alamos National Laboratory
Advanced Diagnostics  Instrumentation (C-ADI)
p:505-665-4323 f:505-665-4267
MS-E543


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Internal mail

2003-07-16 Thread Pierre Fortin
On Wed, 16 Jul 2003 13:39:52 +0100 Anne Wilson [EMAIL PROTECTED]
wrote:

 Root is sending me messages that end up in /var/spool/mail/anne.  I 

Due to entries in /etc/aliases -- adjust and run newaliases if you want
to keep root stuff separate.

 would like to set up KMail to bring these messages into a new folder, 

Should only need to add account and/or filtering rule...  I don't run
Kmail since I think sylpheed-claws is the best IMO; but a quick look
suggests you are looking for ConfigureKmail-{Identities,Network} where
you can create new identities(accounts) and servers...  It's not obvious
how to tell Kmail that accountA uses serverX and accountB uses serverY;
but that's the general area...

 but don't know how to set up internal mail accounts.  Is it possible 

Any valid userid can receive mail via [EMAIL PROTECTED] assuming you have
postfix or sendmail running on that machine; otherwise, you may need
fetchmail.

 without using extra services?  What do I need to do?  What should I 

postfix/sendmail/fetchmail are required to accept/fetch mail into your
system for multiple users.

 read?  If I can sort this out I would like to extend to internal mail 
 across our mixed lan.

Lots of resources available...  what do you really want to do?  Do you
have your own domain? Are you prepared to run your own mailhost?  Do you
need a backup server? Wanna be your own boss when it comes to spam
handling?  etc, etc...  I've documented some of my postfix stuff at
http://pfortin.com/Linux/PostFix it that helps...

 Anne
 
 



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Internal mail

2003-07-16 Thread Jack Coates
On Wed, 2003-07-16 at 05:39, Anne Wilson wrote:
 Root is sending me messages that end up in /var/spool/mail/anne.  I 
 would like to set up KMail to bring these messages into a new folder, 
 but don't know how to set up internal mail accounts.  Is it possible 
 without using extra services?  What do I need to do?  What should I 
 read?  If I can sort this out I would like to extend to internal mail 
 across our mixed lan.
 
 Anne
 

make sure that you have mailx installed, then go to /etc/aliases and
add:
anne[EMAIL PROTECTED]

Or just set up another account in the MUA pointing to local files -- I
don't recall how to do this in Kmail, but I know it used to be an
option.
-- 
Jack Coates
Monkeynoodle: A Scientific Venture...
http://www.monkeynoodle.org/resume.html


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Internal mail

2003-07-16 Thread Anne Wilson
On Wednesday 16 Jul 2003 2:54 pm, Pierre Fortin wrote:
 On Wed, 16 Jul 2003 13:39:52 +0100 Anne Wilson
 [EMAIL PROTECTED]

 wrote:
  Root is sending me messages that end up in /var/spool/mail/anne. 
  I

 Due to entries in /etc/aliases -- adjust and run newaliases if
 you want to keep root stuff separate.

  would like to set up KMail to bring these messages into a new
  folder,

 Should only need to add account and/or filtering rule...  I don't
 run Kmail since I think sylpheed-claws is the best IMO; but a quick
 look suggests you are looking for
 ConfigureKmail-{Identities,Network} where you can create new
 identities(accounts) and servers...  It's not obvious how to tell
 Kmail that accountA uses serverX and accountB uses serverY; but
 that's the general area...

  but don't know how to set up internal mail accounts.  Is it
  possible

 Any valid userid can receive mail via [EMAIL PROTECTED] assuming
 you have postfix or sendmail running on that machine; otherwise,
 you may need fetchmail.

  without using extra services?  What do I need to do?  What should
  I

 postfix/sendmail/fetchmail are required to accept/fetch mail into
 your system for multiple users.

  read?  If I can sort this out I would like to extend to internal
  mail across our mixed lan.

 Lots of resources available...  what do you really want to do?  Do
 you have your own domain? Are you prepared to run your own
 mailhost?  Do you need a backup server? Wanna be your own boss when
 it comes to spam handling?  etc, etc...  I've documented some of my
 postfix stuff at http://pfortin.com/Linux/PostFix it that helps...

  Anne

Hi, Pierre.

I have kmail set up to monitor and download from 3 external mail 
accounts, but when it comes to setting up the internal account I'm 
stumped when it comes to entering the server.  I'll read your pages 
to see if I understand any better when I've done g  

The messages that I'm concerned with for the moment are from msec or 
cron, with headers like

Return-Path: [EMAIL PROTECTED]
X-Original-To: anne
Delivered-To: [EMAIL PROTECTED]
Received: by anne-linux.lydgate.net (Postfix, from userid 0)
id 33863671C5; Wed, 14 May 2003 23:09:18 -0400 (EDT)

I would also like to be able to send internal mail to other users on 
the lan.  At the moment I have to use their address on our domain, 
sending it externally, which seems silly when we could communicate 
through a few walls.

I would guess that I have to actually set up a mail server on this box 
to deal with it, and have others download from that, but clearly 
messages are getting from msec and cron via root to me, so maybe I'm 
misunderstanding.

Anne

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Internal mail

2003-07-16 Thread James Sparenberg
On Wed, 2003-07-16 at 05:39, Anne Wilson wrote:
 Root is sending me messages that end up in /var/spool/mail/anne.  I 
 would like to set up KMail to bring these messages into a new folder, 
 but don't know how to set up internal mail accounts.  Is it possible 
 without using extra services?  What do I need to do?  What should I 
 read?  If I can sort this out I would like to extend to internal mail 
 across our mixed lan.
 
 Anne

Anne,

  I don't use KMail but you should be able to just set up a filter in
kmail, filtering on sender that puts it into any folder you like. 
From a look at the product under Settings  Configure Filters.  It seems
to be pretty standard in that respect.

James



Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Internal mail - next step

2003-07-16 Thread Anne Wilson
On Wednesday 16 Jul 2003 3:49 pm, Anne Wilson wrote:

 I would also like to be able to send internal mail to other users
 on the lan.  At the moment I have to use their address on our
 domain, sending it externally, which seems silly when we could
 communicate through a few walls.

Well, I found how to set up a local mailbox in kmail, and I set 
sendmail as the protocol.  Right?  I sent the first message to a 
windows machine, but another Mandrake machine should be on soon, so 
I'll send one there too and see what happens.

Next question, then.  How do I set up the windows machines to be able 
to send/receive local mail?

Anne

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Internal mail - next step

2003-07-16 Thread Anne Wilson
On Wednesday 16 Jul 2003 9:00 pm, Bill Mullen wrote:
 On Wed, 16 Jul 2003, Anne Wilson wrote:
  On Wednesday 16 Jul 2003 3:49 pm, Anne Wilson wrote:
   I would also like to be able to send internal mail to other
   users on the lan.  At the moment I have to use their address on
   our domain, sending it externally, which seems silly when we
   could communicate through a few walls.
 
  Well, I found how to set up a local mailbox in kmail, and I set
  sendmail as the protocol.  Right?  I sent the first message to a
  windows machine, but another Mandrake machine should be on soon,
  so I'll send one there too and see what happens.
 
  Next question, then.  How do I set up the windows machines to be
  able to send/receive local mail?

 Well, you don't, exactly ... as you're already aware, Windows
 machines are fairly brain-dead, and you can only do so much with
 them. ;)

 What you /can/ do is to have your Mandrake system handle the local
 mail for everyone on the LAN, and have the Winboxes deal with that
 for the sending and receiving thereof.

 You'll need to set up users on the Mandrake box for each individual
 who will be receiving mail; these users do not need login
 privileges, and can have their default shell set to /bin/false to
 prevent this (can be done with Userdrake, as they are created).
 Pseudo-users can also be configured in the /etc/aliases file, so
 that sending a mail to [EMAIL PROTECTED] will distribute copies to
 several specific users automatically. Remember to always run
 newaliases, then postfix reload, after changing the aliases
 file.

 To get the Winboxes to communicate with this setup, you need two
 things on anne-linux: a copy of Postfix that will accept mail from
 other IPs on the LAN, and a POP and/or IMAP server that will let
 those systems retrieve their mail from your system. Postfix you
 already have, for POP/IMAP you install the imap200* RPM from the
 CDs.

 The imap RPM installs with POP turned on by default, and the other
 three protocols it offers can be turned on with chkconfig:

 chkconfig imap on
 chkconfig imaps on
 chkconfig pop3s on

 (It offers a fifth protocol, POP2, but you don't need that.)

 After doing this, the xinetd daemon will need to be restarted (it
 handles starting and stopping these services when they are
 required). You'll also need to add a line like the following to
 your /etc/hosts.allow file:

 ALL : 192.168.0.

 This allows access to these services to boxes on the 192.168.0.X
 network.

 You then configure the Winboxes' mail clients by setting up
 accounts that point to anne-linux's IP address for both SMTP
 sending and POP3 (or IMAP) retrieval, with the email addresses of
 [EMAIL PROTECTED] (you can use the FQDN for anne-linux if you
 wish, but for this sort of local delivery arrangement it's not
 needed). These accounts on the Windows MUAs are in addition to the
 existing ones, not in place of them, to be clear.

 If I've left anything out, someone will mention it; if you have
 questions (or concerns I haven't addressed), let us know. This is
 quite doable.

 HTH!

Thanks Bill and Pierre.  It's getting late now, but I'll study both of 
these tomorrow and see what I can do.

Anne

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Internal mail - next step

2003-07-16 Thread Bill Mullen
On Wed, 16 Jul 2003, Anne Wilson wrote:

 On Wednesday 16 Jul 2003 3:49 pm, Anne Wilson wrote:
 
  I would also like to be able to send internal mail to other users on
  the lan.  At the moment I have to use their address on our domain,
  sending it externally, which seems silly when we could communicate
  through a few walls.
 
 Well, I found how to set up a local mailbox in kmail, and I set sendmail
 as the protocol.  Right?  I sent the first message to a windows machine,
 but another Mandrake machine should be on soon, so I'll send one there
 too and see what happens.
 
 Next question, then.  How do I set up the windows machines to be able to
 send/receive local mail?

Well, you don't, exactly ... as you're already aware, Windows machines are 
fairly brain-dead, and you can only do so much with them. ;)

What you /can/ do is to have your Mandrake system handle the local mail 
for everyone on the LAN, and have the Winboxes deal with that for the 
sending and receiving thereof.

You'll need to set up users on the Mandrake box for each individual who 
will be receiving mail; these users do not need login privileges, and can 
have their default shell set to /bin/false to prevent this (can be done 
with Userdrake, as they are created). Pseudo-users can also be configured 
in the /etc/aliases file, so that sending a mail to [EMAIL PROTECTED] 
will distribute copies to several specific users automatically. Remember 
to always run newaliases, then postfix reload, after changing the 
aliases file.

To get the Winboxes to communicate with this setup, you need two things on 
anne-linux: a copy of Postfix that will accept mail from other IPs on the 
LAN, and a POP and/or IMAP server that will let those systems retrieve 
their mail from your system. Postfix you already have, for POP/IMAP you 
install the imap200* RPM from the CDs.

The imap RPM installs with POP turned on by default, and the other three
protocols it offers can be turned on with chkconfig:

chkconfig imap on
chkconfig imaps on
chkconfig pop3s on

(It offers a fifth protocol, POP2, but you don't need that.)

After doing this, the xinetd daemon will need to be restarted (it handles 
starting and stopping these services when they are required). You'll also 
need to add a line like the following to your /etc/hosts.allow file:

ALL : 192.168.0.

This allows access to these services to boxes on the 192.168.0.X network.

You then configure the Winboxes' mail clients by setting up accounts that
point to anne-linux's IP address for both SMTP sending and POP3 (or IMAP)  
retrieval, with the email addresses of [EMAIL PROTECTED] (you can use
the FQDN for anne-linux if you wish, but for this sort of local delivery
arrangement it's not needed). These accounts on the Windows MUAs are in 
addition to the existing ones, not in place of them, to be clear.

If I've left anything out, someone will mention it; if you have questions 
(or concerns I haven't addressed), let us know. This is quite doable.

HTH!

-- 
Bill Mullen   [EMAIL PROTECTED]   MA, USA   RLU #270075   MDK 8.1  9.0
In the beginning the Universe was created. This has made a lot of people
very angry and been widely regarded as a bad move. - Douglas Adams

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com


Re: [expert] Internal mail

2003-07-16 Thread bascule
i set up a receiving account in settingsconfigure kmailnetwork
thse are my details:
name:bascule-local
location:/var/spool/mail/bascule
locking method:none
destination folder:system

obviously i made the 'system' folder!

i didn't alter anything about sending mail
is this useful?

bascule

On Wednesday 16 Jul 2003 1:39 pm, Anne Wilson wrote:
 Root is sending me messages that end up in /var/spool/mail/anne.  I
 would like to set up KMail to bring these messages into a new folder,
 but don't know how to set up internal mail accounts.  Is it possible
 without using extra services?  What do I need to do?  What should I
 read?  If I can sort this out I would like to extend to internal mail
 across our mixed lan.

 Anne

-- 
Far out in the uncharted backwaters of the unfashionable 
end of the western spiral arm of the Galaxy lies a small 
unregarded yellow sun. 


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com