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 > how to sort email locally?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.mail.sendmail Configuring and using the BSD sendmail agent.

how to sort email locally?

Réponse
 
LinkBack Outils de la discussion
Vieux 02/09/2006, 06h51   #1
Indramin Darmadi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut how to sort email locally?

Case :
I rent a hosting to host all mail to companyname.com.
There are 2 locations that will download the emails to local mail
server @ each location (using fetchmail) (because @ my location, we
don't have dedicated connections and internet is still expensive here).
Sending out email is using smtp relay to ISP's mail server.

To save bandwidth, I want to sort the outgoing mail so that email for
local users will be deliver directly, while user with the same domain
that is not local will go out thru smtp.

For example.
Office 1 : john@companyname.com, jane@companyname.com
Office 2 : smith@companyname.com

when john email to jane@companyname.com, I want it to be delivered
directly to jane local mail box.
If john email smith, then it will goes out thru internet.

I've trying to set the virtuser but it doesn't seem to work. If I use
mailertable, I don't think I can specify each user, but the whole
domain (cmiww). I tried to use procmail, but it seems that it only
filter the incoming mail.

I'm quite new with sendmail, and 0 knowledge on procmail. I've been
searcing the net for a few days, but I haven't found what I want.

Please spare me some tips. I'll really appreciate them.

TIA

regards,
Indramin

  Réponse avec citation
Vieux 02/09/2006, 17h34   #2
Alton Yu
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to sort email locally?

Indramin Darmadi wrote:
> Case :
> I rent a hosting to host all mail to companyname.com.
> There are 2 locations that will download the emails to local mail
> server @ each location (using fetchmail) (because @ my location, we
> don't have dedicated connections and internet is still expensive here).
> Sending out email is using smtp relay to ISP's mail server.
>
> To save bandwidth, I want to sort the outgoing mail so that email for
> local users will be deliver directly, while user with the same domain
> that is not local will go out thru smtp.
>
> For example.
> Office 1 : john@companyname.com, jane@companyname.com
> Office 2 : smith@companyname.com
>
> when john email to jane@companyname.com, I want it to be delivered
> directly to jane local mail box.
> If john email smith, then it will goes out thru internet.
>
> I've trying to set the virtuser but it doesn't seem to work. If I use
> mailertable, I don't think I can specify each user, but the whole
> domain (cmiww). I tried to use procmail, but it seems that it only
> filter the incoming mail.
>
> I'm quite new with sendmail, and 0 knowledge on procmail. I've been
> searcing the net for a few days, but I haven't found what I want.
>
> Please spare me some tips. I'll really appreciate them.
>
> TIA
>
> regards,
> Indramin
>


You may want to think about ldap routing. It's a little bit of a
learning curve, but you can try following the directions here:

http://www.shocknetwork.com/forum/topic28.html

good luck.
Alton
  Réponse avec citation
Vieux 02/09/2006, 19h03   #3
Per Hedeland
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to sort email locally?

In article <1157176296.576505.191760@p79g2000cwp.googlegroups .com>
"Indramin Darmadi" <magnor@gmail.com> writes:
>
>To save bandwidth, I want to sort the outgoing mail so that email for
>local users will be deliver directly, while user with the same domain
>that is not local will go out thru smtp.
>
>For example.
>Office 1 : john@companyname.com, jane@companyname.com
>Office 2 : smith@companyname.com
>
>when john email to jane@companyname.com, I want it to be delivered
>directly to jane local mail box.
>If john email smith, then it will goes out thru internet.


1. Do *not* put companyname.com in /etc/mail/local-host-names or
equivalent.

2. Use FEATURE(`virtusertable') and VIRTUSER_DOMAIN(`companyname.com')
in your .mc file (see cf/README).

3. Put entries in virtusertable for the local users only, like so:

john@companyname.com john
jane@companyname.com jane

That should be it if the MX records are correctly set up for
companyname.com and the server can see them - if not:

4. Add a mailertable entry:

companyname.com esmtp:[isp.server.name]

--Per Hedeland
per@hedeland.org
  Réponse avec citation
Vieux 04/09/2006, 06h32   #4
Indramin Darmadi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to sort email locally?

Alton and Per,

Thanks for the tips.

I'll check them out.

regards,
id

  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 02h52.


Édité par : vBulletin® version 3.7.2
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
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09776 seconds with 12 queries