|
|
|
|
||||||
| comp.mail.sendmail Configuring and using the BSD sendmail agent. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
Alton and Per,
Thanks for the tips. I'll check them out. ![]() regards, id |
|
![]() |
| Outils de la discussion | |
|
|