[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Sheflug] Procmail



Something like this should sort you out

	HTH

	R


##-------------------------------

MAILDIR = /var/spool/mail
DEFAULT  = sysadmin # any mail otherwise undelivered goes here

:0
* ^TOcolin.* # egrep the recipient fields in the header for anything
beginning with "colin" 
colinp # and if found deliver to this users mailbox

:0
* ^TO.*paul.* # as above........
paulm

:0
* ^TO.*shaun.*
shaunh

# until we have no more valid users   
           
##----------------------------------------      

-----Original Message-----
From: Craig Andrews [mailto:nospam [at] fishbot.free-online.co.uk]
Sent: Wednesday, August 16, 2000 10:42
To: Sheflug
Subject: Re: [Sheflug] Procmail


Hmmm.... The problem I have, you see, is that we get mail from pipex down an
ISDN line, and into a mail server. Or thats what we want anyhow.

When we get mail, it is <user> [at] 'domain'.com, 'domain'.com is the domain we
have registered. What I want to do is strip out the  [at] 'domain'.com bit, and
put it in the remaining users mailbox (or the sysadmins if the user doesn't
exist).

When we fetch it, it is all one account called 'domain'.com. Will it still
be delivered to all local mailboxes automagically? (I have yet to try it, as
we have a Windows NT proxy which denies access to any machine not running MS
Proxy client, which of course only runs under windows).

cheers

Craig


-----Original Message-----
From: zzzz <zzzz [at] zapata.freeserve.co.uk>
To: Sheflug <sheflug [at] vuw.ac.nz>
Date: Tuesday, August 15, 2000 10:34 PM
Subject: Re: [Sheflug] Procmail


>Craig Andrews wrote:
>>
>>    Part 1.1    Type: Plain Text (text/plain)
>>            Encoding: quoted-printable
>
>If there is an existing user on the box, mail to user [at] domain will be
>automatically delivered to the correct user.
>
>This is assuming the machine is the MX host for that domain.
>
>To set up sendmail to be able to deliver (on one machine) for
>multiple domains, check out:
>http://www.sendmail.org/virtual-hosting.html
>
>Jules
>---------------------------------------------------------------------
>Sheffield Linux User's Group - http://www.sheflug.co.uk
>To unsubscribe from this list send mail to
>- <sheflug-request [at] vuw.ac.nz> - with the word
> "unsubscribe" in the body of the message.
>
>  GNU the choice of a complete generation.
>
>
>

---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word 
 "unsubscribe" in the body of the message. 

  GNU the choice of a complete generation.

---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word 
 "unsubscribe" in the body of the message. 

  GNU the choice of a complete generation.