|
|
|
|
||||||
| comp.mail.sendmail Configuring and using the BSD sendmail agent. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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. |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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. |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
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" |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
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 ? |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
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. |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
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. |
|
![]() |
| Outils de la discussion | |
|
|