PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Logiciels d'hébergement > comp.mail.sendmail > Procmail Regex
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.mail.sendmail Configuring and using the BSD sendmail agent.

Procmail Regex

Réponse
 
LinkBack Outils de la discussion
Vieux 11/05/2007, 06h28   #1
Indo Geek
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Procmail Regex

Hi All,

Right now I have a global account which reside in my ISP's server, and
I twice a day get all my emails using fetchmail + cron and delivered
them to each mailbox using procmail.

Right now I'm using an abundant rules to check agains 'To' and
'Received' header from incoming mails as shown below

====================
:0
* ^To:.+a@domain\.com
! a@domain.com

:0
* ^Received:.+a@domain\.com
! a@domain.com

:0
* ^To:.+b@domain\.com
! b@domain.com

:0
* ^Received:.+b@domain\.com
! b@domain.com

:0
* ^To:.+c@domain\.com
! c@domain.com

:0
* ^Received:.+c@domain\.com
! c@domain.com
====================

This rule is very inefficient. As I create new user, I have to add two
additional rule entry. Is there any regex alternative to my problem ?

Thanks,

Dino

  Réponse avec citation
Vieux 11/05/2007, 15h45   #2
Grant Taylor
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Procmail Regex

> This rule is very inefficient.

See if your ISP will let you set up a UUCP connection to route mail over.

Or if you have a dynamic IP for your internal mail server set up a host
name that you can change to the new IP as often as you need to and have
your ISP relay mail inbound to you.

If you get either of these working, you can just have your ISP relay
messages directly in to you with real user accounts on your system.
I.e. the ISP would send you an envelope with the original recipient in
tact so that you could deliver the messages with out Procmail deciding
where the messages go.



Grant. . . .

  Réponse avec citation
Vieux 11/05/2007, 18h04   #3
Indo Geek
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Procmail Regex

Grant Taylor wrote:
> See if your ISP will let you set up a UUCP connection to route mail over.
>
> Or if you have a dynamic IP for your internal mail server set up a host
> name that you can change to the new IP as often as you need to and have
> your ISP relay mail inbound to you.
>
> If you get either of these working, you can just have your ISP relay
> messages directly in to you with real user accounts on your system.
> I.e. the ISP would send you an envelope with the original recipient in
> tact so that you could deliver the messages with out Procmail deciding
> where the messages go.
>

Hi Grant,

Will try to find out about that. Thanks for your solution. Really
appreciate it
>
>
> Grant. . . .


Regards,

Dino

  Réponse avec citation
Vieux 11/05/2007, 19h38   #4
Grant Taylor
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Procmail Regex

On 05/11/07 12:04, Indo Geek wrote:
> Will try to find out about that. Thanks for your solution. Really
> appreciate it


Here is some more information on how / where to set this up.

http://linuxfocus.org/English/March2...ticle330.shtml



Grant. . . .

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 17h04.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,18868 seconds with 12 queries