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

Sendmail virtuser

Réponse
 
LinkBack Outils de la discussion
Vieux 03/09/2007, 11h17   #1
BigBadWolf0
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Sendmail virtuser

What is the best way to setup sendmail to treat a range of adresses on
a single domain as local, but 1 or two exceptions as non local?

In all cases a local user exists for each email address, but i want to
"locally" deliver mail for all the desk bound people, but "externally"
deliver mail for the "mobile" people.

Our email and domain is hosted externally (example.co.za) and mail is
fetchmailed from mail.example.co.za. Sendmail on my local server sends
mail via smarthost.

If i define example.co.za as a domain i receive mail for, then ALL
mails are delivered locally - including the mobile ones, not good

If i dont define the domain, then all go out via smarthost, even after
adding the "local" mails in virtusertable (using
"brian@example.co.za brian" ) I was hoping that they would be
mapped to the local user by virtue of the virtusertable, but so far no
good.

I am using Fedora core 4 with Sendmail 8.13

Any would be appreciated

  Réponse avec citation
Vieux 03/09/2007, 11h52   #2
David F. Skoll
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Sendmail virtuser

BigBadWolf0 wrote:

> What is the best way to setup sendmail to treat a range of adresses on
> a single domain as local, but 1 or two exceptions as non local?


Why don't you just alias the exceptions? If "roaming@example.co.za"
is supposed to be non-local, add this to your aliases file:

roaming: roaming@mobile.example.co.za

and then set up the domain mobile.example.co.za to handle your roaming
users.

This assumes you have the ability to set up and control mobile.example.co.za.

Regards,

David.
  Réponse avec citation
Vieux 03/09/2007, 12h32   #3
BigBadWolf0
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Sendmail virtuser

On Sep 3, 12:52 pm, "David F. Skoll" <d...@roaringpenguin.com> wrote:
> BigBadWolf0 wrote:
> > What is the best way to setup sendmail to treat a range of adresses on
> > a single domain as local, but 1 or two exceptions as non local?

>
> Why don't you just alias the exceptions? If "roam...@example.co.za"
> is supposed to be non-local, add this to your aliases file:
>
> roaming: roam...@mobile.example.co.za
>
> and then set up the domain mobile.example.co.za to handle your roaming
> users.
>
> This assumes you have the ability to set up and control mobile.example.co.za.
>
> Regards,
>
> David.


Yes i do maintain the "example.co.za" and can setup emails as
desired...

but the problem still comes down to either all mails "leave the
building" (none treated as local) which is bad thanks to a smallish
adsl cap, or all get delivered locally.

digging further it looks like queuegroups may offer a solution... as
you can nominate addresses or domains to be delivered via local or
other queues. However it does not look particularly straightforward.

  Réponse avec citation
Vieux 03/09/2007, 12h48   #4
Andrzej Adam Filip
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Sendmail virtuser

BigBadWolf0 <leaveitforthewolf@gmail.com> writes:

> What is the best way to setup sendmail to treat a range of adresses on
> a single domain as local, but 1 or two exceptions as non local?
>
> In all cases a local user exists for each email address, but i want to
> "locally" deliver mail for all the desk bound people, but "externally"
> deliver mail for the "mobile" people.
>
> Our email and domain is hosted externally (example.co.za) and mail is
> fetchmailed from mail.example.co.za. Sendmail on my local server sends
> mail via smarthost.


What kind of "external hosting" do you use?
a) separate mailboxes (pop accounts) for every email address.
b) single shared mailbox for all email addresses in you domain

> If i define example.co.za as a domain i receive mail for, then ALL
> mails are delivered locally - including the mobile ones, not good
>
> If i dont define the domain, then all go out via smarthost, even after
> adding the "local" mails in virtusertable (using
> "brian@example.co.za brian" ) I was hoping that they would be
> mapped to the local user by virtue of the virtusertable, but so far no
> good.


*IF* you use option "a" from the above options *THEN*

Use virtusertable for non local email domains.

sendmail.mc:
C{VirtHost}example.co.za
FEATURE(`virtusertable')

virtusertable:
# no rewriting
remote1@example.co.za !
remote2@example.co.za !
# rewrite remaning to local email addresses
@example.co.za %1

Make sure that example.co.za *IS NOT* on list of local email domains:
echo '$=w' | sendmail -bt

--
[pl>en: Andrew] Andrzej Adam Filip : anfi@priv.onet.pl : anfi@xl.wp.pl
Success is relative: It is what we can make of the mess we have made of things.
-- T. S. Eliot, "The Family Reunion"
  Réponse avec citation
Vieux 03/09/2007, 13h17   #5
BigBadWolf0
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Sendmail virtuser

On Sep 3, 1:48 pm, Andrzej Adam Filip <a...@onet.eu> wrote:
> BigBadWolf0 <leaveitforthew...@gmail.com> writes:
> > What is the best way to setup sendmail to treat a range of adresses on
> > a single domain as local, but 1 or two exceptions as non local?

>
> > In all cases a local user exists for each email address, but i want to
> > "locally" deliver mail for all the desk bound people, but "externally"
> > deliver mail for the "mobile" people.

>
> > Our email and domain is hosted externally (example.co.za) and mail is
> > fetchmailed from mail.example.co.za. Sendmail on my local server sends
> > mail via smarthost.

>
> What kind of "external hosting" do you use?
> a) separate mailboxes (pop accounts) for every email address.
> b) single shared mailbox for all email addresses in you domain
>
> > If i define example.co.za as a domain i receive mail for, then ALL
> > mails are delivered locally - including the mobile ones, not good

>
> > If i dont define the domain, then all go out via smarthost, even after
> > adding the "local" mails in virtusertable (using
> > "br...@example.co.za brian" ) I was hoping that they would be
> > mapped to the local user by virtue of the virtusertable, but so far no
> > good.

>
> *IF* you use option "a" from the above options *THEN*
>
> Use virtusertable for non local email domains.
>
> sendmail.mc:
> C{VirtHost}example.co.za
> FEATURE(`virtusertable')
>
> virtusertable:
> # no rewriting
> remo...@example.co.za !
> remo...@example.co.za !
> # rewrite remaning to local email addresses
> @example.co.za %1
>
> Make sure that example.co.za *IS NOT* on list of local email domains:
> echo '$=w' | sendmail -bt
>
> --
> [pl>en: Andrew] Andrzej Adam Filip : a...@priv.onet.pl : a...@xl.wp.pl
> Success is relative: It is what we can make of the mess we have made of things.
> -- T. S. Eliot, "The Family Reunion"


LOL, as ever my world is complicated. Can i bore you with some
history ? if so read on
We have survived for years with a "company@isp.co.za" setup, and my
internal domain of "tass.wrk" came into being, with all users being
"username@tass.wrk" but in the mail client the from field was
company@isp.co.za"

everyone could mail out, all mail in would go to a single pc.

Now we have got our domain registered and with the web site hosting is
the email, it will be a mainly of users@example.co.za.
but also a number of aliases on certain emails for people who are not
fully trusted %-( .

The thinking is that all mail clients will be user@example.co.za, then
1. Trusted users mail would be fetchmailed from our hostings pop
server and delivered locally
2. Mobile users mail would never be fetched by my server
3. Un trusted users mail would be fetchmailed with the "reception"
user and all land up on a single pc, and distributed from there

Sending would resemble:
1. Office user1@example.co.za to office user2@example.co.za ----
delivered locally
2. Office user1@example.co.za to bill@gates.com --- sent out
3. Office user1@example.co.za to mobileuser@example.co.za -- sent out

I think i see the logic in your example, and it may well work, i will
try
Do i define any mappings in virtusertable for that to work ?

  Réponse avec citation
Vieux 05/09/2007, 21h38   #6
David F. Skoll
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Sendmail virtuser

BigBadWolf0 wrote:

> Yes i do maintain the "example.co.za" and can setup emails as
> desired...


> but the problem still comes down to either all mails "leave the
> building" (none treated as local) which is bad thanks to a smallish
> adsl cap, or all get delivered locally.


No; please reread my post carefully.

Regards,

David.
  Réponse avec citation
Vieux 05/09/2007, 21h38   #7
David F. Skoll
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Sendmail virtuser

BigBadWolf0 wrote:

> Yes i do maintain the "example.co.za" and can setup emails as
> desired...


> but the problem still comes down to either all mails "leave the
> building" (none treated as local) which is bad thanks to a smallish
> adsl cap, or all get delivered locally.


No; please reread my post carefully.

Regards,

David.
  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 22h18.


É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,16625 seconds with 15 queries